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
  #1  
Old 01-17-2006, 12:01 AM
laurenglenn's Avatar
laurenglenn laurenglenn is offline
Sage Expert
 
Join Date: Mar 2003
Location: Levittown, PA
Posts: 601
Send a message via AIM to laurenglenn Send a message via MSN to laurenglenn
Nielm's webserver works with Linux SageTV

I'm so happy that this works with Sage Linux.

Install Webserver version 1.6 into the /opt/sagetv/app directory

add the plugin line like it says on the website.

Go to http://localhost:8080/sage/Home to see what's recording.

I can't see the drop-down menu to jump to other parts, but you can go to:

http://localhost:8080/sage/RecordingSchedule

to see the recording schedule......



Lauren
Reply With Quote
  #2  
Old 01-17-2006, 12:15 AM
laurenglenn's Avatar
laurenglenn laurenglenn is offline
Sage Expert
 
Join Date: Mar 2003
Location: Levittown, PA
Posts: 601
Send a message via AIM to laurenglenn Send a message via MSN to laurenglenn
here are 3 more:

http://localhost:8080/sage/EpgGrid

http://localhost:8080/sage/Search

http://localhost:8080/sage/Recordings

Lauren

Last edited by laurenglenn; 01-17-2006 at 12:24 AM.
Reply With Quote
  #3  
Old 01-17-2006, 02:29 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
Cool (although I am not surprised!)

The only parts of my plugins which will not work well on Linux (working in theory) would be:
The execute external program part of the Dynamic Menu STVI
The execute web browser part of the RSS News STVI
Everything else should be pure OS-independant JAVA or STV code.


Interesting that the menu does not work -- everything should be OS-independant -- can you show the JS errors in Firefox and attach them here pls?
Can you also check the webserver log file in webserver/log/AWS-<date>.log
Can you also try viewing the webserver on the linux server usign a browser on a Windows machine and see if it works there?

Note that windows webserver pages work on linux Firefox (apart from media player), so it is probably a server issue...
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki

Last edited by nielm; 01-17-2006 at 02:59 AM.
Reply With Quote
  #4  
Old 01-17-2006, 06:20 AM
laurenglenn's Avatar
laurenglenn laurenglenn is offline
Sage Expert
 
Join Date: Mar 2003
Location: Levittown, PA
Posts: 601
Send a message via AIM to laurenglenn Send a message via MSN to laurenglenn
Quote:
Cool!
I attached a PNG file with the errors that showed up along with the two log files.

There's only one computer in my apartment, so I can't really login from another.

But it's fully functional and makes it almost like when I was using Windows where I can run other programs now and not have to jump into the GUI as much.

Lauren
Attached Images
File Type: png snapshot1.png (76.3 KB, 581 views)
Attached Files
File Type: txt AWS-20060117_013444.txt (682 Bytes, 449 views)
File Type: txt AWS-20060117_124102.txt (682 Bytes, 410 views)

Last edited by laurenglenn; 01-17-2006 at 06:23 AM.
Reply With Quote
  #5  
Old 01-17-2006, 09:27 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
Quote:
Originally Posted by laurenglenn
I attached a PNG file with the errors that showed up along with the two log files.
Now thats just wierd -- all the firefox errors suggest that the output from the different HTTP requests is getting mixed up?!

The Class Not Found errors suggest that you have a newer servlets.properties with either an old nielm_webserver.jar, or some classes in net/sf/sageplugins/*
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #6  
Old 01-17-2006, 08:28 PM
laurenglenn's Avatar
laurenglenn laurenglenn is offline
Sage Expert
 
Join Date: Mar 2003
Location: Levittown, PA
Posts: 601
Send a message via AIM to laurenglenn Send a message via MSN to laurenglenn
Quote:
Originally Posted by nielm
Now thats just wierd -- all the firefox errors suggest that the output from the different HTTP requests is getting mixed up?!

The Class Not Found errors suggest that you have a newer servlets.properties with either an old nielm_webserver.jar, or some classes in net/sf/sageplugins/*
So should I try erasing the directory and re-extracting 1.6 ? Or is this something that has to be fixed by you?

Thanks,
Lauren
Reply With Quote
  #7  
Old 01-18-2006, 03:37 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
Well, it looks like you are using a webserver 2.x servlets.properties file with a 1.6 webserver classes...

Probably best to do a reinstall of the webserver... Make sure that you delete all the webserver*, Acme, net/sf/sageplugins/webserver and net/sf/sageplugins/sageutils directories before re-extracting.

(Why 1.6? do the 2.x versions not work?)

By the way, which Sage version is the Linux version?
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #8  
Old 01-18-2006, 10:40 AM
laurenglenn's Avatar
laurenglenn laurenglenn is offline
Sage Expert
 
Join Date: Mar 2003
Location: Levittown, PA
Posts: 601
Send a message via AIM to laurenglenn Send a message via MSN to laurenglenn
Thanks!..... The menus showed up now.

I couldn't get v2 to load. It kept giving me an error saying that it could not find the classes.

But 1.6 does work with the menus, which is fine for now.

Thanks again...
Lauren

P.S. Sage Linux version is 4.1.4.1
Reply With Quote
  #9  
Old 01-18-2006, 10:58 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
Quote:
Originally Posted by laurenglenn
I couldn't get v2 to load. It kept giving me an error saying that it could not find the classes.
hmmm.. maybe the linux version does not like the .jar files --
Are there any JARs subdirs of /opt/sagetv/app?
Are there any other .JAR files?
Do you have any logging from the server? If so, does it have a 'classpath=' in it's second line after startup which includes the 2 Jar files that come with the webserver?

Anyway, a workaround for webserver V2
unzip the v2 webserver zip into /opt/sagetv/app as before

cd to /opt/sagetv/app
unzip JARs/nielm_sageutls.jar '*.class'
unzip JARS/nielm_sagewebserver.jar '*.class'
rm JARs/nielm_sageutls.jar JARS/nielm_sagewebserver.jar

This will give you the directory tree of .class files like in 1.6...
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #10  
Old 01-18-2006, 12:05 PM
laurenglenn's Avatar
laurenglenn laurenglenn is offline
Sage Expert
 
Join Date: Mar 2003
Location: Levittown, PA
Posts: 601
Send a message via AIM to laurenglenn Send a message via MSN to laurenglenn
Quote:
Originally Posted by nielm
hmmm.. maybe the linux version does not like the .jar files --
Are there any JARs subdirs of /opt/sagetv/app?
Are there any other .JAR files?
Do you have any logging from the server? If so, does it have a 'classpath=' in it's second line after startup which includes the 2 Jar files that come with the webserver?

Anyway, a workaround for webserver V2
unzip the v2 webserver zip into /opt/sagetv/app as before

cd to /opt/sagetv/app
unzip JARs/nielm_sageutls.jar '*.class'
unzip JARS/nielm_sagewebserver.jar '*.class'
rm JARs/nielm_sageutls.jar JARS/nielm_sagewebserver.jar

This will give you the directory tree of .class files like in 1.6...
Yes. That did it....

I now have a Favorites Manager in the window and the full menus. Thank you.

Lauren
Reply With Quote
  #11  
Old 01-18-2006, 02:03 PM
laurenglenn's Avatar
laurenglenn laurenglenn is offline
Sage Expert
 
Join Date: Mar 2003
Location: Levittown, PA
Posts: 601
Send a message via AIM to laurenglenn Send a message via MSN to laurenglenn
Sage keeps giving me this error though:

Wed 1/18 14:35:31.585 ERROR: Stack pointer is invalid in parser!
java.lang.Exception: Stack trace
at java.lang.Thread.dumpStack(Unknown Source)
at sage.d$a.int(Unknown Source)
at sage.ak.byte(Unknown Source)
at sage.a.a$41.new(Unknown Source)
at sage.ak.a(Unknown Source)
at sage.d.a(Unknown Source)
at sage.SageTV.api(Unknown Source)
at net.sf.sageplugins.sageutils.SageApi.Api(SageApi.java:17)
at net.sf.sageplugins.sageutils.SageApi.StringApi(SageApi.java:105)
at net.sf.sageplugins.webserver.Airing.printAiringTableCell(Airing.java:
280)
at net.sf.sageplugins.webserver.RecordingsServlet.doServletGet(Recording
sServlet.java:236)
at net.sf.sageplugins.webserver.SageServlet.doGet(SageServlet.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at Acme.Serve.ServeConnection.runServlet(Serve.java:1551)
at Acme.Serve.ServeConnection.parseRequest(Serve.java:1526)
at Acme.Serve.ServeConnection.run(Serve.java:1413)
at java.lang.Thread.run(Unknown Source)



The webserver and SageTV seem to be working very well with no problems. But, I thought you might want to know about this.

Thanks,
Lauren
Reply With Quote
  #12  
Old 01-18-2006, 05:42 PM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
yep - that error is why HDTV markers are not showing up -- will be fixed tomorrow
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #13  
Old 11-17-2006, 12:12 PM
Kevintimm Kevintimm is offline
Sage User
 
Join Date: Jan 2006
Posts: 32
Beta 6 Linux

Quote:
Originally Posted by nielm
Anyway, a workaround for webserver V2
unzip the v2 webserver zip into /opt/sagetv/app as before

cd to /opt/sagetv/app
unzip JARs/nielm_sageutls.jar '*.class'
unzip JARS/nielm_sagewebserver.jar '*.class'
rm JARs/nielm_sageutls.jar JARS/nielm_sagewebserver.jar

This will give you the directory tree of .class files like in 1.6...
Would this be the same for the v6 beta? there doesn't seem to be a /opt/sagetv/app directory. I have /opt/sagetv/server would that be the same? I went through the directions using /opt/sagetv/server instead, but wasn't able to get it to work. I'm using the latest beta for sage linux and the latest webserver files.
Reply With Quote
  #14  
Old 11-18-2006, 07:42 AM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
I'm able to run the webserver by extracting the zip download to /opt/sagetv/server. No need to extract the class files separately. The jar files are extracted into the JARs directory and everything else into the webserver directory.
__________________
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
  #15  
Old 11-20-2006, 12:37 PM
Kevintimm Kevintimm is offline
Sage User
 
Join Date: Jan 2006
Posts: 32
I have everything (as far as i can tell) setup properly but still can't seem to get this thing to work. is there a firewall or something on the linux version? maybe something with gentoo? i added the line in sage.properties file (shows up in system info this confirms it right?) tried just about everything. i dont have a web browser on my server, or if i do i dont know how to get to it. server boots only into sage. i can get to the prompt but thats it. i am trying to open the page from another comp on the lan. should be "http://serverip:8080/sage/home" right? where would i even look for errors? can't find anything in any logs. seems like the webserver isnt even starting. i dont know....
Reply With Quote
  #16  
Old 11-20-2006, 09:11 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
There shouldn't be a firewall installed.

Did you try 'http://serverip:8080/sage/Home' where Home has an upper case 'H'? That was an issue for a while but I'm not sure if it still is or not.

Here are the settings from my /opt/sagetv/server/Sage.properties. Yours will vary some depending on whether you're using ssl.
Code:
load_at_startup_runnable_classes=net.sf.sageplugins.webserver.StartServer
nielm/webserver/aliases_file=aliases.properties
nielm/webserver/backlog=
nielm/webserver/bind_address=
nielm/webserver/cgibin_dir=
nielm/webserver/charset=UTF-8
nielm/webserver/enableSageEncoderOpts=false
nielm/webserver/enable_gzip_encoding=true
nielm/webserver/log_access=false
nielm/webserver/log_referrer=false
nielm/webserver/log_user_agent=false
nielm/webserver/port=443
nielm/webserver/realms_file=realms.properties
nielm/webserver/root=webserver
nielm/webserver/rss_ttl_mins=360
nielm/webserver/sage_recordings_includes_archived_files=true
nielm/webserver/servlets_file=servlets.properties
nielm/webserver/session_timeout=
nielm/webserver/ssl_args=-keystorePass keystorepass
nielm/webserver/throttles_file=throttles.properties
nielm/webserver/use_ssl=true
nielm/webserver/video_path_translation_file=paths.properties
In the betas, the SageTV debug log is always on and is located at /opt/sagetv/server/sagetv_0.txt. The web server logs are in /opt/sagetv/server/webserver/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
  #17  
Old 02-17-2007, 07:26 PM
joat joat is offline
Sage User
 
Join Date: Dec 2006
Location: Virginia
Posts: 25
Custom EPG display (URL hack)

Here's a trick to just display the only channels you normally watch. In the EPG display, hover your mouse over the link for the channel (e.g., 3-WTKR) and look at the status bar for the browser (the bottom of the screen) (if it doesn't show at the bottom of the browser, try right-clicking and selecting "Properties"). You should see a value like "startchan=11884". Write down that number. Repeat for all of your other favorite channels, then string them together like the example below in an URL for your browser.

http:// 127.0.0.1:8080/sage/EpgGrid?Channels=11884&Channels=11292&Channels=11957

Don't for get to add the amperand between each of the Channels. When you go to that link, you should have a customized EPG display for only the channels you like to watch.
Reply With Quote
  #18  
Old 05-08-2007, 12:12 PM
slamduncan slamduncan is offline
Sage User
 
Join Date: May 2005
Posts: 17
VlcTranscodeMgr.java:325

Does anyone else have a problem on the recording detailed information page? Stack trace shown below. The stack appears in the "Stream Original Video" box of the page and prevents the page loading properly which is annoying. Any ideas how to fix it please?

Exception while processing servlet:
java.lang.NullPointerException
java.lang.NullPointerException
at net.sf.sageplugins.webserver.VlcTranscodeMgr.readProperties(VlcTranscodeMgr.java:325)
at net.sf.sageplugins.webserver.VlcTranscodeMgr.(VlcTranscodeMgr.java:76)
at net.sf.sageplugins.webserver.VlcTranscodeMgr.getInstance(VlcTranscodeMgr.java:85)
at net.sf.sageplugins.webserver.DetailedInfoServlet.doServletGet(DetailedInfoServlet.java:614)
at net.sf.sageplugins.webserver.SageServlet.doGet(SageServlet.java:75)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at Acme.Serve.ServeConnection.runServlet(Serve.java:1567)
at Acme.Serve.ServeConnection.parseRequest(Serve.java:1542)
at Acme.Serve.ServeConnection.run(Serve.java:1429)
at java.lang.Thread.run(Thread.java:595)
__________________
EPIA M9000, 1GB RAM, 300GB HD, Silverstone LC04 (Black), Hauppauge PVR250, GFX5200 256MB, DVD-RW, Noiseblocker S2 80mm, Red-Eye Serial, Keene RGB->SVID.
EPIA ME6000, 256MB RAM, 80GB HD, Morex Cubid 2699RR (Black), Hauppauge PVR150MCE, CD-ROM
Reply With Quote
  #19  
Old 05-08-2007, 01:09 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
I reported this in the webserver thread. It's fixed in 2.15 but the workaround is easy if you don't want to upgrade.
__________________
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
  #20  
Old 01-06-2008, 02:05 AM
garnold garnold is offline
New Member
 
Join Date: Feb 2007
Posts: 2
Webserver updates

Why is some of the Jar files are being left out of the webserver updates? after version 2.20
the nielm_sageutls.jar and nielm_sagexmlinfo.jar are not included with the 2.21 and 2.22 versions of the webserver download which caused problems with installing the webserver on my Linux box. To fix the problem I just copied new files from 2.22 server over the 2.20 server and the webserver works now on my sage box.

-Glenn
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


All times are GMT -6. The time now is 01:28 AM.


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