HTTP ERROR 503

Need help? Post your questions here.

Moderator: moderators

Re: HTTP ERROR 503

Postby mudsharkymon » Fri Mar 20, 2020 10:09 pm

Thank you. The chgs to the .properties file was all that was needed.
Android Subsonic Version: 2018 10 06
Hardware Platform: TrueNAS
mudsharkymon
 
Posts: 58
Joined: Mon May 04, 2009 5:36 am

Re: HTTP ERROR 503

Postby pattirules » Sun May 10, 2020 6:19 pm

i would like to try changing the property value but i am not great at this can anyone explain a step by step for me ? thanks
pattirules
 
Posts: 31
Joined: Sun Jan 01, 2012 6:09 am

Re: HTTP ERROR 503

Postby pattirules » Sat Oct 03, 2020 11:38 pm

got this again anyone else????????????????????????
started today
reinstalled and its still there
did not delete first
any suggestions
anyone else experiencing a problem?
pattirules
 
Posts: 31
Joined: Sun Jan 01, 2012 6:09 am

Re: HTTP ERROR 503

Postby hmathieu » Tue Nov 24, 2020 7:37 pm

I get it at every install (on compute engine Ubuntu or my raspberry pi)

doing this fixes it
sudo update-alternatives --config java then try one of the alternatives (1 or 2)

Should look something like this

Code: Select all
pi@raspberrypi:~ $ sudo update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
------------------------------------------------------------
* 0            /usr/lib/jvm/java-11-openjdk-armhf/bin/java      1111      auto mode
  1            /usr/lib/jvm/java-11-openjdk-armhf/bin/java      1111      manual mode
  2            /usr/lib/jvm/java-8-openjdk-armhf/jre/bin/java   1081      manual mode

Press <enter> to keep the current choice[*], or type selection number: 2
update-alternatives: using /usr/lib/jvm/java-8-openjdk-armhf/jre/bin/java to provide /usr/bin/java (java) in manual mode

pi@raspberrypi:~ $ sudo service subsonic restart
hmathieu
 
Posts: 4
Joined: Sun Nov 22, 2020 4:32 pm

Re: HTTP ERROR 503

Postby Delvekior » Sat Jan 30, 2021 12:14 pm

Hello Everybody,

I'm new in this forum, but I'm also new with Raspbian (I do not know many of the usual commands) and I just installed Subsonic on my Raspberry Pi 4.

I followed instructions from this website https://www.electromaker.io/tutorial/bl ... spberry-pi (install openjdk-8-jre) and so on...

But when I'm connecting to http://localhost:4040 I obtain the same error page as listed in this thread, but as my first contact with Subsonic Interface:
HTTP ERROR: 503
SERVICE_UNAVAILABLE
RequestURI=/

Powered by jetty://


I stopped and started the service several times (and reboot the system) with no luck.

I understood the db may create troubles so I tried a sudo nano /var/subsonic/db/subsonic.propreties that tells me that "Directory "/var/subsonic/db" does not exist".

My /etc/environment has got only one line:
JAVA_HOME=/usr/lib/jvm/jdk-8-oracle-arm-vfp-hflt

My java -version is:
openjdk version "11.0.9.1" 2020-11-04
OpenJDK Runtime Environment (build 11.0.9.1+1-post-Raspbian-1deb10u2)
OpenJDK Server VM (build 11.0.9.1+1-post-Raspbian-1deb10u2, mixed mode)


And the sudo tail /var/subsonic/subsonic_sh.log command returns:
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)
10424 [main] INFO org.mortbay.log - Started SelectChannelConnector@0.0.0.0:4040
Subsonic running on: http://localhost:4040/
10548 [main] INFO org.springframework.remoting.rmi.RmiServiceExporter - Looking for RMI registry at port '9412'
10714 [main] INFO org.springframework.remoting.rmi.RmiServiceExporter - Could not detect RMI registry - creating new one
11164 [main] INFO org.springframework.remoting.rmi.RmiServiceExporter - Binding service 'SubsonicDeployerService' to RMI registry: RegistryImpl[UnicastServerRef [liveRef: [endpoint:[127.0.1.1:9412](local),objID:[0:0:0, 0]]]]
[3611,302s][info][gc] GC(3) Pause Full (System.gc()) 23M->8M(30M) 98,812ms


I do not understand what I did wrong, and I do not really understand how to uninstall a .deb package (I found the wo-to for apt packages).

I really hope I have rightfully introduced myself and someone may help me to understand the trouble and solve it.

Have a nice day!
Delvekior
 
Posts: 2
Joined: Sat Jan 30, 2021 11:45 am

Re: HTTP ERROR 503

Postby Delvekior » Sat Jan 30, 2021 5:03 pm

PS: I checked the sudo update-alternatives --config java options but it didn't work (every of these options does send me the same error)
Delvekior
 
Posts: 2
Joined: Sat Jan 30, 2021 11:45 am

Re: HTTP ERROR 503

Postby epha » Thu Apr 08, 2021 9:59 am

I run Subsonic on an Asustor NAS. Installed it from the App Central. Set it up, worked fine. Until I got the error.
Any ideas how to fix it on an Asustor NAS? Not used to command line fiddling, so please take it easy on me.
epha
 
Posts: 1
Joined: Thu Apr 08, 2021 9:53 am

Re: HTTP ERROR 503

Postby abracadabra » Sat May 29, 2021 6:04 pm

Got this 503 after a fresh install of Subsonic on a Debian machine.
Switched to Java 8 and
Code: Select all
systemctl restart subsonic
but the error was still there.
Manually killing the process and starting the service again fixed it.
abracadabra
 
Posts: 1
Joined: Sat May 29, 2021 6:48 am

Re: HTTP ERROR 503

Postby trssho91 » Wed Jun 16, 2021 5:08 am

I had this recently when I updated my Java to version 16 - Subsonic 6.1.6 doesn't seem to like Java 16. While subsonic works on Java 8 - I couldn't just roll back to Java 8 because I run a minecraft server and a few other services on the same linux server and minecraft java edition 1.17 now requires Java 16. I ended up just downloading a stand alone version of java 8 and putting it in its own new folder under </var/subsonic/java_standalone> . It was the easiest way to fix subsonic with minimal impact to the rest of the server.

I then edited the subsonic.sh file and changed the code below to not use the java path in the JAVA_HOME variable and instead always use its stand alone java path. Anywhere it says ${JAVA_HOME} - change it to the path of the stand alone JAVA 8 folder, like /var/subsonic/java_standalone and /var/subsonic/java_standalone/bin/java respectively. Now subsonic is happily running on its own instance Java 8 while the rest of the system is on Java 16 and all is well and happy. Hopefully that is helpful to someone. Thanks!

# Use JAVA_HOME if set, otherwise assume java is in the path.
JAVA=java
if [ -e "${JAVA_HOME}" ]
then
JAVA=${JAVA_HOME}/bin/java
fi
trssho91
 
Posts: 3
Joined: Mon Aug 25, 2014 2:23 am

Re: HTTP ERROR 503

Postby Nikonerik » Sat Oct 02, 2021 5:50 pm

Oct 2021: I'm on a fully updated Windows 10 system. Used Subsonic on and off for years (10, maybe??). Now I am getting Error 503 on a fresh install of 6.1.6. Java is the newest version.

I'm very frustrated. No old corrupted DBs around that I can find.

This thread is very confusing because of all of the sub-conversations where different operating systems are mentioned. It doesn't help.
Nikonerik
 
Posts: 63
Joined: Wed Oct 10, 2012 1:49 pm

Re: HTTP ERROR 503

Postby hayesti » Wed Oct 06, 2021 3:14 pm

Nikonerik wrote:Oct 2021: I'm on a fully updated Windows 10 system. Used Subsonic on and off for years (10, maybe??). Now I am getting Error 503 on a fresh install of 6.1.6. Java is the newest version.

I'm very frustrated. No old corrupted DBs around that I can find.

This thread is very confusing because of all of the sub-conversations where different operating systems are mentioned. It doesn't help.


Follow the instructions here.
hayesti
 
Posts: 4
Joined: Sun Aug 22, 2021 5:44 pm

Re: HTTP ERROR 503

Postby pattirules » Thu Dec 02, 2021 3:57 pm

[2021-12-02 09:10:40,756] INFO HsqlDaoHelper - Checking database schema.
[2021-12-02 09:15:03,250] ERROR HsqlDaoHelper - Failed to initialize database.
org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: File input/output error: java.io.IOException: org.hsqldb.HsqlException: Unexpected token:
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:21)
at net.sourceforge.subsonic.dao.DaoHelper.init(DaoHelper.java:27)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1414)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
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:132)
at net.sourceforge.subsonic.booter.deployer.SubsonicDeployer.<init>(SubsonicDeployer.java:64)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
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(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.exe4j.runtime.WinLauncher$2.run(Unknown Source)
Caused by: java.sql.SQLException: File input/output error: java.io.IOException: org.hsqldb.HsqlException: Unexpected token:
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(DriverManager.java:664)
at java.sql.DriverManager.getConnection(DriverManager.java:208)
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)
... 80 more

[2021-12-02 09:15:29,542] INFO SettingsService - Java: 1.8.0_152, OS: Windows 10
[2021-12-02 09:15:34,527] INFO VersionService - Resolved local Subsonic version to: 6.1.6



so this just happened after no problems for a couple of years
any suggestions?
pattirules
 
Posts: 31
Joined: Sun Jan 01, 2012 6:09 am

Re: HTTP ERROR 503

Postby bt1ceuk » Sun Jan 23, 2022 4:37 pm

Hi

This has now happened to me on a Windows 10 PC. Do I just have to find an alternative product? I paid for a licence!
bt1ceuk
 
Posts: 2
Joined: Sat Apr 09, 2016 12:22 pm

Re: HTTP ERROR 503

Postby evilmrb » Thu Jan 27, 2022 2:36 pm

Me too after many years of flawless service. I should have added that I'm running Subsonic on Xubuntu 20.04 and that the java -version command gives 17.0.1. I am not sure which fix relates to my situation.

Running the 'sudo update-alternatives --config java' command and switching to Java8 then running 'systemctl restart subsonic' got it working again for me. I don't yet know what the implications are for other stuff using Java.

I'm curious to know what would be needed to make it possible to run normally with Java 17.

Mark B
Last edited by evilmrb on Thu Jan 27, 2022 3:35 pm, edited 2 times in total.
evilmrb
 
Posts: 1
Joined: Thu Jan 27, 2022 2:26 pm

Re: HTTP ERROR 503

Postby G8DHE » Thu Jan 27, 2022 3:00 pm

Have you tried the fixes mentioned on all the previous posts ? Most OS's including WIN10 have been covered.
Geoff G8DHE
Version 6.0 Beta 2
G8DHE
 
Posts: 130
Joined: Sun Nov 04, 2012 4:56 pm

PreviousNext

Return to Help

Who is online

Users browsing this forum: No registered users and 6 guests