|
SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI. |
|
Thread Tools | Search this Thread | Display Modes |
#541
|
|||
|
|||
Hello, I guess I'm getting too many files ...
Hello Slugger ...
I finally wrote some blank batch files so I could process all my pre-SJQ files through and see if that helped. It did, SJQ was running very smoothly for about two weeks without crashes. Then I jinxed it, I was about to write and tell you about how much it helped... I hadn't really noticed the hang times at first ... because well ... you know SageTV ... and I was moving more and more of my media collection to my UnRaid and the hang times were getting longer. In the last few days the hang times were getting worse ... but I removed sagex.jetty.starter.Main from the runnables line after trying a few other things and my hang times dropped considerably. I have 1,431 recorded files on the unRaid Nas. I have the latest SJQ and SJQC snapshots installed with Jetty 1.5 I was curious if there was anything I could send to help find out how to speed SageTV & SJQ back up with crazy large video sets? ps I was also curious about this error Code:
MediaVariables.getVars(File f): Cannot get MediaFile object from database! Thanks for your time, Bobby
__________________
SageTV Server: Windows 7 64Bit, Phenom II X6 1090T, Asus M4A89GTD-PRO/USB3 (AM3), ATI Radeon HD 4290, 2 x KHX1600C9D3/4GX, 4 x HD-PVR2 Gaming, , 4 x 320GB recording drives, 2 x USB-UIRT, SageTV Server Beta SageTV Client & 2 x HD-300 Extender. 40.8TB unRaid 6.6.5 media server Last edited by perfessor101; 03-14-2009 at 12:31 PM. Reason: another question |
#542
|
|||
|
|||
Quote:
1400+ is a larger sized media set, but not massive. Is SJQ locking (i.e. required a restart of SageTV to get running again) or is it just taking a long time to run? If you use file tests (such as FileExists) and your recordings are on a NAS then that could be the reason why it takes a longer time for the QueueLoader to run (as the QueueLoader must constantly check for files on your NAS for each scan). I'm not really sure why removing the remote API plugin helped, I tend to lean on the side of coincidence, but if you can tell me which thread is taking a long time/hanging then that might give me some more answers.
__________________
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... |
#543
|
|||
|
|||
I can try a long run when I go to sleep ...
I'll put the Jetty Server (sagex.jetty.starter.Main) back in before going to sleep and see what it does by wake up time ... and then I should have lots of log information.
If I process the last few recordings manually in the morning ... and then change the logic I use in my batch files to check if the task is completed ... then I don't have to perform as many file exists checks in SJQ. if I have three tasks to perform on an object ... and use a priority on each task will SJQ sort them out for me without ever running them in the wrong order? ie: Battlestar Galactica.mpg VRDQSF-300 then ShowAnalyzer-200 then VRDCUT-100 then I would only have to check for file exists Battlestar Galactica.working so it doesn't try to do two things at once. Currently each rule checks a tag file exists from the last process. Does SJQ re-check the rule that 'fired' a task before preforming that task? or after it queues all three tasks for a media object will it skip the second and third task for the file when Battlestar Galactica.working pops up from the first task. too much rambling ... and oh, yes I have to kill the SageTV process to stop it ... I'll have the logs by midnight ... Bobby
__________________
SageTV Server: Windows 7 64Bit, Phenom II X6 1090T, Asus M4A89GTD-PRO/USB3 (AM3), ATI Radeon HD 4290, 2 x KHX1600C9D3/4GX, 4 x HD-PVR2 Gaming, , 4 x 320GB recording drives, 2 x USB-UIRT, SageTV Server Beta SageTV Client & 2 x HD-300 Extender. 40.8TB unRaid 6.6.5 media server |
#544
|
|||
|
|||
I know part of what I was trying to ask ... is there any way to ask SJQ
I know part of what I was trying to ask ... is there any way to ask SJQ if a previous task has completed as a condition to running the next ?
Bobby checking documentation ...
__________________
SageTV Server: Windows 7 64Bit, Phenom II X6 1090T, Asus M4A89GTD-PRO/USB3 (AM3), ATI Radeon HD 4290, 2 x KHX1600C9D3/4GX, 4 x HD-PVR2 Gaming, , 4 x 320GB recording drives, 2 x USB-UIRT, SageTV Server Beta SageTV Client & 2 x HD-300 Extender. 40.8TB unRaid 6.6.5 media server Last edited by perfessor101; 03-14-2009 at 01:29 PM. |
#545
|
|||
|
|||
Quote:
For example: Job 1 renames and outputs renamefinished.txt. Job 2 shrinks and has to look for renamefinished in order to run otherwise it skips over it. |
#546
|
|||
|
|||
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... |
#547
|
|||||
|
|||||
Quote:
You're going to have to piece together the debug output and rearrange it, etc, but when SJQ becomes non-responsive then one or more of the threads should be stuck and telling me the last statement printed is going to get me started towards finding the problem. Quote:
Quote:
So instead of something like this: Code:
# Server Ruleset if [<whatever conditions>] { :PRIORITY 30 TASK1 :PRIORITY 20 TASK2 :PRIORITY 10 TASK3 } ------- # Client config TASK1 { "C:/whatever.exe \"%c%\"" } TASK2 { "C:/something.exe \"%c%\"" } TASK3 { "C:/foobar.exe \"%c%\"" } Code:
# Server Ruleset if [<whatever conditions>] { :PRIORITY 10 ONEBIGTASK } --------- # Client config ONEBIGTASK { "C:/whatever.exe \"%c%\"" "C:/something.exe \"%c%\"" "C:/foobar.exe \"%c%\"" } 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... |
#548
|
|||
|
|||
already doing that ... but too many tests ...
I'm already doing that but it results in lots of file exists tests ...
and I'm trying to streamline things as SageTV on my quadcore was hanging more than playing the UI Hang times had numbers something like about 18320 (I might have an extra zero or be missing one) in blocks of fifteen together in the log Hang times almost disapear with Jetty and SJQ removed Code:
VRDQSF.bat now Starting Quick Stream Fix %~dpnx1 >>%~dpn1.working rem Video Redo QuickStreamFix cscript //nologo "c:\testing\vp.vbs" "%~dpn1.mpg" "%~dp1temp\%~n1.mpg.bak" "/t1" IF %ERRORLEVEL% NEQ 0 goto done if not exist %~dp1temp\%~n1.mpg.bak goto error rem swap original to temp directory move /y %~dpn1.mpg %~dp1temp\%~n1.mpg rem swap QSF'd file to original name and location move /y %~dp1temp\%~n1.mpg.bak %~dpn1.mpg if not exist %~dpn1.mpg goto error now Finished Quick Stream Fix %~dpn1 >>%~dpn1.vrdqsf del %~dpn1.working exit :error now Error %~dpn1.vrdqsf >>%~dpn1.error which creates an *.Vprj file in which I confirm the commercial cuts ... which finally launches VideoRedo to cut the commercials then I'm considering automating compression and moving to the NAS via SJQ Bobby
__________________
SageTV Server: Windows 7 64Bit, Phenom II X6 1090T, Asus M4A89GTD-PRO/USB3 (AM3), ATI Radeon HD 4290, 2 x KHX1600C9D3/4GX, 4 x HD-PVR2 Gaming, , 4 x 320GB recording drives, 2 x USB-UIRT, SageTV Server Beta SageTV Client & 2 x HD-300 Extender. 40.8TB unRaid 6.6.5 media server |
#549
|
|||
|
|||
I could combine
I could combine VideoRedoQuickStreamFix and ShowAnalyzer in one task ...
and then put VideoRedoCut and Move / compress in another task. but I confirm the commercial cuts in between ShowAnalyzer and VideoRedoCut as I can never get SA or comskip tweaked just quite right for every show on every channel. OR if I move files to the NAS in between recordings with SJQ ... once they are on the NAS I can run all the other tasks via DirMon from another computer. Bobby
__________________
SageTV Server: Windows 7 64Bit, Phenom II X6 1090T, Asus M4A89GTD-PRO/USB3 (AM3), ATI Radeon HD 4290, 2 x KHX1600C9D3/4GX, 4 x HD-PVR2 Gaming, , 4 x 320GB recording drives, 2 x USB-UIRT, SageTV Server Beta SageTV Client & 2 x HD-300 Extender. 40.8TB unRaid 6.6.5 media server |
#550
|
|||
|
|||
Quote:
Maybe 1400 is too large a media set as well, the first time I remember reading about such an issue I thought it was a set of 10,000 and most files were MP3s, that's when I implemented the use of the media mask, which from what I remember solved that user's problem. I only scan TV files and I'm always hovering around 200-250, I've never had a media list even close to 1000 to test the load/scalability of the various execution threads of SJQ. Each run of the QueueLoader will do approximately n*t*r queries of the wiz.bin in rapid succession, where n is the number of media objects to be scanned, t is the number of tests in a single rule block and r is the number of rule blocks defined in your ruleset. I have no idea, of course, what kind of locking SageTV does when something is reading from wiz.bin, which might explain your UI lock ups. My 225 recordings are scanned by the QueueLoader on my Q6600 quad core in 0.8-1.3 seconds. My ruleset consists of two ruleblocks, each with 6 or 7 tests. I have no NAS for it to be reading (at this time), everything is local. Seems like 1400 recordings would take 5-8 seconds (assuming the time function here is linear, which seems like a rather safe bet). So does SageTV lock down wiz.bin while SJQ repeatedly queries it for those 5-8 seconds? Is that long enough for the Sage GUI to get upset? The plot thickens... hopefully the debug output you provide later this weekend answers some of these questions.
__________________
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... |
#551
|
|||
|
|||
Here's some logs
Here's some logs ...
SageTV without Jetty ... SageTV with Jetty and SageTV with Jetty and SJQ I didn't see much with the older logs ... the SageTV with Jetty and SJQ is the largest and only covers a few hours ... Hope they help ... thank you, Bobby ps -- actually a rar file ... bad form I know to rename ... but the zip file was 1.9MB so unless I split it three ways ...
__________________
SageTV Server: Windows 7 64Bit, Phenom II X6 1090T, Asus M4A89GTD-PRO/USB3 (AM3), ATI Radeon HD 4290, 2 x KHX1600C9D3/4GX, 4 x HD-PVR2 Gaming, , 4 x 320GB recording drives, 2 x USB-UIRT, SageTV Server Beta SageTV Client & 2 x HD-300 Extender. 40.8TB unRaid 6.6.5 media server |
#552
|
|||
|
|||
Did SJQ hang up while you were logging it? Does the logged session represent an SJQ hang?
__________________
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... |
#553
|
|||
|
|||
Very interesting... I can see that the log provided is a session where SJQ hung... and the debug output is rather interesting:
Code:
$ grep "SJQ FileCleaner" sagetvwithJettyandSJQ.txt Mon 3/16 6:31:29.730 SJQ FileCleaner: Started... Mon 3/16 8:44:32.943 SJQ FileCleaner: Started... Mon 3/16 10:35:49.645 SJQ FileCleaner: Started... Then I look at the trace points for the QueueLoader Code:
$ grep "SJQ QueueLoader" sagetvwithJettyandSJQ.txt Mon 3/16 6:31:29.205 SJQ QueueLoader: Cycle started... Mon 3/16 6:31:30.953 SJQ QueueLoader: MediaMask retrieved [T]... Mon 3/16 6:31:30.955 SJQ QueueLoader: Media list generated [size = 1489]... Mon 3/16 8:38:32.237 SJQ QueueLoader: Media scan completed... Mon 3/16 8:38:32.947 SJQ QueueLoader: Gone to sleep! Mon 3/16 8:44:32.940 SJQ QueueLoader: Cycle started... Mon 3/16 8:44:33.074 SJQ QueueLoader: MediaMask retrieved [T]... Mon 3/16 8:44:33.075 SJQ QueueLoader: Media list generated [size = 1488]... Mon 3/16 10:35:49.376 SJQ QueueLoader: Media scan completed... Mon 3/16 10:35:49.641 SJQ QueueLoader: Gone to sleep! Mon 3/16 10:35:49.642 SJQ QueueLoader: Awakened... Mon 3/16 10:35:49.642 SJQ QueueLoader: Cycle started... Mon 3/16 10:35:49.768 SJQ QueueLoader: MediaMask retrieved [T]... Mon 3/16 10:35:49.768 SJQ QueueLoader: Media list generated [size = 1487]... Assuming you have network drives registered, the first thing to try is to disable use of the FileCleaner in SJQ. Presumably, this is the thread that is getting caught in a loop or getting stuck somewhere, and disabling it may relieve the rest of the problems. I do not have network drives to test performance, hopefully someone else running SJQ with network recording dirs can chime in with some results of their own. The code in the FileCleaner thread is so small and basic that I don't see what I could even change to try to "fix" it. It's standard java.io.File stuff. What version of Java are you running? If not the latest, perhaps an upgrade is in order?
__________________
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... |
#554
|
|||
|
|||
Hey Slugger,
I did not have a chance to install the latest snapshot or do any troubleshooting this weekend (marathon of the wifes shows) but I did notice additional details when the hang occurred. We sat down to watch some recorded TV and i noticed that no programs in the last 12 hours had commercial skipping processed. I went to the sjq main page and sure enough, i got the login prompt but after entering password, it just sat there and eventually hung the browser. I did a quick restart and then SJQ was working again and all of the programs that did not get processed were now in queue. So, it's not just the login prompt that is hanging but it's not even queueing up jobs. There are no scheduled recordings after 5pm today so I'll take it down and do some troubleshooting. -Peter EDIT: I noticed that there are 4 snapshot builds now, which one should I be installing to troubleshoot? Last edited by Peter_h; 03-17-2009 at 03:19 PM. |
#555
|
|||
|
|||
File Cleaner help
I'm back again. I'm trying to get the file cleaner working and i'm not sure on the syntax. I checked the guide (great job BTW) and there isn't much in the file cleaner section.
What I want it to do is to delete .edl files for recordings that have been deleted. I have both .ts and mpg. recordings so is this correct? Delete files with an extension matching this regex: .edl When no corresponding file has an extension matching this regex: .ts Never delete files matching this regex: .mpg -Peter |
#556
|
||||
|
||||
I'm having the same issue, on build 361. Type in the password and it just sits there. If I navigate away from the page "Invalid password!" is displayed. This has happened twice now. I have to restart the Sage Service in order to get things working again.
|
#557
|
|||
|
|||
Enable debug logging in SageTV, reproduce then get me the output (see a few posts up for what I'm looking for). Are any of your recording directories on a network drive? How large is the media set SJQ is scanning?
__________________
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... |
#558
|
|||
|
|||
Latest one available should be fine.
__________________
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... |
#559
|
|||
|
|||
Quote:
EDIT: If you want to delete the edl files for both mpg and ts recordings then the values should be: Delete files with an extension matching this regex: edl When no corresponding file has an extension matching this regex: mpg|ts Never delete files matching this regex: .*\.logo\.txt$ Assuming you use comskip, then you might want to use the value I've provided for the third box, it will prevent the FileCleaner from delete the *.logo.txt files that comskip generates while it's processing a recording. You can flip a switch in your comskip.ini to have comskip auto delete those logo files when it completes.
__________________
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... Last edited by Slugger; 03-17-2009 at 06:07 PM. Reason: Add example |
#560
|
|||
|
|||
Quote:
I have comskip set to "cleanup" after it is finished. However, it still outputs 3 files, .edl, txt. and .log. Can I have the job clear all 3 or do I need separate instances of the cleanup? For example: Delete files with an extension matching this regex: edl|txt|log When no corresponding file has an extension matching this regex: mpg|ts Never delete files matching this regex: Is this syntax correct? Thanks, Peter |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Plugin: Sage Job Queue (SJQ) v3 | Slugger | SageTV Customizations | 1355 | 07-25-2013 07:44 AM |
Sage Job Queue (SJQ) new release notifications | Slugger | Customization Announcements | 3 | 12-17-2009 09:59 AM |
Sage Job Queue Completed tasks problem | raffmanlt | SageTV Customizations | 2 | 08-18-2009 07:34 PM |
Comskip Monitor VS Sage Job Queue SJQ | personalt | SageTV Customizations | 6 | 03-02-2009 10:27 AM |
Plugin: SJQ v1.1.0RC1 Available - Testers Needed | Slugger | SageTV Customizations | 35 | 04-21-2008 08:12 AM |