SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Customizations
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

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.

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #581  
Old 03-22-2009, 03:51 PM
madas madas is offline
Sage Advanced User
 
Join Date: Jun 2008
Posts: 83
I rebooted and can run debug once...and only once..after it hangs

Code:
Sun 3/22 17:38:10.611 (org.mortbay.log) <DEBUG> REQUEST /sjq/SJQ on org.mortbay.jetty.HttpConnection@163bb7b
Sun 3/22 17:38:10.611 (org.mortbay.log) <DEBUG> sessionManager=org.mortbay.jetty.servlet.HashSessionManager@105f21c
Sun 3/22 17:38:10.611 (org.mortbay.log) <DEBUG> session=null
Sun 3/22 17:38:10.611 (org.mortbay.log) <DEBUG> servlet=SJQServlet
Sun 3/22 17:38:10.611 (org.mortbay.log) <DEBUG> chain=null
Sun 3/22 17:38:10.611 (org.mortbay.log) <DEBUG> servlet holder=SJQServlet
Sun 3/22 17:38:10.611 (org.mortbay.log) <DEBUG> loaded class java.lang.StackTraceElement
Sun 3/22 17:38:10.612 (org.mortbay.log) <DEBUG> loaded class java.lang.StackTraceElement from null
Sun 3/22 17:38:10.612 Sun Mar 22 17:38:10 EDT 2009: SJQ Application Dump
	QueueLoader thread is alive...
		java.lang.Thread.sleep(Native Method)
		com.google.code.sagetvaddons.sjq.server.QueueLoader.run(QueueLoader.java:94)
		java.lang.Thread.run(Unknown Source)
	ClientMonitor thread is alive...
		java.lang.Thread.sleep(Native Method)
		com.google.code.sagetvaddons.sjq.server.ClientMonitor.run(ClientMonitor.java:35)
		java.lang.Thread.run(Unknown Source)
	InteralTaskClient thread is alive...
		com.google.code.sagetvaddons.sjq.server.TaskQueue.pop(TaskQueue.java:120)
		com.google.code.sagetvaddons.sjq.server.InternalTaskClient.run(InternalTaskClient.java:39)
		java.lang.Thread.run(Unknown Source)
	Most recent LogCleaner thread is dead (this is normal behaviour)!
	Most recent FileCleaner thread is dead (this is normal behaviour)!

Sun 3/22 17:38:10.612 (org.mortbay.log) <DEBUG> RESPONSE /sjq/SJQ  200
Sun 3/22 17:38:10.613 (org.mortbay.log) <DEBUG> EOF
Sun 3/22 17:38:10.614 (org.mortbay.log) <DEBUG> REQUEST /sjq/SJQ on org.mortbay.jetty.HttpConnection@347cce
Sun 3/22 17:38:10.614 (org.mortbay.log) <DEBUG> sessionManager=org.mortbay.jetty.servlet.HashSessionManager@105f21c
Sun 3/22 17:38:10.614 (org.mortbay.log) <DEBUG> session=null
Sun 3/22 17:38:10.614 (org.mortbay.log) <DEBUG> servlet=SJQServlet
Sun 3/22 17:38:10.614 (org.mortbay.log) <DEBUG> chain=null
Sun 3/22 17:38:10.614 (org.mortbay.log) <DEBUG> servlet holder=SJQServlet
Sun 3/22 17:38:10.615 Sun Mar 22 17:38:10 EDT 2009: SJQ Application Dump
	QueueLoader thread is alive...
		java.lang.Thread.sleep(Native Method)
		com.google.code.sagetvaddons.sjq.server.QueueLoader.run(QueueLoader.java:94)
		java.lang.Thread.run(Unknown Source)
	ClientMonitor thread is alive...
		java.lang.Thread.sleep(Native Method)
		com.google.code.sagetvaddons.sjq.server.ClientMonitor.run(ClientMonitor.java:35)
		java.lang.Thread.run(Unknown Source)
	InteralTaskClient thread is alive...
		com.google.code.sagetvaddons.sjq.server.TaskQueue.pop(TaskQueue.java:120)
		com.google.code.sagetvaddons.sjq.server.InternalTaskClient.run(InternalTaskClient.java:39)
		java.lang.Thread.run(Unknown Source)
	Most recent LogCleaner thread is dead (this is normal behaviour)!
	Most recent FileCleaner thread is dead (this is normal behaviour)!

Sun 3/22 17:38:10.615 (org.mortbay.log) <DEBUG> RESPONSE /sjq/SJQ  200
Sun 3/22 17:38:10.616 (org.mortbay.log) <DEBUG> REQUEST /sjq/SJQ on org.mortbay.jetty.HttpConnection@7ce842
Sun 3/22 17:38:10.616 (org.mortbay.log) <DEBUG> sessionManager=org.mortbay.jetty.servlet.HashSessionManager@105f21c
Sun 3/22 17:38:10.616 (org.mortbay.log) <DEBUG> session=null
Sun 3/22 17:38:10.616 (org.mortbay.log) <DEBUG> servlet=SJQServlet
Sun 3/22 17:38:10.616 (org.mortbay.log) <DEBUG> chain=null
Sun 3/22 17:38:10.616 (org.mortbay.log) <DEBUG> servlet holder=SJQServlet
  #582  
Old 03-22-2009, 03:51 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by madas View Post
Not looking good.

I cannot even get the DEBUG command to work, just comes back blank (after about a minute of waiting)
On 383?
__________________
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...
  #583  
Old 03-23-2009, 09:02 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
With the help of madas, I was able to track down the problem he was having and have fixed it in snapshot 386. Two different request threads were deadlocking trying to acquire each others' locks on the database resources. Problem has been solved in 386.

Between this deadlock issue and the thread synchronization issues fixed a few snapshots back, I think everything should be rather stable now. Please post a reply if you are having any problems with 386.

I'm going to wait a couple days to give those running 386 a chance to report back any issues (though at least two of us have been running 386 for some time now and have had no issues), but assuming none come up I'll package up 386 as the official 2.1.3 build. Then it's on to improving the performance of the db code (more on that when I have something ready to test).
__________________
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...
  #584  
Old 03-23-2009, 12:28 PM
Wheemer's Avatar
Wheemer Wheemer is offline
Sage Icon
 
Join Date: Dec 2004
Location: Deer Lake, NL, Canada
Posts: 1,493
With snapshot 386 I am unable to get the main page to load at all. It just says the server is taking too long to respond.
  #585  
Old 03-23-2009, 12:48 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by Wheemer View Post
With snapshot 386 I am unable to get the main page to load at all. It just says the server is taking too long to respond.
Can you load the debug=TRUE URL and get the output from the SageTV debug logs? When SJQ isn't loading go to:

http://jetty_server/sjq/SJQ?debug=TRUE

Should get a response saying that the logs were dumped, then go to your SageTV debug logs and get the SJQ app dump for me.
__________________
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...
  #586  
Old 03-23-2009, 05:03 PM
Wheemer's Avatar
Wheemer Wheemer is offline
Sage Icon
 
Join Date: Dec 2004
Location: Deer Lake, NL, Canada
Posts: 1,493
I tried that and it still won't load. So I have deleted my database and I'm trying again.

Will report back.
  #587  
Old 03-23-2009, 05:05 PM
Wheemer's Avatar
Wheemer Wheemer is offline
Sage Icon
 
Join Date: Dec 2004
Location: Deer Lake, NL, Canada
Posts: 1,493
I see this error in the log:

Mon 3/23 20:33:27.978 ERROR updating locator system of:java.net.SocketException: Software caused connection abort: socket write error

Not sure if its related
  #588  
Old 03-24-2009, 04:32 PM
Peter_h Peter_h is offline
Sage Fanatic
 
Join Date: May 2008
Location: Kailua, HI
Posts: 798
I upgraded to snapshot 404 and it seems to be stable. It's been going for 3 hours now w/o issue.
  #589  
Old 03-24-2009, 05:49 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by Peter_h View Post
I upgraded to snapshot 404 and it seems to be stable. It's been going for 3 hours now w/o issue.
Builds 395+ include the rewrite of the thread/synchronization code. Most of the problems I found have been there for quite some time (dating back to v2.0.0.154 and older), but they didn't seem to manifest themselves until official v2.1.2, which isn't all that uncommon when dealing with multi-threaded code. Most of the problems were just carelessness on my part, which resulted in numerous race condition situations. Things had to happen at just the right time in order for the deadlock to occur. I still can't get SJQ v2.1.2.343 to crash/hang/die on my system, but with the help of a few users who got me debug logs, JVM dumps, etc. I was able to find the problem spots, which lead to a complete review of the code, which lead to build 395.

Here's a quick overview of what these builds contain. I'm now recommending that everyone upgrade to 395 or higher. I'll mark one of these recent snapshots as official v2.1.3 after a couple more days of testing myself along with feedback from everyone else who's testing.

Snapshots 395, 397, 398, 400
  • First drop with rewrite of threaded code; complete review of code done, sync/deadlock issues resolved; many performance improvements (395)
  • A few touch ups with the servlet code; upgrade JDBC driver to latest available while I'm at it (397)
  • Ensure super.finalize() is called from local finalize() methods (398)
  • Various logging enhancements (properly flush in memory log messages to db on Jetty shutdown) (400)
  • Anyone running less than 395 should move to at least 395 or higher with 400 being preferred; these four snapshots contain all the multi-threading fixes

Snapshot 403+
  • Timestamp each individual log message since there can be more than one Logger instance now; sort log messages by new timestamp field when sorting them for display (403)
  • Security fix: Only accept commands from clients who have authenticated themselves [issue 60] (404)
  • When purging task logs, purge all task logs even those orphaned by deletion of task entries from the complete and failed tables [issue 59] (405)

So I'd recommend all users move to at least 395, but moving all the way to 405 should be fine now. Again, however, please keep me updated on your results (good and bad). Please be sure to mention which version you're running.
__________________
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...
  #590  
Old 03-24-2009, 07:19 PM
tomfisk's Avatar
tomfisk tomfisk is offline
Sage Advanced User
 
Join Date: Oct 2006
Location: Plainview, MN
Posts: 86
Build 405: QueueLoader Last/Next Run

The Last Run and Next Run is not being displayed under the QueueLoader Tab. Otherwise it's been running great.

Oooppsss! I take that back...it just showed up.
  #591  
Old 03-24-2009, 08:01 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by tomfisk View Post
The Last Run and Next Run is not being displayed under the QueueLoader Tab. Otherwise it's been running great.

Oooppsss! I take that back...it just showed up.
Yeah, the fix for issue 60 broke this - sort of. The QueueLoader menu tries to load the schedule times as soon as you load the GUI, but the initial attempt will fail now because you have not authenticated. The first time that menu tries to update the times after you've authenticated then it will properly populate the menu. I'll add a fix to immediately reload that menu after authentication succeeds.
__________________
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...
  #592  
Old 03-24-2009, 10:12 PM
95TBird's Avatar
95TBird 95TBird is offline
Sage Advanced User
 
Join Date: Mar 2006
Location: Berthoud, CO
Posts: 143
Hi:

I can't seem to get the file cleaner to work.
I'm running SJQ v2.1.3.406 & client 2.1.2.331
& the file cleaner settings are
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

But whenever a recording is deleted in Sage, the .edl file never gets deleted.

I've been over & over all the settings & I can log in to SJQ with no problems, but the .edl files just sit there .

I'd appreciate any help !

-Bruce
__________________
Server: Intel DH55HC MB, Intel Core i5-661 CPU, 4 GB Corsair PC3 10666 RAM, 2 Ceton InfiniTV 4s (Comcast), RocketRAID 2740 16PORT SAS 6.0Gb Controller, 2.56TB TV Storage (4 WD Caviar Black 640GB SATA 6.0Gb Drives), 8.5TB Movie Storage, Norco 4220 Case, Corsair HX750 PS, W7 Professional (Windows Media Center), TunerSalad Foot Long, My Channel Logos, & MYMovies.
  #593  
Old 03-24-2009, 10:39 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by 95TBird View Post
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

But whenever a recording is deleted in Sage, the .edl file never gets deleted.
First, the FileCleaner thread runs periodically, so edl files won't be deleted as soon as the mpg or ts file is deleted. The FileCleaner runs every time the QueueLoader runs.

Next, I'm sure it's just the formatting of the copy/paste, but make sure there are no spaces in either of the first two boxes, especially before and after the "|" is the second box.

Finally, remove the contents of the third box. It's an invalid regular expression, which is probably why nothing is deleting and it's also not needed since you're not trying to delete txt files anyway.

(10 mins later after a quick scan of the javadocs for java.util.regex...) So it turns out Java's regex package throws an unchecked exception when a regex compile fails (due to an invalid regular expression). That seems awfully wrong to me, but anyway this is definitely the cause of your problems. Issue 61 opened for the fix, but in the meantime simply remove the contents of the third box, you don't need it anyway. But if you decide you want to start deleting txt files, then ensure that the third box contains a valid regex and to protect logo files generated during comskip runs, you'll want to use: ".*\.logo\.txt$" (no quotes).
__________________
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...
  #594  
Old 03-25-2009, 12:32 PM
Peter_h Peter_h is offline
Sage Fanatic
 
Join Date: May 2008
Location: Kailua, HI
Posts: 798
It's been going for almost 24 hours and no hang.

Looks like this is all fixed.

Thanks so much for this plugin, slugger. You definately work hard and do a great job.
  #595  
Old 03-25-2009, 09:41 PM
95TBird's Avatar
95TBird 95TBird is offline
Sage Advanced User
 
Join Date: Mar 2006
Location: Berthoud, CO
Posts: 143
Slugger:

It was in fact the entry in the third box.
I deleted it & now the edl files are being deleted appropriately!!

Thanks for a fantastic utility !!

-Bruce
__________________
Server: Intel DH55HC MB, Intel Core i5-661 CPU, 4 GB Corsair PC3 10666 RAM, 2 Ceton InfiniTV 4s (Comcast), RocketRAID 2740 16PORT SAS 6.0Gb Controller, 2.56TB TV Storage (4 WD Caviar Black 640GB SATA 6.0Gb Drives), 8.5TB Movie Storage, Norco 4220 Case, Corsair HX750 PS, W7 Professional (Windows Media Center), TunerSalad Foot Long, My Channel Logos, & MYMovies.
  #596  
Old 03-26-2009, 12:04 AM
Wheemer's Avatar
Wheemer Wheemer is offline
Sage Icon
 
Join Date: Dec 2004
Location: Deer Lake, NL, Canada
Posts: 1,493
snapshot 410 doesn't load up the webpage for me again...
  #597  
Old 03-26-2009, 07:43 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by Wheemer View Post
snapshot 410 doesn't load up the webpage for me again...
I'm going to need a dump of your JVM to see what's going on. Grab me on MSN when you have time to do this.

Anyone else with results from 410?
__________________
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...
  #598  
Old 03-26-2009, 10:54 AM
tomfisk's Avatar
tomfisk tomfisk is offline
Sage Advanced User
 
Join Date: Oct 2006
Location: Plainview, MN
Posts: 86
Quote:
Originally Posted by Slugger View Post
I'm going to need a dump of your JVM to see what's going on. Grab me on MSN when you have time to do this.

Anyone else with results from 410?
Working great for me...no issues.
  #599  
Old 03-26-2009, 11:56 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by Wheemer View Post
snapshot 410 doesn't load up the webpage for me again...
I had the same problem I had to clear the Cache in the browser and delete the tempfiles.... then everything loaded ok.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
  #600  
Old 03-26-2009, 03:13 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
File Cleaner

Slugger,

I create mpg.properties and mpg.xml files for all my recordings. I would like to cleanup these files. I have it setup as below.... but it deletes the properties files even if an mpg avi etc... exists?

Delete files with an extension matching this regex
vprj|edl|my|mpg.properties|avi.properties|mkv.properties|mp4.properties

When no corresponding file has an extension matching this regex:
mpg|avi|mkv|mp4
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Closed Thread


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
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


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


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