SageTV Community

SageTV Community (http://forums.sagetv.com/forums/index.php)
-   SageTV v7 Customizations (http://forums.sagetv.com/forums/forumdisplay.php?f=47)
-   -   Plugin: Web UI for v7 (http://forums.sagetv.com/forums/showthread.php?t=48458)

jreichen 05-20-2010 06:22 PM

Plugin: Web UI for v7
 
The Jetty build of Nielm's web interface is available in the v7 Plugin Repository. Look for "SageTV Web Interface". It's essentially a repackaging of the current 2.26 beta but is considered stable. It will have a few minor enhancements to support new v7 features. Auto conversion of favorites is already included and one or two more still need to be done.

jarredduq 05-21-2010 09:50 AM

I installed the 2.26 via the plugin page, but when I browse to the server, it is still showing as 2.25. I had 2.25 installed under v6. I assumed that 2.26 would overwrite the 2.25.

Thanks!

jreichen 05-21-2010 10:53 AM

This question came up over in the mobile web ui thread. Please check over there and join the troubleshooting :)

Thanks.

GKusnick 05-21-2010 03:54 PM

Can we get a config option (here or in the Jetty plugin) to set the deployment directory to someplace other than %TEMP%? I understand about the file-locking issue, but I need to put it elsewhere to keep it from being deleted by automated cleanup tools.

jreichen 05-21-2010 09:57 PM

I looked at Jetty's code a while ago and there are several options for how the war is extracted and located. The only option that avoids file-locking is the one that writes to the system's temp directory. I'll do some more research, but I think it will require me writing a subclass and each web app modifying their context.xml to use my subclass :(

CanadianEh 05-22-2010 01:05 PM

Time for my 10,294th dumb question of the day....

What is the URL to access this, once installed?

GKusnick 05-22-2010 01:08 PM

http://yourserver:yourport/sage

GKusnick 05-22-2010 01:19 PM

Quote:

Originally Posted by jreichen (Post 425615)
I looked at Jetty's code a while ago and there are several options for how the war is extracted and located. The only option that avoids file-locking is the one that writes to the system's temp directory. I'll do some more research, but I think it will require me writing a subclass and each web app modifying their context.xml to use my subclass :(

Just to be clear, I'm not asking for a fix to the file-locking issue. All I want (at the moment) is the option to move my deployment out of the temp directory and accept the file-locking issue as the lesser of two evils. I can do that now by manually editing the context file, but I have to redo the edit every time I upgrade the plugin. What I'd like is a sanctioned way of doing it that doesn't involve manually editing config files, so that the setting sticks across upgrades.

ytulpan 05-23-2010 01:36 AM

How do I set an empty userid/password ? the UI does not allow for this.

jreichen 05-23-2010 06:50 PM

The standard configuration is designed to be secure and support the most common setups. You might be able to modify jetty/etc/realm.properties to remove the user and password but I haven't tried it. Remember to restart Jetty from the Plugin Manager after modifying that file.

Naylia 05-24-2010 05:59 PM

I'm having trouble with RSS feeds for mp4 files. I converted an mpg to mp4, so now both are available. When I perform a search both files show up in the Web UI. However, if I generate an RSS file that includes the mp4 file I get this error:

Quote:

Exception while generating RSS:
viecili.jrss.generator.elem.InvalidRequiredParamException: type required: null
viecili.jrss.generator.elem.InvalidRequiredParamException: type required: null
at viecili.jrss.generator.elem.Item$Enclosure.(Item.java:241)
at net.sf.sageplugins.webserver.RssServlet.AddShowsToChannel(RssServlet.java:159)
at net.sf.sageplugins.webserver.RssServlet.doServletGet(RssServlet.java:76)
at net.sf.sageplugins.webserver.SageServlet.doGet(SageServlet.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:389)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.handler.rewrite.RewriteHandler.handle(RewriteHandler.java:230)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)
if I alter my RSS feed such that the mp4 file is excluded from the results, it generates the feed just fine.

http://donna.is-a-chef.com:8080/sage...filename=*.mpg

vs

http://donna.is-a-chef.com:8080/sage...chType=TVFiles

Feel free to access the RSS feeds and play with the paramaters, anything I enter that includes the mp4 files in my library barfs.

Compressed mp4 files are located in a different directory from normal SageTV Recordings if that matters.

Any thoughts?

Stuntman 05-24-2010 10:03 PM

Quote:

Originally Posted by jreichen (Post 426305)
The standard configuration is designed to be secure and support the most common setups. You might be able to modify jetty/etc/realm.properties to remove the user and password but I haven't tried it. Remember to restart Jetty from the Plugin Manager after modifying that file.

I've forgotten my password and the plugin won't let me reset it to any default.. can I force it to blank via the realm.properties.. or at least to some sort of default that I can alter?

jreichen 05-24-2010 10:41 PM

Quote:

Originally Posted by Naylia (Post 426628)
I'm having trouble with RSS feeds for mp4 files. I converted an mpg to mp4, so now both are available. When I perform a search both files show up in the Web UI. However, if I generate an RSS file that includes the mp4 file I get this error:

if I alter my RSS feed such that the mp4 file is excluded from the results, it generates the feed just fine.

I think it's because Jetty does not come with a mime-type for mp4. I can add one but for now you can add your own by following these instructions.

jreichen 05-24-2010 10:43 PM

Quote:

Originally Posted by Stuntman (Post 426700)
I've forgotten my password and the plugin won't let me reset it to any default.. can I force it to blank via the realm.properties.. or at least to some sort of default that I can alter?

Yes you can modify the realm.properties by hand to something like
Code:

sage: frey,user
You'll need to restart Sage or restart Jetty in the plugin manager for that to take effect.

VCRUser 05-24-2010 11:00 PM

I'm using the non-Jetty version with Sage 6.6. When I move to 7 will I have to use Jetty, and if so, where can I find more info about what it is, how to use, etc.? Or can I keep using what I have with v7?

jreichen 05-24-2010 11:05 PM

You can still use the non-Jetty version with Sage 7 but you won't be able to update it using the plugin manager.

Naylia 05-25-2010 01:19 AM

Quote:

Originally Posted by jreichen (Post 426709)
I think it's because Jetty does not come with a mime-type for mp4. I can add one but for now you can add your own by following these instructions.

Thanks, that worked. Just had to tweak the instructions a bit. Looking at the context.xml for Nielm's web server it showed that it wanted the mime.types folder in the SageTV/webserver folder instead of in SageTV/jetty/users.

Stuntman 05-25-2010 11:09 AM

Quote:

Originally Posted by jreichen (Post 426711)
Yes you can modify the realm.properties by hand to something like
Code:

sage: frey,user
You'll need to restart Sage or restart Jetty in the plugin manager for that to take effect.

Great, thanks! I've done that now..

I guess a bigger problem is that Jetty doesn't seem to start! The Sage7 GUI shows it is installed, along with SRE and the Web Interface.. but nothing is being logged by Jetty or SRE.. and the server isn't serving pages...

Any clue I could look for as to why that service/function isn't starting?

Thanks for your continued help.. to all of us!

Slugger 05-25-2010 07:45 PM

Quote:

Originally Posted by Stuntman (Post 426858)
Great, thanks! I've done that now..

I guess a bigger problem is that Jetty doesn't seem to start! The Sage7 GUI shows it is installed, along with SRE and the Web Interface.. but nothing is being logged by Jetty or SRE.. and the server isn't serving pages...

Any clue I could look for as to why that service/function isn't starting?

Thanks for your continued help.. to all of us!

Check your JARs folder for duplicate jars (multiple copies of jetty jars). This is usually the #1 cause of Jetty problems.

rrhorer 05-25-2010 08:34 PM

Quote:

Originally Posted by Slugger (Post 427066)
Check your JARs folder for duplicate jars (multiple copies of jetty jars). This is usually the #1 cause of Jetty problems.

There may be some confusion on what a duplicate jar is. In my case, the file names, although not exact duplicates (they had different version numbering within the file names) were causing the problem as described. I removed all "functional" duplicates, refering to the install date for additional confirmation. It worked fine after removing these files.


All times are GMT -6. The time now is 08:51 PM.

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