Page 1 of 1

'HTTP ERROR: 503' when trying to access web interface.

PostPosted: Wed Feb 03, 2016 7:45 pm
by TheJakalope
Problem Description: So, a week or two ago, my phone app stopped being able to stream uncached music. I went to investigate on my computer and found that when I go to my subsonic server on the web, I get this: https://i.imgur.com/6vEcgwu.jpg
According to the Subsonic Music Streamer, all is good and the icon is green and it says Running.
Troubleshooting Steps: I have restarted the service. I have uninstalled and reinstalled the service.
Playback Application and version: The first issue I need to resolve is just through the Web Interface.
Subsonic Version: I downloaded the Windows Version that is updated as of now.
Server Version: Not sure? Can't access web interface.
Hardware Platform: Windows 7
Java Memory Limit: 150mb
Problem Filename: N/A
Output from ffmpeg -i: N/A
Last ten log file lines: Can't access.

Any help would be greatly appreciated. I paid for the license and love the service, but can't get it to work anymore.

Re: 'HTTP ERROR: 503' when trying to access web interface.

PostPosted: Thu Feb 18, 2016 11:57 pm
by idrivetoomuch
I'm having this same problem with mine--about the same time frame too.

I get the same 503 error trying the localhost:4040 on the desktop running the server; from another laptop on the LAN using the internal IP, from an external network using the external IP, and my phone app says, "Connection Failure. Didn't understand the reply. Please check the server address."

Same hardware set up, i've double checked that the ports are forwarded, reinstalled, clean installed.

Re: 'HTTP ERROR: 503' when trying to access web interface.

PostPosted: Sat Feb 20, 2016 8:47 pm
by gbfam
same issue for me, was oblige to delete everything .... all a wek end ....

Re: 'HTTP ERROR: 503' when trying to access web interface.

PostPosted: Mon Feb 22, 2016 4:58 pm
by ibot
I guess your database is broken. Have a look into
Code: Select all
/var/subsonic/subsonic.log
One solution is to stop subsonic service, delete the /var/subsonic/db directory and start subsonic service again. The problem is that all your data (playlists, users, ...) will be gone.
There are a lot of messages about 503 and broken databases. It seems like one of the major problem of subsonic. I have no idea why the db is that fragile.

Re: 'HTTP ERROR: 503' when trying to access web interface.

PostPosted: Mon Feb 22, 2016 11:08 pm
by idrivetoomuch
I guess your database is broken. Have a look into
CODE: SELECT ALL
/var/subsonic/subsonic.log
One solution is to stop subsonic service, delete the /var/subsonic/db directory and start subsonic service again. The problem is that all your data (playlists, users, ...) will be gone.
There are a lot of messages about 503 and broken databases. It seems like one of the major problem of subsonic. I have no idea why the db is that fragile.


HAHA! It worked! I deleted the whole c:\subsonic\db and c:\subsonic\db.backup folders, started the server and I can reach the login via localhost:4040; internal desktop IP; internal phone app; and external phone app.

Thank you :D :D

Re: 'HTTP ERROR: 503' when trying to access web interface.

PostPosted: Tue Mar 08, 2016 2:28 pm
by HighCast
Deleting the DB aint no option, this issue must be fixed by some better manner.

My system says "out of memory" when jdbc tries to bring up the connection..long paste incoming!

Code: Select all
[2016-03-05 10:55:55,817] INFO HsqlDaoHelper - Checking database schema.
[2016-03-05 10:55:56,324] ERROR HsqlDaoHelper - Failed to initialize database.
org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: error in script file line: 71 out of memory
   at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:82)
   at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:382)
   at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:429)
   at net.sourceforge.subsonic.dao.schema.hsql.Schema25.execute(Schema25.java:39)
   at net.sourceforge.subsonic.dao.HsqlDaoHelper.checkDatabase(HsqlDaoHelper.java:124)
   at net.sourceforge.subsonic.dao.HsqlDaoHelper.<init>(HsqlDaoHelper.java:77)
   at net.sourceforge.subsonic.dao.DaoHelperFactory.create(DaoHelperFactory.java:29)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:115)
   at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:435)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:903)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:817)
   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.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
   at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
   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.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
   at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:530)
   at org.mortbay.jetty.servlet.Context.startContext(Context.java:135)
   at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218)
   at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)
   at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
   at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
   at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
   at org.mortbay.jetty.Server.doStart(Server.java:217)
   at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
   at net.sourceforge.subsonic.booter.deployer.SubsonicDeployer.deployWebApp(SubsonicDeployer.java:135)
   at net.sourceforge.subsonic.booter.deployer.SubsonicDeployer.<init>(SubsonicDeployer.java:65)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
   at java.lang.reflect.Constructor.newInstance(Unknown Source)
   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)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
   at com.exe4j.runtime.WinLauncher$2.run(Unknown Source)
Caused by: java.sql.SQLException: error in script file line: 71 out of memory
   at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
   at org.hsqldb.jdbc.jdbcConnection.<init>(Unknown Source)
   at org.hsqldb.jdbcDriver.getConnection(Unknown Source)
   at org.hsqldb.jdbcDriver.connect(Unknown Source)
   at java.sql.DriverManager.getConnection(Unknown Source)
   at java.sql.DriverManager.getConnection(Unknown Source)
   at org.springframework.jdbc.datasource.DriverManagerDataSource.getConnectionFromDriverManager(DriverManagerDataSource.java:174)
   at org.springframework.jdbc.datasource.DriverManagerDataSource.getConnectionFromDriver(DriverManagerDataSource.java:165)
   at org.springframework.jdbc.datasource.AbstractDriverBasedDataSource.getConnectionFromDriver(AbstractDriverBasedDataSource.java:149)
   at org.springframework.jdbc.datasource.AbstractDriverBasedDataSource.getConnection(AbstractDriverBasedDataSource.java:119)
   at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:113)
   at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:79)
   ... 83 more

[2016-03-05 10:55:56,582] INFO SettingsService - Java: 1.8.0_73, OS: Windows 10
[2016-03-05 10:55:56,674] INFO VersionService - Resolved local Subsonic version to: 6.0.beta1


The error does not tell that computer runs out of memory, but the process itself leaks it to somewhere - or does not release it. Restarting of the computer does not help.
This never happened with the last version, seems like 6.0 Beta has some issues with db integrity.

Hoping to get a solution for this.

Re: 'HTTP ERROR: 503' when trying to access web interface.

PostPosted: Fri Mar 11, 2016 9:27 am
by CaddyGuy
Sharing my findings.
Running Windows 7 64 Bit
I am running 5.3 (build 4569), spare computer only used for serving my music and some movies to my phone mostly.
It was working fine yesterday, and this morning when I left for work It would not connect with a "Didn't understand the reply" error on my phone. When I got home I made sure port forwarding and what not didn't go wonky. I tried connecting to the local host on the machine itself and got the "HTTP ERROR: 503". After a bit of searching around and trying to uninstall a Windows Update that installed itself last night, I found an old thread (versions 3 mostly and one person chimed in with 5.0) and took a look at the log. I saw those database issues. I opened up task manager and killed subsonic, then navigated to "C:\subsonic". I made a copy of the "db" folder and the "db.backup" folder for safe keeping. Then I deleted the "db" folder and renamed the "db.backup" folder to "db". Launched subsonic, tried to connect to local host, but it didn't go, so I opened the "Subsonic Control Panel" and stopped the service, waited a few seconds, then restarted the service and clicked the "Server address" link towards the bottom. The browser then popped right up to the Subsonic login screen. I tried my phone and it connected right up.

It turns out the computer installed a .net framework update last night. When it restarted it must have corrupted the database.

Doing This I didn't lose any data at all, all my playlists and login info and everything was all good.