Hello Sean, I'm glad you've found a workaround for your problem. However, not being able to run matterhorn as a service is far from being satisfactory.
The usage and interactions of "su" and "nohup" are quite esoteric to me, and everytime I tried to bring some logic to their magic, I wasn't able to. However, I dare to suggest you may try and add the flag "-l" to the "su" command that is actually starting felix in "/etc/init.d/matterhorn" (or equivalent), to force the command to be run as a "login shell", i.e., the environment is properly set as if the user came from a login menu. Strangely enough, as all the magic stuff tends to be, this option doesn't always work, but the exact combination of factors that does the trick falls in the realms of alchemy and possibly necromancy. So I cannot guarantee you this is going to work, but giving it a try won't harm either. Perhaps you'd want to file a Jira bug so that this issue is studied by more experienced 'sourcerers'. Or you can just say it here and I'll create the bug myself. Good luck! Rubén 2011/5/9 Sean Hennessee <[email protected]> > 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]>> 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 >> > > -- > > Sean Hennessee > mailto:[email protected] > Central Computing Support > Office of Information Technology > UC Irvine > > > ... . .- -. / .... . -. -. . ... ... . . > _______________________________________________ > Matterhorn-users mailing list > [email protected] > http://lists.opencastproject.org/mailman/listinfo/matterhorn-users >
_______________________________________________ Matterhorn-users mailing list [email protected] http://lists.opencastproject.org/mailman/listinfo/matterhorn-users
