Hey everyone over the past couple of days i tried to install linux on my home server to see how it went i previously had Windows Server 2012 on there so i installed first a Ubuntu 12.04 LTS distro called Linux Lite i could get my SMB shares working i could get Sabnzbd working all i then needed was NzbDrone so i install and it goes perfectly fine however i notice after setting up all my settings that when i began to scan in my existing shows it would randomly crash and NzbDrone WebGUI
would no longer be accessible first i thought this may have been a one off issue so i tried again, and again, and again, everytime it crashed when it was scanning in shows after talking to markus101 about this and giving a log file i don’t think he knew what the issue was either so i thought i might post here and see if others are firstly using Linux on their Home Servers (and if so what distro)
And secondly have they had any similar issues for now i have switched back to a Windows OS (Windows 8 Pro) and all went fine no crashes or anything
I know the Linux Version is still in it’s infancy and linux can be notoriously stubborn about things but was just curious if i was alone in this issue?
I know what you mean, I’ve had the exact same problem on 12.04.3.
I don’t remember what version I was on, but I simply just killed mono and restarted ND. That worked. Things generally work now. I don’t have any real complaints.
I think something simply locks up when ND tries to do too much work.
I’ve found that when I try to have multiple things update ( i.e. a single episode, a season, or a series), ND usually crashes out. So there must be something with ND that doesn’t manage threads properly.
Or, the simpler reason is that there is something wrong with mono itself since ND appears to work properly under windows.
PS. I have about ~80 series and they imported fine.
yeah it seems when you try to push Drone to do a few things like scanning in multiple shows it just sort of sh#%# itself and crashes
I have tried to figure it out i tried several different distros and got the same result (they were all running 12.04) so for now i have Windows 8 Pro on my Server and it is working flawlessly it imported everything i basically added about 100 different series came back an hour later and they were all scanned in and it was even detecting and grabbing missing episodes
although i find i am like a dog with a bone about troubleshooting i will spend hours pulling my hair out trying to find a solution so here i am at 2am running several VM’s in Virtualbox testing it out
a though occured to me though i originally wanted to use 12.04 as it is LTS but i thought perhaps it is simply not liking running on an Older Distro so i have just installed Lubuntu 13.04 and install drone in a VM then scanned in about 50 shows and it has not crashed so perhaps that is the problem it must not like working on 12.04
but doesn’t mind 13.04 distro’s i might make a System image of my Win 8 Pro install and then install this lubuntu 13.04 on the actual system and test it out and see if i can make it crash (not that i want it to)
Now some people are probably wondering why if Windows 8 Pro is working well why switch well curiousity to be honest i have always like the idea of a linux server i already run some linux stuff i have Openelec which i use for XBMC on half my HTPC’s and i also have linux installed on my research PC in my garage i use so when i am out there fixing PC’s i can look up solutions and also have music playing whilst i work i do need my main PC as Windows Because of Certain Software i use
The only thing I can see is that mono is the culprit.
I don’t know if other distros are up to date with mono, but I’m going to try and compile mono 3 from source and see if that helps.
In @protocol77’s case it was mono that died out while pressing a huge number of results (1200), where in that it crashed I don’t know as the logs weren’t detailed enough.
Our Ubuntu build agents run mono 2.10.8.1, but they only run drone for a few minutes at a time to run tests. I’d be curious to see if a newer version of mono performs better. The Arch distro I tried had a 3.0 version of mono, but again I only ran it for a short time.
i was going to provide you with that trace log as requested however since running on Lubuntu 13.04 the thing hasn’t crashed so not much point in giving those logs to you
i am running this though in a VM on my windows machine i might later on try and deploy the Lubuntu 13.04 build onto the actual server and stress test it by adding my shows to be scanned in as quickly as possible and see if it crashes if not i would just have to conclude that it is something with 12.04 which is a shame as i don’t not really want to setup 13.04 on my machine if i didn’t have to because it is not LTS i will just have to re-install linux when support ends for this in a couple months
good thing though Lubuntu 14 will apparently be LTS
I had some spare time tonight so i installed a distro onto one of my machines it is an old pc i use for testing so i did a full install of Linux Lite which is based of Ubuntu 12.04 LTS
I installed ND and tried to sort of stress test it to see if it would crash i added as quick as i could over 50 shows to queue and scan into and it did as before crash but this time i ran it in a terminal instead of as a service by using the
mono /opt/NzbDrone/NzbDrone.exe on the installation page
this gave me a live feed into the log process and after a fair few shows this error popped up
when it did this i tried to load the page in both chrome and firefox and it was no longer connectable
i don’t understand what happened but perhaps someone else might hopefully we can figure out why it is crashing
I went with the 12.04 for two reasons firstly it is what i would use as it is a LTS of ubuntu and secondly because what i thought was simply something in 12.04 that had been fixed in later versions was untrue i had it crash on a copy of Lubuntu Running 13.04
Might be worth noting, I had quite a few crashes with version 2.0.0.666 that I didn’t have before.
Previously if I manually tried to scan rediciolus amounts of stuff it might crash, but with build 666 it kinda crashed for no real reason. Worked one day, next day it has crashed overnight.
Don’t have any logs for this though, sorry. Trying latest version now to see if it’s better.
Happen to recall the previous version you were using? Or an approximate version? Haven’t made many Linux specific changes, but I assume someone we changed had a negative effect on Linux.
yeah when i was testing it wasn’t only when adding a bunch of shows that it would crash it would sometimes randomly crash for me as well i would have it running then think it was running during the day grabbing my shows then when i checked it at night when i got home i found it crashed sometime during the day
I don’t have this issue on the windows build which is why i am running that at the moment thought about if i wanted to run linux on my server about setting windows in a VM just to run NzbDrone but so far just kept windows as Native OS on server and everything works