|
SageTV v7 Customizations This forums is for discussing and sharing user-created modifications for the SageTV version 7 application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss plugins for SageTV version 7 and newer. |
|
Thread Tools | Search this Thread | Display Modes |
#1281
|
|||
|
|||
Quote:
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#1282
|
||||
|
||||
Quote:
I also found that the sagex-api references the default 8080 port for http, which I have Jetty set to use https only and on a different port, so I never opened up 8080. I edited the firewall for that. I also found that SageAlert was throwing some errors about missing files, so I uninstalled and reinstalled that one. I took a quick look at the logs after reinstalling and it's throwing a lot of "defined resource path does not exist" errors. It's also complaining about a missing sagealert.properties file, which I can't locate manually either. I thought that would have been reinstalled during the plugin reinstall. I'll attach the log file when I get home. One last thing... can you delete a task completely via the UI? For example, I created a "comskip" task and it does show up as selectable, but I don't see how I could delete it if I wanted to recreate it from scratch. I'm probably just overlooking it.
__________________
Server: XP, SuperMicro X9SAE-V, i7 3770T, Thermalright Archon SB-E, 32GB Corsair DDR3, 2 x IBM M1015, Corsair HX1000W PSU, CoolerMaster CM Storm Stryker case Storage: 2 x Addonics 5-in-3 3.5" bays, 1 x Addonics 4-in-1 2.5" bay, 24TB Client: Windows 7 64-bit, Foxconn G9657MA-8EKRS2H, Core2Duo E6600, Zalman CNPS7500, 2GB Corsair, 320GB, HIS ATI 4650, Antec Fusion Tuners: 2 x HD-PVR (HTTP tuning), 2 x HDHR, USB-UIRT Software: SageTV 7 |
#1283
|
||||
|
||||
Quote:
|
#1284
|
|||
|
|||
Quote:
Toasting the db... you'll have to google H2 database and see what it has to say. I've never had to do it and I don't know off the top of my head so we're about even on the knowledge level there so I defer to google.
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#1285
|
||||
|
||||
Quote:
Quote:
Quote:
Quote:
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#1286
|
||||
|
||||
Quote:
|
#1287
|
||||
|
||||
Slugger, thanks for the help so far. (I'll return to the other issues shortly.) I managed to get an agent to be recognized and a task assigned, however, it came back as "returned" in just a couple of seconds. Looking at the logs, I see:
Code:
javax.script.ScriptException: javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: stdout for class: java.lang.System Code:
consumeProcessOutput(System.stdout, System.stderr) Here's the entire code: Code:
// I'm fairly certain your parenthesis don't match up, I don't have access to a groovy parser at the moment so // this may still not be right, but I'm fairly certain what you pasted is invalid; I tried to fix it with the naked eye Object mediaFile = MediaFileAPI.GetMediaFileForID(SJQ4_METADATA.get("SJQ4_ID").toInteger()) String channel = AiringAPI.GetAiringChannelName(mediaFile) /* Building the file name from the SJQ env vars is fine, but you already have the media file object so you might find it easier/more reliable to use the MediaFileAPI functions to extract the file name. But then again, if this is working for you then that's fine. */ String file = SJQ4_METADATA.get("SJQ4_PATH") + SJQ4_METADATA.get("SJQ4_LAST_SEGMENT") String fileType = SJQ4_METADATA.get("SJQ4_LAST_SEGMENT_TYPE") if(channel ==~ /WABCDT|WCBSDT|WNBCDT|WPIXDT|SYFYHD|TNTHD|USAHD|SPIKEHD|FXHD/) { println "Running PRIMARYHDSKIP" println file def command = ['C:/comskip/comskip.exe', '--ini=C:/comskip/comskit-PRIMARYHD.ini', file].execute() consumeProcessOutput(System.stdout, System.stderr) command.waitFor() if (command.exitValue()) return 1 else return 0 } else if(channel ==~ /WNYWDT/) { println "Running WYNWDTSKIP" println file def command = ['C:/comskip/comskip.exe', '--ini=C:/comskip/comskip-WNYWDTSKIP.ini', file].execute() consumeProcessOutput(System.stdout, System.stderr) command.waitFor() if (command.exitValue()) return 1 else return 0 } else if(channel ==~ /HSTRYHD/) { println "Running HSTRYHDSKIP" println file def command = ['C:/comskip/comskip.exe', '--ini=C:/comskip/comskip-HSTRYSKIP.ini', file].execute() consumeProcessOutput(System.stdout, System.stderr) command.waitFor() if (command.exitValue()) return 1 else return 0 } else if(channel !=~ /WNYWDT|WABCDT|WCBSDT|WNBCDT|WPIXDT|SYFYHD|TNTHD|USAHD|SPIKEHD|FXHD|HSTRYHD|HBO.*|ACMAXHD|5MAXHD|HDNETMV|MAX.*|MOMAX|STZ.*|ENC.*|SHO.*|TMC.*|PPV.*/) { println "Running PRIMARYHDSKIP (Default)" println file def command = ['C:/comskip/comskip.exe', '--ini=C:/comskip/comskip-PRIMARYHDSKIP.ini', file].execute() consumeProcessOutput(System.stdout, System.stderr) command.waitFor() if (command.exitValue()) return 1 else return 0 } else { println 'Not running comskip for this recording!' return 0 }
__________________
Server: XP, SuperMicro X9SAE-V, i7 3770T, Thermalright Archon SB-E, 32GB Corsair DDR3, 2 x IBM M1015, Corsair HX1000W PSU, CoolerMaster CM Storm Stryker case Storage: 2 x Addonics 5-in-3 3.5" bays, 1 x Addonics 4-in-1 2.5" bay, 24TB Client: Windows 7 64-bit, Foxconn G9657MA-8EKRS2H, Core2Duo E6600, Zalman CNPS7500, 2GB Corsair, 320GB, HIS ATI 4650, Antec Fusion Tuners: 2 x HD-PVR (HTTP tuning), 2 x HDHR, USB-UIRT Software: SageTV 7 |
#1288
|
||||
|
||||
Here's the log files I promised. They've gotten pretty big and a bunch of changes have been made since they started, so I tried to limit it to about the last hour or so.
__________________
Server: XP, SuperMicro X9SAE-V, i7 3770T, Thermalright Archon SB-E, 32GB Corsair DDR3, 2 x IBM M1015, Corsair HX1000W PSU, CoolerMaster CM Storm Stryker case Storage: 2 x Addonics 5-in-3 3.5" bays, 1 x Addonics 4-in-1 2.5" bay, 24TB Client: Windows 7 64-bit, Foxconn G9657MA-8EKRS2H, Core2Duo E6600, Zalman CNPS7500, 2GB Corsair, 320GB, HIS ATI 4650, Antec Fusion Tuners: 2 x HD-PVR (HTTP tuning), 2 x HDHR, USB-UIRT Software: SageTV 7 |
#1289
|
|||
|
|||
SJQ creates the db on the fly on initial startup if it doesn't exist. You will need to delete the existing db. You will have to google how to do that for H2. If you're still having problems in a couple days when I return from out of town then I might be able to assist more then.
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#1290
|
|||
|
|||
Quote:
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#1291
|
||||
|
||||
Quote:
Also, for anyone who might decide to try and reuse this (God help them!), I also needed to edit the "file" string to include a final backslash because Sage doesn't add them. I did it by making the following change: Old: Code:
String file = SJQ4_METADATA.get("SJQ4_PATH") + SJQ4_METADATA.get("SJQ4_LAST_SEGMENT") Code:
String file = SJQ4_METADATA.get("SJQ4_PATH") + "\\" + SJQ4_METADATA.get("SJQ4_LAST_SEGMENT")
__________________
Server: XP, SuperMicro X9SAE-V, i7 3770T, Thermalright Archon SB-E, 32GB Corsair DDR3, 2 x IBM M1015, Corsair HX1000W PSU, CoolerMaster CM Storm Stryker case Storage: 2 x Addonics 5-in-3 3.5" bays, 1 x Addonics 4-in-1 2.5" bay, 24TB Client: Windows 7 64-bit, Foxconn G9657MA-8EKRS2H, Core2Duo E6600, Zalman CNPS7500, 2GB Corsair, 320GB, HIS ATI 4650, Antec Fusion Tuners: 2 x HD-PVR (HTTP tuning), 2 x HDHR, USB-UIRT Software: SageTV 7 |
#1292
|
||||
|
||||
Now that I've got that worked out (after lots of help), I'm moving onto the next item I'd like SJQ to handle. Is there a script to reschedule SD programs to record their HD versions when it airs and delete the SD recording? I had this in SJQ3 and I saw someone else asked about it around page 7 of this thread, but I didn't see any code posted for the task.
__________________
Server: XP, SuperMicro X9SAE-V, i7 3770T, Thermalright Archon SB-E, 32GB Corsair DDR3, 2 x IBM M1015, Corsair HX1000W PSU, CoolerMaster CM Storm Stryker case Storage: 2 x Addonics 5-in-3 3.5" bays, 1 x Addonics 4-in-1 2.5" bay, 24TB Client: Windows 7 64-bit, Foxconn G9657MA-8EKRS2H, Core2Duo E6600, Zalman CNPS7500, 2GB Corsair, 320GB, HIS ATI 4650, Antec Fusion Tuners: 2 x HD-PVR (HTTP tuning), 2 x HDHR, USB-UIRT Software: SageTV 7 |
#1293
|
||||
|
||||
Quote:
For those interested, I stopped Sage, deleted everything in the sjq\sjq4.lbos.db directory as well as deleting the sjq.log, all of the sjq.log.(n) log files, and the two .db files (sjq4ht.db and sjq4.trace.db). Once that was completed I restarted Sage and checked the logs and the Queue and could see that everything was working again. Also, to be a little safer you could move the files listed above into a backup folder before you delete them to be sure that it does not break anything when Sage comes up. |
#1294
|
|||
|
|||
Quote:
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#1295
|
||||
|
||||
Quote:
Any idea why I keep getting messages about "Process killed by SJQ" for tasks which actually completed successfully. They seem to be ending with a "returned" status (and then getting processed again), so I'm wondering if I have something messed up with the rcmin/rcmax values or in the script. I tried reversing those two values in SJQ, but it doesn't seem to have helped.
__________________
Server: XP, SuperMicro X9SAE-V, i7 3770T, Thermalright Archon SB-E, 32GB Corsair DDR3, 2 x IBM M1015, Corsair HX1000W PSU, CoolerMaster CM Storm Stryker case Storage: 2 x Addonics 5-in-3 3.5" bays, 1 x Addonics 4-in-1 2.5" bay, 24TB Client: Windows 7 64-bit, Foxconn G9657MA-8EKRS2H, Core2Duo E6600, Zalman CNPS7500, 2GB Corsair, 320GB, HIS ATI 4650, Antec Fusion Tuners: 2 x HD-PVR (HTTP tuning), 2 x HDHR, USB-UIRT Software: SageTV 7 |
#1296
|
|||
|
|||
Your task has a max runtime set on it and that run time is too short. Either disable the max run time or increase it so it's sufficiently long for the expected run time of the task.
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#1297
|
||||
|
||||
Quote:
I'll let these run overnight and see what kind of messages (and how many) I have in the morning. Would a "0" disable the maxtime or should I just comment it out? I'll try disabling that in the morning, assuming I still have failures.
__________________
Server: XP, SuperMicro X9SAE-V, i7 3770T, Thermalright Archon SB-E, 32GB Corsair DDR3, 2 x IBM M1015, Corsair HX1000W PSU, CoolerMaster CM Storm Stryker case Storage: 2 x Addonics 5-in-3 3.5" bays, 1 x Addonics 4-in-1 2.5" bay, 24TB Client: Windows 7 64-bit, Foxconn G9657MA-8EKRS2H, Core2Duo E6600, Zalman CNPS7500, 2GB Corsair, 320GB, HIS ATI 4650, Antec Fusion Tuners: 2 x HD-PVR (HTTP tuning), 2 x HDHR, USB-UIRT Software: SageTV 7 |
#1298
|
||||
|
||||
Since SJQ is still apparently killing these tasks, I increased the maxtime to 604800 (1 week) and upped the maxtimeratio to 5.0. One comskip task ran for nearly 6 hours, so I also reduced the number of tasks which can run to just one for now.
Strangely, I didn't get an email on the "returned" tasks. I guess that doesn't count as a failure of the exe?
__________________
Server: XP, SuperMicro X9SAE-V, i7 3770T, Thermalright Archon SB-E, 32GB Corsair DDR3, 2 x IBM M1015, Corsair HX1000W PSU, CoolerMaster CM Storm Stryker case Storage: 2 x Addonics 5-in-3 3.5" bays, 1 x Addonics 4-in-1 2.5" bay, 24TB Client: Windows 7 64-bit, Foxconn G9657MA-8EKRS2H, Core2Duo E6600, Zalman CNPS7500, 2GB Corsair, 320GB, HIS ATI 4650, Antec Fusion Tuners: 2 x HD-PVR (HTTP tuning), 2 x HDHR, USB-UIRT Software: SageTV 7 |
#1299
|
|||
|
|||
Quote:
Quote:
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#1300
|
||||
|
||||
Quote:
I am curious about something, though. Is there a way to know if SJQ is successfully killing the task? I ask because I could swear that I once killed a task after only a few minutes and it still ran to completion over an hour later. EDIT: Right on schedule, it stopped after 90 minutes and then started again. EDIT #2: It also doesn't appear that SJQ literally kills the process, as I killed the one from above and the next task started, while the original one is still running in task manager.
__________________
Server: XP, SuperMicro X9SAE-V, i7 3770T, Thermalright Archon SB-E, 32GB Corsair DDR3, 2 x IBM M1015, Corsair HX1000W PSU, CoolerMaster CM Storm Stryker case Storage: 2 x Addonics 5-in-3 3.5" bays, 1 x Addonics 4-in-1 2.5" bay, 24TB Client: Windows 7 64-bit, Foxconn G9657MA-8EKRS2H, Core2Duo E6600, Zalman CNPS7500, 2GB Corsair, 320GB, HIS ATI 4650, Antec Fusion Tuners: 2 x HD-PVR (HTTP tuning), 2 x HDHR, USB-UIRT Software: SageTV 7 Last edited by Skirge01; 11-21-2012 at 05:28 PM. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Plugin: MizookLCD (Alternate SageTV LCDSmartie Plugin) | cslatt | SageTV Customizations | 48 | 06-11-2012 10:44 AM |
SJQv4: Technology Preview | Slugger | SageTV v7 Customizations | 39 | 12-17-2010 01:17 PM |
SageTV Plugin Developers: Any way to see stats for your plugin? | mkanet | SageTV Software | 4 | 12-12-2010 10:33 PM |
MediaPlayer Plugin/STV Import: Winamp Media Player Plugin | deria | SageTV Customizations | 447 | 12-11-2010 07:38 PM |
SJQv4: Design Discussion | Slugger | SageTV v7 Customizations | 26 | 10-18-2010 08:22 AM |