Solved Sonarr no running - Raspberry PI

Sonarr version (exact version):
Mono version (3.10):
OS: Jessica
((Debug logs)):
http://pastebin.com/F0yTPMyc
Description of issue:
I have followed the attached instructions http://www.htpcguides.com/install-sonarr-raspberry-pi-2-latest-stable-mono/, and when I reboot my Raspberry, I see that the mono is not running and also my Sonarr,

was installing the modules I got no error but I would like to confirm that output results as this hopefully it will help in resovling the issues.when I run

do apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FDA5DFFC
echo “deb https://apt.sonarr.tv/ master main” | sudo tee -a /etc/apt/sources.list.d/sonarr.list

I get

pi@raspberrypi:~ $ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FDA5DFFC
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.0lX1mRLUds --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys FDA5DFFC
gpg: requesting key FDA5DFFC from hkp server keyserver.ubuntu.com
gpg: key D9B78493: “NzbDrone contact@nzbdrone.com” not changed
gpg: Total number processed: 1
gpg: unchanged: 1
pi@raspberrypi:~ $ echo “deb https://apt.sonarr.tv/ master main” | sudo tee -a /etc/apt/sources.list.d/sonarr.list
deb https://apt.sonarr.tv/ master main

when I run

sudo apt-get- update,
I get no issus apart from having 4 enters of
s (/var/lib/apt/lists/apt.sonarr.tv_dists_master_main_binary-armhf_Packages) W: You may want to run apt-get update to correct these problems

in /etc/init.d/nzbdrone I have place the following reference for the mono Daemon=/usr/local/bin/mono

I don’t understand why it is not working, as the last time, I did this following the same notes it worked.

any ideals ?

Is that the correct path?
Are there logs for the init.d startup process?
If you execute the init.d script manually does it work? (Not sure if that’s possible or not)

Hi Mark

Is that the correct path?
I ran the follow command find / -name mono and after a lot of find and permission denied listings, it showed the following
/usr/lib/mono
/usr/share/mono-2.0/mono
/usr/share/mono
/usr/share/cli-common/runtimes.d/mono
/usr/share/doc/mono
/usr/bin/mono
/usr/local/etc/mono
/usr/local/lib/mono
/usr/local/share/mono-2.0/mono
/usr/local/bin/mono
/usr/local/include/mono-2.0/mono

and I think the one if bold is the reference path - Please confirmed if I am right

Are there logs for the init.d startup process?
I have navigated to var/log but I am not sure on which log file you want.

If you execute the init.d script manually does it work?
I am not sure if this is the right command sudo service nzbdrone start but when I run this I get
Job for nzbdrone.service failed. See ‘systemctl status nzbdrone.service’ and ‘journalctl -xn’ for details.

but if I run this command mono /opt/NzbDrone/NzbDrone.exe and I then get this feedback
[Info] Bootstrap: Starting Sonarr - /opt/NzbDrone/NzbDrone.exe - Version 2.0.0.4472
[Info] MigrationLogger: *** Migrating data source=/home/pi/.config/NzbDrone/nzbdrone.db;cache size=-10485760;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
[Info] MigrationLogger: *** Migrating data source=/home/pi/.config/NzbDrone/logs.db;cache size=-10485760;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
[Info] Router: Application mode: Interactive
[Info] OwinHostController: Listening on the following URLs:
[Info] OwinHostController: http://*:8989/
[Info] NancyBootstrapper: Starting NzbDrone API
[Info] SceneMappingService: Updating Scene mappings
[Info] RssSyncService: Starting RSS Sync
[Warn] FetchAndParseRssService: No available indexers. check your configuration.
[Info] DownloadDecisionMaker: No results found
[Info] RssSyncService: RSS Sync Completed. Reports found: 0, Reports grabbed: 0
[Warn] GlobalExceptionHandlers: SignalR Heartbeat interupted

then I am able to connect to the sonar webpage, but none of the tabs work, and I get the “please wait icons”

They are the same path, so that should be fine.

Yeah, that should be it. Something is wrong with it though, hence the error. That’s a problem with the startup script that you’ll need to look into.

The loading indicators (bouncing balls)?

What output do you get if you run mono --version?

[quote=“markus101, post:4, topic:13588, full:true”]
Yeah, that should be it. Something is wrong with it though, hence the error. That’s a problem with the startup script that you’ll need to look into.[/quote]

can you please give me a few clues on what I should be looking for and there to find it ? and please note I my knowledge of Linux is very limited.

yes the Bouncing balls

Mono JIT compiler version 3.10.0 (mono-3.10.0-branch/ce003f4 Tue Nov 25 20:18:29 UTC 2014)
Copyright © 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: normal
Notifications: epoll
Architecture: armel,vfp+hard
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen

I’m not sure what you should be looking for.

For the loading indicators not changing, take a look at the developer console in your browser for any errors or try another browser.

good morning mark.
I have gone back to basic and tried to re-install the the whole application from the start.

I have got down to the following section, and it has started to complain about line 7

pi@raspberrypi:~ $ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FDA5DFFC echo “deb https://apt.sonarr.tv/ master main” | sudo tee -a /etc/apt/sources.list.d/sonarr.list
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.rCLaBuejAZ --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys FDA5DFFC echo deb https://apt.sonarr.tv/ master main
gpg: “echo” not a key ID: skipping
gpg: “deb” not a key ID: skipping
gpg: “https://apt.sonarr.tv/” not a key ID: skipping
gpg: “master” not a key ID: skipping
gpg: “main” not a key ID: skipping
gpg: requesting key FDA5DFFC from hkp server keyserver.ubuntu.com
gpg: key D9B78493: “NzbDrone contact@nzbdrone.com” not changed
gpg: Total number processed: 1
gpg: unchanged: 1
pi@raspberrypi:~ $ sudo apt-get update
E: Type ‘Executing:’ is not known on line 7 in source list /etc/apt/sources.list.d/sonarr.list
E: The list of sources could not be read.

and when I cat into the file I find the follow code at line 7

Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homed$

can you please advice me on my next step, can I delete this line ? or can it be modify to allow me to carry on installing.
I through I better stop and ask the

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FDA5DFFC and echo "deb https://apt.sonarr.tv/ master main" | sudo tee -a /etc/apt/sources.list.d/sonarr.list are two separate commands, but it looks like you ran it as one command and it caused issues with the sources file.

I’d recommend deleting /etc/apt/sources.list.d/sonarr.list and re-running the second command.

Opps my mistake, I do hate typo’s

ok after I had delete the the sonar.txt file and then ran through the installation, with no issues, I then tried to run the sonar with the following command sudo service nzbdrone start and I got the same errors I got last time

pi@raspberrypi:~ $ sudo service nzbdrone start
Job for nzbdrone.service failed. See ‘systemctl status nzbdrone.service’ and ‘journalctl -xn’ for details.
pi@raspberrypi:~ $

any ideals on how to overcame things issue ? and were do I find the log files ?

Have you tried recreating the init.d file to rule out any typos there?
Have you tried systemd instead? (I think Jessie supports it).
((Log files)) location is on the wiki.

I had some issues with Sonarr on my Pi recently, but overcame those.
Post the results of a sudo service nzbdrone status - that could help maybe (ah actually the command markus gave will give you the same output)
One thing to also check … the directories where sonar is stored AND the ones where you expect your downloads to go are both owned by the pi user (or whatever the RUN_AS is in the /etc/init.d/nzbdrone file) in my case that was my problem they were owned by root

silly question, how can I found out this account the applications are owned by, within Raspberry PI ? as when I try to install the applications, I follow the instructions, and if it says us sudo then I use sudo else it is just under the pi acconnt

I’f you followed the instructions as you said, then I don’t think this will be applicable in your case. If you wanted to check when you are in the folder where Sonarr is located you can type ls -al and then it should show you that the application files are owned by pi (or whatever the RUN_AS user is in the config)

One thing to also check … the directories where sonar is stored AND the ones where you expect your downloads to go are both owned by the pi user (or whatever the RUN_AS is in the /etc/init.d/nzbdrone file) in my case that was my problem they were owned by root

thanks MikeCTZA - I will have a look at this later when I get home in 4 hours, and I will post any and all results

ok I have removed the file again, and gone through the procedure and I have posted the terminal feed here. http://pastebin.com/6zq0TGnw

I also have posted the results as you requested.http://pastebin.com/qxm77yZS

also I have posted the Deluged log file http://pastebin.com/WwM4UsBF

I look forward to hearing from you. and in the mean time I am going to go and do a bit of reading about systemd

Mike or markus101 - any ideals ?

as I just rebuild Deluge and Sonarr and I am still getting the same results.

W: Duplicate sources.list entry https://apt.sonarr.tv/ master/main armhf Packages (/var/lib/apt/lists/apt.sonarr.tv_dists_master_main_binary-armhf_Packages)

insserv: script nzbdrone.save.1: service NzbDrone already provided!

It doesn’t look like you removed things properly and it’s all failing because it’s still there.

I don’t have anything else to suggest beyond starting from scratch and trying systemd instead of init.d.

I have gone back and recheck my notes and the following segment of code is missing

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo “deb http://download.mono-project.com/repo/debian wheezy main” | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get update

I am going to rebuild again, and this time I am going to included this bit, as this is the only bit of bit I haven’t tried as I didn’t used the following url

A Through - Does Sonarr work on a Raspberry pi 3 ? as I have done some looking around and all I am finding are posts with Raspberry pi 3 errors and issues and no clean build procedure apart from the one above.

It shouldn’t be any different from an rpi 2 to my knowledge, I know there are people running it on rpi3s.

I would like to report that i have got to sonarr to work, after a lot of testing. Don’nt ask my why but the only way I was able to get it to work was to install in this order.

Raspbain image
Sonarr
Raspbain update
Deluge
Vpn
The basic House keeping.

I am at the moment doing a few test runs on my pi3. And fine turning the enveronment.