Page 1 of 1

Shutting down properly Subsonic

PostPosted: Sun Jun 13, 2010 3:24 pm
by Miles Prower
Hello,

So I installed Subsonic on my Ubuntu 10.04 computer using the deb installer.


Subsonic works great as long as I do not restart the computer. Each time the computer is shut down, the database becomes corrupted (at least I think it is the problem, re: http://forum.subsonic.org/forum/viewtop ... 06f84c6d0a leading to a 503 error.

I have to delete the database each time I start the computer, create the users again, scan for music… etc before being able to fully use the aplication.

By the way, the first time I used Subsonic, it created a 12Mb log file. Seems a bit large. Tried to load it but did not see any reported errors.

How can I prevent that from happening? How to properly shut down Subsonic so this error does not occur?

PostPosted: Sun Jun 13, 2010 3:40 pm
by oeh
When rebooting my Ubuntu, I have to run.
Code: Select all
sudo service subsonic restart

to get it to run properly. If not I get the same error
as you are getting.

To stop subsonic use:
Code: Select all
sudo service subsonic stop


and to start:
Code: Select all
sudo service subsonic start

PostPosted: Mon Jun 14, 2010 8:40 am
by Miles Prower
Weird. Nice to know deleting the /db/ is not mandatory to get Subsonic running again, at least.


So my guess is that, for a quick fix, I should :
→ remove subsonic in /etc/init.d/ to prevent it from starting automatically
→ launch a script with admin privileges to start subsonic on session login ?


EDIT : no way.


Simply restarting Subsonic (/etc/init.d/subsonic restart) does not work at all. Just tried without rebooting the computer, this leads to the same old 503 error.

Subsonic only starts again if I delete /var/subsonic/db/.

Quite annoying.