How do you avoid error 503 when restarting Linux?

Need help? Post your questions here.

Moderator: moderators

How do you avoid error 503 when restarting Linux?

Postby pat58 » Sat Jul 04, 2015 11:43 pm

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:
pat58
 
Posts: 17
Joined: Sun Aug 24, 2014 12:31 am

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

Postby pat58 » Wed Jul 08, 2015 6:26 pm

I have set a static ip address--would that affect subsonic on restart?
pat58
 
Posts: 17
Joined: Sun Aug 24, 2014 12:31 am

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

Postby envoy510 » Sun Dec 13, 2015 6:24 pm

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...
envoy510
 
Posts: 38
Joined: Sun Dec 18, 2011 2:10 am

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

Postby envoy510 » Sun Dec 13, 2015 6:25 pm

pat58 wrote:I have set a static ip address--would that affect subsonic on restart?


No.
envoy510
 
Posts: 38
Joined: Sun Dec 18, 2011 2:10 am

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

Postby envoy510 » Sun Dec 13, 2015 6:27 pm

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?
envoy510
 
Posts: 38
Joined: Sun Dec 18, 2011 2:10 am

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

Postby envoy510 » Sun Dec 13, 2015 7:07 pm

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??
envoy510
 
Posts: 38
Joined: Sun Dec 18, 2011 2:10 am

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

Postby envoy510 » Sun Dec 13, 2015 7:15 pm

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.
envoy510
 
Posts: 38
Joined: Sun Dec 18, 2011 2:10 am

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

Postby envoy510 » Sun Dec 13, 2015 7:36 pm

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.
envoy510
 
Posts: 38
Joined: Sun Dec 18, 2011 2:10 am


Return to Help

Who is online

Users browsing this forum: No registered users and 36 guests