All of my 3rd party tools are in the default paths. I even tried to
uncomment the lines near the end of config.properties, but the mediainfo
step still failed when running as a service.
Finally, I added my actual shell path to the /etc/init.d/matterhorn
startup script, which worked:
PATH=$PATH:/usr/kerberos/bin:/usr/lib/jvm/java/bin:/usr/lib/jvm/java/jre/bin:/usr/lib/jvm/java/jre/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/maven/bin:/home/matterhorn/bin:$FELIX
I now have matterhorn running and working as a service with the above
PATH line added. And, running as the user 'matterhorn'.
Thanks for all your suggestions.
Peace,
Sean
On 05/10/2011 03:50 AM, Rubén Pérez wrote:
Hi, Rüdiger and Sean:
Just one word of advise. One of the reasons I crashed and burned
everytime I tried to grasp the details of su is that the different
distros sometimes purposedly try to subvert the usual behaviour. For
instance: in Ubuntu, the default .bashrc file includes the following
lines at the top:
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
Which, basically, checks whether the default prompt string is defined
(which only happens if we are in a "real" interactive session), and
exits if it's not, *before configuring any environment variable*. In
other words, if you have your "matterhorn" user created and you add the
necessary configuration keys at the *bottom* of the file, relying that
using "su -l -c 'command'", that environment will be loaded, you'll find
yourself cursing and shouting at the screen, wondering why it doesn't work.
What I'm trying to say is: please make sure there's nothing "strange" in
your .bashrc, .bash_login, .bash_logout or similar files, which may be
altering the expected behaviour of your system. Also, keep in mind that
.bashrc is not the only script to run on login, not even the first.
There's generally a generic configuration script ("profile", typically)
which run first and then calls the particular user configuration script.
Good luck!
Rubén
2011/5/10 Ruediger Rolf <[email protected]
<mailto:[email protected]>>
Hi Sean,
the problem with the path is well known and for a strange reason the
settings from .bashrc are not evaluated in RHEL/CENTOS 5 (unlike
Ubuntu). That's why you can set the path to the third-party tools in
the config file (config.properties). At the end of the file you can
uncomment the path-property for ffmpeg, ocropus, mediainfo and the
qt subtitle embedder.
Maybe there are some more paths in $FELIX_HOME/config/services/ that
have to be included, like tesseract in the textextractor config, and
mediainfo again in the inspection config. I don't know why we have
this included several times and which file is the source of authority...
Good Luck
Rüdiger
Am 09.05.2011 23:53, schrieb Sean Hennessee:
3rd party tools are installed. I logged in as the user
'matterhorn' to see if it could run mediainfo. It worked fine. I
ran it against an mpeg video I uploaded and it gave back lots of
good information about the video.
("mediainfo -f sample_300kbit.mp4")
I tried running Matterhorn as user root, (also as a service). I
got the same errors. I tried running Matterhorn as user root in
the foreground, (i.e. using 'sh
/opt/matterhorn/felix/bin/start_matterhorn.sh' in a terminal
window.) That worked fine; I was able to upload a video and view
it after processing. I tried running Matterhorn as the user
'matterhorn' in the foreground. That also worked fine.
I am assuming that running Matterhorn as a service, (RHEL-5),
does not execute the same '.bashrc' and/or /etc/profile.d
environment setup files as get run when you login interactively.
This would cause it to not find mediainfo in /usr/local/bin.
(And possibly other 3rd party tools.)
I should be able to modify the 'matterhorn' init.d script to
include those environment setup files. I'll give that a try
later this week and let you know how it goes.
Thanks for all your help. I now have a working Matterhorn
running in a terminal window.
Peace,
Sean
On 05/09/2011 11:56 AM, Josh Holtzman wrote:
Right, it looks like the user running Matterhorn can not execute
mediainfo. That's usually due to one of three things:
1) Path: the user running Matterhorn does not have the
mediainfo binary
on their path.
2) Permissions: the user running Matterhorn can't execute
mediainfo
3) Installation: the 3rd party tools were not installed
Are any of these true for your installation?
Josh
On Mon, May 9, 2011 at 11:37 AM, Adam Hochman
<[email protected] <mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>> wrote:
Hi Sean,
If you call mediainfo directly against a video, does it
work?
~Adam
On 5/9/11 10:46 AM, Sean Hennessee wrote:
I have a brand new install of Matterhorn 1.1.0 on
Redhat 5,
server only, no capture agents other than the
default demo. When
I upload a test video via the admin web page, I get
an error at
"inspecting the media package" after uploading. I have tried
uplaoding mpeg and quicktime videos with the same
errors.
Matterhorn is running as a service as the user
'matterhorn'. The
/opt/matterhorn tree is owned by matterhorn and all
writeable.
The install says everything built successfully.
Does it look like I configured something wrong, or
is this a
possible bug?
Here are the errors I am getting:
----------------------------
From Recordings screen:
----------------------------
Failed
org.opencastproject.workflow.api.WorkflowOperationException:
Track
http://matterhorn2.es.uci.edu:8080/files/mediapackage/b113a0e6-2a0b-4ff0-87ea-0eed1b6fc4d7/bcb58e58-0a5c-4c1b-ac89-6292332d1a6d/sample_300kbit.mov
could not be inspected
----------------------------
From Log:
----------------------------
2011-05-09 10:18:05 WARN
(MediaInspectionServiceImpl:400) -
Error enriching track
http://matterhorn2.es.uci.edu:8080/files/mediapackage/b113a0e6-2a0b-4ff0-87ea-0eed1b6fc4d7/bcb58e58-0a5c-4c1b-ac89-6292332d1a6d/sample_300kbit.mov
org.opencastproject.inspection.api.MediaInspectionException:
org.opencastproject.inspection.impl.api.MediaAnalyzerException:
Error while running media analyzer mediainfo
at
org.opencastproject.inspection.impl.MediaInspectionServiceImpl.getFileMetadata(MediaInspectionServiceImpl.java:546)
at
org.opencastproject.inspection.impl.MediaInspectionServiceImpl.enrichTrack(MediaInspectionServiceImpl.java:328)
at
org.opencastproject.inspection.impl.MediaInspectionServiceImpl.enrich(MediaInspectionServiceImpl.java:286)
at
org.opencastproject.inspection.impl.MediaInspectionServiceImpl.process(MediaInspectionServiceImpl.java:135)
at
org.opencastproject.job.api.AbstractJobProducer$JobRunner.call(AbstractJobProducer.java:147)
at
org.opencastproject.job.api.AbstractJobProducer$JobRunner.call(AbstractJobProducer.java:124)
at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at
java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by:
org.opencastproject.inspection.impl.api.MediaAnalyzerException:
Error while running media analyzer mediainfo
at
org.opencastproject.inspection.impl.api.util.CmdlineMediaAnalyzerSupport.analyze(CmdlineMediaAnalyzerSupport.java:72)
at
org.opencastproject.inspection.impl.MediaInspectionServiceImpl.getFileMetadata(MediaInspectionServiceImpl.java:544)
... 10 more
Caused by:
org.opencastproject.util.ProcessExcecutorException
at
org.opencastproject.util.ProcessExecutor.execute(ProcessExecutor.java:102)
at
org.opencastproject.inspection.impl.api.util.CmdlineMediaAnalyzerSupport.analyze(CmdlineMediaAnalyzerSupport.java:70)
... 11 more
Caused by: java.io.IOException: Cannot run program
"mediainfo":
java.io.IOException: error=2, No such file or directory
at
java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at
org.opencastproject.util.ProcessExecutor.execute(ProcessExecutor.java:77)
... 12 more
Caused by: java.io.IOException: java.io.IOException:
error=2, No
such file or directory
at
java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
at
java.lang.ProcessImpl.start(ProcessImpl.java:65)
at
java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 13 more
2011-05-09 10:18:05 ERROR
(WorkflowOperationWorker:158) -
Workflow operation 'inspect' failed
org.opencastproject.workflow.api.WorkflowOperationException:
Track
http://matterhorn2.es.uci.edu:8080/files/mediapackage/b113a0e6-2a0b-4ff0-87ea-0eed1b6fc4d7/bcb58e58-0a5c-4c1b-ac89-6292332d1a6d/sample_300kbit.mov
could not be inspected
at
org.opencastproject.workflow.handler.InspectWorkflowOperationHandler.start(InspectWorkflowOperationHandler.java:135)
at
org.opencastproject.workflow.impl.WorkflowOperationWorker.start(WorkflowOperationWorker.java:216)
at
org.opencastproject.workflow.impl.WorkflowOperationWorker.execute(WorkflowOperationWorker.java:138)
at
org.opencastproject.workflow.impl.WorkflowServiceImpl.runWorkflowOperation(WorkflowServiceImpl.java:646)
at
org.opencastproject.workflow.impl.WorkflowServiceImpl.process(WorkflowServiceImpl.java:1345)
at
org.opencastproject.workflow.impl.WorkflowServiceImpl$JobRunner.call(WorkflowServiceImpl.java:1594)
at
org.opencastproject.workflow.impl.WorkflowServiceImpl$JobRunner.call(WorkflowServiceImpl.java:1572)
at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at
java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
2011-05-09 10:18:10 INFO
(ZipWorkflowOperationHandler:164) -
Archiving mediapackage
b113a0e6-2a0b-4ff0-87ea-0eed1b6fc4d7 in
workflow Workflow {119}
2011-05-09 10:18:10 INFO
(ZipWorkflowOperationHandler:182) -
Adding zipped mediapackage
b113a0e6-2a0b-4ff0-87ea-0eed1b6fc4d7
to the failed.zips archive
2011-05-09 10:18:10 INFO
(ZipWorkflowOperationHandler:196) -
Zipped mediapackage
b113a0e6-2a0b-4ff0-87ea-0eed1b6fc4d7 moved
to the failed.zips archive
Peace,
Sean
--
________________________________________________
Rüdiger Rolf, M.A.
Universität Osnabrück - Zentrum virtUOS
Heger-Tor-Wall 12, 49069 Osnabrück
Telefon: (0541) 969-6511 - Fax: (0541) 969-16511
E-Mail: [email protected] <mailto:[email protected]>
Internet: www.virtuos.uni-osnabrueck.de
<http://www.virtuos.uni-osnabrueck.de>
_______________________________________________
Matterhorn-users mailing list
[email protected]
<mailto:[email protected]>
http://lists.opencastproject.org/mailman/listinfo/matterhorn-users
_______________________________________________
Matterhorn-users mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn-users
--
Sean Hennessee
mailto:[email protected]
http://www.oit.uci.edu/~sean
Central Computing Support
Office of Information Technology
UC Irvine
(949)824-8225 Office
(949)293-5224 Cell
... . .- -. / .... . -. -. . ... ... . .
_______________________________________________
Matterhorn-users mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn-users