503 Error caused by Subsonic being launched twice?
I've been receiving the 503 error on every reboot recently and at first I thought there was an issue with my boot/shutdown not working correctly. I followed the advice of other threads here and repeatedly backed up and restored the 'db' folder in /var/subsonic/ and restarted the service to get it working.
After getting fed up of doing this at least once a day I tried to look for the cause of the issue and have discovered that Subsonic is being launched twice upon start of my machine.
The command 'ps aux | grep subsonic' after a fresh reboot displays the following output. If I kill either process and restart the other, Subsonic works fine so I imagine the 503 error is being causes by the 'db' folder being accessed by different instances of Subsonic at the same time.
If I remove the 'subsonic' script from '/etc/init.d/' Subsonic does not launch at start up, but if I replace it Subsonic will launch twice and cause the problems I've mentioned.
I'm currently running Subsonic 4.8 (build 3434) on Ubuntu 13.04. Does anyone have any idea on how to prevent Subsonic from launching twice upon start up?
Thanks.
After getting fed up of doing this at least once a day I tried to look for the cause of the issue and have discovered that Subsonic is being launched twice upon start of my machine.
The command 'ps aux | grep subsonic' after a fresh reboot displays the following output. If I kill either process and restart the other, Subsonic works fine so I imagine the 503 error is being causes by the 'db' folder being accessed by different instances of Subsonic at the same time.
- Code: Select all
services 3207 2.8 7.0 2037476 265824 ? Sl 18:18 0:11 java -Xmx512m -Dsubsonic.home=/var/subsonic -Dsubsonic.host=0.0.0.0 -Dsubsonic.port=8080 -Dsubsonic.httpsPort=0 -Dsubsonic.contextPath=/ -Dsubsonic.defaultMusicFolder=/var/music -Dsubsonic.defaultPodcastFolder=/var/music/Podcast -Dsubsonic.defaultPlaylistFolder=/var/playlists -Djava.awt.headless=true -verbose:gc -jar subsonic-booter-jar-with-dependencies.jar
services 3208 1.2 2.4 1769152 93932 ? Sl 18:18 0:04 java -Xmx512m -Dsubsonic.home=/var/subsonic -Dsubsonic.host=0.0.0.0 -Dsubsonic.port=8080 -Dsubsonic.httpsPort=0 -Dsubsonic.contextPath=/ -Dsubsonic.defaultMusicFolder=/var/music -Dsubsonic.defaultPodcastFolder=/var/music/Podcast -Dsubsonic.defaultPlaylistFolder=/var/playlists -Djava.awt.headless=true -verbose:gc -jar subsonic-booter-jar-with-dependencies.jar
root 3695 0.0 0.0 11124 908 pts/0 S+ 18:24 0:00 grep --color=auto subsonic
If I remove the 'subsonic' script from '/etc/init.d/' Subsonic does not launch at start up, but if I replace it Subsonic will launch twice and cause the problems I've mentioned.
I'm currently running Subsonic 4.8 (build 3434) on Ubuntu 13.04. Does anyone have any idea on how to prevent Subsonic from launching twice upon start up?
Thanks.