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
  #1621  
Old 12-12-2017, 11:10 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
I don't see anything in here that indicates a problem but here's my log if anyone wants to take a look. The task I'm trying to run is "DELKOCONEWS"
Attached Files
File Type: zip sagetv_0.txt.zip (185.2 KB, 243 views)
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #1622  
Old 12-12-2017, 04:08 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
I wish I could figure out why this isn't working. Until/if I can get SJQ working I've figured out a hacky alternative solution. I created a custom sage-x function that does the same thing I want to accomplish and then I put a Python script that makes a http request in unRAID's cron.daily folder.

More complicated than it really should be but it works.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #1623  
Old 12-12-2017, 09:33 PM
Tiki's Avatar
Tiki Tiki is offline
Sage Icon
 
Join Date: Feb 2005
Location: Southwest Florida, USA
Posts: 2,009
Quote:
Originally Posted by Taddeusz View Post
I wish I could figure out why this isn't working. Until/if I can get SJQ working I've figured out a hacky alternative solution. I created a custom sage-x function that does the same thing I want to accomplish and then I put a Python script that makes a http request in unRAID's cron.daily folder.

More complicated than it really should be but it works.
If these are favorite recordings, I wonder if you can't accomplish what you need with just the favorite settings inside Sage.

I would just set the keep at most to 2 or 3 and allow delete to Yes. Then Sage will record every episode but only keep the 2 or 3 most recent and automatically delete anything older.
__________________
Server: Ryzen 2400G with integrated graphics, ASRock X470 Taichi Motherboard, HDMI output to Vizio 1080p LCD, Win10-64Bit (Professional), 16GB RAM
Capture Devices (7 tuners): Colossus (x1), HDHR Prime (x2)
,USBUIRT (multi-zone)
Source:
Comcast/Xfinity X1 Cable
Primary Client: Server Other Clients: (1) HD200, (1) HD300
Retired Equipment: MediaMVP, PVR150 (x2), PVR150MCE,
HDHR, HVR-2250, HD-PVR
Reply With Quote
  #1624  
Old 12-12-2017, 09:56 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by Tiki View Post
If these are favorite recordings, I wonder if you can't accomplish what you need with just the favorite settings inside Sage.

I would just set the keep at most to 2 or 3 and allow delete to Yes. Then Sage will record every episode but only keep the 2 or 3 most recent and automatically delete anything older.
I hadn't thought about that. I forgot that option was in there.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #1625  
Old 03-11-2018, 01:32 PM
KryptoNyte's Avatar
KryptoNyte KryptoNyte is offline
SageTVaholic
 
Join Date: Dec 2006
Posts: 2,754
Is this still functional on Sage V9, and if so, is there a user's guide available somewhere, or a clarification on how to donate to get full use?
Reply With Quote
  #1626  
Old 03-11-2018, 02:17 PM
KarylFStein KarylFStein is offline
Sage Fanatic
 
Join Date: Apr 2006
Location: Westland, Michigan, USA
Posts: 999
It works under v9 fine. There is no need to have a license to "unlock" full functionality, (the license plugin was updated a while ago to not need a key). For setup I do it manually based on notes these days. What are you trying to do?
__________________
Home Network: https://karylstein.com/technology.html
Reply With Quote
  #1627  
Old 03-11-2018, 04:58 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Quote:
Originally Posted by KarylFStein View Post
It works under v9 fine. There is no need to have a license to "unlock" full functionality, (the license plugin was updated a while ago to not need a key). For setup I do it manually based on notes these days. What are you trying to do?
What he said. There is also a link to the docs in post 1595 above: https://forums.sagetv.com/forums/sho...postcount=1595

However that might be missing screenshots.
__________________
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
  #1628  
Old 03-11-2018, 05:40 PM
KryptoNyte's Avatar
KryptoNyte KryptoNyte is offline
SageTVaholic
 
Join Date: Dec 2006
Posts: 2,754
Quote:
Originally Posted by KarylFStein View Post
It works under v9 fine. There is no need to have a license to "unlock" full functionality, (the license plugin was updated a while ago to not need a key). For setup I do it manually based on notes these days. What are you trying to do?
Two of my six SageTV tuners are HDPVR's. When SageTV tells either of these tuners to stop recording, I also need Sage to send this command which stops the Xbox360 from playing the channel via WMC7;

http://localhost:40511/stop (for HDPVR1)
http://localhost:40512/stop (for HDPVR2)

What little programming I've done was Visual Basic in the early 2000's, so the groovy script may be somewhat of a challenge.
Reply With Quote
  #1629  
Old 03-11-2018, 06:28 PM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
This is how I used to deal with the 360's when I was using an HD-PVR to record from them. I had this script running as a SJQ cron job every 15 minutes to turn them on early if there was an upcoming recording and turn them off if nothing was recording next. It ran a batch file to turn everything on or off. I hope it may provide you with some inspiration.
Attached Files
File Type: zip remote_tuners.zip (1.3 KB, 227 views)
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG
Reply With Quote
  #1630  
Old 03-16-2018, 03:33 PM
KryptoNyte's Avatar
KryptoNyte KryptoNyte is offline
SageTVaholic
 
Join Date: Dec 2006
Posts: 2,754
Quote:
Originally Posted by EnterNoEscape View Post
This is how I used to deal with the 360's when I was using an HD-PVR to record from them. I had this script running as a SJQ cron job every 15 minutes to turn them on early if there was an upcoming recording and turn them off if nothing was recording next. It ran a batch file to turn everything on or off. I hope it may provide you with some inspiration.
With the SJQ job running every 15 minutes to turn things on, what would happen if someone tried to tune live TV somewhere in between those 15 minute intervals?
Reply With Quote
  #1631  
Old 03-16-2018, 06:07 PM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Quote:
Originally Posted by KryptoNyte View Post
With the SJQ job running every 15 minutes to turn things on, what would happen if someone tried to tune live TV somewhere in between those 15 minute intervals?
The box would come to life immediately and you would need to wait for it to start up before you would see your channel. I was using the executable tuning plugin, so it ran a batch file that would turn the box on and wait for it to respond before sending the channel.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG
Reply With Quote
  #1632  
Old 03-16-2018, 06:09 PM
KryptoNyte's Avatar
KryptoNyte KryptoNyte is offline
SageTVaholic
 
Join Date: Dec 2006
Posts: 2,754
Do you still have the batch files, ENE?
Reply With Quote
  #1633  
Old 01-25-2020, 01:06 PM
FlyingDoc FlyingDoc is offline
Sage Advanced User
 
Join Date: May 2008
Posts: 125
Looking for help

Is there anyone who can help me with setting up a windows service client for SJQ4 correctly?

I have a fully working SJQ4 environment for comskip using the Task Client plugin. I am trying to move the client tasks to a windows service client in anticipation of moving the server to another machine. I am using the same scripts and client configurations but service client always skips the task. The log for the test script indicates an invalid environment was passed to the script.

The server agent log indicates it cant find the file although the path it references is good. I have tried running the service under Local System and my user account but the error is the same.

Does the service client require any additional setup on the server?
Do i have to change the groovy scrips in some way when used with the service client?

Any help or suggestions will be gratefully received.
Reply With Quote
  #1634  
Old 02-07-2020, 07:53 PM
FlyingDoc FlyingDoc is offline
Sage Advanced User
 
Join Date: May 2008
Posts: 125
Another SJQ question

I have another SJQ question that might be easier for someone to answer...

I have a task agent running on a windows machine and the main Sage server with SJQ running on a linux machine. They work as expected when the linux firewall (ufw) is off but not when it is on. I have tried opening the ports as listed in the Sage manual but dont know if SJQ needs any additional ports opened. Note the task does get queued and run but the status is "Failed". The log from the executable indicates the remote API is not functioning and references the server IP address and port 1098 however opening this port does not help.

Any ideas?

Thanks
Reply With Quote
  #1635  
Old 06-26-2021, 02:16 PM
phelme's Avatar
phelme phelme is offline
Sage Icon
 
Join Date: Dec 2006
Posts: 1,151
anyone still using SJQ4?

Noticed I started having issues with manually queued compression scripts recently. While things work fine for the ones queued after recordings are finished (via RecordingStopped on the Favorite), the ones I add through the "Assign SJQ Tasks" dialog button fail because not all the SQ4_METADATA variables are present and return NULL according to the logs.

Very strange.

Edit: pretty sure I'm speaking to myself at this point.

Think I may have figured it out and it was to do with what type of file SJQ and SageTV thinks it is. Basically the ones added to the queue by the recording engine are typed (SJQ4_TYPE) as "MediaFile" while those added manually i.e. the ones that are all failing, are typed as "Airing". Airing is a completely different set of APIs (i.e. GetMediaTitle vs GetAiringTitle) so I'm thinking the SJQ4 variables my script relies upon are not being set. So I have to figure out an alternative to get the paths etc. At least I hope that's what's going on.

Last edited by phelme; 06-26-2021 at 05:15 PM.
Reply With Quote
  #1636  
Old 02-19-2022, 09:33 AM
mikeg mikeg is offline
Sage User
 
Join Date: Sep 2009
Location: Woodinville, WA
Posts: 12
My SJQ tasks stopped running and I'm trying to troubleshoot the issue. I've determined that Comskip works by manually running it, so now it looks like SJQ is not running the tasks when queued or when events occur.

So far I've uninstalled/reinstalled SJQ, SJQ UI, and SJQ Task Client and the issue remains. Does anyone know where to look for logs from SJQ?
Reply With Quote
  #1637  
Old 02-19-2022, 10:04 AM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
Quote:
Originally Posted by mikeg View Post
My SJQ tasks stopped running and I'm trying to troubleshoot the issue. I've determined that Comskip works by manually running it, so now it looks like SJQ is not running the tasks when queued or when events occur.

So far I've uninstalled/reinstalled SJQ, SJQ UI, and SJQ Task Client and the issue remains. Does anyone know where to look for logs from SJQ?
I believe that the logs are in plugins/sjq

K
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
  #1638  
Old 02-19-2022, 11:48 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Quote:
Originally Posted by mikeg View Post
My SJQ tasks stopped running and I'm trying to troubleshoot the issue. I've determined that Comskip works by manually running it, so now it looks like SJQ is not running the tasks when queued or when events occur.

So far I've uninstalled/reinstalled SJQ, SJQ UI, and SJQ Task Client and the issue remains. Does anyone know where to look for logs from SJQ?
When you look in the Installed Plugins - does it show Failed for SJQ? I appear to have that issue and haven't got around to troubleshooting it.
__________________
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
  #1639  
Old 02-19-2022, 02:57 PM
mikeg mikeg is offline
Sage User
 
Join Date: Sep 2009
Location: Woodinville, WA
Posts: 12
Thanks to Justin, I found the logs and it looks like the sage events are being handled, but whenever SJQ tries to run it seems to be hitting a runtime exception related to the database. Here are the log messages:

Code:
2022-02-17 07:00:00,590 INFO  [TaskQueue]: Scheduling queue processor for ~8 seconds from now!
2022-02-17 07:00:03,061 INFO  [Plugin]: Event received: RecordingStopped
2022-02-17 07:00:08,590 INFO  [TaskQueue]: Running queue processor now!
2022-02-17 07:00:08,590 INFO  [TaskQueue]: Enforcing licensing restrictions... license is valid!
2022-02-17 07:00:08,591 ERROR [DataStore]: SQL Error
org.h2.jdbc.JdbcSQLException: General error: "java.lang.RuntimeException: page[111] data leaf table:67 entries:6 parent:500 keys:[4355, 4357, 4359, 4361, 4363, 4365] offsets:[1870, 1668, 1533, 1355, 1153, 1018] parent 500 expected 39" [50000-145]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
	at org.h2.message.DbException.get(DbException.java:156)
	at org.h2.message.DbException.convert(DbException.java:279)
	at org.h2.server.TcpServerThread.sendError(TcpServerThread.java:186)
	at org.h2.server.TcpServerThread.run(TcpServerThread.java:139)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException: page[111] data leaf table:67 entries:6 parent:500 keys:[4355, 4357, 4359, 4361, 4363, 4365] offsets:[1870, 1668, 1533, 1355, 1153, 1018] parent 500 expected 39
	at org.h2.message.DbException.throwInternalError(DbException.java:226)
	at org.h2.index.PageDataIndex.getPage(PageDataIndex.java:233)
	at org.h2.index.PageDataNode.getNextPage(PageDataNode.java:226)
	at org.h2.index.PageDataLeaf.getNextPage(PageDataLeaf.java:389)
	at org.h2.index.PageDataCursor.nextRow(PageDataCursor.java:90)
	at org.h2.index.PageDataCursor.next(PageDataCursor.java:49)
	at org.h2.index.IndexCursor.next(IndexCursor.java:222)
	at org.h2.table.TableFilter.next(TableFilter.java:341)
	at org.h2.command.dml.Select.queryFlat(Select.java:498)
	at org.h2.command.dml.Select.queryWithoutCache(Select.java:597)
	at org.h2.command.dml.Query.query(Query.java:257)
	at org.h2.command.dml.Query.query(Query.java:227)
	at org.h2.command.CommandContainer.query(CommandContainer.java:78)
	at org.h2.command.Command.executeQuery(Command.java:132)
	at org.h2.server.TcpServerThread.process(TcpServerThread.java:278)
	at org.h2.server.TcpServerThread.run(TcpServerThread.java:137)
	... 1 more

	at org.h2.engine.SessionRemote.done(SessionRemote.java:543)
	at org.h2.command.CommandRemote.executeQuery(CommandRemote.java:152)
	at org.h2.jdbc.JdbcStatement.executeQuery(JdbcStatement.java:77)
	at com.google.code.sagetvaddons.sjq.server.DataStore.getPendingTasks(DataStore.java:556)
	at com.google.code.sagetvaddons.sjq.server.TaskQueue$QueueProcessor.run(TaskQueue.java:98)
	at java.util.TimerThread.mainLoop(Unknown Source)
	at java.util.TimerThread.run(Unknown Source)
Reply With Quote
  #1640  
Old 02-19-2022, 03:04 PM
mikeg mikeg is offline
Sage User
 
Join Date: Sep 2009
Location: Woodinville, WA
Posts: 12
Quote:
Originally Posted by wayner View Post
When you look in the Installed Plugins - does it show Failed for SJQ? I appear to have that issue and haven't got around to troubleshooting it.
No, the SJQ, SJQ Task Agent, and SJQ UI plugins all uninstalled and re-installed successfully.
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
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 11:20 AM.


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