Jump to content
linuxserver.io

[Support] Linuxserver.io - Sonarr

1242 posts in this topic Last Reply

Recommended Posts

Ok I fixed that and it workd for 2 episodes.  However, one episode gave me the following error 

Couldn't import episode /data/Completed/Titans.2018.S02E05.Deathstroke.2160p.DCU.WEB-DL.DD5.1.H265-NTb.mkv: Access to the path "/data/Completed/Titans.2018.S02E05.Deathstroke.2160p.DCU.WEB-DL.DD5.1.H265-NTb.mkv" or "/tv/Titans (2018)/Season 2/Titans.2018.S02E05.Deathstroke.2160p.DCU.WEB-DL.DD5.1.H265-NTb.mkv.partial~" is denied.

 

I find it odd as it was able to copy the other tv show episodes. For ex, The Blacklist.  it copied the downloaded file to the appropriate season folder.

 

I then ran a test.  I deleted the Season 2 folder.  Then reran Sonarr to check for downloaded files.  It then was able to create a season 2 folder and copy the file over.   Is this because I was doing some cleanup and created the Season 2 folder via my windows laptop?  It was either me or Emby which created the season 2 folder.

Share this post


Link to post

Automatic import issue:

Mappings are correct unless i'm missing something stupid or misunderstanding the data folder.

Sabnzbd drops the completed Sonarr downloads into

/mnt/user/downloads/complete/complete/sonarr/

Sonarr's data folder is mapped to

/mnt/user/downloads/complete/complete/sonarr/

I can manually import successfully directly from the Wanted>Manual Import and use the /data/ folder. From using the manual import button on the activity page, it says 'No video files were found in the selected folder.'

 

Am i missing something terribly stupid?

Share this post


Link to post
4 hours ago, jonfive said:

Sonarr's data folder is mapped to

And what is the container path for Sabnzbd?

Share this post


Link to post

Hello,

 

Is there way to run 2 instances of Sonarr? I want one instance for my TV-Series and one instance for Anime just to keep them separated.

When I try and create a new docker and set different webgui ports and config folders it doesnt work. Seems to default back to the standard port and when I change it then it can't find anything.

 

Share this post


Link to post
10 hours ago, Squid said:

And what is the container path for Sabnzbd?

/mnt/user/downloads/complete/complete/ with the sonarr category, making the completed files go into /mnt/user/downloads/complete/complete/sonarr/

Files are indeed there.
image.png.0c3426d8f5930139e051b0b19a511b41.png

Wanted page manual import:
image.png.be3d8e053bd512dc56e5bce952174d09.png

 

Activity page manual import:

image.png.5d61158ea544037017e9e542eb59b14c.png

 

I've had to recover some data with appdata restore, it's worked just fine for about a year since i had to redo everything. Possibly something got mixed up in the config since the restore? If need-be, is there a way where i can wipe out the config and 'start fresh' without losing the show database? or reinstall and preserve the db?

Edited by jonfive

Share this post


Link to post
50 minutes ago, Squid said:

Yes, the host paths are the same between the two.  But on the template, what is the container path for each of them?  Or post the docker run command for each.

 

https://forums.unraid.net/topic/57181-real-docker-faq/#comment-564345

 

Thanks for taking the time, i really appreciate it.

Sonarr

root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='binhex-sonarr' --net='bridge' --log-opt max-size='10m' --log-opt max-file='1' --privileged=true -e TZ="America/Los_Angeles" -e HOST_OS="Unraid" -e 'UMASK'='000' -e 'PUID'='99' -e 'PGID'='100' -p '8989:8989/tcp' -p '9897:9897/tcp' -v '/mnt/user/Downloads/Complete/Complete/Sonarr/':'/data':'rw' -v '/mnt/user/Media/':'/media':'rw' -v '/mnt/user/appdata/binhex-sonarr':'/config':'rw' 'binhex/arch-sonarr' 

4a9a4e45951b5c7b0c6b82f1211504c6c86a738a7d2d9a2c13ec4a93c8ea3bdf

Sabnzbd

root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='binhex-sabnzbd' --net='bridge' --log-opt max-size='10m' --log-opt max-file='1' --privileged=true -e TZ="America/Los_Angeles" -e HOST_OS="Unraid" -e 'UMASK'='000' -e 'PUID'='99' -e 'PGID'='100' -p '8080:8080/tcp' -p '8090:8090/tcp' -v '/mnt/user/Downloads/Complete/':'/data':'rw' -v '/mnt/user/appdata/binhex-sabnzbd':'/config':'rw' 'binhex/arch-sabnzbd' 

eacb2791776f258d3ba207c2176d4f525b0a45db625f9b9f8e029dd8fc9ca1c2

 

Share this post


Link to post
1 minute ago, jonfive said:

/mnt/user/Downloads/Complete/Complete/Sonarr/':'/data'

 

1 minute ago, jonfive said:

/mnt/user/Downloads/Complete/':'/data'

You host mappings on the /data do not match between the apps

Share this post


Link to post
1 minute ago, Squid said:

 

You host mappings on the /data do not match between the apps

i have sabnzbd using another 'complete' folder from itself working with categories inside that complete folder - hence the complete/complete/sonarr
image.png.2edc4749ca1f1aa5736f471a20472cf9.png

So just make sonarr match the output path of sabnzbd plus the sonarr category folder?
sorry, i'm just a little confused - the files do end up in /complete/complete/sonarr when they're finished downloading. 

 

Share this post


Link to post

You don't need to worry about categories or anything.  Sab will pass through to sonarr the full path including the category.  So long as the host path matches between the two.

 

Right now, Sab says that a download is sitting at 

 

/data/category/TVShow.mkv  This works out to a host path of /mnt/user/Downloads/Complete/category/TVShow.mkv

 

Because the mappings don't match between Sab and Sonarr, sonarr is effectively looking for the file at

 

/mnt/user/Downloads/Complete/Complete/Sonarr/category/TVShow.mkv  And the file is obviously not there.

Share this post


Link to post
1 minute ago, Squid said:

You don't need to worry about categories or anything.  Sab will pass through to sonarr the full path including the category.  So long as the host path matches between the two.

 

Right now, Sab says that a download is sitting at 

 

/data/category/TVShow.mkv  This works out to a host path of /mnt/user/Downloads/Complete/category/TVShow.mkv

 

Because the mappings don't match between Sab and Sonarr, sonarr is effectively looking for the file at

 

/mnt/user/Downloads/Complete/Complete/Sonarr/category/TVShow.mkv  And the file is obviously not there.

ahhh gotcha! That's an excellent explanation :)
I think i was just treating it like a 'watch folder' rather than considering the sab/sonarr communication

It works now - i just backed them both down to mnt/user/downloads.

Thank you very much! You're a real asset to the community :)

Share this post


Link to post

I'm encountering an odd issue  When Sonaar creates a season folder, Emby is not able to write into the folder.  Normally when I had Emby handling the autoorganize, it would create the folder, copy the video file to the folder and then create an nfo file and a thumbnail.  I stopped Emby from doing the copy of the file, which Sonarr now handles.  But after Sonaar copies the file, Emby is unable to create the thumbnails.  If I create the season folder first via logging in and using MC, Sonarr will copy the video file and Emby will create the thumbnails.  So Sonarr must be creating the folders with some permissions but I'm not sure how to change or fix this.  Any idea?

Share this post


Link to post
3 minutes ago, DigitalDivide said:

I'm encountering an odd issue  When Sonaar creates a season folder, Emby is not able to write into the folder.  Normally when I had Emby handling the autoorganize, it would create the folder, copy the video file to the folder and then create an nfo file and a thumbnail.  I stopped Emby from doing the copy of the file, which Sonarr now handles.  But after Sonaar copies the file, Emby is unable to create the thumbnails.  If I create the season folder first via logging in and using MC, Sonarr will copy the video file and Emby will create the thumbnails.  So Sonarr must be creating the folders with some permissions but I'm not sure how to change or fix this.  Any idea?

Settings - Media Management - Advanced Settings

image.png.811aa4a8ce361b1ba150c898457db014.png

Share this post


Link to post

Still having a small problem.  In the Sonarr forum I was asked if I'm running Sonarr as Nobody.   When Sonarr is installed, when it runs what user is it running as?  When it copies a file to disk, what user owns the file?  I've been looking around but other than putting in Nobody in the Permissions, I don't see anything else.

Share this post


Link to post

after i updated all my dockers today sonarr wont start anymore ??? any idea

 

my bad not as today the log stop at 19-11-1 21:48:31.9 we lost electricity for about 10 hours 

then server turn back on but i did not notice sonarr did not started and wen i try to start it it say execution error

 

also found this in the server log
 

Quote

 

Nov 1 22:25:48 Tower rc.docker: sonarr: Error response from daemon: driver failed programming external connectivity on endpoint sonarr (a9b8e6197ad6c58bc560eb9850ae257e714fb6ad7f8404c49fc13e9659b91429): Bind for 0.0.0.0:8989 failed: port is already allocated

Nov 1 22:25:48 Tower rc.docker: Error: failed to start containers: sonarr

 

ok i dont know whats the probleme whit port 8989 ??? i just changed it to 8990 the docker start but dosent work wen i try to enter the gui its just a endless loading

Edited by evilfrog

Share this post


Link to post
On 9/12/2019 at 10:18 PM, lordvaderxiii said:

Well I might be :), been having a similar issue with Jackett and the only thing in common is the socks5 proxy. Found this https://github.com/Jackett/Jackett/issues/2602
Im not sure if its related. Im deciding if I move over to versions that support a vpn or find a way to route docker traffic through a vpn. Seems like a lot more work than I feel like doing right now though.

 

@lordvaderxiii

 

I think you might have been.

 

I switched over to using privoxy that's passing through Binhex's DelugeVPN docker container since I already had that running. 100% CPU problem has been gone for over a week.

Share this post


Link to post

I am hoping someone can help me out here. I don't know what I did. This has been smooth for 9+ months.

I went to add path/folder to tv category in sab, now sonnar doesn't pick up the completed show to move. There are no errors. I can do a manual import no problem. I put it back to what it was, and still nothing. I messed with a few paths and can't get anything to work.

 

Here are the run commands.

/usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='sonarr' --net='dabworx' --cpuset-cpus='0,4' --log-opt max-size='50m' --log-opt max-file='1' -e TZ="America/Toronto" -e HOST_OS="Unraid" -e 'PUID'='99' -e 'PGID'='100' -p '8989:8989/tcp' -v '/dev/rtc':'/dev/rtc':'ro' -v '/mnt/user/TV Shows':'/tv':'rw' -v '/mnt/user/downloads':'/downloads':'rw' -v '/mnt/user/appdata/sonarr':'/config':'rw' 'linuxserver/sonarr' 

/usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='sabnzbd' --net='dabworx' --cpuset-cpus='0,4' --log-opt max-size='50m' --log-opt max-file='1' -e TZ="America/Toronto" -e HOST_OS="Unraid" -e 'PUID'='99' -e 'PGID'='100' -p '8080:8080/tcp' -v '/mnt/user/downloads':'/downloads':'rw' -v '/mnt/user/downloads/incomplete':'/incomplete-downloads':'rw' -v '/mnt/user/appdata/sabnzbd':'/config':'rw' 'linuxserver/sabnzbd'

 

Share this post


Link to post

May just be that the filenames are obfuscated and sonarr can't figure it out.  Happens on occasion.

Share this post


Link to post
5 minutes ago, Squid said:

May just be that the filenames are obfuscated and sonarr can't figure it out.  Happens on occasion.

Nah, this is everything. Doesn't matter what. and when I do manual, all the correct options for season and episode are selected.

Share this post


Link to post

if this helps...

 

19-11-29 17:28:06.9|Debug|Sabnzbd|Downloaded nzb for episode 'Lucifer.S03E11.City.of.Angels.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb-4P' finished (449029 bytes from https://api.nzbplanet.net/getnzb/30349e70b4b7afb6f347fb0aa5ac5c36.nzb&i=213375&r=8741ed91510d06ce762b29dd1dc8b6fa)
19-11-29 17:28:06.9|Info|Sabnzbd|Adding report [Lucifer.S03E11.City.of.Angels.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb-4P] to the queue.
19-11-29 17:28:06.9|Debug|SabnzbdProxy|Url: http://192.168.2.35:8080/api?mode=addfile&cat=tv&priority=0&apikey=(removed)&output=json
19-11-29 17:28:07.2|Info|DownloadService|Report sent to Sabnzbd. Lucifer.S03E11.City.of.Angels.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb-4P
19-11-29 17:28:07.2|Debug|Api|[POST] /api/release: 200.OK (1173 ms)
19-11-29 17:28:11.7|Debug|Api|[GET] /api/wanted/missing?page=1&pageSize=15&sortKey=airDateUtc&sortDir=desc&apikey=(removed) 200.OK (16 ms)
19-11-29 17:28:12.3|Debug|SabnzbdProxy|Url: http://192.168.2.35:8080/api?mode=queue&start=0&limit=0&apikey=(removed)&output=json
19-11-29 17:28:12.3|Debug|SabnzbdProxy|Url: http://192.168.2.35:8080/api?mode=history&start=0&limit=30&category=tv&apikey=(removed)&output=json
19-11-29 17:28:12.3|Debug|Parser|Parsing string 'Lucifer S03E11 City of Angels 1080p AMZN WEB-DL DDP5 1 H 264-NTb-4P'
19-11-29 17:28:12.3|Debug|Parser|Episode Parsed. Lucifer - S03E11 
19-11-29 17:28:12.3|Debug|Parser|Language parsed: English
19-11-29 17:28:12.3|Debug|QualityParser|Trying to parse quality for Lucifer S03E11 City of Angels 1080p AMZN WEB-DL DDP5 1 H 264-NTb-4P
19-11-29 17:28:12.3|Debug|Parser|Quality parsed: WEBDL-1080p v1
19-11-29 17:28:12.3|Debug|Parser|Release Group parsed: 4P
19-11-29 17:28:12.3|Debug|TrackedDownloadService|Tracking 'Sabnzbd:Lucifer S03E11 City of Angels 1080p AMZN WEB-DL DDP5 1 H 264-NTb-4P': ClientState=Downloading SonarrStage=Downloading Episode='Lucifer - S03E11 WEBDL-1080p v1' OutputPath=.
19-11-29 17:28:12.4|Debug|Api|[GET] /api/queue?sort_by=timeleft&order=asc: 200.OK (3 ms)
19-11-29 17:29:24.9|Debug|SabnzbdProxy|Url: http://192.168.2.35:8080/api?mode=queue&start=0&limit=0&apikey=(removed)&output=json
19-11-29 17:29:24.9|Debug|SabnzbdProxy|Url: http://192.168.2.35:8080/api?mode=history&start=0&limit=30&category=tv&apikey=(removed)&output=json
19-11-29 17:29:25.0|Debug|Api|[GET] /api/queue?sort_by=timeleft&order=asc: 200.OK (1 ms)
19-11-29 17:30:25.1|Debug|SabnzbdProxy|Url: http://192.168.2.35:8080/api?mode=queue&start=0&limit=0&apikey=(removed)&output=json
19-11-29 17:30:25.1|Debug|SabnzbdProxy|Url: http://192.168.2.35:8080/api?mode=history&start=0&limit=30&category=tv&apikey=(removed)&output=json
19-11-29 17:30:25.2|Debug|Api|[GET] /api/queue?sort_by=timeleft&order=asc: 200.OK (1 ms)
19-11-29 17:30:57.7|Debug|Api|[GET] /api/health: 200.OK (1 ms)
19-11-29 17:30:57.7|Debug|Api|[GET] /api/health: 200.OK (0 ms)
19-11-29 17:30:57.7|Debug|Api|[GET] /api/diskspace: 200.OK (81 ms)
19-11-29 17:30:57.9|Debug|Api|[GET] /api/diskspace: 200.OK (73 ms)
19-11-29 17:30:59.2|Debug|Api|[GET] /api/log?page=1&pageSize=50&sortKey=time&sortDir=desc: 200.OK (4 ms)
19-11-29 17:30:59.3|Debug|Api|[GET] /api/log?page=1&pageSize=50&sortKey=time&sortDir=desc: 200.OK (2 ms)
19-11-29 17:31:00.9|Debug|Api|[GET] /api/log/file: 200.OK (1 ms)
19-11-29 17:31:01.0|Debug|Api|[GET] /api/log/file/sonarr.debug.txt: 200.OK (1 ms)

 

Share this post


Link to post

So I've been using this Docker for about two weeks now and I'm running into the problem of extreme CPU usage during multiple episode files import, happens with both manual import or automatic. 
It basically blocks the CPU from doing anything else while copying the files stopping me from doing anything else with the server.

Anyone had similar problems and know how to fix it?

 

(working on getting proper logs for everything but so far I don't really see anything strange in the Sonarr logs, but I'm not an expert, trying to get some data on what's happening on the CPU side)

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.