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.

Reply
 
Thread Tools Search this Thread Display Modes
  #41  
Old 09-26-2009, 09:12 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
What is your JVM's max heap size setting?
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun.
Extender: STP-HD300, Harmony 550 Remote,
Netgear MCA1001 Ethernet over Coax.
SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client
, Java 1.6.
Plugins: Jetty, Nielm's Web Server, Mobile Web Interface.

Reply With Quote
  #42  
Old 09-26-2009, 11:42 PM
nstocke nstocke is offline
Sage Advanced User
 
Join Date: Apr 2008
Location: Kaysville, Utah
Posts: 100
I got it running in jetty and it seems to be working perfectly now. thanks.

Quote:
Originally Posted by jreichen View Post
The installer will not run the web interface in Jetty. That will install it with its own embedded server that must be on a different port than Jetty. To run in Jetty you need to remove the one you just installed then download the zip file that's built for running it on Jetty and extract it to the SageTV directory.

Get that working before trying to fix the Chrome issue. I'm able to run it fine on Chrome.
Reply With Quote
  #43  
Old 09-27-2009, 12:12 AM
sleonard's Avatar
sleonard sleonard is offline
Sage Icon
 
Join Date: Nov 2003
Posts: 1,506
JVM heap size is 768 MB.

S
Reply With Quote
  #44  
Old 10-04-2009, 09:06 PM
mkanet's Avatar
mkanet mkanet is offline
SageTVaholic
 
Join Date: Feb 2004
Posts: 3,359
Question How the heck did I accidentally make it all work with SSH? :)

Okay, I'm trying to figure out what I did to make SSH work. However something doesnt make sense.

This is what I did:

Replaced JettyStarter.properties with the default one and only changed the default port to 8380. I did NOTHING else.

Then, I stopped the sageTV service, exited sageTV.exe from memory and installed SageWebserverSetup_2_25.exe. I let it use my existing realms file to keep my username/passwords. I also unchecked all the checkboxes except for the top one to just add port 8090 to my sageTV.properties file.

Port 8090 used to be the port I used for neilm's ssh port.

Then, started sageTVservice and sageTV.exe. I had an old bookmark/favorite to my old https neilm webserver and just clicked it expecting it to of course not work since SSH wasn't even defined in Jetty.

Guess what? I am not in the webserver with SSH using my old ssh certificate. What the heck??? I double checked to make sure I didnt install an old non-jetty version of the websever, but its definitely the latest one... and just used https without any issues AND without any SSH stuff defined in the JettyStarter.properties file.

I'm glad everything seems to be working. But, what's going on? Whats the SSH stuff in the JettyStarter.properties file for then?

Thanks!
Michael

Quote:
Originally Posted by jreichen View Post
Let's forget about the SSL for now and get a normal connection to work. To do that, remove jetty-ssl.xml from the jetty.configfiles line in JettyStarter.properties.

Make sure SageTV is stopped, then delete all the directories (but not the war files) in jetty/webapps. Jetty will recreate the directories from the war files when it starts.

Enable SageTV debug logging and enable the DEBUG line in JettyStarter.properties.

Start up SageTV and try to go to http://server:8380/bmt. If it fails, look in the SageTV debug log as well as the most recent file in the jetty/logs folder.

I noticed you've been using 'localhost' in the URL, you might try the machine's IP instead.
__________________
Upgraded to Comcast X1 + Netflix/Amazon Video streaming

***RIP SageTV***
Reply With Quote
  #45  
Old 10-04-2009, 09:15 PM
sleonard's Avatar
sleonard sleonard is offline
Sage Icon
 
Join Date: Nov 2003
Posts: 1,506
You installed the old standalone version of Nielms webserver. The Jetty version does not have an .exe installer just a .zip file.

S
Reply With Quote
  #46  
Old 10-04-2009, 11:12 PM
mkanet's Avatar
mkanet mkanet is offline
SageTVaholic
 
Join Date: Feb 2004
Posts: 3,359
Exclamation

EDIT: UPDATE... thank you, now I can get it using Jetty (without SSH)

Using:
http://localhost:8380/sage/home


However, all the username/passwords defined in realms is now ignored (see below example). How can I tell the jetty version of the websever to have an admin username/password and a guest account which has access to everything, but it's read only.

The new realms file for jetty looks completely different with:
<username>: <password>,<rolename>
sage: frey,user

However, I'm not sure if there's a read-only role such as "guest" instead of user. How would I set this up in jetty? Is there an easy documentian webpage which explains how to setup a full access, read-only username,pasword for jetty?


(What I used to have in the neilms websever realms file)
SageTV Web Actions=/sage/Command,admin:letmein
SageTV Web Actions=/sage/AiringCommand,admin:letmein
SageTV Web Actions=/sage/ManualRecord,admin:letmein
SageTV Web Actions=/sage/ResolveConflict,admin:letmein
SageTV Web Actions=/sage/TimedRecord,admin:letmein
SageTV Web Actions=/sage/MediaFileCommand,admin:letmein
SageTV Web Actions=/sage/ForceEpgUpdate,admin:letmein
SageTV Web Actions=/sage/EditShowInfo,admin:letmein
SageTV Web Actions=/sage/EncodeCommand,admin:letmein
SageTV Web Actions=/sage/FavoriteCommand,admin:letmein

# Admin user access to info screens
SageTV Web Actions=/sage,admin:letmein
# Guest user acess to normal screens
SageTV Web Interface=/sage,guest:guest


Quote:
Originally Posted by sleonard View Post
You installed the old standalone version of Nielms webserver. The Jetty version does not have an .exe installer just a .zip file.

S
__________________
Upgraded to Comcast X1 + Netflix/Amazon Video streaming

***RIP SageTV***

Last edited by mkanet; 10-05-2009 at 06:12 AM.
Reply With Quote
  #47  
Old 10-05-2009, 01:22 PM
mkanet's Avatar
mkanet mkanet is offline
SageTVaholic
 
Join Date: Feb 2004
Posts: 3,359
Question Read-only access in Jetty webserver

Okay, went through a quick beginners jetty crash course and got everything up and running BMT, jetty webserver, self-signed ssh certificate for Jetty, and a couple of standard usernames/passwords

However, here's the big Jetty Webserver question of the day:

How do I setup a guest account that can access all parts of the sageTV webserver (ie,TV recordings, favorites, guide, etc)... with read-only access in Jetty? I used to be able to do this using the old webserver (shown in my previous post above).

I found something in one of my google searches which looked really promising:

guest: guest,read-only

However, it produced the below error. I'm sure this will be asked over and over again in the future to come.. so might as well have it documented sooner rather than later (at least searchable in this thread).

HTTP ERROR 403

Problem accessing /sage/home. Reason:
User not in required rolePowered by Jetty://
__________________
Upgraded to Comcast X1 + Netflix/Amazon Video streaming

***RIP SageTV***
Reply With Quote
  #48  
Old 10-05-2009, 06:48 PM
toricred's Avatar
toricred toricred is offline
Sage Icon
 
Join Date: Jan 2006
Location: Northern New Mexico
Posts: 1,729
@mkanet I believe you mean SSL, not SSH. SSH is like telnet only encrypted.
Reply With Quote
  #49  
Old 10-05-2009, 07:37 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Quote:
Originally Posted by mkanet View Post
Okay, went through a quick beginners jetty crash course and got everything up and running BMT, jetty webserver, self-signed ssh certificate for Jetty, and a couple of standard usernames/passwords

However, here's the big Jetty Webserver question of the day:

How do I setup a guest account that can access all parts of the sageTV webserver (ie,TV recordings, favorites, guide, etc)... with read-only access in Jetty? I used to be able to do this using the old webserver (shown in my previous post above).

I found something in one of my google searches which looked really promising:

guest: guest,read-only

However, it produced the below error. I'm sure this will be asked over and over again in the future to come.. so might as well have it documented sooner rather than later (at least searchable in this thread).

HTTP ERROR 403

Problem accessing /sage/home. Reason:
User not in required rolePowered by Jetty://
Good question. There are a few things that are different between TJWS and Jetty. This is one of them. I haven't posted a list to the wiki, perhaps a side-by-side table would be helpful.

Before putting in the time to fill in the gaps, I want to see which ones are most missed by users.

Jetty is very configurable, but mainly for the app developer and not so much for the end user. For this feature, I could add the 'admin' command urls to the app and associate them with a role name. You would then associate that role with the users you configure in the jetty/etc/realm.properties file.
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun.
Extender: STP-HD300, Harmony 550 Remote,
Netgear MCA1001 Ethernet over Coax.
SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client
, Java 1.6.
Plugins: Jetty, Nielm's Web Server, Mobile Web Interface.

Reply With Quote
  #50  
Old 10-05-2009, 08:05 PM
mkanet's Avatar
mkanet mkanet is offline
SageTVaholic
 
Join Date: Feb 2004
Posts: 3,359
Ohoh... I was hoping that this was a limitation of my ability to figure out how to do it, not a limitation of the plugin!

If you add the 'admin' command urls to the app and associate them with a role name, would that mean that everything else thats not explicitly defined would default to read-only (cannot add, modify, delete)? Maybe I didn't understand you right.

Anyway, I'm surprised there's no general read-only functionality for jetty apps. It would be nice to have read-only permissions for BMT as well.

Is there anyway at all for the user to do it through the realms.properties file at all or some kind of clever workaround? I REALLY would like to do this; as this is the ONLY limitation that I have found upgrading to the jetty version. Everything else works just like it used to as far as I can tell.

Quote:
Originally Posted by jreichen View Post
Good question. There are a few things that are different between TJWS and Jetty. This is one of them. I haven't posted a list to the wiki, perhaps a side-by-side table would be helpful.

Before putting in the time to fill in the gaps, I want to see which ones are most missed by users.

Jetty is very configurable, but mainly for the app developer and not so much for the end user. For this feature, I could add the 'admin' command urls to the app and associate them with a role name. You would then associate that role with the users you configure in the jetty/etc/realm.properties file.
__________________
Upgraded to Comcast X1 + Netflix/Amazon Video streaming

***RIP SageTV***
Reply With Quote
  #51  
Old 10-05-2009, 08:10 PM
mkanet's Avatar
mkanet mkanet is offline
SageTVaholic
 
Join Date: Feb 2004
Posts: 3,359
LOL... believe it or not, I was playing with my SSH client today...Tunelier while I was writing that post. I totally didnt catch that! haha

Quote:
Originally Posted by toricred View Post
@mkanet I believe you mean SSL, not SSH. SSH is like telnet only encrypted.
__________________
Upgraded to Comcast X1 + Netflix/Amazon Video streaming

***RIP SageTV***
Reply With Quote
  #52  
Old 10-05-2009, 09:34 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Is there any reason why I cannot run both Nielm's old web server and the new jetty version, at least until I become comfortable with the new jetty version?

I run several other jetty apps such as SageMobileWeb, SRE, SJQ, SageAlert so can I just through these new files in my jetty folder?
__________________
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
  #53  
Old 10-05-2009, 09:44 PM
mkanet's Avatar
mkanet mkanet is offline
SageTVaholic
 
Join Date: Feb 2004
Posts: 3,359
I'm curious once you get the jetty version going.. what is there thats different beside the issue with not being able to define read-only guest accounts? Everything looks identical to me... the only thing that's different is it seems to be a little bit faster in general.

Quote:
Originally Posted by wayner View Post
Is there any reason why I cannot run both Nielm's old web server and the new jetty version, at least until I become comfortable with the new jetty version?

I run several other jetty apps such as SageMobileWeb, SRE, SJQ, SageAlert so can I just through these new files in my jetty folder?
__________________
Upgraded to Comcast X1 + Netflix/Amazon Video streaming

***RIP SageTV***
Reply With Quote
  #54  
Old 10-05-2009, 09:51 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Does that mean that I can run both Web apps concurrently? May I suggest that a new thread be started that just starts with the launch of the Jetty version and that the old thread point folks to this version. It might be more helpful than having a 2400+ post thread as this one has become!
__________________
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
  #55  
Old 10-06-2009, 08:46 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by wayner View Post
Is there any reason why I cannot run both Nielm's old web server and the new jetty version, at least until I become comfortable with the new jetty version?

I run several other jetty apps such as SageMobileWeb, SRE, SJQ, SageAlert so can I just through these new files in my jetty folder?
I run both with no problem.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #56  
Old 10-06-2009, 01:37 PM
sic0048 sic0048 is offline
Sage Icon
 
Join Date: Nov 2007
Posts: 1,400
I hate to show my ignorance, but what is the benefit to using Jetty?
__________________
i7-6700 server with about 10tb of space currently
SageTV v9 (64bit)
Ceton InfiniTV ETH 6 cable card tuner (Spectrum cable)
OpenDCT
HD-300 HD Extenders (hooked to my whole-house A/V system for synched playback on multiple TVs - great during a Superbowl party)
Amazon Firestick 4k and Nvidia Shield using the MiniClient
Using CQC to control it all
Reply With Quote
  #57  
Old 10-06-2009, 01:52 PM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Quote:
Originally Posted by sic0048 View Post
I hate to show my ignorance, but what is the benefit to using Jetty?
  • multiple web apps (sage job queue, sage recording extender, sage alert, bmt, mobile web interface, nielms web interface, etc) all running within a single webserver.
  • hot deployable (no need to shutdown sagetv to upgrade web apps)
__________________
Server 2003 r2 32bit, SageTV9 (finally!)
2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast)
2x HD300, 1x SageClient (Win10 Test/Development)
Check out TVExplorer
Reply With Quote
  #58  
Old 10-06-2009, 02:11 PM
mkanet's Avatar
mkanet mkanet is offline
SageTVaholic
 
Join Date: Feb 2004
Posts: 3,359
In respect to his sageTV web interface, the main advantage would be you wont have to bloat sageTV by loading a second java webserver into memory if jetty is already serving other addons like BMT.

The next benefit would be that you dont have to restart sageTV every time you want to install or update a new jetty-based app.

I'm sure there are many more benefits to using jetty that others here might mention. I honestly cant tell the difference with the jetty version and the original version running side by side; except the jetty version seems to be a little bit faster; especially when loading complex html pages filled with small bitmapped images such as a gigantic guide with many, MANY channel logos.

Quote:
Originally Posted by sic0048 View Post
I hate to show my ignorance, but what is the benefit to using Jetty?
__________________
Upgraded to Comcast X1 + Netflix/Amazon Video streaming

***RIP SageTV***
Reply With Quote
  #59  
Old 10-07-2009, 12:39 AM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Quote:
Originally Posted by mkanet View Post
Ohoh... I was hoping that this was a limitation of my ability to figure out how to do it, not a limitation of the plugin!

If you add the 'admin' command urls to the app and associate them with a role name, would that mean that everything else thats not explicitly defined would default to read-only (cannot add, modify, delete)? Maybe I didn't understand you right.
I believe it would default to read-only but I haven't tried that specific case.

Quote:
Originally Posted by mkanet View Post
Anyway, I'm surprised there's no general read-only functionality for jetty apps. It would be nice to have read-only permissions for BMT as well.
In a general sense, it can be very hard to tell what kind of actions a web app is taking during a given request. About the only way to do it is by specifying URLs and/or putting logic within the web app itself to check for role authorization before performing certain actions.

Quote:
Originally Posted by mkanet View Post
Is there anyway at all for the user to do it through the realms.properties file at all or some kind of clever workaround? I REALLY would like to do this; as this is the ONLY limitation that I have found upgrading to the jetty version. Everything else works just like it used to as far as I can tell.
Not really the realms properties file. It can probably be done in the context xml file. I did something like this for the public URLs in nielm's web server so they would still be unprotected when running in Jetty. That's the inverse of what you want to do (unprotected by default vs admin-only by default) but it should be doable. Keep in mind that file is overwritten when the web app is upgraded - that's why I haven't suggested it as something for most users to do.
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun.
Extender: STP-HD300, Harmony 550 Remote,
Netgear MCA1001 Ethernet over Coax.
SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client
, Java 1.6.
Plugins: Jetty, Nielm's Web Server, Mobile Web Interface.

Reply With Quote
  #60  
Old 10-07-2009, 12:45 AM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Quote:
Originally Posted by mkanet View Post
I'm curious once you get the jetty version going.. what is there thats different beside the issue with not being able to define read-only guest accounts?
I'd need to review the list but one thing that comes to mind is the aliases.properties file (mapping URLs to file paths) is a feature of TJWS - not anything in nielm's code - so Jetty doesn't support it. I'll try to include a list when I get around to updating the wiki with more info about running nielm's web ui on Jetty.

Quote:
Originally Posted by mkanet View Post
Everything looks identical to me... the only thing that's different is it seems to be a little bit faster in general.
Perfect
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun.
Extender: STP-HD300, Harmony 550 Remote,
Netgear MCA1001 Ethernet over Coax.
SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client
, Java 1.6.
Plugins: Jetty, Nielm's Web Server, Mobile Web Interface.

Reply With Quote
Reply

Tags
web


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: Web User Interface for SageTV 2.2-6.6 (V2.25 18 Sep 2009) nielm SageTV Customizations 2644 10-24-2016 10:18 AM
Plugin: Jetty Starter 1.6 jreichen SageTV Customizations 122 09-07-2012 06:48 PM
Plugin: Mobile Web Interface 1.2 jreichen SageTV Customizations 281 06-17-2011 02:20 PM
SageTV Web Interface - recording padding snowyb79 SageTV Customizations 1 03-16-2011 01:10 AM


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


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