HTTP ERROR: 503 SERVICE_UNAVAILABLE

Need help? Post your questions here.

Moderator: moderators

HTTP ERROR: 503 SERVICE_UNAVAILABLE

Postby rdemille » Fri Apr 09, 2010 12:31 am

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
rdemille
 
Posts: 1
Joined: Fri Apr 09, 2010 12:26 am

Postby Big_D_271 » Fri Apr 09, 2010 7:19 am

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.
Big_D_271
 
Posts: 8
Joined: Fri Apr 09, 2010 3:07 am

Postby Big_D_271 » Fri Apr 09, 2010 8:00 am

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!?
Big_D_271
 
Posts: 8
Joined: Fri Apr 09, 2010 3:07 am

Postby Big_D_271 » Fri Apr 09, 2010 8:14 am

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.
Big_D_271
 
Posts: 8
Joined: Fri Apr 09, 2010 3:07 am

Postby daniell » Fri Apr 09, 2010 6:44 pm

Have also install Ubuntu 10.04 server Beta2 today, Tomcat6.. (subsonic.war) Work as a dream.. Very fast, no lagging.
daniell
 
Posts: 90
Joined: Fri Nov 13, 2009 6:44 am
Location: Stavanger, Norway

Postby precipitous » Sun Apr 11, 2010 8:23 am

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...
User avatar
precipitous
 
Posts: 91
Joined: Fri Aug 14, 2009 6:43 pm
Location: Santa Barbara CA USA

Postby brianjcohen » Sat May 08, 2010 6:06 am

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.
brianjcohen
 
Posts: 7
Joined: Sun Nov 29, 2009 3:58 pm

Postby utopian » Fri Jul 09, 2010 12:41 pm

i was getting this error today.. stop service/ del db folder then restart got it working again... would like to why it happened tho...
User avatar
utopian
 
Posts: 111
Joined: Sun Feb 14, 2010 3:52 pm

Re: HTTP ERROR: 503 SERVICE_UNAVAILABLE

Postby nspagnuolo » Fri Oct 14, 2011 2:26 am

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
nspagnuolo
 
Posts: 1
Joined: Fri Oct 14, 2011 2:21 am

Re: HTTP ERROR: 503 SERVICE_UNAVAILABLE

Postby tberman333 » Sat Dec 31, 2011 3:06 am

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!
tberman333
 
Posts: 44
Joined: Fri May 18, 2007 9:29 pm
Location: West Hartford, CT - USA

Re: HTTP ERROR: 503 SERVICE_UNAVAILABLE

Postby BKKKPewsey » Sun Jan 01, 2012 5:26 am

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 :|
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Re: HTTP ERROR: 503 SERVICE_UNAVAILABLE

Postby tberman333 » Sun Jan 01, 2012 10:59 pm

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!
tberman333
 
Posts: 44
Joined: Fri May 18, 2007 9:29 pm
Location: West Hartford, CT - USA

Re: HTTP ERROR: 503 SERVICE_UNAVAILABLE

Postby dirk » Sat Feb 04, 2012 9:53 pm

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! :-)
dirk
 
Posts: 1
Joined: Sat Feb 04, 2012 9:48 pm

Re: HTTP ERROR: 503 SERVICE_UNAVAILABLE

Postby spikobg » Mon Mar 12, 2012 4:30 pm

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.
spikobg
 
Posts: 1
Joined: Mon Mar 12, 2012 4:22 pm

Re: HTTP ERROR: 503 SERVICE_UNAVAILABLE

Postby jonnymnemo » Wed Sep 19, 2012 1:33 pm

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
User avatar
jonnymnemo
 
Posts: 70
Joined: Thu Apr 12, 2012 8:11 am


Return to Help

Who is online

Users browsing this forum: No registered users and 15 guests