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
  #261  
Old 01-04-2012, 11:56 AM
Fonceur's Avatar
Fonceur Fonceur is offline
Sage Icon
 
Join Date: Jan 2008
Location: DDO, QC
Posts: 1,915
You don't want to change the base port (8080) to match your extender, those are totally unrelated... That's the port you use to access the web server, not the port that the web server uses to access the extender...
__________________
SageTCPServer (2.3.5): Open source TCP interface to the SageTV API
MLSageTV (3.1.8)/Sage Media Server (1.13): SageTV plugin for MainLobby/CQC
TaSageTV (2.58)/TaSTVRemote (1.14): Monitor/control SageTV with an Android device
TbSageTV (1.02)/STVRemote (1.11): Monitor/control SageTV with a PlayBook 2
TiSageTV (1.64)/TiSTVRemote (1.09): Monitor/control SageTV with an iPhone/iPod/iPad
Reply With Quote
  #262  
Old 01-04-2012, 02:43 PM
pjpjpjpj pjpjpjpj is offline
Sage Icon
 
Join Date: Feb 2008
Posts: 2,164
So it's possible (likely?) that if I change both my web redirect and the jetty server port setting back to 8080 (or some other unused port number, as long as they match) that it might work?

EDIT: It fixed it.... working now.
__________________
Server: AMD Athlon II x4 635 2.9GHz, 8 Gb RAM, Win 10 x64, Java 8, Gigabit network
Drives: Several TB of internal SATA and external USB drives, no NAS or RAID or such...
Software: SageTV v9x64, stock STV with ADM.
Tuners: 4 tuners via (2) HDHomeruns (100% OTA, DIY antennas in the attic).
Clients: Several HD300s, HD200s, even an old HD100, all on wired LAN. Latest firmware for each.

Last edited by pjpjpjpj; 01-05-2012 at 03:41 PM.
Reply With Quote
  #263  
Old 01-04-2012, 11:23 PM
jm9843 jm9843 is offline
Sage Aficionado
 
Join Date: Oct 2003
Posts: 288
Quote:
Originally Posted by jreichen View Post
But first, do these steps to get the troubleshooting started.
  1. Enable SageTV debug logging
  2. Uninstall the plugins
  3. Follow any prompts to restart SageTV
  4. Shut down SageTV
  5. Print directory listings of the JARs and Jetty folders ('>' overwrites the output file if it exists, '>>' appends to it). The text file doesn't have to be in C:\, you could put it somewhere else.
    Code:
    C:\>dir "c:\Program Files\SageTV\SageTV\JARs" /s > c:\dirs1.txt
    
    C:\>dir "c:\Program Files\SageTV\SageTV\Jetty" /s >> c:\dirs1.txt
  6. Start SageTV
  7. Install only the Jetty plugin
  8. Follow any prompts to restart SageTV
  9. After SageTV restarts, go to the Jetty Web Server plugin, click on it, click Configure on the menu that pops up, then change the log level to "VERBOSE"
  10. Shut down SageTV
  11. Print directory listings of the JARs and Jetty folders again (note the different output filenames!)
    Code:
    C:\>dir "c:\Program Files\SageTV\SageTV\JARs" /s > c:\dirs2.txt
    
    C:\>dir "c:\Program Files\SageTV\SageTV\Jetty" /s >> c:\dirs2.txt
  12. Start SageTV, then shut it down (to get the sagetv_0.txt log of Sage and Jetty starting up)
  13. Post the dirs1.txt, dirs2.txt, and sagetv_0.txt files
Hopefully that's all clear. Feel free to ask for clarification.
I'm having problems getting Jetty working on my new Sage build - navigating to http://host:9090/apps results in a spinny circle without any page displaying in both Chrome and IE.

Following jreichen's instructions here, I've attached the jetty/jar folder lists & Sage log. Hopefully someone more knowledgeable than I can identify the problem.
Attached Files
File Type: txt dirs1.txt (1.5 KB, 153 views)
File Type: txt dirs2.txt (4.1 KB, 145 views)
File Type: txt sagetv_0.txt (209.6 KB, 316 views)
Reply With Quote
  #264  
Old 02-23-2012, 12:05 PM
brb84 brb84 is offline
Sage Advanced User
 
Join Date: Jun 2008
Posts: 97
Unhappy Self-Generated SSL

Trying to follow the instructions on the wiki, but I haven't been able to get jetty to use my own generated keystore file. I used the exact command in the example to generate mine. I added the lines to sage.properties. Still, jetty always default to using the built-in key. If I move the built-in key, I get an error on the page:

Error 107 (net::ERR_SSL_PROTOCOL_ERROR): SSL protocol error.

This is my sage.properties jetty section:

jetty/jetty.configfiles="C\:\\Program Files (x86)\\SageTV\\SageTV\\jetty\\etc\\jetty.xml" "C\:\\Program Files (x86)\\SageTV\\SageTV\\jetty\\etc\\jetty-ssl.xml"
jetty/jetty.home=C\:\\Program Files (x86)\\SageTV\\SageTV\\jetty
jetty/jetty.log.level=INFO
jetty/jetty.logs=C\:\\Program Files (x86)\\SageTV\\SageTV\\jetty\\logs
jetty/jetty.port=8080
jetty/jetty.ssl.keypassword=123456
jetty/jetty.ssl.keystore="C\:\\Users\\MyUser\\.keystore"
jetty/jetty.ssl.password=123456
jetty/jetty.ssl.port=8443
jetty/jetty.ssl.trustpassword=123456
jetty/jetty.ssl.truststore="C\:\\Users\\MyUser\\.keystore"
jetty/upnp=Manual Configuration


Any ideas what I'm doing wrong here?
Reply With Quote
  #265  
Old 02-23-2012, 12:15 PM
mkanet's Avatar
mkanet mkanet is offline
SageTVaholic
 
Join Date: Feb 2004
Posts: 3,359
Hi brb84, rename/move the keystore file you created to the same name/location as what sageTV expects. Make sure you're using the right passwords, truststore, etc define below. If you still are getting an error, you might be using the wrong instructions to create the keystore file.

PS: Are you using 8443 as your ssl port or 443? It might be easier to use 443. If you use 443, you dont have to specific the port in the URL every time.

Quote:
Originally Posted by brb84 View Post
Trying to follow the instructions on the wiki, but I haven't been able to get jetty to use my own generated keystore file. I used the exact command in the example to generate mine. I added the lines to sage.properties. Still, jetty always default to using the built-in key. If I move the built-in key, I get an error on the page:

Error 107 (net::ERR_SSL_PROTOCOL_ERROR): SSL protocol error.

This is my sage.properties jetty section:

jetty/jetty.configfiles="C\:\\Program Files (x86)\\SageTV\\SageTV\\jetty\\etc\\jetty.xml" "C\:\\Program Files (x86)\\SageTV\\SageTV\\jetty\\etc\\jetty-ssl.xml"
jetty/jetty.home=C\:\\Program Files (x86)\\SageTV\\SageTV\\jetty
jetty/jetty.log.level=INFO
jetty/jetty.logs=C\:\\Program Files (x86)\\SageTV\\SageTV\\jetty\\logs
jetty/jetty.port=8080
jetty/jetty.ssl.keypassword=123456
jetty/jetty.ssl.keystore="C\:\\Users\\MyUser\\.keystore"
jetty/jetty.ssl.password=123456
jetty/jetty.ssl.port=8443
jetty/jetty.ssl.trustpassword=123456
jetty/jetty.ssl.truststore="C\:\\Users\\MyUser\\.keystore"
jetty/upnp=Manual Configuration


Any ideas what I'm doing wrong here?
__________________
Upgraded to Comcast X1 + Netflix/Amazon Video streaming

***RIP SageTV***
Reply With Quote
  #266  
Old 02-23-2012, 01:07 PM
brb84 brb84 is offline
Sage Advanced User
 
Join Date: Jun 2008
Posts: 97
I ran this exact command using the keytool executable in my java/jre6/bin directory and followed the prompts for setting name and location:

keytool -genkey -keyalg RSA -keypass 123456 -storepass 123456 -validity 365

That generated a .keystore file in my home directory, which is C:\Users\MyUser.


The settings in Sage.Properties are pointing to that directory. I'm not sure what else could be missing. It would be nice if there was some more specific error.

As for the port, I'm using 8443 because my router's SSL interface actually uses 443.

Last edited by brb84; 02-23-2012 at 02:12 PM.
Reply With Quote
  #267  
Old 02-25-2012, 07:39 AM
KarylFStein KarylFStein is offline
Sage Fanatic
 
Join Date: Apr 2006
Location: Westland, Michigan, USA
Posts: 999
It looks fine to me. Did you stop the SageTV service before editing the properties file?
__________________
Home Network: https://karylstein.com/technology.html
Reply With Quote
  #268  
Old 02-27-2012, 02:27 PM
brb84 brb84 is offline
Sage Advanced User
 
Join Date: Jun 2008
Posts: 97
I figured it out. I did not create the certificate as the root user. I ignored that statement originally because it was prefaced by "Linux users..."

Once I ran the command prompt as admin, created the certificate, specified that it just go on the C drive, and changed the sage.prop values to point to the key's name on the C drive, everything came up beautifully.
Reply With Quote
  #269  
Old 04-08-2012, 04:09 PM
mayamaniac's Avatar
mayamaniac mayamaniac is offline
Sage Icon
 
Join Date: May 2004
Posts: 2,177
Got new server hardware, had to reinstall OS and SageTV again. Got everything working except for the webserver. I'm getting this error after login/password from this address: http://192.168.1.102:8080/apps/

Quote:
HTTP ERROR 403

Problem accessing /apps/. Reason:

User not in required role

Powered by Jetty://
This is all default settings, port 8080, sage/frey
How do I fix this?

EDIT: nevermind, went into realm.properties and delete a bunch of strange characters and changed it to "sage: frey,user", now it works.
__________________
Mayamaniac

- SageTV 7.1.9 Server. Win7 32bit in VMWare Fusion. HDHR (FiOS Coax). HDHR Prime 3 Tuners (FiOS Cable Card). Gemstone theme.
- SageTV HD300 - HDMI 1080p Samsung 75" LED.

Last edited by mayamaniac; 04-08-2012 at 04:17 PM.
Reply With Quote
  #270  
Old 07-23-2012, 10:56 PM
IVB's Avatar
IVB IVB is offline
Sage Icon
 
Join Date: Sep 2003
Location: Oak-town, CA
Posts: 1,083
feeling like a newb here but I haven't had to touch my stuff in 3.5 years, just rebuilt the server, and now jetty doesn't work. I just get
Quote:
Oops! Google Chrome could not connect to 192.168.1.123:8080
here's the portion of my sage.properties file. I tried uninstalling the plugin, then re-installing it, no love.

I'm on Windows 7-64Bit if that helps.

Quote:

jetty/jetty.configfiles="C\:\\Program Files\\SageTV\\SageTV\\jetty\\etc\\jetty.xml"
jetty/jetty.home=C\:\\Program Files\\SageTV\\SageTV\\jetty
jetty/jetty.log.level=INFO
jetty/jetty.logs=C\:\\Program Files\\SageTV\\SageTV\\jetty\\logs
jetty/jetty.port=8080
jetty/jetty.ssl.port=8443
jetty/upnp=Manual Configuration
jetty/upnp.external.http=8080
jetty/upnp.external.https=8443
__________________
------------------------------------
My Home Automation YouTube channel
Reply With Quote
  #271  
Old 07-23-2012, 11:09 PM
brb84 brb84 is offline
Sage Advanced User
 
Join Date: Jun 2008
Posts: 97
Quote:
Originally Posted by IVB View Post
feeling like a newb here but I haven't had to touch my stuff in 3.5 years, just rebuilt the server, and now jetty doesn't work. I just get

here's the portion of my sage.properties file. I tried uninstalling the plugin, then re-installing it, no love.

I'm on Windows 7-64Bit if that helps.
I would try a couple things:

1.) Try to hit the URL from the server itself with http://localhost:8080/apps
If that works, then if you were trying from a different server before, you may just need to create a windows firewall exception for 8080.

2.) Pull out the SSL config altogether so that you just have port 8080 setup. If that works, I'm guessing the server is blowing up on the certificate somehow.
Reply With Quote
  #272  
Old 07-23-2012, 11:20 PM
IVB's Avatar
IVB IVB is offline
Sage Icon
 
Join Date: Sep 2003
Location: Oak-town, CA
Posts: 1,083
Quote:
Originally Posted by brb84 View Post
I would try a couple things:

1.) Try to hit the URL from the server itself with http://localhost:8080/apps
If that works, then if you were trying from a different server before, you may just need to create a windows firewall exception for 8080.

2.) Pull out the SSL config altogether so that you just have port 8080 setup. If that works, I'm guessing the server is blowing up on the certificate somehow.
Thx for the quick reply. Tried both of those, no love. Very baffling.
__________________
------------------------------------
My Home Automation YouTube channel
Reply With Quote
  #273  
Old 07-24-2012, 01:51 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by IVB View Post
feeling like a newb here but I haven't had to touch my stuff in 3.5 years, just rebuilt the server, and now jetty doesn't work. I just get

here's the portion of my sage.properties file. I tried uninstalling the plugin, then re-installing it, no love.

I'm on Windows 7-64Bit if that helps.
That is wrong you copied the SageTV folder from a 32 bit to a 64 bit and the poperties are pointing to the wrong place. SageTv should be in Program Files (x86)

should be
\\Program Files (x86)\\ ... not ... \\Program Files\\ ....

In sage.properties and sageclient.properties change all the instances of
\\Program Files\\ to
\\Program Files (x86)\\


You did the same thing this user did.

http://forums.sagetv.com/forums/show...02&postcount=1
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.

Last edited by nyplayer; 07-24-2012 at 01:55 AM.
Reply With Quote
  #274  
Old 07-24-2012, 06:05 AM
BobPhoenix BobPhoenix is offline
SageTVaholic
 
Join Date: Oct 2004
Posts: 3,152
Which is why I always setup completely from scratch. Make sure everything is installed and working THEN copy in the wiz.bin and ONLY the wiz.bin from old install. That way the properties file and everything else in SageTV is setup for the new PC. I do make the PC name the same as the old name and the same recording drives. I use UNC.
Reply With Quote
  #275  
Old 07-24-2012, 07:14 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by BobPhoenix View Post
Which is why I always setup completely from scratch. Make sure everything is installed and working THEN copy in the wiz.bin and ONLY the wiz.bin from old install. That way the properties file and everything else in SageTV is setup for the new PC. I do make the PC name the same as the old name and the same recording drives. I use UNC.
That is the proper way to do it .. The inexperienced Sage users have to understand that during Installation filters are registered and proper registry settings are set. Also the install directory is set in the registry.

If you want to keep all your settings there are ways to do it but it takes some tinkering and initial setup before moving Sage.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.

Last edited by nyplayer; 07-24-2012 at 07:22 AM.
Reply With Quote
  #276  
Old 07-24-2012, 09:16 AM
IVB's Avatar
IVB IVB is offline
Sage Icon
 
Join Date: Sep 2003
Location: Oak-town, CA
Posts: 1,083
ooops, thanks. Although I must have multiple issues as I still can't get Jetty working. I changed Sage.prop & Sageclient.prop. Will look again tonight to see what else is going on.
__________________
------------------------------------
My Home Automation YouTube channel
Reply With Quote
  #277  
Old 07-26-2012, 07:13 PM
IVB's Avatar
IVB IVB is offline
Sage Icon
 
Join Date: Sep 2003
Location: Oak-town, CA
Posts: 1,083
Couldn't take it anymore, blew away the whole SageTV directory and started over. And whaddya know, this worked right away.

Now to figure out which plugins I actually had installed. I suppose I should have written that down. Not that big a deal, I guess. And, it seems to work fine, so i'll back up the current wiz.bin, then put the prior one on, and pray it all still works.
__________________
------------------------------------
My Home Automation YouTube channel
Reply With Quote
  #278  
Old 07-17-2015, 10:01 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
So.. here's a crazy shot in the dark.. Has anyone tried dropping a newer version of jetty into sage and see what it breaks? I'm asking primarily because I've seen many users that want to upgrade to Java 8 on their servers and the currently used version of jetty (6.something) doesn't work under Java 8. The current version, 9.2 i think, is supposed to work well with Java 8. I will be the first to say, however, that I have absolutely NO idea how jetty is talking to the sage API's, and/or if this is something that would be broken with the new versions.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #279  
Old 07-18-2015, 12:33 PM
Monedeath Monedeath is offline
Sage Expert
 
Join Date: Sep 2009
Location: Idaho
Posts: 514
Quote:
Originally Posted by Fuzzy View Post
So.. here's a crazy shot in the dark.. Has anyone tried dropping a newer version of jetty into sage and see what it breaks? I'm asking primarily because I've seen many users that want to upgrade to Java 8 on their servers and the currently used version of jetty (6.something) doesn't work under Java 8. The current version, 9.2 i think, is supposed to work well with Java 8. I will be the first to say, however, that I have absolutely NO idea how jetty is talking to the sage API's, and/or if this is something that would be broken with the new versions.
Looks like NYplayer did make an attempt, in a different thread.

http://forums.sagetv.com/forums/show...&postcount=305

I looked at it very briefly about a month ago, and the API for jetty made a rather significant shift between 6.x and 7.x so even dropping a v7 Jetty jar in there may not work, but I didn't make an attempt at it before I had to leave again.

Also V9 is not considered to be "release" just yet, so V8.x is the official release build currently. But we're behind on even that right now.
Reply With Quote
  #280  
Old 07-22-2015, 03:46 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
There were a lot of changes to Java package names and some class names when the project moved over to the Eclipse Foundation. I've already made these changes to the plugin's codebase.

The other issue is that each web app is required to deliver an xml file that has Jetty class references in it and all those have to be modified. Hopefully the plugin can be modified to work with the existing files in a "compatibility mode" until the other plugins can be updated.

I hope to set aside some time to fix these issues but I don't see it happening until the Sage source code is released. If anybody else is interested in getting their feet wet with writing plugins I'd be more than happy to support them if they want to make these changes.

EDIT: Oh, and the jsp functionality needs fixed too.
__________________
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


Currently Active Users Viewing This Thread: 2 (0 members and 2 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: SageTV Web Interface V2 for Jetty jreichen SageTV Customizations 256 02-09-2014 08:05 AM
Plugin: Jetty Starter 1.6 jreichen SageTV Customizations 122 09-07-2012 06:48 PM
error message with web server plugin edgley SageTV Customizations 3 01-15-2006 11:32 AM
Sage Web Server and existing web server compatibilty? Brent94Z SageTV Customizations 6 01-18-2005 11:29 AM


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


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