But around 6pm, when I went to connect to drone, it wasn’t running. Tried to restart the service, but when I looked in /opt/NzbDrone, it was empty, minus 2 folders (UI and Update, I think). Tried to run an apt-get install, but it said drone was already installed. So I moved my config folder, did a remove and then an install, chmod 777 on the /opt/NzbDrone directory (else updates won’t work–on an aside, is there a better way to go about this?), launched drone, updated to newest develop, then copied my config folder back.
All seems well again, but it appears that the 2pm update failed somehow. Any guesses as to what may have caused it? I did have to reboot the server yesterday, but the chance of that happening during the short autoupdate window seems small.
Yeah, that looks like the file was in-use, upstart being too good at its job. The only work around right now is to use apt-get to install and not use drone’s built in updater.
Yeah, change the sources URL to develop instead of master. You’ll have to edit sources.list (you can get the full path from the wik, see the installation page).
Could that also be the reason why the folder gets empty?
I run development
I have the master in apt-get and I noticed that the master was updated although I was running develop already.
seems wierd.
I probably will update the sources list cause using 2 versions mixed is asking for troubles (I think).
Could what? Upstart? Upstart definitely doesn’t like the way drone updates, but without being able to sudo and stop the running version of drone, update then start it again there isn’t really a good way to do it at this time.
Well, it happened again tonight. So I’ve decided to disable the automatic updates, change the branch in the sources list to develop, and upgrade via apt-get. Shame, because I loved the push updates, but a non-self destruct drone is better
You could script the update, drone has the ability to run a script instead of it’s built-in updater, but it would need to be able to stop drone via upstart, so would need to be able to sudo.
Ehhhh, nothing but problems. Tried to switch over to the Ubuntu init.d script on the wiki, but I kept running into issues (pid issues, bad syntax on the home directory, etc.). Even trying to tweak the script to fix an error as it popped up didn’t seem to help much.
Then I tried the Debian script. For whatever reason, every time I started up drone, it completely wiped out the nzbdrone config directory (even the auto backups… everything). And I hadn’t manually backed it up recently, so I had to start from a very old 2 month backup. Ugh. Then it started snatching a bunch of (what it thought was) missing episodes before drone had a chance to update its library. What a mess.