Giter Club home page Giter Club logo

docker-sonarr's Introduction

linuxserver.io

Blog Discord Discourse Fleet GitHub Open Collective

The LinuxServer.io team brings you another container release featuring:

  • regular and timely application updates
  • easy user mappings (PGID, PUID)
  • custom base image with s6 overlay
  • weekly base OS updates with common layers across the entire LinuxServer.io ecosystem to minimise space usage, down time and bandwidth
  • regular security updates

Find us at:

  • Blog - all the things you can do with our containers including How-To guides, opinions and much more!
  • Discord - realtime support / chat with the community and the team.
  • Discourse - post on our community forum.
  • Fleet - an online web interface which displays all of our maintained images.
  • GitHub - view the source for all of our repositories.
  • Open Collective - please consider helping us by either donating or contributing to our budget

Scarf.io pulls GitHub Stars GitHub Release GitHub Package Repository GitLab Container Registry Quay.io Docker Pulls Docker Stars Jenkins Build LSIO CI

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.

sonarr

Supported Architectures

We utilise the docker manifest for multi-platform awareness. More information is available from docker here and our announcement here.

Simply pulling lscr.io/linuxserver/sonarr:latest should retrieve the correct image for your arch, but you can also pull specific arch images via tags.

The architectures supported by this image are:

Architecture Available Tag
x86-64 amd64-<version tag>
arm64 arm64v8-<version tag>
armhf

Version Tags

This image provides various versions that are available via tags. Please read the descriptions carefully and exercise caution when using unstable or development tags.

Tag Available Description
latest Stable releases from Sonarr
develop Development releases from Sonarr

Application Setup

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

Media folders

We have set /tv and /downloads as optional paths, this is because it is the easiest way to get started. While easy to use, it has some drawbacks. Mainly losing the ability to hardlink (TL;DR a way for a file to exist in multiple places on the same file system while only consuming one file worth of space), or atomic move (TL;DR instant file moves, rather than copy+delete) files while processing content.

Use the optional paths if you don't understand, or don't want hardlinks/atomic moves.

The folks over at servarr.com wrote a good write-up on how to get started with this.

Read-Only Operation

This image can be run with a read-only container filesystem. For details please read the docs.

Usage

To help you get started creating a container from this image you can either use docker-compose or the docker cli.

docker-compose (recommended, click here for more info)

---
services:
  sonarr:
    image: lscr.io/linuxserver/sonarr:latest
    container_name: sonarr
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
    volumes:
      - /path/to/sonarr/data:/config
      - /path/to/tvseries:/tv #optional
      - /path/to/downloadclient-downloads:/downloads #optional
    ports:
      - 8989:8989
    restart: unless-stopped
docker run -d \
  --name=sonarr \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=Etc/UTC \
  -p 8989:8989 \
  -v /path/to/sonarr/data:/config \
  -v /path/to/tvseries:/tv `#optional` \
  -v /path/to/downloadclient-downloads:/downloads `#optional` \
  --restart unless-stopped \
  lscr.io/linuxserver/sonarr:latest

Parameters

Containers are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate <external>:<internal> respectively. For example, -p 8080:80 would expose port 80 from inside the container to be accessible from the host's IP on port 8080 outside the container.

Parameter Function
-p 8989 The port for the Sonarr web interface
-e PUID=1000 for UserID - see below for explanation
-e PGID=1000 for GroupID - see below for explanation
-e TZ=Etc/UTC specify a timezone to use, see this list.
-v /config Database and sonarr configs
-v /tv Location of TV library on disk (See note in Application setup)
-v /downloads Location of download managers output directory (See note in Application setup)
--read-only=true Run container with a read-only filesystem. Please read the docs.

Environment variables from files (Docker secrets)

You can set any environment variable from a file by using a special prepend FILE__.

As an example:

-e FILE__MYVAR=/run/secrets/mysecretvariable

Will set the environment variable MYVAR based on the contents of the /run/secrets/mysecretvariable file.

Umask for running applications

For all of our images we provide the ability to override the default umask settings for services started within the containers using the optional -e UMASK=022 setting. Keep in mind umask is not chmod it subtracts from permissions based on it's value it does not add. Please read up here before asking for support.

User / Group Identifiers

When using 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 any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.

In this instance PUID=1000 and PGID=1000, to find yours use id your_user as below:

id your_user

Example output:

uid=1000(your_user) gid=1000(your_user) groups=1000(your_user)

Docker Mods

Docker Mods Docker Universal Mods

We publish various Docker Mods to enable additional functionality within the containers. The list of Mods available for this image (if any) as well as universal mods that can be applied to any one of our images can be accessed via the dynamic badges above.

Support Info

  • Shell access whilst the container is running:

    docker exec -it sonarr /bin/bash
  • To monitor the logs of the container in realtime:

    docker logs -f sonarr
  • Container version number:

    docker inspect -f '{{ index .Config.Labels "build_version" }}' sonarr
  • Image version number:

    docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/sonarr:latest

Updating Info

Most of our images are static, versioned, and require an image update and container recreation to update the app inside. With some exceptions (noted in the relevant readme.md), we do not recommend or support updating apps inside the container. Please consult the Application Setup section above to see if it is recommended for the image.

Below are the instructions for updating containers:

Via Docker Compose

  • Update images:

    • All images:

      docker-compose pull
    • Single image:

      docker-compose pull sonarr
  • Update containers:

    • All containers:

      docker-compose up -d
    • Single container:

      docker-compose up -d sonarr
  • You can also remove the old dangling images:

    docker image prune

Via Docker Run

  • Update the image:

    docker pull lscr.io/linuxserver/sonarr:latest
  • Stop the running container:

    docker stop sonarr
  • Delete the container:

    docker rm sonarr
  • Recreate a new container with the same docker run parameters as instructed above (if mapped correctly to a host folder, your /config folder and settings will be preserved)

  • You can also remove the old dangling images:

    docker image prune

Image Update Notifications - Diun (Docker Image Update Notifier)

tip: We recommend Diun for update notifications. Other tools that automatically update containers unattended are not recommended or supported.

Building locally

If you want to make local modifications to these images for development purposes or just to customize the logic:

git clone https://github.com/linuxserver/docker-sonarr.git
cd docker-sonarr
docker build \
  --no-cache \
  --pull \
  -t lscr.io/linuxserver/sonarr:latest .

The ARM variants can be built on x86_64 hardware using multiarch/qemu-user-static

docker run --rm --privileged multiarch/qemu-user-static:register --reset

Once registered you can define the dockerfile to use with -f Dockerfile.aarch64.

Versions

  • 31.05.24: - Rebase Alpine 3.20.
  • 12.01.24: - Update download url.
  • 30.12.23: - Rebase master branch to Alpine 3.19.
  • 15.02.23: - Rebase master branch to Jammy.
  • 19.12.22: - Rebase develop branch Alpine 3.17.
  • 24.11.22: - Bump develop branch to v4, rebase to Alpine 3.16.
  • 03.08.22: - Deprecate armhf.
  • 02.08.22: - Add armhf deprecation warning.
  • 28.04.22: - Rebase master branch to mono 6.12 base (focal).
  • 20.02.22: - Rebase develop branch to Alpine, deprecate develop-alpine branch.
  • 28.12.21: - Add develop-alpine branch.
  • 11.05.21: - Make the paths clearer to the user.
  • 10.03.21: - Upgrade to Sonarr v3. Existing users are highly recommended to make a backup prior to update.
  • 18.01.21: - Deprecate UMASK_SET in favor of UMASK in baseimage, see above for more information.
  • 05.04.20: - Move app to /app.
  • 01.08.19: - Rebase to Linuxserver LTS mono version.
  • 13.06.19: - Add env variable for setting umask.
  • 10.05.19: - Rebase to Bionic.
  • 23.03.19: - Switching to new Base images, shift to arm32v7 tag.
  • 01.02.19: - Multi arch images and pipeline build logic
  • 15.12.17: - Fix continuation lines.
  • 12.07.17: - Add inspect commands to README, move to jenkins build and push.
  • 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-sonarr's People

Contributors

aptalca avatar drizuid avatar j0nnymoe avatar jalaziz avatar linuxserver-ci avatar lonix avatar markus101 avatar mattsch avatar moofish32 avatar nemchik avatar omgimalexis avatar pecigonzalo avatar phendryx avatar roxedus avatar sirferdek avatar smdion avatar sparklyballs avatar thelamer avatar thespad avatar tobbenb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-sonarr's Issues

Database is locked error

I get this error recurring, so nothing gets started or put into /config.
Note that I run this on a mac, so I can't bind /dev/rtc - it might have something to do with that, it might be a typo I made somewhere. Docker-compose at the botton.

[Fatal] ConsoleApp: EPIC FAIL!

[v2.0.0.4146] System.Data.SQLite.SQLiteException: database is locked
database is locked
  at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) <0x4029f620 + 0x002ab> in <filename unknown>:0
  at System.Data.SQLite.SQLiteDataReader.NextResult () <0x4029c990 + 0x00741> in <filename unknown>:0
  at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, CommandBehavior behave) <0x4029c2b0 + 0x002b9> in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader:.ctor (System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  at System.Data.SQLite.SQLiteCommand.ExecuteReader (CommandBehavior behavior) <0x4029b8b0 + 0x00043> in <filename unknown>:0
  at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (CommandBehavior behavior) <0x4029b7f0 + 0x00037> in <filename unknown>:0
  at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () <0x4029b7c0 + 0x0001b> in <filename unknown>:0
  at System.Data.SQLite.SQLiteTransaction..ctor (System.Data.SQLite.SQLiteConnection connection, Boolean deferredLock) <0x402cf770 + 0x003cc> in <filename unknown>:0

Press any key to exit...
[Info] Bootstrap: Starting Sonarr - /opt/NzbDrone/NzbDrone.exe - Version 2.0.0.4146
[Info] AppFolderInfo: Data directory is being overridden to [/config]
[Info] MigrationLogger: *** Migrating data source=/config/nzbdrone.db;cache size=-10485760;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
[Info] MigrationLogger: *** 100: add_scene_season_number migrating ***

docker-compose.yaml:

sonarr:
    environment: [PGID=20, PUID=501]
    image: linuxserver/sonarr
    labels:
      "org.fagerland.tom.media.service": "sonarr"
    ports: ['0.0.0.0:8989:8989']
    volumes:
      - '/Users/tom/Downloads/sonarr/config:/config'
      - '/Users/tom/Downloads/sonarr/tv:/tv'
      - '/Users/tom/Downloads/sonarr/downloads:/downloads'

Segmentation fault immediately upon startup

Alpine Linux v3.5.2

docker run -d --name sonarr -p 8989:8989 -v /etc/localtime:/etc/localtime:ro -v /docker/sonarr/config:/config -v /docker/sonarr/tv:/tv -v /docker/sonarr/downloads:/downloads linuxserver/sonarr

docker log sonarr
docker: 'log' is not a docker command.
See 'docker --help'.
dock:/docker/sonarr/config# docker logs sonarr
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 10-adduser: executing... 
usermod: no changes

-------------------------------------
          _     _ _
         | |___| (_) ___
         | / __| | |/ _ \ 
         | \__ \ | | (_) |
         |_|___/ |_|\___/
               |_|

Brought to you by linuxserver.io
We gratefully accept donations at:
https://www.linuxserver.io/donations/
-------------------------------------
GID/UID
-------------------------------------
User uid:    911
User gid:    911
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing... 
[cont-init.d] 30-config: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.

If I go inside the container and try to run sonarr from the command line I get this:

root@2dbbf36e895b:/opt/NzbDrone# s6-setuidgid abc mono --debug NzbDrone.exe -nobrowser -data=/config
Segmentation fault

About to get radarr to see if I have the same problem.

EDIT: The radarr container suffers from exactly the same problem.

[Fatal] ConsoleApp: Access denied. This can happen if another instance of Sonarr is already running another application is using the same port (default: 8989) or the user has insufficient permissions

On a regular basis the Sonarr docker container becomes unresponsive. I'm pretty sure it has got to do with me using "Overwatch" to automatically update the Sonarr docker container.

In the log i see this error message:

[Fatal] ConsoleApp: Access denied. This can happen if another instance of Sonarr is already running another application is using the same port (default: 8989) or the user has insufficient permissions

In the config.xml of Sonarr i've changed the UI port to "80". As this config file is on a mapped volume, it survives the update and restart done by Overwatch.

I suspect that upon restarting some process tries to connect to another process on port 8989, but that process is correctly listening on port 80 as i configured this.

Can somebody confirm this?

EPIC FAIL! Database is locked

Trying to run Sonarr on Windows using the following command (I realize the /dev/rtc is completely useless, but heyho):-

docker create -e PUID=${PID} -e PGID=${GID} --name sonarr --hostname sonarr --network usenet -p 8989:8989 -v /dev/rtc:/dev/rtc:ro -v "/c/Users/${USER}/Docker/sonarr/config":/config -v "/c/Users/${USER}/Docker/sonarr/tv/":/tv -v "/c/Users/${USER}/Docker/sonarr/downloads/":/downloads linuxserver/sonarr:latest

Results in:-

[Fatal] ConsoleApp: EPIC FAIL!

[v2.0.0.4230] System.Data.SQLite.SQLiteException: database is locked
database is locked
  at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) <0x40e6dde0 + 0x002ab> in <filename unknown>:0
  at System.Data.SQLite.SQLiteDataReader.NextResult () <0x40e6b150 + 0x00741> in <filename unknown>:0
  at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, CommandBehavior behave) <0x40e6aa70 + 0x002b9> in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader:.ctor (System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  at System.Data.SQLite.SQLiteCommand.ExecuteReader (CommandBehavior behavior) <0x40e6a070 + 0x00043> in <filename unknown>:0
  at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (CommandBehavior behavior) <0x40e69fb0 + 0x00037> in <filename unknown>:0
  at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () <0x40e69f80 + 0x0001b> in <filename unknown>:0
  at System.Data.SQLite.SQLiteConnection.Open () <0x40e62470 + 0x01f7c> in <filename unknown>:0

Where as the same command, but /command not being mounted (And instead mounting to /config2 (obviously doesn't save your configuration though!)) results in it working fine:-

docker create -e PUID=${PID}-e PGID=${GID} --name sonarr --hostname sonarr --network usenet -p 8989:8989 -v /dev/rtc:/dev/rtc:ro -v "/c/Users/${USER}/Docker/sonarr/config":/config2 -v "/c/Users/${USER}/Docker/sonarr/tv/":/tv -v "/c/Users/${USER}/Docker/sonarr/downloads/":/downloads linuxserver/sonarr:latest

High CPU usage when sonarr tab is open in Chrome (Mac)

When I have a tab open to sonarr in chrome (mac v67), I can see via task manager that it consumes 100% cpu. Closing the tab restores normal cpu usage. I have tried to find a solution online, but have come up short, and am hoping you can point me in the right direction. To be clear, the cpu pegging is on the browser only, not on the server/docker instance.

Thanks!

linuxserver.io

Docker (linux)

screen shot 2018-05-30 at 6 05 49 pm

In the logs I am seeing:
Address already in use. This can happen if another instance of Sonarr is already running another application is using the same port (default: 8989) or the user has insufficient permissions

As well as:
System.InvalidOperationException: Sequence contains no elements

I have seen other reports of a similar problem with one of the two above conditions, and am wondering how to correct this (maybe its something else?). I have no other services running on port 8989.

No symlinks outside of normal Unraid Mapping. You guys are great, please keep up the good work!

Thanks, team linuxserver.io

Error: MediaInfo Library could not be loaded libmediainfo.so.0 in newest Sonarr Docker build

With latest build of Sonarr with Synology docker Sonarr is displaying the following error:

Error: MediaInfo Library could not be loaded libmediainfo.so.0

Issue did not exist in in previous build.

Synology DSM 6.2
root@filer02:/var/log/Docker# docker version
Client:
Version: 17.05.0-ce
API version: 1.29
Go version: go1.8
Git commit: 9f07f0e-synology
Built: Fri Jan 26 15:43:23 2018
OS/Arch: linux/amd64

Server:
Version: 17.05.0-ce
API version: 1.29 (minimum version 1.12)
Go version: go1.8
Git commit: 9f07f0e-synology
Built: Fri Jan 26 15:43:23 2018
OS/Arch: linux/amd64
Experimental: false

No symlinks on mounts.

Have deleted and redeployed container a few times and can reproduce.

Warn|DownloadMonitoringService|Unable to retrieve queue and history items from NzbGet [v2.0.0.5054] System.ObjectDisposedException: Cannot access a disposed object.

Hi, I'm using a couple of your docker images (including nzbget) but my Sonarr (& radarr) logs are flooded with the above messages.

Could it have something to do with the mono version used? See here: https://forums.sonarr.tv/t/sonarr-on-synology-unable-to-retrieve-queue-and-history-items-from-nzbget-cannot-access-a-disposed-object-object-name-system-net-sockets-networkstream/16226/13

Connection refused with torznab

linuxserver.io

I am trying to connect my jackett docker container from linuxserver to sonarr. When I input the settings and click test it says it works but when I try to download a episode I does not download the torrent to my blackhole directory.

I am using an Ubuntu 16.04 server with Docker version 17.03.0-ce, build 60ccb22.

This is a part of my docker-compose to setup sonarr and jackett.

sonarr: 
    container_name: sonarr
    image: linuxserver/sonarr
    environment:
      PGID: ${UID}
      PUID: ${UID}
      TZ: ${TIMEZONE}
    ports: 
     - 8989:8989
    volumes:
      - sonarr:/config
      - ${TORRENTS_DIR}:/downloads
      - ${SHOWS_DIR}:/tv
    restart: always

  jackett:
    container_name: jackett
    image: linuxserver/jackett
    environment:
      PGID: ${UID}
      PUID: ${UID}
    ports: 
     - 9117:9117
    volumes:
      - jackett:/home/jackett/.config/Jackett
      - ${TORRENTS_DIR}/auto-add:/downloads
    restart: always

These are my settings in sonarr.
image

This is the error in my log.

Downloading torrent file for episode 'Atlanta S01E05 Nobody Beats the Biebs 720p WEB-DL DD5 1 H 264-Oosh' failed (http://localhost:9117/dl/torrentday/t4ufjjsbl2lhn7w4ji6939j4zrufwk9g?path=aHR0cHM6Ly90b3JyZW50ZGF5Lml0L2Rvd25sb2FkLnBocC8xOTM4NTgzL0F0bGFudGEgUzAxRTA1IE5vYm9keSBCZWF0cyB0aGUgQmllYnMgNzIwcCBXRUItREwgREQ1LjEgSC4yNjQtT29zaC50b3JyZW500&file=Atlanta+S01E05+Nobody+Beats+the+Biebs+720p+WEB-DL+DD5+1+H+264-Oosh.torrent): Error: ConnectFailure (Connection refused)

System.Net.WebException: Error: ConnectFailure (Connection refused) ---> System.Net.Sockets.SocketException: Connection refused
  at System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP) <0x4075fcd0 + 0x0019f> in <filename unknown>:0 
  at System.Net.WebConnection.Connect (System.Net.HttpWebRequest request) <0x4075e930 + 0x0058f> in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) <0x4075d9b0 + 0x001a3> in <filename unknown>:0 
  at System.Net.HttpWebRequest.GetResponse () <0x407593c0 + 0x00053> in <filename unknown>: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 

Import failed, path does not exist or is not accessible by Sonarr: /data/completed/tv-show-name #39

i installed transmission and sonarr via docker container. sonarr scans and finds the right show. it sends it to transmission but here is the problem.

from sonarr logs
Component - DownloadEpisodesImportService
Message - Import failed, path does not exist or is not accessible by Sonarr: /data/completed/tv-show-name

the "completed" folder is owned by the same user as the PUID and PGID (not owned by root) but it just wont move. I have tried to give other users full RW for this folder but still no good.

any advice is greatly appreciated.

http://imgur.com/a/Tlhh8
http://imgur.com/a/sZgaz

containers i am using
https://github.com/haugene/docker-transmission-openvpn
https://hub.docker.com/r/linuxserver/sonarr/

If you take a look at this image
http://imgur.com/a/Tlhh8

Transmission volume set up is folder /docker for mount path /data
Sonarr is set up for /docker/completed

http://imgur.com/a/sZgaz
this shows that the completed downloads goes into /data/completed which is really /docker/completed

shouldnt that be correct? there technically isnt a "data" folder. its both pointing at the "docker" folder. thats my understanding at least

High CPU usage on restart

When i try to restart sonarr via the web ui, the cpu usage skyrockets.
Stopping and restarting the container seems to fix the problem.

mac os high sierra

sonarr:
image: linuxserver/sonarr
container_name: sonarr
restart: always
ports:
- 8989:8989
environment:
- PGID=1000
- PUID=1000
- TZ=Europe/London
volumes:
- ${TSRJ}/sonarr:/config
- ${DOWNLOADS}:/downloads
- ${DOWNLOADS}/complete:/tv

Nothing special in the log. I could see the high cpu usage in docker stats ( 170%, 180%...)
log.txt

Sonarr will not connect to ruTorrent over SSL

linuxserver.io

Host OS: Unraid 6.3.3 ` /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name="Sonarr" --net="bridge" --privileged="true" -e TZ="America/Denver" -e HOST_OS="unRAID" -e "PUID"="99" -e "PGID"="100" -e "TZ"="America/Edmonton" -p 8989:8989/tcp -v "/mnt/cache/appdata/NzbDrone/":"/config":rw -v "/dev/rtc":"/dev/rtc":ro -v "/mnt/user/TV":"/tv":rw -v "/mnt/cache/appdata/NZBGet/downloads/completed/TV/":"/downloads":rw -v "/mnt/cache/tmp/tvbh":"/tmp2":rw -v "/mnt/user/tmp/manual-import/":"/manual_import":rw linuxserver/sonarr`

055b95d348f163211b84635221d1a25d92663222cd0b2119d88d870281db952b

Docker Log Output

[v2.0.0.4689] System.Net.WebException: Error writing headers ---> System.IO.IOException: The authentication or decryption has failed. ---> Mono.Security.Protocol.Tls.TlsException: The authentication or decryption has failed.

at Mono.Security.Protocol.Tls.RecordProtocol.EndReceiveRecord (IAsyncResult asyncResult) <0x414477d0 + 0x00103> in <filename unknown>:0
at Mono.Security.Protocol.Tls.SslClientStream.SafeEndReceiveRecord (IAsyncResult ar, Boolean ignoreEmpty) <0x41447710 + 0x0002b> in <filename unknown>:0
at Mono.Security.Protocol.Tls.SslClientStream.NegotiateAsyncWorker (IAsyncResult result) <0x41444e20 + 0x00227> in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Net.WebConnection.EndWrite (System.Net.HttpWebRequest request, Boolean throwOnError, IAsyncResult result) <0x411f3b80 + 0x00207> in <filename unknown>:0
at System.Net.WebConnectionStream+<SetHeadersAsync>c__AnonStorey1.<>m__0 (IAsyncResult r) <0x411f3460 + 0x00143> in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) <0x411f9ed0 + 0x001ab> in <filename unknown>:0
at System.Net.HttpWebRequest.GetResponse () <0x411f6de0 + 0x0005a> in <filename unknown>:0
at CookComputing.XmlRpc.XmlRpcClientProtocol.GetWebResponse (System.Net.WebRequest request) <0x41440e70 + 0x00032> in <filename unknown>:0

No symlinks are being used afaik

Doing a bit of research and talking posting in the mono issue forum it seems that the version of mono used in this container does not support the SSL protocols required but the updated version 4.8 does.

This allows secure integration to offsite rtorrent clients to allow some automation.

Thanks, team linuxserver.io

System.Data.SQLite.SQLiteException: disk I/O error

Hello all,

I am currently working on setting up plex and sonarr together on my unraid server.

I have installed a new instance of sonarr through the community Apps portal
linuxserver/sonarr:latest
sonarr - disk io errors

When viewing the logs we can see this error, and it loops until i stop the docker.

Info] Bootstrap: Starting Sonarr - /opt/NzbDrone/NzbDrone.exe - Version 2.0.0.4645

[Info] AppFolderInfo: Data directory is being overridden to [/config]
[Info] MigrationLogger: *** Migrating data source=/config/nzbdrone.db;cache size=-10485760;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***


[Fatal] ConsoleApp: EPIC FAIL!

[v2.0.0.4645] NzbDrone.Core.Datastore.CorruptDatabaseException: Database file: /config/nzbdrone.db is corrupt, restore from backup if available. See: https://github.com/Sonarr/Sonarr/wiki/FAQ#i-am-getting-an-error-database-disk-image-is-malformed ---> System.Data.SQLite.SQLiteException: disk I/O error

disk I/O error

at System.Data.SQLite.SQLite3.Prepare (System.Data.SQLite.SQLiteConnection cnn, System.String strSql, System.Data.SQLite.SQLiteStatement previous, UInt32 timeoutMS, System.String& strRemain) <0x40fd34b0 + 0x00cc3> in <filename unknown>:0
at System.Data.SQLite.SQLiteCommand.BuildNextCommand () <0x40fd3000 + 0x00239> in <filename unknown>:0
--- End of inner exception stack trace ---
at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00121] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Core\Datastore\DbFactory.cs:116
at NzbDrone.Core.Datastore.DbFactory.Create (MigrationType migrationType) [0x00000] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Core\Datastore\DbFactory.cs:56
at NzbDrone.Core.Datastore.DbFactory.RegisterDatabase (IContainer container) [0x00000] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Core\Datastore\DbFactory.cs:36
at NzbDrone.Host.Bootstrap.Start (ApplicationModes applicationModes, NzbDrone.Common.EnvironmentInfo.StartupContext startupContext) [0x0003d] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Host\Bootstrap.cs:73
at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, IUserAlert userAlert, System.Action`1 startCallback) [0x00075] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Host\Bootstrap.cs:40
at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x0000e] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Console\ConsoleApp.cs:20

Press enter to exit...

Please let me know what further information you may need, and possibly where to get it. I am a experiance Linux user but I am new to unraid and docker.

linuxserver.io

Thanks, team linuxserver.io

synology specific setup

container starts up successfully but doesn't really do anything:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
stdout
17:59:44
[s6-init] ensuring user provided files have correct perms...exited 0.
stdout
17:59:44
[fix-attrs.d] applying ownership &amp; permissions fixes...
stdout
17:59:44
[fix-attrs.d] done.
stdout
17:59:44
[cont-init.d] executing container initialization scripts...
stdout
17:59:44
[cont-init.d] 10-adduser: executing... 
stdout
17:59:45
usermod: no changes
stdout
17:59:45
stdout
17:59:45
-------------------------------------
stdout
17:59:45
          _     _ _
stdout
17:59:45
         | |___| (_) ___
stdout
17:59:45
         | / __| | |/ _ \ 
stdout
17:59:45
         | \__ \ | | (_) |
stdout
17:59:45
         |_|___/ |_|\___/
stdout
17:59:45
               |_|
stdout
17:59:45
stdout
17:59:45
Brought to you by linuxserver.io
stdout
17:59:45
We gratefully accept donations at:
stdout
17:59:45
https://www.linuxserver.io/donations/
stdout
17:59:45
-------------------------------------
stdout
17:59:45
GID/UID
stdout
17:59:45
-------------------------------------
stdout
17:59:45
User uid:    911
stdout
17:59:45
User gid:    911
stdout
17:59:45
-------------------------------------
stdout
17:59:45
stdout
17:59:45
[cont-init.d] 10-adduser: exited 0.
stdout
17:59:45
[cont-init.d] 30-config: executing... 
stdout
17:59:45
[cont-init.d] 30-config: exited 0.
stdout
17:59:45
[cont-init.d] done.
stdout
17:59:45
[services.d] starting services
stdout
17:59:45
[services.d] done.

the host/port says:

Error response

Error code: 501

Message: Unsupported method ('GET').

Error code explanation: HTTPStatus.NOT_IMPLEMENTED - Server does not support this operation.

i can see mono nzbdrone <blah> running in the process list via the terminal on the container

linuxserver.io

synology DSM 6

we have /config /tv downloads mounted

New install; can't add series

I'm not new to Sonarr, nor am I new to Docker, but this is my first time running Sonarr containerized. I'm immediately running into issues when I try to add a series with a new directory path: "Folder is not writable by user abc"

useradd sonarr
goofys -o allow_other --uid $(id -u sonarr) --gid $(id -g sonarr) bucket_name:/ /mnt/media/tv
chown -R sonarr:sonarr /mnt/media/tv

^ This is my TV volume mount. Works great. Should work well with the Sonarr container, but it doesn't.

The Sonarr container is configured to use the same PUID and PGID, and I've confirmed that their IDs match. Running docker exec -it sonarr ls -l shows that /tv is owned by root, not abc. Temporarily disabling SELinux did not produce a different result.

Not sure what's going on here, but I feel like this is configured properly. What could be the problem?

DiskProvider issue

I have installed this build on WD Mycloud PR2100

Everything is working fine sonar is connected to my plex server and to my TV folder and the download client. I keep getting the following errors :

Couldn't get free space for /usr/local/modules: No such file or directory

System.InvalidOperationException: No such file or directory ---> Mono.Unix.UnixIOException: No such file or directory [ENOENT].
  --- End of inner exception stack trace ---
  at Mono.Unix.UnixDriveInfo.Refresh (Boolean throwException) <0x407f41d0 + 0x000e3> in <filename unknown>:0 
  at Mono.Unix.UnixDriveInfo.Refresh () <0x407f41a0 + 0x00013> in <filename unknown>:0 
  at Mono.Unix.UnixDriveInfo.get_AvailableFreeSpace () <0x407f4120 + 0x0000f> in <filename unknown>:0 
  at NzbDrone.Mono.Disk.ProcMount.get_AvailableFreeSpace () [0x00000] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Mono\Disk\ProcMount.cs:23 
  at NzbDrone.Mono.Disk.DiskProvider.GetAvailableSpace (System.String path) [0x00079] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Mono\Disk\DiskProvider.cs:53 
Close

Couldn't get free space for /mnt/HD_b4: No such file or directory

System.InvalidOperationException: No such file or directory ---> Mono.Unix.UnixIOException: No such file or directory [ENOENT].
  --- End of inner exception stack trace ---
  at Mono.Unix.UnixDriveInfo.Refresh (Boolean throwException) <0x407f41d0 + 0x000e3> in <filename unknown>:0 
  at Mono.Unix.UnixDriveInfo.Refresh () <0x407f41a0 + 0x00013> in <filename unknown>:0 
  at Mono.Unix.UnixDriveInfo.get_AvailableFreeSpace () <0x407f4120 + 0x0000f> in <filename unknown>:0 
  at NzbDrone.Mono.Disk.ProcMount.get_AvailableFreeSpace () [0x00000] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Mono\Disk\ProcMount.cs:23 
  at NzbDrone.Mono.Disk.DiskProvider.GetAvailableSpace (System.String path) [0x00079] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Mono\Disk\DiskProvider.cs:53 
Close


Couldn't get free space for /mnt/HD/HD_a2/Nas_Prog/_docker/devicemapper: No such file or directory

System.InvalidOperationException: No such file or directory ---> Mono.Unix.UnixIOException: No such file or directory [ENOENT].
  --- End of inner exception stack trace ---
  at Mono.Unix.UnixDriveInfo.Refresh (Boolean throwException) <0x407f41d0 + 0x000e3> in <filename unknown>:0 
  at Mono.Unix.UnixDriveInfo.Refresh () <0x407f41a0 + 0x00013> in <filename unknown>:0 
  at Mono.Unix.UnixDriveInfo.get_AvailableFreeSpace () <0x407f4120 + 0x0000f> in <filename unknown>:0 
  at NzbDrone.Mono.Disk.ProcMount.get_AvailableFreeSpace () [0x00000] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Mono\Disk\ProcMount.cs:23 
  at NzbDrone.Mono.Disk.DiskProvider.GetAvailableSpace (System.String path) [0x00079] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Mono\Disk\DiskProvider.cs:53 

I don't know what i am missing

please include python for custom scripts

It looks like when the package was rebased to xenial the python package was no longer included, this is needed to process custom python scripts

Thanks, team linuxserver.io

Realtime webgui refresh not working (possibly SignalR issue)

There appears to be an issue with the Sonarr webgui automatically updating/refreshing. Upon some research, I came across this thread: https://forums.sonarr.tv/t/gui-update-issues/4195/30

Following the suggestion to open up the dev tools within Chrome, I came across this error within the dev tool console:

Starting signalR          SignalRBroadcaster.js:9 
SignalR: [connecting]     SignalRBroadcaster.js:32
GET http://<myhost>:8989/signalr/negotiate?_=1440564408822 500 (Internal Server Error)     jquery.js:9659
SignalR: [disconnected]   SignalRBroadcaster.js:32

unRAID forum post: http://lime-technology.com/forum/index.php?topic=41330.msg404007#msg404007

Permission issues

I've set the user and group ids to the owner of the directories where the volumes are pointed to, but I'm getting System.UnauthorizedAccessException: Access to the path "/config/nzbdrone.pid" is denied.

Host: macOS
run command:

docker run --privileged -d
-v /Users/Matthew/Downloads:/data
-v /Users/Matthew/Documents/NzbDrone:/config
-v /Users/Matthew/Anime:/Anime
-v /Users/Matthew/TV:/TV
-e PUID=501 -e PGID=20
--name sonarr -p 8989:8989 --restart always -P linuxserver/sonarr:develop

Cant get any other path but /app/

Is there a way to give sonarr the ability to see the files on my Synology drive? right now it only shows /app/ a lot of other folders but all lead to nothing. I'm downloading shows and saving them to a folder marked media, but sonarr doesn't seem them as downloaded.

thanks

unable to spawn ./run

Hi guys,

when running on CentOS 7 , I get this in the container :
s6-supervise (child): fatal: unable to exec run: Permission denied
s6-supervise sonarr: warning: unable to spawn ./run - waiting 10 seconds

I run the container with :
docker run --name sonarr -d -p 8989:8989 -e PUID=1000 -e PGID=1000 -v /dev/rtc:/dev/rtc:ro -v /home/docker/:/config -v /home/docker/var/transmission/Downloads:/tv -v /home/docker/var/transmission/Downloads:/downloads docker.io/linuxserver/sonarr

I also tried with :
docker run -d --name=test -p 8989:8989 linuxserver/sonarr
But same behavior.

I am able to bypass this problem by rewriting the Dockerfile with :
VOLUME /run

But after building and running, I'm not able to see the 'mono' process and I have to run it manually.

Thank a lot.

Workaround for not able to hardlink content from /downloads

Sonarr can't use hardlinks to put files from /download to /tv, since they are on a different docker volume. This causes extensive disk IO, and drive space duplication, even though they are physical on the same disk.

A solution for this could be to map a higher folder to docker, and work with symlinks to that folder inside docker.

Example:

Before:

  sonarr:
    container_name: sonarr
    image: linuxserver/sonarr
    ports:
      - "127.0.0.1:8989:8989"
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /dev/rtc:/dev/rtc:ro
      - /etc/sonarr:/config
      - /mnt/data/tv:/tv
      - /mnt/data/torrents/tv:/downloads

After:

  sonarr:
    container_name: sonarr
    image: linuxserver/sonarr
    ports:
      - "127.0.0.1:8989:8989"
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /dev/rtc:/dev/rtc:ro
      - /etc/sonarr:/config
      - /mnt/data:/data

And then have the container create a symlink from /data/tv to /tv, and from /data/torrents/tv to /downloads.

$ ln -s /data/tv /tv
$ ln -s /data/torrents/tv / downloads

This could speed up the final processing of the downloaded content a lot.

add python or install custom packages

the development version added support for custom post processing scripts. (i'm currently using a python script to add any anime processed by sonarr to my anidb listing)
it would be great, if you could add python to your docker, so we could easily use this new feature.
or maybe add a functionality to install custom packages via an environment variable.

(currently i've installed python via a docker exec command, but that change would of course be gone, if I have to redownload the docker for any reason.)

Folder is not writable by user abc

Anybody can help me with config?? I tried use a network location(NAS) for tv folder, but this error appear "Folder is not writable by user abc".
Environment: Windows 10.

Tks

Problem with SQLite breaking database

Hi I have been using your docker container sonarr for over a year now and just recently the database keeps breaking even when I start with a fresh database.

I get the following output in the logs
`[Error] TaskExtensions: Task Error

[v2.0.0.4230] System.Data.SQLite.SQLiteException: disk I/O error
disk I/O error
at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) <0x40276a70 + 0x0027f> in :0
at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) <0x40276540 + 0x0014e> in :0
at System.Data.SQLite.SQLiteDataReader.NextResult () <0x4026d300 + 0x00741> in :0
at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, CommandBehavior behave) <0x4026cc20 + 0x002b9> in :0
at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader:.ctor (System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
at System.Data.SQLite.SQLiteCommand.ExecuteReader (CommandBehavior behavior) <0x4026c220 + 0x00043> in :0
at System.Data.SQLite.SQLiteCommand.ExecuteScalar (CommandBehavior behavior) <0x403314d0 + 0x00037> in :0
at System.Data.SQLite.SQLiteCommand.ExecuteScalar () <0x403314a0 + 0x0001b> in :0
at Marr.Data.QGen.InsertQueryBuilder1[T].Execute () <0x40330770 + 0x000d3> in <filename unknown>:0 at Marr.Data.DataMapper.Insert[T] (Marr.Data.T entity) <0x4032ffa0 + 0x0025c> in <filename unknown>:0 at NzbDrone.Core.Datastore.BasicRepository1[TModel].Insert (NzbDrone.Core.Datastore.TModel model) <0x4032fe90 + 0x00067> in :0
at NzbDrone.Core.Messaging.Commands.CommandQueueManager.Push[TCommand](NzbDrone.Core.Messaging.Commands.TCommand command, CommandPriority priority, CommandTrigger trigger) <0x40d120f0 + 0x00532> in :0
at (wrapper dynamic-method) System.Object:CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,NzbDrone.Core.Messaging.Commands.CommandQueueManager,object,NzbDrone.Core.Messaging.Commands.CommandPriority,NzbDrone.Core.Messaging.Commands.CommandTrigger)
at NzbDrone.Core.Messaging.Commands.CommandQueueManager.Push (System.String commandName, Nullable1 lastExecutionTime, CommandPriority priority, CommandTrigger trigger) <0x40d04190 + 0x0044e> in <filename unknown>:0 at NzbDrone.Core.Jobs.Scheduler.ExecuteCommands () <0x40d039d0 + 0x00115> in <filename unknown>:0 at System.Threading.Tasks.Task.InnerInvoke () <0x2ab1eb50d960 + 0x0004f> in <filename unknown>:0 at System.Threading.Tasks.Task.Execute () <0x2ab1eb50d220 + 0x00055> in <filename unknown>:0

I am not sure if this is an issue with the container or with sonarr itself because it apears that SQLite is the source of the problem.

Thanks anyway.

tzdata missing?

When using the latest docker image, I get this error message:

EPIC FAIL: System.IO.FileNotFoundException: Could not find file "/etc/localtime"
File name: '/etc/localtime'
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0025f] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
  at System.IO.File.OpenRead (System.String path) [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0
  at System.TimeZoneInfo.FindSystemTimeZoneByFileName (System.String id, System.String filepath) [0x00011] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0
  at System.TimeZoneInfo.CreateLocal () [0x000ed] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0
  at System.TimeZoneInfo.get_Local () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0
  at System.TimeZoneInfo.GetDateTimeNowUtcOffsetFromUtc (System.DateTime time, System.Boolean& isAmbiguousLocalDst) [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0
  at System.DateTime.get_Now () [0x00008] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0
  at NLog.Time.FastLocalTimeSource.get_FreshTime () [0x00000] in <595dc70423204ac199a723f0d6eec101>:0
  at NLog.Time.CachedTimeSource.get_Time () [0x00016] in <595dc70423204ac199a723f0d6eec101>:0
  at NLog.LogEventInfo..ctor () [0x0000c] in <595dc70423204ac199a723f0d6eec101>:0
  at NLog.LogEventInfo..ctor (NLog.LogLevel level, System.String loggerName, System.IFormatProvider formatProvider, System.String message, System.Object[] parameters, System.Exception exception) [0x00000] in <595dc70423204ac199a723f0d6eec101>:0
  at NLog.LogEventInfo.Create (NLog.LogLevel logLevel, System.String loggerName, System.Exception exception, System.IFormatProvider formatProvider, System.String message, System.Object[] parameters) [0x00000] in <595dc70423204ac199a723f0d6eec101>:0
  at NLog.Logger.WriteToTargets (NLog.LogLevel level, System.Exception ex, System.String message, System.Object[] args) [0x00021] in <595dc70423204ac199a723f0d6eec101>:0
  at NLog.Logger.Fatal (System.Exception exception, System.String message) [0x00008] in <595dc70423204ac199a723f0d6eec101>:0
  at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x0007a] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Console\ConsoleApp.cs:35
exception inside UnhandledException handler: Could not find file "/etc/localtime"

While the /etc/localtime symlink is there, it points to a non-existing file /usr/share/zoneinfo/Etc/UTC. Installing the tzdata package fixes the issue.

Import failed, path does not exist or is not accessible by Sonarr: /data/completed/tv-show-name

i installed transmission and sonarr via docker container. sonarr scans and finds the right show. it sends it to transmission but here is the problem.

from sonarr logs
Component - DownloadEpisodesImportService
Message - Import failed, path does not exist or is not accessible by Sonarr: /data/completed/tv-show-name

the "completed" folder is owned by the same user as the PUID and PGID (not owned by root) but it just wont move. I have tried to give other users full RW for this folder but still no good.

any advice is greatly appreciated.

http://imgur.com/a/Tlhh8
http://imgur.com/a/sZgaz

containers i am using
https://github.com/haugene/docker-transmission-openvpn
https://hub.docker.com/r/linuxserver/sonarr/

Include libcurl in install.

Sonarr uses libcurl as a fallback for SSL connections. Without it, it may fail to connect to some indexers.

It should be added to the PATH variable too.

Does this work with a proxy (nginx) behind a vpn)?

I have a sonarr container setup behind a vpn container. I am using nginx container in order to access sonarr's web management from outside the vpn. However, it seems I only get to a blank page with this text on the top...

Sonarr Ver.

So it seems as though Sonarr is running and that nginx is working correctly, but that sonarr does not want to load the full management page.

My sonarr logs:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 10-adduser: executing...


      _     _ _
     | |___| (_) ___
     | / __| | |/ _ \
     | \__ \ | | (_) |
     |_|___/ |_|\___/
           |_|

Brought to you by linuxserver.io
We gratefully accept donations at:
https://www.linuxserver.io/donations/

GID/UID

User uid: 1001
User gid: 1001

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing...
[cont-init.d] 30-config: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[Info] Bootstrap: Starting Sonarr - /opt/NzbDrone/NzbDrone.exe - Version 2.0.0.4645
[Info] AppFolderInfo: Data directory is being overridden to [/config]
[Info] MigrationLogger: *** Migrating data source=/config/nzbdrone.db;cache size=-10485760;
[Info] MigrationLogger: *** Migrating data source=/config/logs.db;cache size=-10485760;date
[Info] Router: Application mode: Interactive
[Info] OwinHostController: Listening on the following URLs:
[Info] OwinHostController: http://*:8989/
[Info] NancyBootstrapper: Starting Web Server
[Error] TaskExtensions: Task Error

[v2.0.0.4645] System.Net.WebException: Error: NameResolutionFailure
at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) <0x418f0e10 + 0x00
at System.Net.HttpWebRequest.GetResponse () <0x418e9ec0 + 0x0005a> in :
at NzbDrone.Common.Http.Dispatchers.ManagedHttpDispatcher.GetResponse (NzbDrone.Common.Ht
e.Common\Http\Dispatchers\ManagedHttpDispatcher.cs:63

[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
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] syncing disks.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 10-adduser: executing...
usermod: no changes


      _     _ _
     | |___| (_) ___
     | / __| | |/ _ \
     | \__ \ | | (_) |
     |_|___/ |_|\___/
           |_|

Brought to you by linuxserver.io
We gratefully accept donations at:
https://www.linuxserver.io/donations/

GID/UID

User uid: 1001
User gid: 1001

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing...
[cont-init.d] 30-config: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[Info] Bootstrap: Starting Sonarr - /opt/NzbDrone/NzbDrone.exe - Version 2.0.0.4645
[Info] AppFolderInfo: Data directory is being overridden to [/config]
[Info] MigrationLogger: *** Migrating data source=/config/nzbdrone.db;cache size=-10485760;
[Info] MigrationLogger: *** Migrating data source=/config/logs.db;cache size=-10485760;date
[Info] Router: Application mode: Interactive
[Info] OwinHostController: Listening on the following URLs:
[Info] OwinHostController: http://*:8989/
[Info] NancyBootstrapper: Starting Web Server
[Error] TaskExtensions: Task Error

[v2.0.0.4645] System.Net.WebException: Error: NameResolutionFailure
at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) <0x421fc640 + 0x00
at System.Net.HttpWebRequest.GetResponse () <0x421f6560 + 0x0005a> in :
at NzbDrone.Common.Http.Dispatchers.ManagedHttpDispatcher.GetResponse (NzbDrone.Common.Ht
e.Common\Http\Dispatchers\ManagedHttpDispatcher.cs:63

[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
[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

Sonarr container "freeze", and can't be stopped/killed

My not too complicated system has run radarr for 28+ hours without isssues, then suddenly it cramps up. I tried to stop, kill, remove and otherwise get it going again. Nothing happens, even "docker top sonarr" just hangs

This was running fine until it didn't. I use the same configuration for all my containers, (sonarr, radarr, transmission, jackett, portainer and plex)

I can not see anything happening on the system to trigger this kind of issue

OS:

Ubuntu Bionic Beaver (Ubuntu Mate)

Create command

docker create --name sonarr
-p 8989:8989
-e PUID=1000 -e PGID=1000
-e TZ=Europe/Oslo
-v /etc/localtime:/etc/localtime:ro
-v /home/docker/sonarr/config:/config
-v /media/tv:/tv
-v /media/downloads:/downloads
linuxserver/sonarr

logs

sonarrlogs.txt

other

Only thing I did after create was to change the restart policy to "unless stopped". Other containers run smoothly. The

my theory

Some issue with error-handling that leads to some infinite loop

Anything more you need to troubleshoot this issue?

E: dpkg was interupted

Im receiving the following error when running. it was working but seems to have stopped when i rebooted the host.

running on a synology DS1813+

screen shot 2016-04-19 at 2 37 57 am

Run Sonarr on privileged ports

Hi!

I've recently tried to run sonarr on port 80, but it throws an error because

[Fatal] ConsoleApp: Access denied. This can happen if another instance of Sonarr is already running another application is using the same port (default: 8989) or the user has insufficient permissions

I suspect user abc does not have sufficient permissions. How can I run this as root or use the privileged ports?

Unable to connect to indexer since last pull of image

linuxserver.io

Hello,

Since I updated the sonarr image (today) one of my indexer seems to be broken.
I'm using Torznab indexer.

Maybe it can be useful, I'm seeing the same error from radarr image (also updated today).

Here are the logs from sonarr :

Message:
Unable to connect to indexer: '�', hexadecimal value 0x1C, is an invalid character. Line 2, position 19490.
Exception:
System.Xml.XmlException: '�', hexadecimal value 0x1C, is an invalid character. Line 2, position 19490. at System.Xml.XmlTextReaderImpl.Throw (System.Exception e) <0x40500250 + 0x000a3> in <filename unknown>:0 at System.Xml.XmlTextReaderImpl.Throw (System.String res, System.String[] args) <0x404ffd70 + 0x000ab> in <filename unknown>:0 at System.Xml.XmlTextReaderImpl.Throw (Int32 pos, System.String res, System.String[] args) <0x404ffd00 + 0x00043> in <filename unknown>:0 at System.Xml.XmlTextReaderImpl.ThrowInvalidChar (System.Char[] data, Int32 length, Int32 invCharPos) <0x404ff960 + 0x00047> in <filename unknown>:0 at System.Xml.XmlTextReaderImpl.ParseText (System.Int32& startPos, System.Int32& endPos, System.Int32& outOrChars) <0x40171230 + 0x006f7> in <filename unknown>:0 at System.Xml.XmlTextReaderImpl.ParseText () <0x40170c60 + 0x000cb> in <filename unknown>:0 at System.Xml.XmlTextReaderImpl.ParseElementContent () <0x401707b0 + 0x00317> in <filename unknown>:0 at System.Xml.XmlTextReaderImpl.Read () <0x4016b060 + 0x00057> in <filename unknown>:0 at System.Xml.Linq.XContainer.ReadContentFrom (System.Xml.XmlReader r) <0x40211410 + 0x0059f> in <filename unknown>:0 at System.Xml.Linq.XContainer.ReadContentFrom (System.Xml.XmlReader r, LoadOptions o) <0x40210660 + 0x00057> in <filename unknown>:0 at System.Xml.Linq.XDocument.Load (System.Xml.XmlReader reader, LoadOptions options) <0x402102f0 + 0x0024b> in <filename unknown>:0 at System.Xml.Linq.XDocument.Load (System.Xml.XmlReader reader) <0x404fe740 + 0x0000f> in <filename unknown>:0 at NzbDrone.Core.Indexers.RssParser.LoadXmlDocument (NzbDrone.Core.Indexers.IndexerResponse indexerResponse) [0x0003f] in M:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Indexers\RssParser.cs:85

You can find informations requested below:

Host OS

My host OS is : debian 8.7

Docker log output, docker log

No log since start :
[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing...
[cont-init.d] 30-config: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.

Mention if you're using symlinks on any of the volume mounts.

I'm using volume (docker run -v myvolume:/data) no symlinks.

Thanks for your help.

Thanks, team linuxserver.io

"Access Denied" even when using GUID / PGID

Im using a centos7 VM with docker installed, it runs under root and have set the docker compose as below:

  sonarr:
    image: linuxserver/sonarr
    container_name: sonarr
    hostname: sonarr
    depends_on:
      - proxy
    restart: always
    volumes:
      - sonarr_conf:/config:rw
      - downloads:/downloads:rw
      - sonarr_tv:/tv:rw
    ports:
      - 8989:8989
    environment:
      - PGID=0
      - GUID=0
      - TZ=Europe/London
volumes:
  sonarr_conf:
    driver_opts:
      type: none
      device: /mnt/nfs/dockerfiles/sonarr/conf
      o: bind
  downloads:
    driver_opts:
      type: none
      device: /mnt/nfs/deluge/downloads
      o: bind
  sonarr_tv:
    driver_opts:
      type: none
      device: /mnt/nfs/media/tv
      o: bind

when a download is detected and it tries to copy it to the tv folder it fails saying access denied, it seems to be trying to copy it over as the user "abc" rather than root as i would expect it to.

Im now lost as to why this is happening as i thought the whole point in GUID and PGID was to stop this happening.

the mounts are NFS, Downloads is an export on another centos7 vm and TV is a FreeNAS NFS Share.

Permission problems? - "Couldn't import episode... Access denied"

Apologies in advance for any strange formatting, I suck at markdown. All episodes I download via sabnzbd fail at import inside Sonarr with "Couldn't import episode [whatever] Access to the path is denied" exceptions in the log.

Stack Trace:

18-6-26 22:39:02.4|Warn|ImportApprovedEpisodes|Couldn't import episode /downloads/OfuscatedEpisode.AMZN.WEB-DL.DDP2.0.H.264.1-NTb-Obfuscated/78f4816205c14f93ad6b2359bd89e282.mkv

[v2.0.0.5228] System.UnauthorizedAccessException: Access to the path is denied.
at System.IO.File.Move (System.String sourceFileName, System.String destFileName) [0x00116] in <71d8ad678db34313b7f718a414dfcb25>:0
at NzbDrone.Common.Disk.DiskProviderBase.MoveFileInternal (System.String source, System.String destination) [0x00000] in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Common\Disk\DiskProviderBase.cs:232
at NzbDrone.Mono.Disk.DiskProvider.MoveFileInternal (System.String source, System.String destination) [0x00076] in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Mono\Disk\DiskProvider.cs:170
at NzbDrone.Common.Disk.DiskProviderBase.MoveFile (System.String source, System.String destination, System.Boolean overwrite) [0x000e3] in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Common\Disk\DiskProviderBase.cs:227
at NzbDrone.Common.Disk.DiskTransferService.TryMoveFileTransactional (System.String sourcePath, System.String targetPath, System.Int64 originalSize, NzbDrone.Common.Disk.DiskTransferVerificationMode verificationMode) [0x0008f] in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Common\Disk\DiskTransferService.cs:490
at NzbDrone.Common.Disk.DiskTransferService.TransferFile (System.String sourcePath, System.String targetPath, NzbDrone.Common.Disk.TransferMode mode, System.Boolean overwrite, NzbDrone.Common.Disk.DiskTransferVerificationMode verificationMode) [0x003ce] in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Common\Disk\DiskTransferService.cs:312
at NzbDrone.Common.Disk.DiskTransferService.TransferFile (System.String sourcePath, System.String targetPath, NzbDrone.Common.Disk.TransferMode mode, System.Boolean overwrite, System.Boolean verified) [0x0000e] in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Common\Disk\DiskTransferService.cs:196
at NzbDrone.Core.MediaFiles.EpisodeFileMovingService.TransferFile (NzbDrone.Core.MediaFiles.EpisodeFile episodeFile, NzbDrone.Core.Tv.Series series, System.Collections.Generic.List1[T] episodes, System.String destinationFilePath, NzbDrone.Common.Disk.TransferMode mode) [0x0012c] in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Core\MediaFiles\EpisodeFileMovingService.cs:119 at NzbDrone.Core.MediaFiles.EpisodeFileMovingService.MoveEpisodeFile (NzbDrone.Core.MediaFiles.EpisodeFile episodeFile, NzbDrone.Core.Parser.Model.LocalEpisode localEpisode) [0x0005e] in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Core\MediaFiles\EpisodeFileMovingService.cs:81 at NzbDrone.Core.MediaFiles.UpgradeMediaFileService.UpgradeEpisodeFile (NzbDrone.Core.MediaFiles.EpisodeFile episodeFile, NzbDrone.Core.Parser.Model.LocalEpisode localEpisode, System.Boolean copyOnly) [0x0017c] in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Core\MediaFiles\UpgradeMediaFileService.cs:76 at NzbDrone.Core.MediaFiles.EpisodeImport.ImportApprovedEpisodes.Import (System.Collections.Generic.List1[T] decisions, System.Boolean newDownload, NzbDrone.Core.Download.DownloadClientItem downloadClientItem, NzbDrone.Core.MediaFiles.EpisodeImport.ImportMode importMode) [0x00272] in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Core\MediaFiles\EpisodeImport\ImportApprovedEpisodes.cs:107

Host OS: Debian 9.2 Gnome
Sonarr create command:

docker create
--name sonarr
-p 8989:8989
-e PUID=1004 -e PGID=100
-e TZ="%obfuscated%"
-v /etc/localtime:/etc/localtime:ro
-v /var/sonarr:/config
-v /mnt/vg-storage/lv-media/shows:/tv
-v /var/nzb-download:/downloads
linuxserver/sonarr

sabnzbd create command:

docker create --name=sabnzbd
-v /var/sabnzbd:/config
-v /var/nzb-download:/downloads
-v /var/nzb-download/incomplete:/incomplete-downloads
-e PGID=100 -e PUID=1004
-e TZ="%obfuscated%"
-p 8080:8080 -p 9090:9090
linuxserver/sabnzbd

docker log output: unknown, I don't seem to have a "docker log" command available?

The connection between sonarr and sabnzbd works fine, sonarr finds things on my indexer and successfully hands them to sabznbd. Sonarr just fails trying to import anything sab downloads for it.

/var/nzb-downloads looks like this when I ls -la:
drwxrwxr-t 4 htpc users 4096 Jun 26 22:38 nzb-download

/mnt/vg-storage/lv-media/shows looks like this when I ls -la:
drwxrwxrwx 68 nobody users 4096 Jun 26 21:06 shows

everything under /mnt/vg-storage/lv-media/shows is 777 and owned by nobody:users

Note both sab and sonarr have the same UID set (1004). htpc's uid is:
$ id -u htpc
1004

Edit to add GID 100 is the users group ;).

I can su to htpc and have read/write access to both /var/nzb-downloads and /mnt/vg-storage/lv-media/shows and all children there (can mv, rm, touch, etc) - including the file referenced in the stack trace above.

If I docker exec -it bash into the sonarr container and then su to user abc (because I'm initially root), I have read/write access to both /tv and /downloads and all children there (can mv, rm, touch, etc) - including the file referenced in the stack trace above.

So I'm kind of stumped what the problem is?

mono_gdb_render_native_backtraces not supported on this platform, unable to find gdb or lldb

Saw the issue as well on the omni container and that it might have been related to the mono version?

Debug info from gdb:

mono_gdb_render_native_backtraces not supported on this platform, unable to find gdb or lldb

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.

Proxmox 5. (Debian)

docker run -d
--name Sonarr01
--hostname=Sonarr01
--memory=2048M
--memory-swap=2560M
--restart always
-p 8989:8989
-v /etc/localtime:/etc/localtime:ro
-v /docker/apps/sonarr:/config
-v /volume1/Drive/Shows:/media
-v /volume1/Drive:/volume1/Drive
-v /volume3/Drive3:/volume3/Drive3
-v /volume1/Drive/Downloads:/downloads
linuxserver/sonarr:develop

Symlinks, yes

MP4 Automator Support

Would love support for: https://github.com/mdhiggins/sickbeard_mp4_automator/

it might make sense to have NZBGet / SABnzbd support this rather than each PVR application. Ultimately I'm looking for a way to automate the remux processor to help out my process and limit transcoding requirements for Plex. Where that lives, I'm not sure I care too much (personally).

Can't connect to Transmission due to Mono 5.12 version

The lsiobase/mono base image now contains a Mono version 5.12.

According to the release notes, the HttpWebRequest async handling has been rewritten.

Because of this, connecting to transmission appears to always fail.

Here's the stacktrace I get:

[v2.0.0.5163] NzbDrone.Core.Download.Clients.DownloadClientUnavailableException: Unable to connect to Transmission, please check your settings ---> System.Net.WebException: Failed to read complete http response ---> System.Net.WebException: Error getting response stream (ReadAsync): ReceiveFailure Value cannot be null.
Parameter name: src ---> System.ArgumentNullException: Value cannot be null.
Parameter name: src
  at System.Net.HttpWebRequest+<RunWithTimeoutWorker>d__244`1[T].MoveNext () [0x000ba] in <fc308f916aec4e4283e0c1d4b761760a>:0
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <71d8ad678db34313b7f718a414dfcb25>:0
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <71d8ad678db34313b7f718a414dfcb25>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <71d8ad678db34313b7f718a414dfcb25>:0
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <71d8ad678db34313b7f718a414dfcb25>:0
  at System.Net.WebResponseStream+<ReadAsync>d__48.MoveNext () [0x00253] in <fc308f916aec4e4283e0c1d4b761760a>:0
   --- End of inner exception stack trace ---
  at System.Net.WebConnectionStream.Read (System.Byte[] buffer, System.Int32 offset, System.Int32 count) [0x00077] in <fc308f916aec4e4283e0c1d4b761760a>:0
  at NzbDrone.Common.Extensions.StreamExtensions.ToBytes (System.IO.Stream input) [0x0001c] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Common\Extensions\StreamExtensions.cs:13
  at NzbDrone.Common.Http.Dispatchers.ManagedHttpDispatcher.GetResponse (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookies) [0x001dd] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Common\Http\Dispatchers\ManagedHttpDispatcher.cs:108
   --- End of inner exception stack trace ---
  at NzbDrone.Common.Http.Dispatchers.ManagedHttpDispatcher.GetResponse (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookies) [0x001e9] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Common\Http\Dispatchers\ManagedHttpDispatcher.cs:112
  at NzbDrone.Common.Http.Dispatchers.FallbackHttpDispatcher.GetResponse (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookies) [0x0003c] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Common\Http\Dispatchers\FallbackHttpDispatcher.cs:35
  at NzbDrone.Common.Http.HttpClient.ExecuteRequest (NzbDrone.Common.Http.HttpRequest request) [0x0007e] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Common\Http\HttpClient.cs:119
  at NzbDrone.Common.Http.HttpClient.Execute (NzbDrone.Common.Http.HttpRequest request) [0x00000] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Common\Http\HttpClient.cs:55
  at NzbDrone.Core.Download.Clients.Transmission.TransmissionProxy.AuthenticateClient (NzbDrone.Common.Http.HttpRequestBuilder requestBuilder, NzbDrone.Core.Download.Clients.Transmission.TransmissionSettings settings, System.Boolean reauthenticate) [0x0004f] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Core\Download\Clients\Transmission\TransmissionProxy.cs:212
  at NzbDrone.Core.Download.Clients.Transmission.TransmissionProxy.ProcessRequest (System.String action, System.Object arguments, NzbDrone.Core.Download.Clients.Transmission.TransmissionSettings settings) [0x0001f] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Core\Download\Clients\Transmission\TransmissionProxy.cs:249
   --- End of inner exception stack trace ---
  at NzbDrone.Core.Download.Clients.Transmission.TransmissionProxy.ProcessRequest (System.String action, System.Object arguments, NzbDrone.Core.Download.Clients.Transmission.TransmissionSettings settings) [0x00138] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Core\Download\Clients\Transmission\TransmissionProxy.cs:301
  at NzbDrone.Core.Download.Clients.Transmission.TransmissionProxy.GetTorrentStatus (System.Collections.Generic.IEnumerable`1[T] hashStrings, NzbDrone.Core.Download.Clients.Transmission.TransmissionSettings settings) [0x0007a] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Core\Download\Clients\Transmission\TransmissionProxy.cs:181
  at NzbDrone.Core.Download.Clients.Transmission.TransmissionProxy.GetTorrentStatus (NzbDrone.Core.Download.Clients.Transmission.TransmissionSettings settings) [0x00000] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Core\Download\Clients\Transmission\TransmissionProxy.cs:155
  at NzbDrone.Core.Download.Clients.Transmission.TransmissionProxy.GetTorrents (NzbDrone.Core.Download.Clients.Transmission.TransmissionSettings settings) [0x00000] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Core\Download\Clients\Transmission\TransmissionProxy.cs:43
  at NzbDrone.Core.Download.Clients.Transmission.TransmissionBase.GetItems () [0x00000] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Core\Download\Clients\Transmission\TransmissionBase.cs:36
  at NzbDrone.Core.Download.TrackedDownloads.DownloadMonitoringService.ProcessClientDownloads (NzbDrone.Core.Download.IDownloadClient downloadClient) [0x0000c] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Core\Download\TrackedDownloads\DownloadMonitoringService.cs:89

Until this has been resolved, it might be a good idea to base the image on an earlier version of lsiobase/mono.

Typo

6558 ? Sl 1:44 mono /opt/NzbDrone/NzbDrone.exe -nobrowswer -data=/config

Hi I found a typo in the Sonarr docker. Should be -nobrowser

Error during refreshSeries: mono_gdb_render_native_backtraces not supported on this platform, unable to find gdb or lldb

linuxserver.io

Host OS: UnRAID 6.3
Docker Run Command via UnRAID:

root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name="sonarr" --net="host" -e TZ="America/Chicago" -e HOST_OS="unRAID" -e "PUID"="1000" -e "PGID"="100" -v "/dev/rtc":"/dev/rtc":ro -v "/mnt/user/docker/sonarr":"/config":rw -v "/mnt/user/NAS/TV Shows":"/tv":rw -v "/mnt/user/NAS/Downloads/nzbget":"/downloads":rw -v "/mnt/user/NAS/Downloads/ingest/":"/ingest":rw linuxserver/sonarr

Relevent Docker Logs: https://hastebin.com/xanuxehatu.lua

Additional Information

Basically, Sonarr does a full scan, and hangs up on one show. Unsure why this happens, but if I leave the Web UI open for some time, it eventually just fills up the righthand notifications with [refreshSeries]: Scanning Disk for Mr Student Body President

Native stacktrace:

        mono() [0x4a91b9]
        mono() [0x426939]
        /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390) [0x2b9caf1db390]
        /usr/lib/x86_64-linux-gnu/libmediainfo.so.0(+0x30c9a1) [0x2b9cbf0f09a1]
        /usr/lib/x86_64-linux-gnu/libmediainfo.so.0(+0x48925) [0x2b9cbee2c925]
        /usr/lib/x86_64-linux-gnu/libmediainfo.so.0(+0x494a8) [0x2b9cbee2d4a8]
        /usr/lib/x86_64-linux-gnu/libmediainfo.so.0(+0xc6eca) [0x2b9cbeeaaeca]
        /usr/lib/x86_64-linux-gnu/libmediainfo.so.0(_ZN12MediaInfoLib9MediaInfo20Open_Buffer_ContinueEPKhm+0xc) [0x2b9cbee7a62c]
        /usr/lib/x86_64-linux-gnu/libmediainfo.so.0(MediaInfo_Open_Buffer_Continue+0x9d) [0x2b9cbf24184d]
        [0x41d035a0]

Debug info from gdb:

mono_gdb_render_native_backtraces not supported on this platform, unable to find gdb or lldb

=================================================================
Got a SIGFPE while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Searches returning zero results, and nothing downloading. Maybe 'database is locked' error?

This is a synology ds918+ running DSM 6.1.6-15266 Update 1. It's been unstable and cranky the last couple of weeks, frequently requiring restarts. Probably since the last restart, it's stopped being able to get search results, despite the indexer testing fine.

I'm wondering if it's because of the 'database is locked' errors I'm seeing in the log? Oooor... anything else?

Container "lost" connection to NFS share

I have recently moved my setup over to a Linux machine ("marvin") with a Synology share ("lededje") to host the actual media files. On the Linux machine I have set up a docker-compose file to run Sonarr, Radarr, etc. The Synology share is mounted on the Linux machine using NFS, set up in the fstab, and provided in the docker-compose file.

Everything was working perfectly, but about 12 hours after starting it all running, the Sonarr and Radarr containers both "lost" the connection to the NFS mount. The mount was still active in the host machine, but Sonarr and Radarr both showed that volume as empty, and they had no permissions to do anything in it. Restarting the containers fixed this issue, and it hasn't reproduced in about 3 days of constant uptime.

Is there a different way that I should connect the NFS share to the container? I am trying to make this setup as reliable as possible with as high uptime as possible, so little things like this will mean I will have to switch to a non-containerized setup, which I would prefer not to do.

Versions

Ubuntu bionic 18.04
Docker version 17.12.1-ce, build 7390fc6

fstab

lededje:/volume1/Share    /nfs/lededje    nfs    defaults    0    1

docker-compose.yml

version: '3'
services:

    sonarr:
        image: "linuxserver/sonarr"
        container_name: sonarr
        ports:
            - 8901:8901
        expose:
            - 8901
        volumes:
            - "/etc/localtime:/etc/localtime:ro"
            - "/var/lib/htpc/sonarr:/config"
            - "/temp/downloads/complete:/downloads"
            - "/nfs/lededje/TV Shows:/tv"
        restart: unless-stopped

    radarr:
        image: "linuxserver/radarr"
        container_name: radarr
        ports:
            - 8903:8903
        expose:
            - 8903
        volumes:
            - "/etc/localtime:/etc/localtime:ro"
            - "/var/lib/htpc/radarr:/config"
            - "/temp/downloads/complete:/downloads"
            - "/nfs/lededje/Movies:/movies"
        restart: unless-stopped

How to configure Sonarr download folder when download mount different in Sonarr docker than in the bitorrent client

I'm running the following docker-sonarr instance:

 "build_version": "Linuxserver.io version:- 151 Build-date:- August-24-2018-22:18:41-UTC",

I've created the container using:

docker create \
    --name sonarr \
    -p 8989:8989 \
    -v /etc/localtime:/etc/localtime:ro \
    -v /mnt/media/config:/config \
    -v /mnt/media/tv:/tv \
    -v /mnt/media/downloads:/downloads \
    linuxserver/sonarr

I'm trying to configure utorrent as a download client. However, one problem I am having, is the integration with the completed downloads. When utorrent completes a download, it is configured to its completed download folder (/utorrent/data). However, Sonarr doesn't have that mapping in it's container. Instead, it is expecting to find the file in /download. When uTorrent signals to Sonarr that the d/l is complete, Sonarr shows an error that it cannot find the file in /utorrent/data/...

Is there any way to configure Sonarr to use some form of relative mapping, or to be able to use regex's to parse a reported downloaded file's location? ex: in the Download Client section, indicate to Sonarr that all reported files that are ^(?:(?!/data/).)*?(.*) can be found at /downloads/$1. Or something of similar sorts.

Or is this a uTorrent configuration issue? How can I instruct uTorrent to only announce the relative file name and not the full path?

As things stand right now, the bittorrent client reports that the downloaded file is at one location/mapping, and unless I make the same mapping available to the Sonarr container, there is no way for Sonarr to find the file.

Is there a way to configure this?

ssl support

I cannot seem to enable ssl support even after manually configuring the 9898 port in docker to allow it. Is this something that's supported?

s6-supervise (child): fatal: unable to exec run: Permission denied - On start

When starting the container the following errors are outputted into the log:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 10-adduser: executing... 
-------------------------------------
          _     _ _
         | |___| (_) ___
         | / __| | |/ _ \ 
         | \__ \ | | (_) |
         |_|___/ |_|\___/
               |_|
Brought to you by linuxserver.io
We do accept donations at:
https://www.linuxserver.io/donations
-------------------------------------
GID/UID
-------------------------------------
User uid:    1006
User gid:    500
-------------------------------------
[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing... 
[cont-init.d] 30-config: exited 0.
[cont-init.d] done.
[services.d] starting services
s6-supervise (child): fatal: unable to exec run: Permission denied
s6-supervise sonarr: warning: unable to spawn ./run - waiting 10 seconds
[services.d] done.
s6-supervise (child): fatal: unable to exec run: Permission denied
s6-supervise sonarr: warning: unable to spawn ./run - waiting 10 seconds

Running:
CentOS 7 - 3.10.0-327.36.2.el7.x86_64
Docker version 1.10.3, build cb079f6-unsupported

SELinux set to permissive

Command used to created container:
docker create --name sonarr -p 8989:8989 -e PUID=1006 -e PGID=500 -v /dev/rtc:/dev/rtc:ro -v /home/sonarr:/config -v /home/media:/tv -v /home/sonarr:/downloads linuxserver/sonarr

Where 1006 is the UID of the sonarr user and 500 is the GUID of the media group (shared between all necessary containers)

Seems that it could be linked to s6-overlay? Not sure only been using docker for a few days :)

Links:
just-containers/s6-overlay#158

Let me know if any further information is required

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.