Sonarr/NZBdrone problems

Status
Not open for further replies.

wtfR6a

Explorer
Joined
Jan 9, 2016
Messages
88
Its been running perfectly for ages now but appears to be having some issues starting. Some googling suggests this may be an incompatibility with FreeBSD 10.3 rather than a nzbdrone or config issue and I wondered if anyone else was or is experiencing any problems. This is the error I get when starting the app

Code:
$ /etc/rc.d/run_drone
$
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
 
D

dlavigne

Guest
Was this installed as a plugin or by hand within a jail? What is your current build version (from System -> Information)?
 

wtfR6a

Explorer
Joined
Jan 9, 2016
Messages
88
Manual install from `http://update.sonarr.tv/v2/master/mono/NzbDrone.master.tar.gz`

Code:
# mono -V
Mono JIT compiler version 4.2.1 (Stable 4.2.1.102/6dd2d0d Fri Dec 25 03:07:52 UTC 2015)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
    TLS:           __thread
    SIGSEGV:       altstack
    Notification:  kqueue
    Architecture:  amd64
    Disabled:      none
    Misc:          softdebug
    LLVM:          supported, not enabled.
    GC:            sgen


Just to verify I even spun up a new install and did a clean install in latest stable, FreeNAS-9.10-STABLE-201605240427 (64fcd8e)
 
Last edited:

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Does it work if you install from pkg?

Did you follow these instructions: https://github.com/Sonarr/Sonarr/wiki/Installation-FreeBSD

Also freebsd and mono have issues when it comes to translating some syscalls into freebsd friendly calls. I use 9.3 right now but will test on 9.10 to help you out.
 

wtfR6a

Explorer
Joined
Jan 9, 2016
Messages
88
I pretty much followed the second set of instructions from Sweet&Low's link, i.e
Code:
mv /usr/local/etc/pkg.conf /usr/local/etc/pkg.conf.backup
pkg install mono mediainfo sqlite3
cd
fetch http://download.sonarr.tv/v2/master/mono/NzbDrone.master.tar.gz
tar -xzvf NzbDrone.master.tar.gz
ee /etc/rc.d/run_drone


I also set my advanced options to include the sysctl's
Code:
set advanced options of jail = allow.raw_sockets=true,allow.sysvipc=1
as suggested by the mono installer when being run in a jail. I hadn't set it previously and it ran fine and I can confirm it did not fix the issues either. I can verify it is being set through sysctl -a | grep sysvipc.

I tried installing from packages too which didn't work either.
 

wtfR6a

Explorer
Joined
Jan 9, 2016
Messages
88

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Yes I did test it and something was messed up with the packages that day. Have you tried again since making your post.
 

wtfR6a

Explorer
Joined
Jan 9, 2016
Messages
88
No - but Im running out of TV to watch so might have to try and work on it remotely! thanks for following up.
 

wtfR6a

Explorer
Joined
Jan 9, 2016
Messages
88
updated to latest FreeNAS stable: FreeNAS-9.10-STABLE-201606072003 (696eba7), updated my usual jail but no joy, still the SIGSEGV error.
However, I created a new jail, did a simple pkg install installation and it started right up. I'll do some more debugging to see what else might have changed, at least I got further than last time.
 
Last edited:

wtfR6a

Explorer
Joined
Jan 9, 2016
Messages
88
ok. Im not sure whats going on here, something to do with freeNAS jails or FreeBSD which is beyond my current knowledge.

My new test jail, and my previous jail both demonstrate the same functionality now so at least Ive tracked down the root cause.

If I start Sonarr/NzbDrone from the 'root' account via system shell access in the FreeNAS GUI, it starts without issue.
If I try and start the program from root user (via 'su') or a user which has been added to the wheel group, it fails with immediate SIGSERV error.
 

diedrichg

Wizard
Joined
Dec 4, 2012
Messages
1,319
No - but I'm running out of TV to watch
Let me help you out:
Black Sails
The Flash
The Walking Dead
Continuum
Gotham
Stargate SG-1
Farscape
Battlestar Galactica
 
Status
Not open for further replies.
Top