URI is not absolute

1,191 views
Skip to first unread message

Massimiliano Ritossa

unread,
May 7, 2018, 11:45:44 AM5/7/18
to Opencast Users
Hi, i deployed a multi opencast servers 4.1 (1 admin, 1 presentation, 3 worker) on kubernetes. 
Opencast /data directory is shared with all 5 servers. The fact is that when i upload a stream, workflow process fails on "snapshot - Archive raw recording after ingest". This are few lines of the reported error from the admin server log :

ERROR | (AbstractAssetManager:302) - An error occurred
java.lang.IllegalArgumentException: URI is not absolute
at java.net.URI.toURL(URI.java:1088)[:1.8.0_151]
at org.opencastproject.assetmanager.storage.impl.fs.AbstractFileSystemAssetStore.extension(AbstractFileSystemAssetStore.java:187)[42:matterhorn-asset-manager-storage-fs:4.1.0 

[...]

2018-05-07 17:15:24,250 | ERROR | (WorkflowOperationWorker:180) - Workflow operation 'operation:'snapshot', position:10, state:'FAILED'' failed
org.opencastproject.assetmanager.api.AssetManagerException: java.lang.IllegalArgumentException: URI is not absolute
at org.opencastproject.assetmanager.impl.AbstractAssetManager.handleException(AbstractAssetManager.java:303)[41:matterhorn-asset-manager-impl:4.1.0]
[...]


What's URI are it referring to?

Thanks!

  MAx

Lars Kiesow

unread,
May 7, 2018, 2:28:07 PM5/7/18
to us...@opencast.org
Hard to say since the error comes from an internal Java class which
does not give you much information. Anyway, my guess would be that it
is caused by one of these settings:

custom.properties:65:#org.opencastproject.episode.rootdir=${org.opencastproject.storage.dir}/archive

org.opencastproject.organization-mh_default_org.cfg:152:#prop.org.opencastproject.assetmanager.url=http://localhost:8080

–Lars

Massimiliano Ritossa

unread,
May 15, 2018, 5:01:57 AM5/15/18
to Opencast Users
Ok, i finally got it.
After a lot of tests and settings changes, i've finally understand what was the issue.
The setting

prop.org.opencastproject.assetmanager.url

would be better to remain unchanged. So i set it to http://localhost:8080 and everything worked.
Thank Lars, you drive me in the right direction.

MAx

Lars Kiesow

unread,
May 15, 2018, 6:16:17 AM5/15/18
to us...@opencast.org
Hi,
just to ensure it's no bug: To what did you set that value before?

Btb. letting it remain at its default value should be totally fine in
all cases unless you start to modify the default distributions.

–Lars

Massimiliano Ritossa

unread,
May 15, 2018, 7:03:16 AM5/15/18
to us...@opencast.org
Hi Lars, i tried to set prop.org.opencastproject.assetmanager.url to:

1) comment the setting ( #prop.org.opencastproject.assetmanager.url )
2) ${org.opencastproject.server.url}
3) ${prop.org.opencastproject.engage.ui.url}
4) <COMPLETE ADMIN SERVER URL WITH SCHEME AND PORT>

I forget to write that in the end, i also change the setting "server" in org.opencastproject.organization.mh_default_org.cfg from "localhost" to <PRESENTATION_SERVER_HOSTNAME>, but i think this detail is not important for my issue.

By the way, as written in the file, default value is ${org.opencastproject.server.url} but, in a multi-server context,
"server.url" is very ambiguous and seems to be not the right solution. So, forcing this:

prop.org.opencastproject.assetmanager.url=http://localhost:8080

Solved my issue.

 MAx


--
You received this message because you are subscribed to a topic in the Google Groups "Opencast Users" group.
To unsubscribe from this topic, visit https://groups.google.com/a/opencast.org/d/topic/users/tJXdsvFXUIo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to users+un...@opencast.org.


Reply all
Reply to author
Forward
0 new messages