HTTP Error 404

Need help? Post your questions here.

Moderator: moderators

HTTP Error 404

Postby Funk#49 » Tue Feb 22, 2011 1:27 am

I had SubSonic up and running for a couple days, now I get an HTTP error from external and internal browsers.

Downloaded the AIR app and it hasn't worked since.

My domain is: http://nicksmusic.subsonic.org

Thanks.
Funk#49
 
Posts: 5
Joined: Sun Feb 20, 2011 2:42 pm

Postby GJ51 » Tue Feb 22, 2011 1:58 am

Try rebooting both your router and your server.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby Funk#49 » Tue Feb 22, 2011 4:07 am

I have rebooted both and still get the same error.
Funk#49
 
Posts: 5
Joined: Sun Feb 20, 2011 2:42 pm

Postby GJ51 » Tue Feb 22, 2011 3:44 pm

Check your internal IP address, your port forwarding rules and your port # assignment in SS Control Panel. What happens when you try "Open Subsonic in Browser" command from the SS tray icon?

http://en.wikipedia.org/wiki/HTTP_404

A 404 error is often returned when pages have been moved or deleted. In the first case, a better response is to return a 301 Moved Permanently response, which can be configured in most server configuration files, or through URL rewriting; in the second case, a 410 Gone should be returned. Because these two options require special server configuration, most websites do not make use of them.

404 errors should not be confused with DNS errors, which appear when the given URL refers to a server name that does not exist. A 404 error indicates that the server itself was found, but that the server was not able to retrieve the requested page.

You may need to reinstall SS.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby Funk#49 » Wed Feb 23, 2011 2:44 pm

Thank, GJ. The fresh install did the trick.

Any insight into what would cause that? I'm just curious; I'm new to mesing around with my home network and I want to start developing one because I have ALOT of media that I'd like to take full advantage of.
Funk#49
 
Posts: 5
Joined: Sun Feb 20, 2011 2:42 pm

Postby GJ51 » Wed Feb 23, 2011 5:36 pm

Most likely something in the website setup got corrupted. Hard to tell what caused it, perhaps an improper shutdown.

One of the most fun aspects of usiong SS is that it really forces a user to learn the ins and outs of network management. Let's face it, home networks aren't going to get smaller. I tell everyone, "My home IS my network." SS is a great application that demonstrates the power and benefits of learning home network management. I'd suggest that you might want to find one of my numerous posts that detail the whole SS set up process, and give it a good read at your liesure. There's a ton of good information there that will help you increase your skill level. Let me know if you have specific questions.

Here's a link to one of them: http://forum.subsonic.org/forum/viewtop ... ght=#22176
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Re: HTTP Error 404

Postby Joebob » Sun Oct 13, 2013 4:00 am

One thing to note on this... I realize this is an old post but it may help someone as this is the top Google result for the error message. I got this error after attempting to set up HTTPS.



After attempting to simply set the port-usage for https, I got this error and diagnosed it with the help of the following log entry. This was in /var/subsonic/subsonic_sh.log

32246 [main] INFO org.springframework.web.servlet.DispatcherServlet - FrameworkServlet 'subsonic': initialization completed in 565 ms
32257 [main] WARN org.mortbay.log - failed SelectChannelConnector@0.0.0.0:80
java.net.SocketException: Permission denied
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:174)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:139)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:77)
at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:211)
at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:309)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at org.mortbay.jetty.Server.doStart(Server.java:228)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at net.sourceforge.subsonic.booter.deployer.SubsonicDeployer.deployWebApp(SubsonicDeployer.java:131)
at net.sourceforge.subsonic.booter.deployer.SubsonicDeployer.<init>(SubsonicDeployer.java:65)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
at net.sourceforge.subsonic.booter.Main.<init>(Main.java:24)
at net.sourceforge.subsonic.booter.Main.main(Main.java:63)


Effectively I had left in the line "--port=80" in the ARGS portion of the /etc/default/subsonic file. Unfortunately I removed Subsonic from running as root. This caused conflicts, I accept https over 4040 (rather than rewrite all my NAT rules), and this left http to just standard ports, but the service is not running as root and does not have access to bind to standard ports.

With that in mind, I just set the standard http to a high 18,000 number port and all is well now, no more conflicts, everything binds successfully.

Hope this helps someone, it was a quick fix thanks to the logs! If you are getting a 404 error for any reason, validate from the logs and see if Java's throwing a WARN message for any reason, might point you in the right direction
Joebob
 
Posts: 1
Joined: Sun Oct 13, 2013 3:56 am


Return to Help

Who is online

Users browsing this forum: No registered users and 16 guests