Public | Automated Build

Last pushed: 13 hours ago
Short Description
A Sonarr container, brought to you by LinuxServer.io.
Full Description

The LinuxServer.io team brings you another container release featuring easy user mapping and community support. Find us for support at:

  • forum.linuxserver.io
  • IRC on freenode at #linuxserver.io
  • Podcast covers everything to do with getting the most from your Linux Server plus a focus on all things Docker and containerisation!

linuxserver/sonarr

Sonarr (formerly NZBdrone) is a PVR for usenet and bittorrent users. It can monitor multiple RSS feeds for new episodes of your favorite shows and will grab, sort and rename them. It can also be configured to automatically upgrade the quality of files already downloaded when a better quality format becomes available.

Usage

docker create \
    --name sonarr \
    -p 8989:8989 \
    -e PUID=<UID> -e PGID=<GID> \
    -e TZ=<timezone> \ 
    -v /etc/localtime:/etc/localtime:ro \
    -v </path/to/appdata>:/config \
    -v <path/to/tvseries>:/tv \
    -v <path/to/downloadclient-downloads>:/downloads \
    linuxserver/sonarr

You can choose between ,using tags, various branch versions of sonarr, no tag is required to remain on the main branch.

Add one of the tags, if required, to the linuxserver/sonarr line of the run/create command in the following format, linuxserver/sonarr:develop

Tags

  • develop

Parameters

The parameters are split into two halves, separated by a colon, the left hand side representing the host and the right the container side. For example with a port -p external:internal - what this shows is the port mapping from internal to external of the container. So -p 8080:80 would expose port 80 from inside the container to be accessible from the host's IP on port 8080 http://192.168.x.x:8080 would show you what's running INSIDE the container on port 80.

  • -p 8989 - the port sonarr webinterface
  • -v /config - database and sonarr configs
  • -v /tv - location of TV library on disk
  • -v /etc/localtime for timesync - see Localtime for important information
  • -e TZ for timezone information, Europe/London - see Localtime for important information
  • -e PGID for for GroupID - see below for explanation
  • -e PUID for for UserID - see below for explanation

It is based on ubuntu xenial with S6 overlay, for shell access whilst the container is running do docker exec -it sonarr /bin/bash.

Localtime

It is important that you either set -v /etc/localtime:/etc/localtime:ro or the TZ variable, mono will throw exceptions without one of them set.

User / Group Identifiers

Sometimes when using data volumes (-v flags) permissions issues can arise between the host OS and the container. We avoid this issue by allowing you to specify the user PUID and group PGID. Ensure the data volume directory on the host is owned by the same user you specify and it will "just work" <sup>TM</sup>.

In this instance PUID=1001 and PGID=1001. To find yours use id user as below:

  $ id <dockeruser>
    uid=1001(dockeruser) gid=1001(dockergroup) groups=1001(dockergroup)

Setting up the application

Access the webui at <your-ip>:8989, for more information check out Sonarr.

Info

  • Monitor the logs of the container in realtime docker logs -f sonarr.

Changelog

  • 17.04.17: Switch to using inhouse mono baseimage, adds python also.
  • 14.04.17: Change to mount /etc/localtime in README, thanks cbgj.
  • 13.04.17: Switch to official mono repository.
  • 30.09.16: Fix umask
  • 23.09.16: Add cd to /opt fixes redirects with althub (issue #25)
    , make XDG config environment variable
  • 15.09.16: Add libcurl3 package.
  • 09.09.16: Add layer badges to README.
  • 27.08.16: Add badges to README.
  • 20.07.16: Rebase to xenial.
  • 31.08.15: Cleanup, changed sources to fetch binarys from. also a new baseimage.
Docker Pull Command
Owner
linuxserver
Source Repository

Comments (41)
tncurt
14 days ago

Same problems as the others have reported. Is there a chance of getting this fixed? Has anyone found a workaround?

arraylabs
20 days ago

Having the same mono issues as others have mentioned. Tried on debian 8 and ubuntu 16 LTS docker hosts with the same issue. Sonarr basically unusable.

calvinbui
2 months ago

Some logs

Native stacktrace:

        mono() [0x4b1faf]
        mono() [0x427340]
        /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390) [0x7f9bcde10390]
        /usr/lib/x86_64-linux-gnu/libmediainfo.so.0(+0x30c9a1) [0x7f9bc08249a1]
        /usr/lib/x86_64-linux-gnu/libmediainfo.so.0(+0x48925) [0x7f9bc0560925]
        /usr/lib/x86_64-linux-gnu/libmediainfo.so.0(+0x494a8) [0x7f9bc05614a8]
        /usr/lib/x86_64-linux-gnu/libmediainfo.so.0(+0xc6eca) [0x7f9bc05deeca]
        /usr/lib/x86_64-linux-gnu/libmediainfo.so.0(_ZN12MediaInfoLib9MediaInfo20Open_Buffer_ContinueEPKhm+0xc) [0x7f9bc05ae62c]
        /usr/lib/x86_64-linux-gnu/libmediainfo.so.0(MediaInfo_Open_Buffer_Continue+0x9d) [0x7f9bc097584d]
        [0x40758e50]

Debug info from gdb:


=================================================================
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.
=================================================================
calvinbui
2 months ago

Definitely some issues in Sonarr as others are reporting.

Mono using 100% CPU usage sometimes

jesseburbach
2 months ago

I had ran a previous image for the last probably 4 or 5 months and it was flawless. Updated the image last week and now nothing but problems.

tritian
2 months ago

M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Common\Http\Dispatchers\ManagedHttpDispatcher.cs:63
[Info] RssSyncService: Starting RSS Sync
[Info] DownloadDecisionMaker: Processing 100 releases
[Info] RssSyncService: RSS Sync Completed. Reports found: 100, Reports grabbed: 0
[Warn] SkyHookProxy: The request timed out
[v2.0.0.4689] System.Net.WebException: The request timed out
at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00052] in <5641e4edad4f4464ba58c620a7b8ea48>:0
at System.Net.HttpWebRequest.GetResponse () [0x0000e] in <5641e4edad4f4464ba58c620a7b8ea48>:0
at NzbDrone.Common.Http.Dispatchers.ManagedHttpDispatcher.GetResponse (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookies) [0x000fb] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Common\Http\Dispatchers\ManagedHttpDispatcher.cs:63
IP & PORTS

tritian
2 months ago

jesseburbach: Same issue for me. This is my first install of Sonarr and I thought I was doing something wrong. I have not been able to add a single show because it just spins and spins

jesseburbach
2 months ago

I updated my image a few days ago and now many processes are hanging. Indexers are timing out, rss sync just spins, manual search never completes, even clearing logs hangs. Anyone else having this issue? Couchpotato searches and downloads fine, could it be the new mono image?

salerg
2 months ago

Parameter /Downloads should be added to the description above.

monkeez
2 months ago

Thank you phenix26! I had been at it for a lot of yesterday and setting TZ worked for me too.