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
  #161  
Old 09-11-2009, 04:08 PM
Jason's Avatar
Jason Jason is offline
Sage Expert
 
Join Date: Nov 2003
Location: Texas
Posts: 598
Quote:
Originally Posted by taylormadearmy View Post
Hi all,

I'm trying to install the Mobile web interface for the first time. I have installed the latest version of Jetty and the web interface from and believe I have followed the instructions fromt the wiki corerctly. I have left the password and port as the default ones for now. However I am unable to log in - I just keep being asked for the username and password.

Any idea as to what could be wrong? Any useful logs I could look at?

Thanks
T
Same here... Just updated everything... Jetty, SJQ, SWS, etc...

Thought it was something I did, but then went back and checked... Nope. Looks good here. IE, FF, WM6 IE, all keep requesting User:PWD multiple times...
__________________
True standalone tuner functionality with the --> HAVA Channel Changer<--
Reply With Quote
  #162  
Old 09-11-2009, 04:50 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Quote:
Originally Posted by jreichen View Post
Is there any kind of firewall on your network that might be blocking HTTP headers? Do you have cookies enabled?

If you're familiar with the Live HTTP Headers plugin in Firefox you could capture the request and response headers and post them here.
A couple other things you could try:
  • Clear the browser's cache
  • Delete the browser's cookies
__________________
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
  #163  
Old 09-16-2009, 05:15 PM
SageGk SageGk is offline
Sage Aficionado
 
Join Date: Mar 2008
Posts: 391
I keep getting a 404 error no matter what I try. I even resaved the sagewebapp.xml file. Any help is appreciated.
Reply With Quote
  #164  
Old 09-16-2009, 06:20 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Are you using this URL (with your server, notice that's 'sagem', not 'sage')?
Code:
http://server:8080/sagem/m/menu.jsp
Try to delete the SAGE_HOME/jetty/webapps/SageWebApp directory then update the sagewebapp.xml file. The war may have been only partially extracted and the directory would be incomplete. If that doesn't work, shut down SageTV and try those steps, then start SageTV.

And if that doesn't work , enable SageTV's debug logging, reproduce the 404 error, and post your log for me to look at.
__________________
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
  #165  
Old 09-16-2009, 06:23 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Is anybody still having trouble with multiple password prompts? If you are, have you tried the things I suggested?
__________________
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
  #166  
Old 09-16-2009, 07:04 PM
SageGk SageGk is offline
Sage Aficionado
 
Join Date: Mar 2008
Posts: 391
Quote:
Originally Posted by jreichen View Post
Are you using this URL (with your server, notice that's 'sagem', not 'sage')?
Code:
http://server:8080/sagem/m/menu.jsp
Try to delete the SAGE_HOME/jetty/webapps/SageWebApp directory then update the sagewebapp.xml file. The war may have been only partially extracted and the directory would be incomplete. If that doesn't work, shut down SageTV and try those steps, then start SageTV.

And if that doesn't work , enable SageTV's debug logging, reproduce the 404 error, and post your log for me to look at.
Was I not supposed to delete. the .war file? Because Its not making new files
Edit: it made the files when I loaded the UI, not service....still 404 error...server= my ip, correct?

Last edited by SageGk; 09-16-2009 at 07:17 PM.
Reply With Quote
  #167  
Old 09-16-2009, 07:26 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Quote:
Originally Posted by SageGk View Post
Was I not supposed to delete. the .war file? Because Its not making new files
Nope, that's where all the code is Jetty monitors the contexts folder for changes to files in that folder. The way sagewebapp.xml (and most other SageTV plugins that use Jetty) is set up, if Jetty sees it is new or has changed, it (re)extracts the war file to the subfolder and runs the web app from that folder.

Extract the zip file again and try going to the URL. If it still doesn't work, try some of the steps I suggested before.
__________________
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
  #168  
Old 09-16-2009, 08:16 PM
SageGk SageGk is offline
Sage Aficionado
 
Join Date: Mar 2008
Posts: 391
Quote:
Originally Posted by jreichen View Post
Nope, that's where all the code is Jetty monitors the contexts folder for changes to files in that folder. The way sagewebapp.xml (and most other SageTV plugins that use Jetty) is set up, if Jetty sees it is new or has changed, it (re)extracts the war file to the subfolder and runs the web app from that folder.

Extract the zip file again and try going to the URL. If it still doesn't work, try some of the steps I suggested before.
I have Web user interface installed. Maybe that is interfering? I'm getting a pink screen, error 404, and it says: "Rogatkin's JWS based on Acme.Serve $Revision: 1.26 $" underneath the error.
Reply With Quote
  #169  
Old 09-16-2009, 08:21 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
That's the problem. Right now nielm's web interface runs in a different web server and Jetty cannot use the same port. Change Jetty's port in JettyStarter.properties and restart SageTV.

I hope to soon support running nielm's web interface in the Jetty web server so everything will run on one port.
__________________
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
  #170  
Old 09-16-2009, 08:31 PM
SageGk SageGk is offline
Sage Aficionado
 
Join Date: Mar 2008
Posts: 391
Quote:
Originally Posted by jreichen View Post
That's the problem. Right now nielm's web interface runs in a different web server and Jetty cannot use the same port. Change Jetty's port in JettyStarter.properties and restart SageTV.

I hope to soon support running nielm's web interface in the Jetty web server so everything will run on one port.
I changed it as follows: ........... The default is 8090 and is specified
# in etc/jetty.xml.
jetty.port=8091.......


Would this be correct? I also opened the ports in the firewall, and restarted, but still no luck...now I'm just getting a page timed out error
Reply With Quote
  #171  
Old 09-16-2009, 08:42 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
It sounds like you're trying to use your router's outside IP address. Start by trying to connect directly to your server using its internal IP address, probably something like 192.168.xxx.xxx. So the url would be
Code:
http://192.168.xxx.xxx:8091/sagem/m/menu.jsp
Obviously replace the 'xxx' strings with the actual address of your server.

If you enable SageTV's debug logging (so a log file is created) and uncomment the DEBUG= line in JettyStarter.properties then you'll see Jetty's port in the SageTV log.
__________________
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
  #172  
Old 09-16-2009, 08:58 PM
SageGk SageGk is offline
Sage Aficionado
 
Join Date: Mar 2008
Posts: 391
Quote:
Originally Posted by jreichen View Post
It sounds like you're trying to use your router's outside IP address. Start by trying to connect directly to your server using its internal IP address, probably something like 192.168.xxx.xxx. So the url would be
Code:
http://192.168.xxx.xxx:8091/sagem/m/menu.jsp
Obviously replace the 'xxx' strings with the actual address of your server.

If you enable SageTV's debug logging (so a log file is created) and uncomment the DEBUG= line in JettyStarter.properties then you'll see Jetty's port in the SageTV log.
ok, i got it working on my PC, how do I login from my phone? Thanks for your patience!
Reply With Quote
  #173  
Old 09-16-2009, 09:11 PM
alfi33 alfi33 is offline
Sage Aficionado
 
Join Date: Jun 2008
Posts: 311
Quote:
Originally Posted by jreichen View Post
Is anybody still having trouble with multiple password prompts? If you are, have you tried the things I suggested?
I don't know about "multiple password prompts," but I can't seem to get past the password prompt. I've tried (what I believe is) the default password found in the realm.properties file but it doesn't seem to work. I am successfully using the BMT web UI so I assume jetty is working correctly.

I've tried clearing browser cache (as suggested) and also tried accessing it from a few different PCs on my network but still no luck.

Any ideas?
__________________
Server: SageTV v9 on unRAID Docker; i5-2400; 16GB RAM; 9TB storage array; SiliconDust HDHR3
Client: Windows10; Intel Core2Duo; 4GB RAM; NVIDIA GeForce GT 1030
Client: NVIDIA ShieldTV
Client: Fire TV Stick 4K
Reply With Quote
  #174  
Old 09-16-2009, 09:46 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Quote:
Originally Posted by SageGk View Post
ok, i got it working on my PC, how do I login from my phone? Thanks for your patience!
Great!

In your router you need to map port 8091 to your SageTV server (192.168.xxx.xxx). Then you need to find out your external IP. Your router's software might have it or you can go to a site like http://www.whatsmyip.org/ to get it. Once you know that, use that IP address in your URL rather than the internal IP you used before.

Once that's working, you can map a domain name to your IP using a service like http://www.dyndns.com. There are many out there, search the thread for nielm's web server - there are several posts about doing this.
__________________
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
  #175  
Old 09-17-2009, 04:39 AM
SageGk SageGk is offline
Sage Aficionado
 
Join Date: Mar 2008
Posts: 391
Quote:
Originally Posted by jreichen View Post
Great!

In your router you need to map port 8091 to your SageTV server (192.168.xxx.xxx). Then you need to find out your external IP. Your router's software might have it or you can go to a site like http://www.whatsmyip.org/ to get it. Once you know that, use that IP address in your URL rather than the internal IP you used before.

Once that's working, you can map a domain name to your IP using a service like http://www.dyndns.com. There are many out there, search the thread for nielm's web server - there are several posts about doing this.
Ok, I was able to bring the up the Sage login prompt on my phone, but it just keeps asking for it, won't let me actually login.
Reply With Quote
  #176  
Old 09-17-2009, 08:52 AM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Quote:
Originally Posted by alfi33 View Post
I don't know about "multiple password prompts," but I can't seem to get past the password prompt.
What I meant by that was even though you enter the correct user/password (sage/frey by default in the jetty/etc/realm.properties file), Jetty keeps prompting you to enter it again.

Quote:
Originally Posted by alfi33 View Post
I've tried (what I believe is) the default password found in the realm.properties file but it doesn't seem to work. I am successfully using the BMT web UI so I assume jetty is working correctly.
Can you clarify a little more how you're using BMT successfully but getting the repeated password prompts?

Quote:
Originally Posted by alfi33 View Post
I've tried clearing browser cache (as suggested) and also tried accessing it from a few different PCs on my network but still no luck.

Any ideas?
If you can reproduce it in Firefox, could you install the Live HTTP Headers plugin, go through the repeated password prompts, and post its output here. (Remove your public IP for your privacy if that's in the request/response).
__________________
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
  #177  
Old 09-17-2009, 08:53 AM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Quote:
Originally Posted by SageGk View Post
Ok, I was able to bring the up the Sage login prompt on my phone, but it just keeps asking for it, won't let me actually login.
Do you get repeated prompts if you use Firefox with the public IP? If so could you also post Live HTTP Headers output for me to look at?
__________________
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
  #178  
Old 09-17-2009, 09:14 AM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Quote:
Originally Posted by jreichen View Post
Can you clarify a little more how you're using BMT successfully but getting the repeated password prompts?
in BMT's context.xml file there is no line about authentication = true. I've never been prompted for a password with bmt... one could argue that this not correct and is a bug. Before i researched and figured out the user/password in the realm.properties i set authentication = false in the mobilweb and sagealert context files to access them without a user/pass too (not that i would recommend doing this long term).
__________________
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
  #179  
Old 09-17-2009, 03:11 PM
SageGk SageGk is offline
Sage Aficionado
 
Join Date: Mar 2008
Posts: 391
Quote:
Originally Posted by jreichen View Post
Do you get repeated prompts if you use Firefox with the public IP? If so could you also post Live HTTP Headers output for me to look at?
It works from Firefox, logs right in.
From my phone it just keeps prompting me for username and p/w.

Last edited by SageGk; 09-17-2009 at 04:02 PM.
Reply With Quote
  #180  
Old 09-17-2009, 08:43 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Quote:
Originally Posted by razrsharpe View Post
in BMT's context.xml file there is no line about authentication = true. I've never been prompted for a password with bmt... one could argue that this not correct and is a bug. Before i researched and figured out the user/password in the realm.properties i set authentication = false in the mobilweb and sagealert context files to access them without a user/pass too (not that i would recommend doing this long term).
Thanks for the info. I'll check with stuckless about why that is.
__________________
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
mobile, 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
Wanted: Developer for Web Interface Mobile Brent SageTV Customizations 249 02-09-2009 11:21 PM
Web Interface Questions SoonerToucan SageTV Customizations 1 09-14-2004 04:16 AM
Web interface possible in the near future? debennett2 SageTV Software 7 06-05-2004 06:51 AM
web interface fmalabre SageTV Beta Test Software 6 04-28-2004 12:57 AM


All times are GMT -6. The time now is 09:54 PM.


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