SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Linux > SageTV for unRAID/Docker
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV for unRAID/Docker Discussion related to SageTV for unRAID/Docker. Questions, issues, problems, suggestions, etc. relating to SageTV for unRAID/Docker should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-28-2016, 10:50 AM
Brewer's Avatar
Brewer Brewer is offline
Sage User
 
Join Date: Dec 2009
Location: Colfax, CA
Posts: 28
Problem starting comskip

I'm using sage in a docker container on a Ubuntu setup (no unraid). Most everything is working except for comskip. I imported a bunch of existing recordings without any comskip info. Then used the UI to manually start comskip on a single recording. This failed to start the comskip process. The error from the sagetv_0.txt log is as follows:

Fri 10/28 9:33:16.749 [Fork-JREkiwi-616107@9181412] java.io.IOException: Cannot run program "/opt/sagetv/server/STVs/SageTV7/Externals/comskip.cmd" (in directory "/opt/sagetv/server/STVs/SageTV7/Externals"): error=13, Permission denied
Fri 10/28 9:33:16.749 [Fork-JREkiwi-616107@9181412] at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
Fri 10/28 9:33:16.749 [Fork-JREkiwi-616107@9181412] at java.lang.Runtime.exec(Runtime.java:620)
Fri 10/28 9:33:16.749 [Fork-JREkiwi-616107@9181412] at sage.api.Utility$49.runSafely(Utility.java:1329)
Fri 10/28 9:33:16.774 [Fork-JREkiwi-616107@9181412] at sage.PredefinedJEPFunction.run(PredefinedJEPFunction.java:112)
Fri 10/28 9:33:16.774 [Fork-JREkiwi-616107@9181412] at sage.jep.JEP$CommandEvaluator.evaluate(JEP.java:586)
Fri 10/28 9:33:16.774 [Fork-JREkiwi-616107@9181412] at sage.jep.JEP.getValueAsObject(JEP.java:428)
Fri 10/28 9:33:16.774 [Fork-JREkiwi-616107@9181412] at sage.Catbert.evaluateExpression(Catbert.java:641)
Fri 10/28 9:33:16.774 [Fork-JREkiwi-616107@9181412] at sage.ZPseudoComp.processChain(ZPseudoComp.java:4641)
Fri 10/28 9:33:16.774 [Fork-JREkiwi-616107@9181412] at sage.ZPseudoComp.processChain(ZPseudoComp.java:4680)
Fri 10/28 9:33:16.774 [Fork-JREkiwi-616107@9181412] at sage.ZPseudoComp.processChain(ZPseudoComp.java:4579)
Fri 10/28 9:33:16.774 [Fork-JREkiwi-616107@9181412] at sage.ZPseudoComp$2.run(ZPseudoComp.java:4627)
Fri 10/28 9:33:16.774 [Fork-JREkiwi-616107@9181412] at sage.Pooler$PooledThread.run(Pooler.java:253)
Fri 10/28 9:33:16.774 [Fork-JREkiwi-616107@9181412] Caused by: java.io.IOException: error=13, Permission denied
Fri 10/28 9:33:16.774 [Fork-JREkiwi-616107@9181412] at java.lang.UNIXProcess.forkAndExec(Native Method)
Fri 10/28 9:33:16.774 [Fork-JREkiwi-616107@9181412] at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
Fri 10/28 9:33:16.774 [Fork-JREkiwi-616107@9181412] at java.lang.ProcessImpl.start(ProcessImpl.java:134)
Fri 10/28 9:33:16.774 [Fork-JREkiwi-616107@9181412] at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
Fri 10/28 9:33:16.774 [Fork-JREkiwi-616107@9181412] ... 11 more
Fri 10/28 9:33:16.774 [Fork-JREkiwi-616107@9181412] EXCEPTION in getValueAsObject:sage.jep.ParseException: Error in method reflection of ExecuteProcess of java.io.IOException: Cannot run program "/opt/sagetv/server/STVs/SageTV7/Externals/comskip.cmd" (in directory "/opt/sagetv/server/STVs/SageTV7/Externals"): error=13, Permission denied for:ExecuteProcess(GetProperty("commercial_comskip_program", java_lang_System_getProperty("user.dir") + java_io_File_separator + "STVs" + java_io_File_separator + "SageTV7" + java_io_File_separator + "Externals" + java_io_File_separator + "comskip.cmd"), args, GetPathParentDirectory(GetProperty("commercial_comskip_program", java_lang_System_getProperty("user.dir") + java_io_File_separator + "STVs" + java_io_File_separator + "SageTV7" + java_io_File_separator + "Externals")), false)
Fri 10/28 9:33:16.775 [Fork-JREkiwi-616107@9181412] sage.jep.ParseException: Error in method reflection of ExecuteProcess of java.io.IOException: Cannot run program "/opt/sagetv/server/STVs/SageTV7/Externals/comskip.cmd" (in directory "/opt/sagetv/server/STVs/SageTV7/Externals"): error=13, Permission denied
Fri 10/28 9:33:16.775 [Fork-JREkiwi-616107@9181412] at sage.PredefinedJEPFunction.run(PredefinedJEPFunction.java:121)
Fri 10/28 9:33:16.775 [Fork-JREkiwi-616107@9181412] at sage.jep.JEP$CommandEvaluator.evaluate(JEP.java:586)
Fri 10/28 9:33:16.775 [Fork-JREkiwi-616107@9181412] at sage.jep.JEP.getValueAsObject(JEP.java:428)
Fri 10/28 9:33:16.775 [Fork-JREkiwi-616107@9181412] at sage.Catbert.evaluateExpression(Catbert.java:641)
Fri 10/28 9:33:16.775 [Fork-JREkiwi-616107@9181412] at sage.ZPseudoComp.processChain(ZPseudoComp.java:4641)
Fri 10/28 9:33:16.775 [Fork-JREkiwi-616107@9181412] at sage.ZPseudoComp.processChain(ZPseudoComp.java:4680)
Fri 10/28 9:33:16.775 [Fork-JREkiwi-616107@9181412] at sage.ZPseudoComp.processChain(ZPseudoComp.java:4579)
Fri 10/28 9:33:16.775 [Fork-JREkiwi-616107@9181412] at sage.ZPseudoComp$2.run(ZPseudoComp.java:4627)
Fri 10/28 9:33:16.775 [Fork-JREkiwi-616107@9181412] at sage.Pooler$PooledThread.run(Pooler.java:253)
Fri 10/28 9:33:16.775 [Fork-JREkiwi-616107@9181412] Caused by: java.io.IOException: Cannot run program "/opt/sagetv/server/STVs/SageTV7/Externals/comskip.cmd" (in directory "/opt/sagetv/server/STVs/SageTV7/Externals"): error=13, Permission denied
Fri 10/28 9:33:16.775 [Fork-JREkiwi-616107@9181412] at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
Fri 10/28 9:33:16.775 [Fork-JREkiwi-616107@9181412] at java.lang.Runtime.exec(Runtime.java:620)
Fri 10/28 9:33:16.775 [Fork-JREkiwi-616107@9181412] at sage.api.Utility$49.runSafely(Utility.java:1329)
Fri 10/28 9:33:16.775 [Fork-JREkiwi-616107@9181412] at sage.PredefinedJEPFunction.run(PredefinedJEPFunction.java:112)
Fri 10/28 9:33:16.775 [Fork-JREkiwi-616107@9181412] ... 8 more
Fri 10/28 9:33:16.775 [Fork-JREkiwi-616107@9181412] Caused by: java.io.IOException: error=13, Permission denied
Fri 10/28 9:33:16.775 [Fork-JREkiwi-616107@9181412] at java.lang.UNIXProcess.forkAndExec(Native Method)
Fri 10/28 9:33:16.775 [Fork-JREkiwi-616107@9181412] at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
Fri 10/28 9:33:16.775 [Fork-JREkiwi-616107@9181412] at java.lang.ProcessImpl.start(ProcessImpl.java:134)
Fri 10/28 9:33:16.775 [Fork-JREkiwi-616107@9181412] at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
Fri 10/28 9:33:16.775 [Fork-JREkiwi-616107@9181412] ... 11 more

It's trying to run /opt/sagetv/server/STVs/SageTV7/Externals/comskip.cmd, a windows batch file, which seems wrong to me since this is a Linux setup!

Any ideas?

I tried loading the CommericalDetectorUI plugin, but that expects Wine to be present, so uninstalled that...
Reply With Quote
  #2  
Old 10-28-2016, 11:29 AM
JREkiwi's Avatar
JREkiwi JREkiwi is offline
Sage Icon
 
Join Date: Jan 2005
Location: Auckland, New Zealand
Posts: 2,132
You're right that is a windows batch file.

You need to use the Commercial Detector UI. I believe there were some changes made for it to work in the docker environment.

John
Reply With Quote
  #3  
Old 10-28-2016, 03:09 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Try going to the CommercialDetector plugin setup (it is under the General category) and looking for the option that says "Run comskip natively". Make sure that's selected.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #4  
Old 10-28-2016, 04:39 PM
Brewer's Avatar
Brewer Brewer is offline
Sage User
 
Join Date: Dec 2009
Location: Colfax, CA
Posts: 28
So I added the CommercialDetectorUI plugin and now can run comskip successfully on an individual target.

Now would like to do a bulk comskip update, but when I try this from the CommercialDetectorUI config using 'scan all recordings without comskip info', the error: There was an error setting the plugin configuration value of: java.lang.NullPointerException is shown on the screen dialog. It does show 288 queued, but if I look at Show jobs that have been queued is displays [0], and running is also [0].

I didn't see any obvious errors in the log (set to maximum logging to be sure), but it shows it found the .edl which I started manually.

Not sure what to try next?

Thanks for the help everyone...
Reply With Quote
  #5  
Old 10-29-2016, 06:01 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by Brewer View Post
So I added the CommercialDetectorUI plugin and now can run comskip successfully on an individual target.

Now would like to do a bulk comskip update, but when I try this from the CommercialDetectorUI config using 'scan all recordings without comskip info', the error: There was an error setting the plugin configuration value of: java.lang.NullPointerException is shown on the screen dialog. It does show 288 queued, but if I look at Show jobs that have been queued is displays [0], and running is also [0].

I didn't see any obvious errors in the log (set to maximum logging to be sure), but it shows it found the .edl which I started manually.

Not sure what to try next?

Thanks for the help everyone...
Reproduce the error and attach a logfile please and I'll look at it.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #6  
Old 10-30-2016, 06:33 PM
Brewer's Avatar
Brewer Brewer is offline
Sage User
 
Join Date: Dec 2009
Location: Colfax, CA
Posts: 28
Not sure what I did, but the queuing is now working. I did fix some issues with directory permissions, as well as some left over invalid paths for some recordings in the Wiz.bin which occurred in the switch over from Windows to Linux. I'm not complaining though, but wish I could really pinpoint the issue for future reference.

Anyway, thanks for all the help!
Reply With Quote
  #7  
Old 10-31-2016, 02:03 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
I've also 'sometimes' seen that null pointer error when trying to queue up comskip in commercialdetector, but never got it captured in a log. :-(
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Comskip themeister SageTV v7 Customizations 3 06-08-2016 11:01 AM
Sudden SageTV problem, service stops a few seconds after starting hagur SageTV Software 2 09-04-2012 04:43 AM
Comskip problem lucasbuck Phoenix 6 12-06-2011 06:33 PM
Starting to test Comskip with h.264 support erik SageTV Customizations 465 09-13-2009 07:39 AM


All times are GMT -6. The time now is 12:35 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.