Page 1 of 1

HTTP ERROR: 503 SERVICE_UNAVAILABLE

PostPosted: Fri Apr 09, 2010 12:31 am
by rdemille
I apologize in advance that I am not highly skilled in networking. I had everything working great last week, then I notice a song was continuously being download to my moto droid. Went to PC and clicked on http://localhost/ and got nothin but the error in the subject line. Not sure what happened. Try restarting services and reinstalling with no luck. If this is simple I apologize...help?

btw. Updated java and I'm running firefox browser on Win XP

PostPosted: Fri Apr 09, 2010 7:19 am
by Big_D_271
I also just experienced this on my Ubuntu 10.04 installation. Seemed to give this error after I did some updates to Ubuntu. Things were working fine. I will likely try to uninstall, and re-install.

PostPosted: Fri Apr 09, 2010 8:00 am
by Big_D_271
Big_D_271 wrote:I also just experienced this on my Ubuntu 10.04 installation. Seemed to give this error after I did some updates to Ubuntu. Things were working fine. I will likely try to uninstall, and re-install.


Just tried to completely remove, and re-install from the .deb package on Ubuntu 10.04. I cannot get the webpage!

Started service with "sudo /etc/init.d/subsonic start" .. checked that is was running with "ps -ef | grep subsonic" ... it's running with defaults.

Arrrggg!... perhaps I need to wait until Ubuntu 10.04 comes out of Beta!?

PostPosted: Fri Apr 09, 2010 8:14 am
by Big_D_271
Ok... so I think i got it...

Had to delete the database (/var/subsonic/db) folder. and things were off and working again. That would have probably fixed this in the first place, but I didn't know where the database was at the time.

PostPosted: Fri Apr 09, 2010 6:44 pm
by daniell
Have also install Ubuntu 10.04 server Beta2 today, Tomcat6.. (subsonic.war) Work as a dream.. Very fast, no lagging.

PostPosted: Sun Apr 11, 2010 8:23 am
by precipitous
Experienced the exact same problem after installing new updates to Ubuntu Lucid Beta 2.

Ended up resolving the issue by renaming the db folder. Of course this meant that I had to re-do all of my settings, user accounts, etc. But that is a small price to pay to have Subsonic back.

Thanks for pointing me in the right direction Big_D_271...

PostPosted: Sat May 08, 2010 6:06 am
by brianjcohen
You actually have to delete (or rename) the db/ folder and then restart Subsonic (sudo service subsonic restart) for it to work. Hope this helps.

PostPosted: Fri Jul 09, 2010 12:41 pm
by utopian
i was getting this error today.. stop service/ del db folder then restart got it working again... would like to why it happened tho...

Re: HTTP ERROR: 503 SERVICE_UNAVAILABLE

PostPosted: Fri Oct 14, 2011 2:26 am
by nspagnuolo
you can avoid losing all of your settings by doing the following
1. rename the subsonic/db directory
2. stop and start subsonic service so the db directory is recreated. note, the first time i tried this subsonic said it was not available for maintenance. a few min later it was done creating the new db folder
3. stop subsonic and copy the subsonic.script file from the backup db directory created in step 1 into the newly created db folder
4. restart subsonic

enjoy :D

Re: HTTP ERROR: 503 SERVICE_UNAVAILABLE

PostPosted: Sat Dec 31, 2011 3:06 am
by tberman333
I had a power failure (abnormal shutdown of my Ubuntu machine running 11.10) and started getting this error message....

I was able to rename my db folder, stop and restart Subsonic and was able to connect... the problem is I lost all my settings (I would really like to avoid losing everything).

I followed the instructions by nspagnuolo, but everytime I copy either the subsonic.script file (or even just the data within that file using a text editor) I start getting the 503 error message again.

I would really like to avoid losing all my settings and users in Subsonic...

As a note, all that is in my subsonic.script file is this:

CREATE SCHEMA PUBLIC AUTHORIZATION DBA
SET WRITE_DELAY 10

Does anyone know anyway to get my settings from a backup (I do have a file called subsonic.backup in the db directory)?

Any help would be greatly appreciated!

Thanks!

Re: HTTP ERROR: 503 SERVICE_UNAVAILABLE

PostPosted: Sun Jan 01, 2012 5:26 am
by BKKKPewsey
tberman333 wrote:As a note, all that is in my subsonic.script file is this:

CREATE SCHEMA PUBLIC AUTHORIZATION DBA
SET WRITE_DELAY 10

I think you may have a problem :(
My script file has 780 lines of code in it so yours appears to be a bit lacking!
It looks like yours got zapped on the re-boot.

NOTICE TO ALL
For future reference all the settings, users, passwords etc are stored in that file so it may be a good idea to do a periodic save/backup of that file if you have lots of users.

Sorry that isn't much help to the OP :|

Re: HTTP ERROR: 503 SERVICE_UNAVAILABLE

PostPosted: Sun Jan 01, 2012 10:59 pm
by tberman333
BKKKPewsey wrote:I think you may have a problem :(
My script file has 780 lines of code in it so yours appears to be a bit lacking!
It looks like yours got zapped on the re-boot.

NOTICE TO ALL
For future reference all the settings, users, passwords etc are stored in that file so it may be a good idea to do a periodic save/backup of that file if you have lots of users.

Sorry that isn't much help to the OP :|


Thanks for the help. I ended up recreating the users. In the future, I am going to be sure to backup that file!

Re: HTTP ERROR: 503 SERVICE_UNAVAILABLE

PostPosted: Sat Feb 04, 2012 9:53 pm
by dirk
Got the same problem with a Ubuntu 11.10 and Subsonic 4.6

After deleting the db-folder the problem was solved, but all my settings were lost... :(

But after that Subsonic seems to be a bit faster! :-)

Re: HTTP ERROR: 503 SERVICE_UNAVAILABLE

PostPosted: Mon Mar 12, 2012 4:30 pm
by spikobg
Hey guys i just got this error few hours ago, after restarting my service, cause of another java error and i came across this post hoping to find a solution for my problem but since there is non provided i fixed it on my own.

I checked the error log and i found out the subsonic itself cannot list on port 4040. In netstat/etc my subsonic was at CLOSE_WAIT status , but when I griped more deeply with
Code: Select all
sudo netstat -anp|grep :4040
i found out there is some backend process running on the port which is most likely connected to the old subsonic PID or whatever.

your netstat table should be looking something like:

Code: Select all
tcp6       0      0 :::4040                 :::*                    LISTEN      27050/java     
tcp6     642      0 192.168.1.111:4040      192.168.1.101:56144     CLOSE_WAIT  8466/java


kill that mofo with
Code: Select all
sudo kill -9 <PID>
in my case sudo kill -9 27050 then stop the subsonic service from sudo /etc/init.d/subsonic stop , netstat grep again to see if port 4040 is free (with the command above) and start it again with sudo /etc/init.d/subsonic start :)

this should be working now. in case it is not follow the previous steps before doing so and delete the /var/subsonic/db files. I did it myself but it didn't help but when i killed that PID and restarted subsonic, everything worked as a charm. sadly i have lost my setting configurations cause of the /var/subsonic/db deletion so avoid that if possible :)

cheers.

Re: HTTP ERROR: 503 SERVICE_UNAVAILABLE

PostPosted: Wed Sep 19, 2012 1:33 pm
by jonnymnemo
nspagnuolo wrote:you can avoid losing all of your settings by doing the following
1. rename the subsonic/db directory
2. stop and start subsonic service so the db directory is recreated. note, the first time i tried this subsonic said it was not available for maintenance. a few min later it was done creating the new db folder
3. stop subsonic and copy the subsonic.script file from the backup db directory created in step 1 into the newly created db folder
4. restart subsonic

enjoy :D


Sometimes the script file itsel causes the crash.
In this case, you can still recreate the users very easily :
- open the old script file
- select the lines you want to keep (INSERT INTO MUSIC_FOLDER VALUES... INSERT INTO USER VALUES... INSERT INTO USER_ROLE VALUES ... INSERT INTO USER_SETTINGS VALUES ...)
- in your subsonic webpage, replace "index.view" with "db.view"
- paste the selected lines

Now you should have your old settings