SageTV Community  

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

Notices

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.

Reply
 
Thread Tools Search this Thread Display Modes
  #1181  
Old 02-21-2012, 05:16 PM
phelme's Avatar
phelme phelme is offline
Sage Icon
 
Join Date: Dec 2006
Posts: 1,151
Quote:
Originally Posted by Slugger View Post
Not sure why the RMI service would suddenly stop working. You might want to track down stuckless and see if he has any thoughts (sagex-services is his plugin). My initial guess is that something else is latching onto port 1098? Only a guess though.
After some more snooping, you're right, it's another process. The PlayOn MediaMallServer is also using 1098. Not sure why that suddenly started happening, been running that for ages. Unless a recent update from them made some port changes. Thanks!
Reply With Quote
  #1182  
Old 02-23-2012, 07:55 PM
MrD MrD is offline
Sage Aficionado
 
Join Date: Feb 2005
Location: Washington DC
Posts: 387
I am seeing the server PING a remote client every few hundred milliseconds even though the server is set to ping the client every 600 seconds.

Code:
[Listener] Received connection
[Handler] CMD PING 
[Handler] CMD QUIT
over and over again in the remote client (Windows XP sp2) log, server is linux.

is there any reason this is occurring?
__________________
[size=1]-MrD
=============
Linux Server 7.1.9 (1)HD300 (1) HD200 (1) HD100 (2) PC Clients
Intel Xeon L? 32Gb
CetonTV cable card /FIOS
Reply With Quote
  #1183  
Old 02-23-2012, 07:59 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by MrD View Post
I am seeing the server PING a remote client every few hundred milliseconds even though the server is set to ping the client every 600 seconds.

Code:
[Listener] Received connection
[Handler] CMD PING 
[Handler] CMD QUIT
over and over again in the remote client (Windows XP sp2) log, server is linux.

is there any reason this is occurring?
Can't think of a reason, other than a bug. Is there a task in the queue stuck in waiting state? Disable the server plugin, does it stop? If so, restart the server plugin, does it start again at that interval? If so, there's a bug somewhere.
__________________
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...
Reply With Quote
  #1184  
Old 02-24-2012, 07:58 PM
MrD MrD is offline
Sage Aficionado
 
Join Date: Feb 2005
Location: Washington DC
Posts: 387
I deleted a handful of queued tasks that may have been causing problems b/c they were test groovy scripts and things seemed to have calmed down.

I am interested in understanding how that would be related to the PING flood I was seeing?
__________________
[size=1]-MrD
=============
Linux Server 7.1.9 (1)HD300 (1) HD200 (1) HD100 (2) PC Clients
Intel Xeon L? 32Gb
CetonTV cable card /FIOS
Reply With Quote
  #1185  
Old 02-24-2012, 09:55 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Most likely a bug. I'd need to see the server logs corresponding with those client logs.

Alternatively, if you had tasks stuck in the queue with the test script constantly returning 1 (return to queue and retry later), well depending on how many tasks were stuck in that situation, you might end up with this because a task is returned to the queue and then that triggers a queue reprocess, which would cause the other tasks to retry (just not the one that was just sent back). With that said, the behaviour does sound a little buggy, but if cleaning up the queue fixed the situation then it's not an issue I'm likely to investigate too deeply at this point in time.
__________________
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...
Reply With Quote
  #1186  
Old 02-24-2012, 10:27 PM
MrD MrD is offline
Sage Aficionado
 
Join Date: Feb 2005
Location: Washington DC
Posts: 387
Cool beans, makes sense to me.

Read your other post... being a software engineer myself, I know exactly where you are.

Well in 4 months it will be 12 mos since the buyout, I'm positive something will change then good, bad or ugly.
__________________
[size=1]-MrD
=============
Linux Server 7.1.9 (1)HD300 (1) HD200 (1) HD100 (2) PC Clients
Intel Xeon L? 32Gb
CetonTV cable card /FIOS
Reply With Quote
  #1187  
Old 02-29-2012, 06:14 PM
firenice firenice is offline
Sage Advanced User
 
Join Date: Jul 2010
Location: Houston, Texas
Posts: 139
The lobs.db have attacked

My server has been running great until Saturday. For some reason a task or task got control and filled my WHS system drive with lobs.db files.

That said, I cleaned the .lobs.db folder out and disabled the task client on the server. This has eliminated the lobs.db from being created but....

The server task client in the plugins setup now reports "fail". This is how I knew to disable it. I thought maybe an uninstall and reinstall would straighten it out but no.

I can open the SJQ4 in the UI but no clients show up. It has not run a scheduled task in a few of days and I am thinking maybe a core SJQ4 file may have been corrupted.

I have logs but they are very large and I can cut em down if you can tell me any paticular items to look for.

Thanks in advance.

Mike

Thanks.
Reply With Quote
  #1188  
Old 02-29-2012, 07:58 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by firenice View Post
My server has been running great until Saturday. For some reason a task or task got control and filled my WHS system drive with lobs.db files.

That said, I cleaned the .lobs.db folder out and disabled the task client on the server. This has eliminated the lobs.db from being created but....

The server task client in the plugins setup now reports "fail". This is how I knew to disable it. I thought maybe an uninstall and reinstall would straighten it out but no.

I can open the SJQ4 in the UI but no clients show up. It has not run a scheduled task in a few of days and I am thinking maybe a core SJQ4 file may have been corrupted.

I have logs but they are very large and I can cut em down if you can tell me any paticular items to look for.

Thanks in advance.

Mike

Thanks.
The usual cause of this problem has been tasks stuck in the queue with buggy test scripts associated with them.

First, clean up your task queue as described here:

http://code.google.com/p/sagetv-addo...ModifyDatabase

You'll want to look at the QUEUE table once connected and remove any tasks in WAITING or RETURNED state. If there are plenty in a RETURNED state then you'll want to figure out why (i.e. usually a buggy test script). It's these tasks that constantly requeue and reexecute that end up usually being the cause of .lobs.db filling up.
__________________
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...
Reply With Quote
  #1189  
Old 03-01-2012, 06:09 PM
firenice firenice is offline
Sage Advanced User
 
Join Date: Jul 2010
Location: Houston, Texas
Posts: 139
Quote:
Originally Posted by Slugger View Post
The usual cause of this problem has been tasks stuck in the queue with buggy test scripts associated with them.

First, clean up your task queue as described here:

http://code.google.com/p/sagetv-addo...ModifyDatabase

You'll want to look at the QUEUE table once connected and remove any tasks in WAITING or RETURNED state. If there are plenty in a RETURNED state then you'll want to figure out why (i.e. usually a buggy test script). It's these tasks that constantly requeue and reexecute that end up usually being the cause of .lobs.db filling up.
OK Thanks. Cleaned the returned and waiting out but now this is still happening.

I go into the SJQ UI and no clients are there. Capture attached. I also attached the last few lines of the SJQ log. Seems to be a communication error but everything seems to be working except this and my tasks.

Thanks again
Mike
Attached Images
File Type: png SJQ4Clients.PNG (578.0 KB, 142 views)
Attached Files
File Type: txt SJQLog.txt (6.9 KB, 128 views)
Reply With Quote
  #1190  
Old 03-01-2012, 07:20 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Those (specific) IOErrors are normal (at least expected). Register the task client again. Check the db clients table and see if any are listed, but it looks like you've managed to unregister all task clients. Registering them again should bring them back online.
__________________
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...
Reply With Quote
  #1191  
Old 03-01-2012, 07:44 PM
firenice firenice is offline
Sage Advanced User
 
Join Date: Jul 2010
Location: Houston, Texas
Posts: 139
Thanks Slugger.
Attempted to setup clients again but it failed. The server client, when I attempted to enable it reported the plugin was corrupt and to uninstall and reinstall. I did prior to last post and it still did not show nor allow any clients to be added.
Thanks for you help
Mike
Reply With Quote
  #1192  
Old 03-01-2012, 08:25 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Any errors (exceptions) in the sage debug log?
__________________
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...
Reply With Quote
  #1193  
Old 03-01-2012, 09:26 PM
firenice firenice is offline
Sage Advanced User
 
Join Date: Jul 2010
Location: Houston, Texas
Posts: 139
Quote:
Originally Posted by Slugger View Post
Any errors (exceptions) in the sage debug log?
No, no exceptions. My client task client was in the database but the server task client wasn't. Strange because the client isn't showing up.

I think this may be related to a commutation error with my server rather than a SJQ error. I have had some other issues and now playon is not showing my Netflix que either. Think maybe a port got closed or something that all this stuff relies on.

Appreciate your help and I'll get back with you if after I work through all of this.

Thanks
Mike
Reply With Quote
  #1194  
Old 03-02-2012, 09:27 PM
firenice firenice is offline
Sage Advanced User
 
Join Date: Jul 2010
Location: Houston, Texas
Posts: 139
Back in business

Slugger

Just a follow up to my no client problem.

I did have another issue. I discovered that a user profile was corrupt on my server and that was the main issue.

I did have to reregister one client but it picked it up right away afterwards.

Thanks again for the assist

Mike
Reply With Quote
  #1195  
Old 03-05-2012, 10:58 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Plugin EOL notice; project donation to Canadian Cancer Society

Effective immediately, official support for this plugin has ended. More details available here.

A special thank you to all who have donated to this project. Because of your support, a donation for a little over $500 has been made to the Canadian Cancer Society. Again, thank you for your support!
__________________
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...
Reply With Quote
  #1196  
Old 05-03-2012, 09:57 PM
MattHelm MattHelm is offline
Sage Icon
 
Join Date: Jun 2005
Location: Chicago, IL
Posts: 1,209
Request for code/

Help, not a programmer at all (well a little Quick BASIC & AREXX). Never could get a handle on Object-oriented programming. I'm OK with Procedural programming and Object-oriented data, if I have code for examples, but OOP fries what little brains I have left, and even zombies don't like fried brains!

Could someone write me a few SJQv4 scripts?

1. Once a day, starting when no recordings are scheduled for 2 (or how ever many) hours, start a windows scheduled task. (at least I think you can make a task that won't run on it's own, but will run when Schtasks.exe calls it)

2. Run VideoRedo to do a QSF and repackage from a .TS to a .MKV. (I still have to move my VideoRedo license from my "main" machine to my server)

Anyone????? Please!!!!

(I hope if I have 2 examples like these, I can hack any future out by myself. I'm OK modifying code someone else wrote.)
__________________
Server #1= AMD A10-5800, 8G RAM, F2A85-M PRO, 12TB, HDHomerun Prime, HDHR, Colossus (Playback - HD-200)
Server #2= AMD X2 3800+, 2G RAM, M2NPV-VM, 2TB, 3x HDHR OTA (Playback - HD-200)
Reply With Quote
  #1197  
Old 05-04-2012, 06:46 AM
graywolf's Avatar
graywolf graywolf is offline
Sage Icon
 
Join Date: Oct 2009
Location: NC
Posts: 1,389
Can help with part of #1.

Below code is the test script for the backup job. Checks if a Scheduled Recording will occur in reqdMins (set to 45 in my script). If it is on LiveTV (use it as background/white noise for sleeping in MBR) then go ahead an perform the task. It only requeues if something is recording or will record in the specified time.

If you ever get the other tasks worked out, I would probably be interested in checking them out.

Code:
/*
    SageTV backup tool tester (i.e. is it "safe" to stop and backup SageTV?)
    Last Modification: 2011-11-21
               Original Author: Derek Battams <derek AT battams DOT ca>
                              
    Use this script as the test for the full_backup.groovy script.  Basically this
    script just checks a bunch of conditions to determine if it is "safe" to shutdown
    SageTV and perform the app dir backup.  Remove/add/modify conditions to your needs
    below.
    
    Remember, return 1 to push the task back to the queue, 0 to tell SJQ to run the backup script
    or 2 to tell SJQ to skip the backup.
*/

def now = System.currentTimeMillis()
def reqdMins = 45L
int ScheduledRecording = 0 ;

println " ";
Global.GetScheduledRecordingsForTime(now, now + (reqdMins * 60000L)).each { mfAiring ->
    if( AiringAPI.IsNotManualOrFavorite(mfAiring) ) { 
       println (ShowAPI.GetShowTitle(mfAiring) + " is LiveTV - no issue");
    } else {
       ScheduledRecording = ScheduledRecording + 1 ;
       println ( ShowAPI.GetShowTitle(mfAiring) + " is Scheduled to record within $reqdMins minutes") ;
    } 
}

if ( ScheduledRecording > 0 ) {
    // Scheduled Recording upcoming, Return for when it is safe
    println ( "Returned to Queue until safe to process");
    sleep 900000
    return 1
} else {
    // Looks to be safe, let's do this!!
    println ("Safe to kick off Backup job. No recordings scheduled within $reqdMins minutes");
    return 0
}
Reply With Quote
  #1198  
Old 05-07-2012, 10:30 AM
MattHelm MattHelm is offline
Sage Icon
 
Join Date: Jun 2005
Location: Chicago, IL
Posts: 1,209
Quote:
Originally Posted by graywolf View Post
...
Below code is the test script for the backup job. Checks if a Scheduled Recording will occur in reqdMins (set to 45 in my script). If it is on LiveTV (use it as background/white noise for sleeping in MBR) then go ahead an perform the task. It only requeues if something is recording or will record in the specified time.

If you ever get the other tasks worked out, I would probably be interested in checking them out.
...
Thanks. Been busy since you posted, so haven't tried it yet, but thanks!!! I will post ANY scripts I come up with!!!!! Sharing is good!

BTW, will this run if someone is watching SageTV?
__________________
Server #1= AMD A10-5800, 8G RAM, F2A85-M PRO, 12TB, HDHomerun Prime, HDHR, Colossus (Playback - HD-200)
Server #2= AMD X2 3800+, 2G RAM, M2NPV-VM, 2TB, 3x HDHR OTA (Playback - HD-200)
Reply With Quote
  #1199  
Old 05-07-2012, 10:46 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
@MattHelm - I have code that calls comskip and Handbrake from SJQV4. While this is not exactly what you are looking for it may be helpful since it shows you how to call an external process and handle the output, which can be tricky with verbose software and Handbrake and Comskip are both verbose in their output.

I use VideoReDo but I have never used it in batch mode with automated processes. However it may make sense for me to use it in place of Handbrake to convert files to an iPad friendly format (like .mp4 or .m4v) and cut out commercials (I process all kids' files which are originally MPEG2 - they get comskipped, converted to .mp4 and moved to a show-specific folder). Have you done any stuff with VRD in batch mode before?
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #1200  
Old 05-07-2012, 10:53 AM
graywolf's Avatar
graywolf graywolf is offline
Sage Icon
 
Join Date: Oct 2009
Location: NC
Posts: 1,389
Think you would need to put in another check to see if someone was watching something. Mine only checked Currently/Soon to start recordings.

if( AiringAPI.IsNotManualOrFavorite(mfAiring) ) means it is LiveTV currently showing/"recording".
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 4 (0 members and 4 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: 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


All times are GMT -6. The time now is 03:38 AM.


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