Page 1 of 1

How do you avoid error 503 when restarting Linux?

PostPosted: Sat Jul 04, 2015 11:43 pm
by pat58
Using Linux Mint 17.2, but this has been happening since I began using Linux with Mint 17. Whenever I restart my laptop, I try accessing subsonic, but get a 503 error--service unavailable. At this point, I stop subsonic, rename db directory, & restart subsonic so a new database is created (as has been suggested on this site & elsewhere). I have done this many times, but try at all costs to leave my laptop charged & running. Is there any way/workaround to avoid having subsonic go into the 503 error when restarting? I have tried stopping subsonic before restarting my laptop, then restarting subsonic after restarting the laptop, but that does not seem to work. :cry:

Re: How do you avoid error 503 when restarting Linux?

PostPosted: Wed Jul 08, 2015 6:26 pm
by pat58
I have set a static ip address--would that affect subsonic on restart?

Re: How do you avoid error 503 when restarting Linux?

PostPosted: Sun Dec 13, 2015 6:24 pm
by envoy510
Having the same issue today. I stopped subsonic. Upgraded from CentOS 7.1 to 7.2. Rebooted. Started subsonic and I get the 503.

This is very very annoying, as I don't think we've done anything wrong...

Re: How do you avoid error 503 when restarting Linux?

PostPosted: Sun Dec 13, 2015 6:25 pm
by envoy510
pat58 wrote:I have set a static ip address--would that affect subsonic on restart?


No.

Re: How do you avoid error 503 when restarting Linux?

PostPosted: Sun Dec 13, 2015 6:27 pm
by envoy510
For me, I've narrowed it down to the file /var/subsonic/db/subsonic.script. If I move it out of the way, then subsonic starts, otherwise I get the 503.

Ideas?

Re: How do you avoid error 503 when restarting Linux?

PostPosted: Sun Dec 13, 2015 7:07 pm
by envoy510
I've further narrowed it down to one of the 2206 lines of "INSERT INTO PODCAST_EPISODE VALUES(...)" in subsonic.script.

I had previously added the "INSERT INTO PODCAST_CHANNEL VALUES(...)" lines, after stopping the server, and upon starting again I have all the Podcasts back, just not all the episodes I had downloaded.

Anyone know how to further debug the crash to find the offending PODCAST_EPISODE line??

Re: How do you avoid error 503 when restarting Linux?

PostPosted: Sun Dec 13, 2015 7:15 pm
by envoy510
OK, so this worked:

Code: Select all
# stop server
grep PODCAST db.old/subsonic.script | grep DougLovesMovies >> db/subsonic.script
# start server


Now I have the Podcast and episodes of DLM.

Re: How do you avoid error 503 when restarting Linux?

PostPosted: Sun Dec 13, 2015 7:36 pm
by envoy510
envoy510 wrote:OK, so this worked:

Code: Select all
# stop server
grep PODCAST db.old/subsonic.script | grep DougLovesMovies >> db/subsonic.script
# start server


Now I have the Podcast and episodes of DLM.


I iteratively did this for each podcast I cared about (5 out of 20 or so) and it starts up fine. For the rest, I just did the "INSERT INTO PODCAST_CHANNEL" and didn't do the episodes and everything is working OK.

A very frustrating experience, I'd say. I can tell you I'll be doing regular backups of my db directory, especially before upgrades.