Sonarr/Radarr services failed on v6.29.2 Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
GaryD
Posts: 20
Joined: Tue Feb 04, 2020 1:57 am

Re: Sonarr/Radarr services failed on v6.29.2

Post by GaryD »

Ok so this will assume you already have sonarr up and running and configured. I only use sabnzbd with sonarr so i can’t help you much if you use it with a torrent client but you should be able to figure it out.

To answer the previous poster YES it will see your USB drives within the docker.

I’ll try and mark all the commands in code text so it’s easy to see what you need to type and what is my ramblings.

First lets stop sonarr from running and disable it from starting back up

Code: Select all

sudo systemctl stop sonarr

Code: Select all

sudo systemctl disable sonarr
Make sure you have docker installed by using

Code: Select all

sudo dietpi-software
Make sure you’re logged in as the user dietpi and create a folder for the config of sonarr from within the home directory of the user diet

Code: Select all

mkdir /home/dietpi/sonarr
Login as root

Code: Select all

su
The following command will install the docker. The formatting is important, but if you screw it up it won’t matter you can always restart this process.

For TZ copy and paste your own timezone from here and overwrite the antarctica one in my example:
https://en.wikipedia.org/wiki/List_of_t ... time_zones

Assuming you use port 8989 leave that section as is. However let’s say you currently use 9898 make it say -p 9898:8989 (that maps the internal port of the docker that sonarr is using 8989 and makes it available externally on 9898).

The -v is going to give the docker access to your servers file system and map it to a filesystem on the inside of the docker. For simplicity and compatibility with the NZB/Torrent app, I strongly suggest you map it to the same mount point on the server as inside the docker. The location before the colon is the servers location, after the colon is what it is mapped to on the docker
For example if I had an external hd mounted as /mnt/external I would map it inside the docker as /mnt/external.
-v /mnt/external:/mnt/external
Sonarr needs access to the place where your NZB/Torrent app downloads to and also the location where you want it to finish up in. Eg if your nzb app downloads to:
/mnt/external/downloads
but the final renamed file ends up in
/mnt/external/tv
Then just mount /mnt/external (it will cover both) with:
-v /mnt/external:/mnt/external

However if your downloads are saved in:
/home/dietpi/downloads
and your finished location is
/mnt/external/tv
you will need to mount both locations in the docker, so use two lines
-v /home/dietpi/downloads:/home/dietpi/downloads
-v /mnt/external/tv:/mnt/external/tv

We will also map our folder we created before as /config. We will copy our config we already use in sonarr into it later
-v /home/dietpi/sonarr:/config \

Ok so now we should be good to create the docker!! Fill in the details below based on what you need and copy/paste this (yes the whole thing) at the command line and press enter. Don’t mess the formatting up - make sure you run as root.

Code: Select all

docker create \
  --name=sonarr \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=Antarctica/Syowa \
  -e UMASK_SET=022 `#optional` \
  -p 8989:8989 \
  -v /home/dietpi/sonarr:/config \
  -v /mnt/external:/mnt/external \
  --restart unless-stopped \
  linuxserver/sonarr
It will go ahead and download the docker image based on your hardware. Assuming you have compatible hardware, eg x86 cpu, raspberry pi etc it will all work nicely.

Let’s start the docker and check things are working without our config:

Code: Select all

docker start sonarr
with your internet browser connect to:
http://youripaddresshere:8989
Make sure it loads - that’s all we care about for now

Code: Select all

docker stop sonarr
Now we want to copy our config from sonarr that we have in dietpi already.
Do this as your dietpi user:

Code: Select all

cp -r /mnt/dietpi_userdata/sonarr/* /home/dietpi/sonarr
Now we should be good to go!

Code: Select all

docker start sonarr
with your internet browser connect to:
http://youripaddresshere:8989
With any luck you should be done. Check the sonarr logs for any warnings/errors.

If you have radarr, it’s almost the same to do it:

Code: Select all

sudo systemctl stop radarr

Code: Select all

sudo systemctl disable radarr
as dietpi user:

Code: Select all

mkdir /home/dietpi/radarr

Code: Select all

cp -r /mnt/dietpi_userdata/radarr/* /home/dietpi/radarr
as root user:

Code: Select all

docker create \
  --name=radarr \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=Antarctica/Syowa \
  -e UMASK_SET=022 `#optional` \
  -p 7878:7878 \
  -v /home/dietpi/radarr:/config \
  -v /mnt/external:/mnt/external \
  linuxserver/radarr

Code: Select all

docker start radarr
with your internet browser connect to:
http://youripaddresshere:7878

Bonus - how to install sabnzbd as a docker (no cfg copy though you can probably do that if you can find it)

as dietpi user:

Code: Select all

sudo systemctl stop sabnzbd

Code: Select all

sudo systemctl disable sabnbd

Code: Select all

mkdir /home/dietpi/sabnzbd
as root:

Code: Select all

docker create \
  --name=sabnzbd \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=Antarctica/Syowa \
  -p 8080:8080 \
  -p 9090:9090 \
  -v /home/dietpi/sabnzbd:/config \
  -v /mnt/external:/mnt/external \
  --restart unless-stopped \
  linuxserver/sabnzbd

Code: Select all

docker start sabnzbd
with your internet browser connect to:
http://youripaddresshere:8080

======================================================
If you stuff up and want to go back to what you had

As root:

Code: Select all

docker stop sonarr

Code: Select all

docker rm sonarr

Code: Select all

systemctl enable sonarr

Code: Select all

systemctl start sonarr
======================================================
After you are happy everything is running ok make sure to uninstall sonarr from dietpi-software
======================================================

I hope this helps, it looks tricky and it might be if its your first docker. If this works for you take a look at the other great dockers provided by linuxserver.io they all follow a similar idea to what you learnt with this:
https://hub.docker.com/u/linuxserver

kazgor
Posts: 28
Joined: Sun Dec 17, 2017 10:18 pm

Re: Sonarr/Radarr services failed on v6.29.2

Post by kazgor »

GaryD that a brilliant write up... i might give it a go .

Let us know how you get on in the next few days if it still stable... or if Sonarr/Mono have complete broken something in there recent builds.

User avatar
Joulinar
Posts: 1770
Joined: Sat Nov 16, 2019 12:49 am

Re: Sonarr/Radarr services failed on v6.29.2

Post by Joulinar »

Btw is someone still in touch with sonarr guys to check why its continue failing?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team

kazgor
Posts: 28
Joined: Sun Dec 17, 2017 10:18 pm

Re: Sonarr/Radarr services failed on v6.29.2

Post by kazgor »

Joulinar wrote:
Thu May 21, 2020 12:37 pm
Btw is someone still in touch with sonarr guys to check why its continue failing?
i posted on forum.sonarr.tv and had zero support there... maybe the wrong place?

nicheplayer
Posts: 39
Joined: Sat Jan 12, 2019 11:06 pm

Re: Sonarr/Radarr services failed on v6.29.2

Post by nicheplayer »

Joulinar wrote:
Thu May 21, 2020 12:37 pm
Btw is someone still in touch with sonarr guys to check why its continue failing?
Yeah I've posted quite a bit on their support discord. All the devs are there regularly. Current recommendation is to try rolling back the mono install to 5.20.x to see if that fixes the issue.

User avatar
Joulinar
Posts: 1770
Joined: Sat Nov 16, 2019 12:49 am

Re: Sonarr/Radarr services failed on v6.29.2

Post by Joulinar »

do they explain how to rollback to the other mono version?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team

nicheplayer
Posts: 39
Joined: Sat Jan 12, 2019 11:06 pm

Re: Sonarr/Radarr services failed on v6.29.2

Post by nicheplayer »

Joulinar wrote:
Thu May 21, 2020 6:38 pm
do they explain how to rollback to the other mono version?
"Their site has details, you just set a snapshot in your sources.d and bob's your uncle."

https://www.mono-project.com/docs/getti ... r-releases

User avatar
Joulinar
Posts: 1770
Joined: Sat Nov 16, 2019 12:49 am

Re: Sonarr/Radarr services failed on v6.29.2

Post by Joulinar »

ok did they point out which snapshot to use?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team

nicheplayer
Posts: 39
Joined: Sat Jan 12, 2019 11:06 pm

Re: Sonarr/Radarr services failed on v6.29.2

Post by nicheplayer »

Joulinar wrote:
Thu May 21, 2020 7:34 pm
ok did they point out which snapshot to use?
No. :( I haven't found the list of snapshots yet.

nicheplayer
Posts: 39
Joined: Sat Jan 12, 2019 11:06 pm

Re: Sonarr/Radarr services failed on v6.29.2

Post by nicheplayer »

GaryD wrote:
Thu May 21, 2020 10:50 am

Make sure you’re logged in as the user dietpi and create a folder for the config of sonarr from within the home directory of the user diet

Code: Select all

mkdir /home/dietpi/sonarr
So, like

Code: Select all

su - dietpi mkdir /home/dietpi/sonarr
?

Post Reply