SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV v9 Customizations

Notices

SageTV v9 Customizations This forums is for discussing and sharing user-created modifications for the SageTV version 9 application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss plugins for SageTV version 9 and newer.

Reply
 
Thread Tools Search this Thread Display Modes
  #21  
Old 04-18-2020, 01:43 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,002
One note for those of you using the unRAID version of SageTV. If you use the Docker backup process then your SageTV docker always gets restarted when you run that as it needs to shut down the dockers to do the backup.
__________________
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
  #22  
Old 04-18-2020, 01:44 PM
peternm22 peternm22 is offline
Sage Expert
 
Join Date: Jan 2005
Posts: 667
Quote:
Originally Posted by timg11 View Post
Is the "SageTV Web Interface" plugin doing anything or should I remove it as a plugin?
The SageTV Web Interface plugin installs the Jetty plugin. SageTV plugins can use other plugins as dependencies.

For example, the Jetty plugin is required for the Web Interface, the Mobile Web Interface and BMT.

If you uninstall the the Web Interface, I believe those XML files will cease to work.
Reply With Quote
  #23  
Old 04-18-2020, 01:59 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,002
Quote:
Originally Posted by peternm22 View Post
If you uninstall the the Web Interface, I believe those XML files will cease to work.
But the web interface is hugely useful - I can't envision not having it installed and accessible from the outside world. If you are out someplace and realize that you forgot to set a show to record you can easily log in and set it to record.

Not that you need that these days as no one ever leaves home
__________________
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
  #24  
Old 12-24-2020, 11:10 AM
timg11's Avatar
timg11 timg11 is offline
Sage Aficionado
 
Join Date: Sep 2008
Posts: 455
I'm in the process of building a new system with 64 bit Windows and SageTV.

I have installed the Jetty Web Server plugin, and used its configuration interface to set the user name and password.

When I access the URL: http://localhost:8080/sage/Home?xml=currrecording

I first get the browser prompt for credentials (Sign In). I enter the user/password I entered into in the plugin configuration. When I click the Sign In button, I get:

Code:
HTTP ERROR 403
Problem accessing /sage/Home. Reason:
    User not in required role
Powered by Jetty://
Since configuring the plugin, I have restarted the server, and also SageTV service.


What am I doing wrong? Everything is the same as the prior machine except it is now 64 bits.


Edit: here is the plugin configuration on both systems:


Code:
Old System                                                  New System  
                    
ant     1.8.2                                               ant     1.8.2
Apache Mina Core    1.1.7                                   Apache Mina Core    1.1.7
commons-lang    2.4                                         commons-lang    2.4
commons-net 1.4.1                                           commons-net 1.4.1
Darksky Forecast API    1.3.1                               Google Weather  2.0.3
groovy  2.0.5.1                                             groovy  2.0.5.1
InfoPopup / Caller ID   7.0.4                               InfoPopup / Caller ID   7.0.4
InfoPopup STVi  7.0.4                                       InfoPopup STVi  7.0.4
jackson-annotations Library                 
jackson-core Library                    
jackson-databind Library                    
jackson-datatype-jsr310 Library                 
Jetty Web Server    2.3.0.17                                Jetty Web Server    2.3.0.17
JSON.org    20140107.2                                      JSON.org    20140107.2
log4j   1.2.17                                              log4j   1.2.17
Nielm's Sage Utilities  1.4.4                               Nielm's Sage Utilities  1.4.4
Nielm's Sage XML Info   1.4.1                               Nielm's Sage XML Info   1.4.1
SageTV Groovy Tools 1.0.4                                   SageTV Groovy Tools 1.0.4
SageTV Web Interface    3.3.1                               SageTV Web Interface    3.3.1
sagex-api - SageTV API Extensions9.1.7.0                    sagex-api - SageTV API Extensions   9.1.7.0
Simple Logging Fašade for Java API LIbrary (slf4j)  1.7.12  Simple Logging Fašade for Java API LIbrary (slf4j)  1.7.12
Simple Logging Fašade Log4j Implementation library  1.7.12  Simple Logging Fašade Log4j Implementation library  1.7.12
Weather using NWS and Darksky   0.18 beta                   Weather using NWS API   0.13 beta
So the only difference (other than Weather-related plugins) is the jackson libraries, which are shown as dependency only.
__________________
HD300 extender with (2020 New Build) SageTV 64 bit V9.2.2 (service mode), Running on Windows 10 (64 bit), Intel Core i7-10700K CPU, 16G RAM, GIGABYTE Z490 UD motherboard. NVidia GTX1650 Super; Viewsonic LCD on one output and Mitsubishi WD57734 HDTV via DVI/HDMI on other output. HDHomeRun HDHR5-4US tuner, Hauppauge 1512 HD-PVR2 connected to Google Fiber TV GFHD200, tuned with USB-UIRT.

Last edited by timg11; 12-24-2020 at 11:37 AM.
Reply With Quote
  #25  
Old 12-24-2020, 11:57 AM
timg11's Avatar
timg11 timg11 is offline
Sage Aficionado
 
Join Date: Sep 2008
Posts: 455
As I inspect various files comparing the new system (not working) to the old (working) system, I found login.properties and login.conf.
They are identical.

I found logs - these are what is logged from running my script:
Code:
curl -u TV:***** "http://localhost:8080/sage/Home?xml=currrecording" > c:\batch\SageRecStatus.xml


From working system file 2020_12_24.request.log:
Code:
0:0:0:0:0:0:0:1 - TV [24/Dec/2020:17:27:40 +0000] "GET /sage/Home?xml=currrecording HTTP/1.1" 200 435 "-" "curl/7.62.0"
From non-working system file 2020_12_24.request.log:
Code:
0:0:0:0:0:0:0:1 - TV [24/Dec/2020:17:54:42 +0000] "GET /sage/Home?xml=currrecording HTTP/1.1" 403 1406 "-" "curl/7.62.0"
Unfortunately no clue as to why the 403 is occurring.
__________________
HD300 extender with (2020 New Build) SageTV 64 bit V9.2.2 (service mode), Running on Windows 10 (64 bit), Intel Core i7-10700K CPU, 16G RAM, GIGABYTE Z490 UD motherboard. NVidia GTX1650 Super; Viewsonic LCD on one output and Mitsubishi WD57734 HDTV via DVI/HDMI on other output. HDHomeRun HDHR5-4US tuner, Hauppauge 1512 HD-PVR2 connected to Google Fiber TV GFHD200, tuned with USB-UIRT.

Last edited by timg11; 12-24-2020 at 12:11 PM.
Reply With Quote
  #26  
Old 12-24-2020, 12:11 PM
timg11's Avatar
timg11 timg11 is offline
Sage Aficionado
 
Join Date: Sep 2008
Posts: 455
Update - I solved it.

By Searching on the phrase
Code:
sagetv jetty server 403 "User not in required role"
I was able to find this thread

where @skyeclad suggests "By going into the Jetty settings and changing the Username and password 2 times, I was able to correct whatever was a problem."

I did the same, using the plugin configuration, change the user/pw to something else, then back again to what is in my script, restarting the server each time.

Voila - now it works! Thanks @skyeclad!
__________________
HD300 extender with (2020 New Build) SageTV 64 bit V9.2.2 (service mode), Running on Windows 10 (64 bit), Intel Core i7-10700K CPU, 16G RAM, GIGABYTE Z490 UD motherboard. NVidia GTX1650 Super; Viewsonic LCD on one output and Mitsubishi WD57734 HDTV via DVI/HDMI on other output. HDHomeRun HDHR5-4US tuner, Hauppauge 1512 HD-PVR2 connected to Google Fiber TV GFHD200, tuned with USB-UIRT.
Reply With Quote
  #27  
Old 12-24-2020, 12:22 PM
timg11's Avatar
timg11 timg11 is offline
Sage Aficionado
 
Join Date: Sep 2008
Posts: 455
I have improved my script to detect Jetty error conditions:


Code:
curl -u TV:***** "http://localhost:8080/sage/Home?xml=currrecording" > c:\batch\SageRecStatus.xml
grep ERROR c:\batch\SageRecStatus.xml
if not errorlevel==1 goto JettyError
grep channelId c:\batch\SageRecStatus.xml
if errorlevel==1 goto NotRec
echo Recording
goto end
:JettyError
echo Error Returned in XML
goto end
:NotRec
echo Not Recording
:end
__________________
HD300 extender with (2020 New Build) SageTV 64 bit V9.2.2 (service mode), Running on Windows 10 (64 bit), Intel Core i7-10700K CPU, 16G RAM, GIGABYTE Z490 UD motherboard. NVidia GTX1650 Super; Viewsonic LCD on one output and Mitsubishi WD57734 HDTV via DVI/HDMI on other output. HDHomeRun HDHR5-4US tuner, Hauppauge 1512 HD-PVR2 connected to Google Fiber TV GFHD200, tuned with USB-UIRT.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Upgrade to 7 - Plug ins from 6 not showing in plug in list personalt SageTV v7 Customizations 1 05-23-2010 11:29 AM
Can anyone help me identify this icon? ddikeht SageTV Customizations 4 08-15-2009 09:10 AM
Nielm's Recording padding plug-in problem henk99 SageTV Customizations 26 10-17-2006 01:00 AM
pvr-250 driver identify and upd jsturtevant Hardware Support 1 01-20-2005 06:53 PM


All times are GMT -6. The time now is 07:58 AM.


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