Jump to content
linuxserver.io

[Support] Linuxserver.io - Sonarr

1152 posts in this topic Last Reply

Recommended Posts

linuxserver_medium.png

 

Application Name: Sonarr

Application Site: https://sonarr.tv/

Docker Hub: https://hub.docker.com/r/linuxserver/sonarr/

Github: https://github.com/linuxserver/docker-sonarr

 

Please post any questions/issues relating to this docker you have in this thread.

 

If you are not using Unraid (and you should be!) then please do not post here, instead head to linuxserver.io to see how to get support.

Edited by linuxserver.io

Share this post


Link to post

Having an issue with my Sonarr docker today.  I went into the webGui today to see if all my shows downloaded last night to find that one of them was mysteriously missing from my calendar.  So I look at my series editor and in fact it was gone.  I tired to add it but doing a search just times out and it finds nothing.  I then went to do an update to see if maybe there was some bug and the updates page just will not load at all.  I tried restarting the docker multiple times but no resolution.

 

So I figured why not delete and recreate the docker container in case something go corrupt.  Now I can't even get Sonarr to load, the log just sits at this point:

 

-----------------------------------
GID/UID
-----------------------------------
User uid: 99
User gid: 100
-----------------------------------

Get:1 http://apt.sonarr.tv master InRelease [6,875 B]
Ign http://mirrors.rit.edu/ubuntu/ trusty InRelease
Get:2 http://mirrors.rit.edu/ubuntu/ trusty-security InRelease [64.4 kB]
Get:3 http://mirrors.rit.edu/ubuntu/ trusty-updates InRelease [64.4 kB]
Get:4 http://mirrors.rit.edu/ubuntu/ trusty Release.gpg [933 B]
Get:5 http://apt.sonarr.tv master/main amd64 Packages [108 kB]
Get:6 http://mirrors.rit.edu/ubuntu/ trusty-security/main Sources [123 kB]
Get:7 http://mirrors.rit.edu/ubuntu/ trusty-security/restricted Sources [3,230 B]
Get:8 http://mirrors.rit.edu/ubuntu/ trusty-security/universe Sources [35.4 kB]
Get:9 http://mirrors.rit.edu/ubuntu/ trusty-security/multiverse Sources [2,168 B]
Get:10 http://mirrors.rit.edu/ubuntu/ trusty-security/main amd64 Packages [448 kB]
Get:11 http://mirrors.rit.edu/ubuntu/ trusty-security/restricted amd64 Packages [19.4 kB]
Get:12 http://mirrors.rit.edu/ubuntu/ trusty-security/universe amd64 Packages [152 kB]
Get:13 http://mirrors.rit.edu/ubuntu/ trusty-security/multiverse amd64 Packages [3,526 B]
Get:14 http://mirrors.rit.edu/ubuntu/ trusty Release [58.5 kB]
Get:15 http://mirrors.rit.edu/ubuntu/ trusty-updates/main Sources [304 kB]
Get:16 http://mirrors.rit.edu/ubuntu/ trusty-updates/restricted Sources [4,513 B]
Get:17 http://mirrors.rit.edu/ubuntu/ trusty-updates/universe Sources [180 kB]
Get:18 http://mirrors.rit.edu/ubuntu/ trusty-updates/multiverse Sources [5,109 B]
Get:19 http://mirrors.rit.edu/ubuntu/ trusty-updates/main amd64 Packages [803 kB]
Get:20 http://mirrors.rit.edu/ubuntu/ trusty-updates/restricted amd64 Packages [22.7 kB]
Get:21 http://mirrors.rit.edu/ubuntu/ trusty-updates/universe amd64 Packages [424 kB]
Get:22 http://mirrors.rit.edu/ubuntu/ trusty-updates/multiverse amd64 Packages [12.9 kB]
Get:23 http://mirrors.rit.edu/ubuntu/ trusty/main Sources [1,335 kB]
Get:24 http://mirrors.rit.edu/ubuntu/ trusty/restricted Sources [5,335 B]
Get:25 http://mirrors.rit.edu/ubuntu/ trusty/universe Sources [7,926 kB]
Get:26 http://mirrors.rit.edu/ubuntu/ trusty/multiverse Sources [211 kB]
Get:27 http://mirrors.rit.edu/ubuntu/ trusty/main amd64 Packages [1,743 kB]
Get:28 http://mirrors.rit.edu/ubuntu/ trusty/restricted amd64 Packages [16.0 kB]
Get:29 http://mirrors.rit.edu/ubuntu/ trusty/universe amd64 Packages [7,589 kB]
Get:30 http://mirrors.rit.edu/ubuntu/ trusty/multiverse amd64 Packages [169 kB]
Fetched 21.8 MB in 7s (3,007 kB/s)
Reading package lists...

 

I also see that the last update log was on Oct. 14th so it seems that no updates have installed since then.

 

EDIT:  Docker finally loaded but webgui is still unresponsive when doing a search for any new show or when clicking on the updates page.  When the updates page finally loads after a few minutes I get these entries in the log after I hit install latest.

 

 

[Fatal] NzbDroneErrorPipeline: Request Failed 

System.Net.WebException: The request timed out
at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in :0 
at System.Net.HttpWebRequest.GetResponse () [0x00000] in :0 
at NzbDrone.Common.Http.HttpClient.ExecuteWebRequest (NzbDrone.Common.Http.HttpRequest request, System.Net.HttpWebRequest webRequest) [0x00000] in :0 

[Warn] SkyHookProxy: The request timed out 

System.Net.WebException: The request timed out
at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in :0 
at System.Net.HttpWebRequest.GetResponse () [0x00000] in :0 
at NzbDrone.Common.Http.HttpClient.ExecuteWebRequest (NzbDrone.Common.Http.HttpRequest request, System.Net.HttpWebRequest webRequest) [0x00000] in :0 

[info] InstallUpdateService: Downloading update 2.0.0.3551 
[info] InstallUpdateService: Verifying update package 
[Error] InstallUpdateService: Update package is invalid 
[Error] InstallUpdateService: Update process failed 

NzbDrone.Core.Update.UpdateVerificationFailedException: Update file '/tmp/nzbdrone_update/NzbDrone.develop.2.0.0.3551.mono.tar.gz' is invalid
at NzbDrone.Core.Update.InstallUpdateService.InstallUpdate (NzbDrone.Core.Update.UpdatePackage updatePackage) [0x00000] in :0 
at NzbDrone.Core.Update.InstallUpdateService.Execute (NzbDrone.Core.Update.Commands.ApplicationUpdateCommand message) [0x00000] in :0 

[Error] CommandExecutor: Error occurred while executing task ApplicationUpdate 

NzbDrone.Core.Messaging.Commands.CommandFailedException: Downloaded update package is corrupt ---> NzbDrone.Core.Update.UpdateVerificationFailedException: Update file '/tmp/nzbdrone_update/NzbDrone.develop.2.0.0.3551.mono.tar.gz' is invalid
at NzbDrone.Core.Update.InstallUpdateService.InstallUpdate (NzbDrone.Core.Update.UpdatePackage updatePackage) [0x00000] in :0 
at NzbDrone.Core.Update.InstallUpdateService.Execute (NzbDrone.Core.Update.Commands.ApplicationUpdateCommand message) [0x00000] in :0 
--- End of inner exception stack trace ---
at NzbDrone.Core.Update.InstallUpdateService.Execute (NzbDrone.Core.Update.Commands.ApplicationUpdateCommand message) [0x00000] in :0 
at NzbDrone.Core.Messaging.Commands.CommandExecutor.ExecuteCommand[ApplicationUpdateCommand] (NzbDrone.Core.Update.Commands.ApplicationUpdateCommand command, NzbDrone.Core.Messaging.Commands.CommandModel commandModel) [0x00000] in :0 

 

EDIT #2:  I tried completely deleting the docker container as well as deleting (well moving it out of my appdata folder for to test) the Sonarr config folder.  When I try to re-create the Sonarr docker I get the following message while it's creating:

 

Warning: mkdir(): File exists in /usr/local/emhttp/plugins/dynamix.docker.manager/include/CreateDocker.php on line 23

 

Share this post


Link to post

Hey Jim,

 

Thanks for all the clear logs and notes.  All of us have been running the Sonarr docker for a while and haven't had any issues. I'm intrigued to see what a reload does for you.

Share this post


Link to post

Hey Jim,

 

Thanks for all the clear logs and notes.  All of us have been running the Sonarr docker for a while and haven't had any issues. I'm intrigued to see what a reload does for you.

 

I haven't had any issues either until this.  What do you mean by a reload?  I've tried to install the docker from scratch and it's a no-go at this point.

Share this post


Link to post

Hey Jim,

 

Thanks for all the clear logs and notes.  All of us have been running the Sonarr docker for a while and haven't had any issues. I'm intrigued to see what a reload does for you.

 

I haven't had any issues either until this.  What do you mean by a reload?  I've tried to install the docker from scratch and it's a no-go at this point.

 

I need to read better.  I thought you were going to try deleting and readding the docker, but you did and that failed....

Share this post


Link to post

Just a punt but is your docker.img file corrupted?

 

I wouldn't know how to determine that even if it was?

 

Create a new one?

Share this post


Link to post

I just tried this image and it seems it doesn't automatically chown -Rv abc:users the /config directory.

Share this post


Link to post

I just tried this image and it seems it doesn't automatically chown -Rv abc:users the /config directory.

 

Hey Bungy

 

Our base image sets chown to abc on /config, then we run all processes as abc so any new file would have the correct ownership.

 

https://github.com/linuxserver/docker-baseimage/blob/master/10_add_user_abc.sh

 

Is everything working how it should?

 

Share this post


Link to post

I just tried this image and it seems it doesn't automatically chown -Rv abc:users the /config directory.

 

Hey Bungy

 

Our base image sets chown to abc on /config, then we run all processes as abc so any new file would have the correct ownership.

 

https://github.com/linuxserver/docker-baseimage/blob/master/10_add_user_abc.sh

 

Is everything working how it should?

I think the problem is here:

 

chown abc:abc /config

 

It doesn't recurse into the directory. I think it needs the -R flag.

Share this post


Link to post

I just tried this image and it seems it doesn't automatically chown -Rv abc:users the /config directory.

 

Hey Bungy

 

Our base image sets chown to abc on /config, then we run all processes as abc so any new file would have the correct ownership.

 

https://github.com/linuxserver/docker-baseimage/blob/master/10_add_user_abc.sh

 

Is everything working how it should?

I think the problem is here:

 

chown abc:abc /config

 

It doesn't recurse into the directory. I think it needs the -R flag.

 

When we create the directory it is empty, so there is nothing for it to recurse through. Than all other process are run by user ABC so there would be no reason to re-chown after that. 

 

Is something not working on your Sonarr?

Share this post


Link to post

It didn't work when I migrated from a different docker with different permissions to this one. I fixed it by manually fixing permissions so I guess this is only for migration cases.

Share this post


Link to post

It didn't work when I migrated from a different docker with different permissions to this one. I fixed it by manually fixing permissions so I guess this is only for migration cases.

 

That makes sense.. I'll bring that up for discussion!

Share this post


Link to post

It didn't work when I migrated from a different docker with different permissions to this one. I fixed it by manually fixing permissions so I guess this is only for migration cases.

 

So we had some discussion about how to handle bring in previous /config data.  We are going to work on some documentation for when this happens. Files aren't always in the same place, symlink, etc.  Going to make some tips on how to convert to our dockers from others.

Share this post


Link to post

Sounds like a good idea. I think it's completely reasonable to force users to either set permissions themselves or to check that things are compatible before migration. It's a bit difficult to do when each docker uses slightly different directory structure for config so simply documenting the directory structure and required files may be a good start.

 

Share this post


Link to post

Sounds like a good idea. I think it's completely reasonable to force users to either set permissions themselves or to check that things are compatible before migration. It's a bit difficult to do when each docker uses slightly different directory structure for config so simply documenting the directory structure and required files may be a good start.

 

 

https://www.linuxserver.io/index.php/migrating-to-linuxserver-io-dockers/

 

Any thoughts on that as an outside voice?

Share this post


Link to post

That looks pretty good. I could do a full edit just to make the text read a bit better if you like.

 

You may want to explicitly tell the user what commands to try when migrating dockers before starting fresh. Your user base has the ability to grow quickly and may contain people without much true hands on Linux knowledge.

 

It may also be important to tell users that you can't change the ABC user's uid or gid after the first time the docker is run without manually issuing the chown. Simply changing the environmental variables may cause the docker not to run.

Share this post


Link to post

I am setting up sonarr as SR is giving me fits,

 

in variables what is /devirtc?

 

anyone?

 

This is to do with timezone settings.

Share this post


Link to post

Further questions on /dev/rtc ...

 

What does this map, and what is the intended use?  I'm trying to setup Sonarr for the first time and I'm not successfully connecting to my search provider, not sure if this could be an issue.

Share this post


Link to post

Further questions on /dev/rtc ...

 

What does this map, and what is the intended use?  I'm trying to setup Sonarr for the first time and I'm not successfully connecting to my search provider, not sure if this could be an issue.

I believe its there if you need to change the time zone for some reason the container runs under.  I just deleted the line when i installed with no ill effects

Share this post


Link to post

 

Further questions on /dev/rtc ...

 

What does this map, and what is the intended use?  I'm trying to setup Sonarr for the first time and I'm not successfully connecting to my search provider, not sure if this could be an issue.

It gives the container access to the hardware clock

Share this post


Link to post

Thanks, Squid and Ionix.  It seems like they broke some things over at OZnzb, so I'll wait for them to fix it before I go any further and won't worry about /dev/rtc.

 

By the way, I get the following message at times:

 

Warning: mkdir(): File exists in /usr/local/emhttp/plugins/dynamix.docker.manager/include/CreateDocker.php on line 23

 

I got this when adding the container for the first time and sometimes after performing an edit to the container.  It appears at the top of the page under Update Container prior to any "Pulling image" messages.  I saw an earlier discussion in this thread on the issue, just wanted to report that it's still there.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.