Fresh Ubuntu install, Webapp won't connect

Need help? Post your questions here.

Moderator: moderators

Fresh Ubuntu install, Webapp won't connect

Postby cyril0 » Thu Sep 07, 2017 2:47 pm

Hello everyone

I just did a fresh Ubuntu 16.04 install and I installed Subsonic two different ways and neither way worked. First I tried to install the .deb manually after install a JDK but I couldn't get the webapp to connect. I then uninstalled it and just used apt-get to install it and I have the same problem. According to the logs subsonic is running but going to the webpage give me a 500 error. A ps shows me it is running on port 4040 but I get no web UI so it is pretty useless. Telneting to port 4040 responds so there is something happening.

the PS gives me
root 906 1 3 10:25 ? 00:00:25 java -Xmx900m -Dsubsonic.home=/var/subsonic -Dsubsonic.host=0.0.0.0 -Dsubsonic.port=4040 -Dsubsonic.httpsPort=0 -Dsubsonic.contextPath=/ -Dsubsonic.db= -Dsubsonic.defaultMusicFolder=/var/music -Dsubsonic.defaultPodcastFolder=/var/music/Podcast -Dsubsonic.defaultPlaylistFolder=/var/playlists -Djava.awt.headless=true -verbose:gc -jar subsonic-booter-jar-with-dependencies.jar

I have another server on which subsonic is running and a PS looks like this
root 3321 1 1 Aug22 ? 04:54:54 java -Xmx1800m -Dsubsonic.home=/var/subsonic -Dsubsonic.host=0.0.0.0 -Dsubsonic.port=4040 -Dsubsonic.httpsPort=6060 -Dsubsonic.contextPath=/ -Dsubsonic.db= -Dsubsonic.defaultMusicFolder=/var/music -Dsubsonic.defaultPodcastFolder=/var/music/Podcast -Dsubsonic.defaultPlaylistFolder=/var/playlists -Djava.awt.headless=true -verbose:gc -jar subsonic-booter-jar-with-dependencies.jar

So both of the machines are doing the same thing.

I have no idea what is wrong, I have never had trouble installing Subsonic before. Any ideas?

Thank you
cyril0
 
Posts: 10
Joined: Wed Dec 28, 2011 12:08 am

Re: Fresh Ubuntu install, Webapp won't connect

Postby Tak-MK » Thu Sep 07, 2017 2:59 pm

Maybe disable SElinux?
User avatar
Tak-MK
 
Posts: 107
Joined: Thu Dec 22, 2016 3:27 pm

Re: Fresh Ubuntu install, Webapp won't connect

Postby cyril0 » Thu Sep 07, 2017 3:16 pm

OK

That resulted in an improvement still doesn't work but I have new info now. I will start looking in to this unless you have a suggestions

HTTP ERROR: 404

/error.jsp
RequestURI=/error.jsp

Caused by:

java.lang.NoClassDefFoundError: net/sourceforge/subsonic/filter/ParameterDecodingFilter$DecodingServletRequestWrapper
at net.sourceforge.subsonic.filter.ParameterDecodingFilter.doFilter(ParameterDecodingFilter.java:33)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at net.sourceforge.subsonic.filter.BootstrapVerificationFilter.doFilter(BootstrapVerificationFilter.java:61)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
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:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
Caused by: java.lang.ClassNotFoundException: net.sourceforge.subsonic.filter.ParameterDecodingFilter$DecodingServletRequestWrapper
at jdk.internal.loader.BuiltinClassLoader.loadClass(java.base@9-internal/BuiltinClassLoader.java:366)
at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(java.base@9-internal/ClassLoaders.java:184)
at java.lang.ClassLoader.loadClass(java.base@9-internal/ClassLoader.java:419)
at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:375)
at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337)
... 18 more
cyril0
 
Posts: 10
Joined: Wed Dec 28, 2011 12:08 am

Re: Fresh Ubuntu install, Webapp won't connect

Postby Tak-MK » Fri Sep 08, 2017 11:14 am

Try to disable it permanently at /etc/selinux/config, and changing the option to SELINUX=disabled. And then reboot the system or even reinstall subsonic, that 404 is a bit weird.
User avatar
Tak-MK
 
Posts: 107
Joined: Thu Dec 22, 2016 3:27 pm

Re: Fresh Ubuntu install, Webapp won't connect

Postby cyril0 » Sat Sep 09, 2017 12:57 am

I've done this and now I am back to the

This page isn’t working

192.168.0.189 is currently unable to handle this request.
HTTP ERROR 500
cyril0
 
Posts: 10
Joined: Wed Dec 28, 2011 12:08 am

Re: Fresh Ubuntu install, Webapp won't connect

Postby cyril0 » Sat Sep 09, 2017 1:06 am

If I am on the actual linux machine and use the browser to connect to subsonic I get a blank page and it throws no error. Chrome on my laptop throws the above error.
cyril0
 
Posts: 10
Joined: Wed Dec 28, 2011 12:08 am


Return to Help

Who is online

Users browsing this forum: No registered users and 19 guests