Nzbdrone (Linux) Crashing on New Update & Not Updating

I am not 100% sure it is the cause of it yet as it has only happened once so far but i am running nzbdrone on Ubuntu based distro and one minute it was working and the next it stopped i had to go into /opt/NzbDrone and run the nzbdrone.exe to get it working again because sudo stop nzbdrone or sudo start nzbdrone was not working

in the advanced settings i changed the version from default Master to develop as i like to be a beta tester not sure if this had anything to do with it but after getting it going again i thought i might check if an update caused this because sometimes on windows you get the service stop (or at least it did on V1) and it says an update is available 2.0.0.648 but mine is still on 2.0.0.645

so if it is update related it did not even update to the latest version

Linux doesn’t use the branch for anything, all updates come through apt-get (package manager) and need to be applied manually.

ok so i should just run sudo apt-get update then to update it?

does this mean i should change back the develop setting to Master or should i leave it in my settings

The setting will only show you updates in the UI based on the branch, I’d suggest setting it to develop, since thats the branch the updates come from.

The update instructions are on the wiki: https://github.com/NzbDrone/NzbDrone/wiki/Installation

ok when i run sudo apt-get update i get the following error i noticed it during installation but didn’t take much notice of it till now

W: Failed to fetch http://update.nzbdrone.com/repos/apt/debian/dists/develop/main/source/Sources 404 Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.

Its because we don’t publish the sources, but older (pre 13.04 or 13.10) releases of Ubuntu added that as a source repo anyways. It has to be manually removed, but if things are working its not an issue.

ok so running apt-get update gave me the latest version but i am still having an issue where if i leave nzbdrone for a while and go to open the page after a while it does not want to open it’s like it crashes

well i am not sure if it crashes as much as it doesn’t let me access the page anymore never had it fail once in windows i thought i would give linux another go as i have a couple days off sabnzbd works fine and everything else just not nzbdrone for some reason

gotta run mono /opt/NzbDrone/NzbDrone.exe to get it working again but that is like having the cmd window open in windows as soon as you close the browser it disconnects

If it hangs again please grab the log files before restarting the service, hopefully it shows something useful.

it’s done it again

found the log file

http://pastebin.com/APv3tEW

Mono is crashing, the last thing it shows is it trying to process 1200 items, which seems pretty high, how many indexers do you have enabled? You should take a look at oznzb, its complaining about too many API calls, and your logs contained you API keys, so you should reset them.

As for the error, please enable trace logging and provide me the log just before the crash (assuming it happens again), as that should give more details as to what it was doing while processing those results.

i will try that out over the weekend for now i am just gonna run a windows VM with virtualbox and put it on there at least it doesn’t crash in windows i have shows that still need to be grabbed downloaded and sorted so for now i will just do that and when i get some free time i will take another look at it

what is the best way to export my setup or setting so i don’t have to re-configure everything i can just copy and paste or something and be up and going again

you know i really want to like linux and i keep trying to give it the benefit of the doubt but things like this and other annoying quirks make me understand why they can’t beat windows with the desktop general user market share :frowning:

perhaps i might just have linux as the host OS on the server and just run most of my stuff through a VM with windows 8 or something on it seems like a better option as i can reboot the windows without having to power cycle everything (eg my hard drives)

thanks markus101.

backup the AppData directory, but you might have path issues when switching OSes You can get the path to the AppData directory on the system page, on windows its C:\ProgramData\zbDrone

hey @protocol77 any chance you still have the logs showing mono crashing from early October? (Posted October 3rd). Working with someone thats having similar issues with it hanging and hoping he can make something from that error.

Unfortunately i don’t i just checked that pastebin and it has been deleted i have since went back to Windows for my server linux was driving me insane i would get one thing working and then the next thing i tried to setup would give me grief

With windows you can just install, set and forget it with linux you gotta fart around for an hour or more just to get things to work that alone is worth the cost of a windows license

sorry i couldn’t help if i knew pastebin deletes them after a period of time i would have saved it somewhere else i will have a look though and see if i can figure it out but basically i got mine to crash by enabling Trace as you told me them just hammering the crap out of it by adding like 100 shows as fast as possible this cause it to crash perhaps he could try something similar or just enable the logging and leave it until it does have an issue and then check their log

sorry mate :frowning:

I have the same issue with it crashing every now and then. Usually works for 2 days or so before crashing.
Have enabled trace logging and will grab the logs once it crashes next time. Current logs shows absolutely nothing, last thing is it scanning the download folder, then it just dies.

A temporary “solution” for this for me was to fix the upstart script that I wrote so that the automatic reboot actually works (it should have worked before as well, no idea why it didn’t). NZB-Drone will still crash, but when it does it will start right up again, thus you won’t have it offline for days.

Updated the Wiki with proper, working Upstart script as well.