Sonarr overwrites all settings on launch

I’m running nzbdrone on ubuntu server 14.04. In the past week it’s started behaving very strangely and i’ve had to redo the settings 3 or 4 times. Whenever i start or restart NZBdrone now all the settings and DB gets wiped. Even if i restore from the backup I made, the second I launch nzbdrone .config/NzbDrone/ gets completely overwritten. It almost seems as if it is deleting the directory and then creating it again at launch.

Has anyone else seen this?

Possibly something in your init script? Sonarr doesn’t remove that folder, only creates it if it doesn’t exist.

Log files of the startup might shed some light on whether its being created at startup.

Here is the init script - http://pastebin.com/VEhaMUMb
And here are the logs(i think) from nzbdrone - http://pastebin.com/ERGjJyyu

Your init script deletes Sonarr’s AppData every times its run:

rm -rf ${PID_PATH} || return 1

Using this instead is safer and won’t delete the AppData folder:

rm  ${PID_FILE} || return 1

Where did this init script come from?

From the sonarr github: https://github.com/Sonarr/Sonarr/wiki/Autostart-on-Debian

I didn’t look at it too closely since I assumed you guys wrote that as well.

Yeah, that wasn’t from us, but its fixed now to prevent someone else from hitting the same issue.

Thanks for letting us know.