Sonarr + qBittorrent + plex not working

Sonarr version (exact version): 3.0.6.1342
Mono version (if Sonarr is not running on Windows): 6.12.0.122
OS: Ubuntu
Debug logs: https://pastebin.ubuntu.com/p/84SXTPJQJB/
Issue: Sonarr wont download series

So sonarr does receive the request to download the series, forwards it to qBittorrent, qBittorrent downloads it, however, then sonarr is just stuck at “Episode grabbed from Jackett and send to qBittorrent”.

Im new here, if you need any more info tell me

Also yes, I do have qBittorrent as a download client, Jackett as the indexer and Plex added as a conection.

1 Like

Jackett is not an indexer.

then sonarr is just stuck at “Episode grabbed from Jackett and send to qBittorrent”.

There is no such status.

Those logs are info logs which are almost always useless for debugging. What in the forum template was unclear about requiring debug logs and how to get them?

It looks like that you have tried to add sonarr as an indexer to itself? That makes no sense whatsoever - remote that immediately

You also have local DNS issues

You are not using Qbittorrent from your logs; you are using Deluge.

Deluge is also running as root which is extremely insecure. Deluge is also downloading to root’s home folder which means Sonarr will never be able to access it.

Why do you think you’re using Qbittorrent when the logs say otherwise?

Did you make this setup yourself or did you follow a very poor guide that needs to be burned with fire?

You need to fix your download client setup, fix your inproper indexer configuration, figure out your local networking issues, and generally unfuck yourself from the situation you’ve created.

At least you did finally update Sonarr

How do I get the debug log?

Im using the 1333x (Or whatever it is called, Im not on the computer rn) indexer that I added in jackett

Thats what it says in history (or whatever the button under queue is called)

Where did I add that?

All the indexers are 3 got from jackett

I was using deluge a day ago, changed it cause it was buggy

I was doing stuff at pihole and dchp at the time while working at sonarr

Yeah, pretty much both.

Where did I add that?

21-12-4 23:38:07.7|Warn|HttpClient|HTTP Error - Res: [GET] http://127.0.0.1:8989/api?t=caps&apikey=(removed) 404.NotFound

Thats what it says in history (or whatever the button under queue is called)

that’s grab history; not status.

How do I get the debug log?
What was not clear in the post template?

https://wiki.servarr.com/sonarr/troubleshooting#logging-and-log-files

see the download troubleshooting article on the same page.

see also trash’s guides https://trash-guides.info/Downloaders/qBittorrent/Basic-Setup/ and https://trash-guides.info/hardlinks/

I was using deluge a day ago, changed it cause it was buggy

was not buggy; was just setup poorly

Many indexers blocked it for some reason

https://imgur.com/a/4AoVDok
There isn’t sonarr added to itself

I don’t use docker

https://paste.ubuntu.com/p/PPW3yQJbVq/

These are my logs of downloading squid game from overserr

Doesn’t matter. Not sure how or where you think it says having proper paths and permissions and ones that support hardlinks / atomic moves is isolated to docker only? It applies to non-docker as well.

Failure to have proper permissions, paths, and ownership results in nothing working as you can see.

2021-12-06 18:44:07.6|Debug|TrackedDownloadService|Tracking ‘qBittorrent:Squid.Game.S01.1080p.WEB.AAC.6CH.x265-LUMI’: ClientState=Completed (readonly) SonarrStage=Importing Episode=‘Squid Game - Season 01 WEBDL-1080p v1’ OutputPath=.

Seems it’s attempting to import, but trace logs are needed of a queue refresh.
What path is qbit outputting to?

you also did not read the wiki and got logs while a spammy task such as an RSS sync was running, oops

I gave /downloads/ (where qBittorrent should be downloading) permission 755. Shouldn’t that be enough?

Should I enable trace logs and redownload the series?

I have gives /downloads/ (where qBittorrent should be downloading) permission 755. Shouldn’t that be enough?

Only if Qbit and Sonarr run as the exact same user and Sonarr can see and has access to /downloads/

nothing from the logs indicates that is the case.

/downloads/ is highly doubtful to be a absolute path that exists

I made /downloads/ while being in super user. Should I redo this setup in my normal account?

Also tried on my normal account. Still not working. /downloads/ has permission set to 755 for all users

https://paste.ubuntu.com/p/m3jBZfpqdq/

This is the debug, with traces enabled

let’s back up

lay out your paths exactly.

755 means ONLY the owner of the folder can read/write to it. everyone else only has read only access

those logs are again only info - not debug

No, they are the sonarr.debug.txt

Then what permissions should I use? I’m trying now chmod ugo+rwx

My paths:

/plexData/{movies,photos,music,tv} (for plex)
/downloads/ (for qbittorrent)

I just set in Media management chmod to 777.

All had permission 775 before. Now they have uga+rwx, giving it a try.

No they are not. They do not contain debug only info
Grabbed from the wrong file perhaps?

Then what permissions should I use?

775

I just set in Media management chmod to 777.

Again - do not touch anything regarding permissions and group in media management unless you explicitly know what you are doing and have a specific reason to. It does not do anything that you think it does. Disable those and stop touching them.

Then what permissions should I use? I’m trying now chmod ugo+rwx

Why are you trying random things and ignoring all your resources available to you?
What part of TRaSH’s guide for a native setup was unclear?

/plexData/{movies,photos,music,tv} (for plex)
/downloads/ (for qbittorrent)

systemctl cat sonarr
systemctl cat radarr
systemctl cat lidarr
What user, group, and umask is qbit running as?

ideally these are all running as their own users under a common group and all with a umask of 002, with files and folders being 664/775

ls -lha /downloads
ls -lha /plexData/tv
ls -lha /plexData/movies

User: ubuntuserver
Group: root
UMask: 002

User: radarr
Group: media
UMask: 002

I dont have lidarr

User: ubuntuserver
Group: root
UMask: 002 (I think, not sure how I Can see its UMask)

total 5,1G
drwsrwsrwt 4 ubuntuserver ubuntuserver 4,0K dec 6 22:14 .
drwxrwxrwx 28 root root 4,0K dec 6 13:06 …
drwxrwsr-x 2 ubuntuserver ubuntuserver 4,0K dec 6 18:45 movies
-rw-rw-r-- 1 ubuntuserver ubuntuserver 53K dec 5 23:13 Squid.Game.S01.1080p.WEB.AAC.6CH.x265-LUMI.torrent
-rw-rw-r-- 1 ubuntuserver ubuntuserver 776M dec 6 22:39 Squid.Game.S01E01.1080p.WEB.AAC.6CH.x265-LUMI.mkv
-rw-rw-r-- 1 ubuntuserver ubuntuserver 583M dec 6 22:38 Squid.Game.S01E02.1080p.WEB.AAC.6CH.x265-LUMI.mkv
-rw-rw-r-- 1 ubuntuserver ubuntuserver 617M dec 6 22:38 Squid.Game.S01E03.1080p.WEB.AAC.6CH.x265-LUMI.mkv
-rw-rw-r-- 1 ubuntuserver ubuntuserver 653M dec 6 22:38 Squid.Game.S01E04.1080p.WEB.AAC.6CH.x265-LUMI.mkv
-rw-rw-r-- 1 ubuntuserver ubuntuserver 451M dec 6 22:39 Squid.Game.S01E05.1080p.WEB.AAC.6CH.x265-LUMI.mkv
-rw-rw-r-- 1 ubuntuserver ubuntuserver 662M dec 6 22:38 Squid.Game.S01E06.1080p.WEB.AAC.6CH.x265-LUMI.mkv
-rw-rw-r-- 1 ubuntuserver ubuntuserver 633M dec 6 22:38 Squid.Game.S01E07.1080p.WEB.AAC.6CH.x265-LUMI.mkv
-rw-rw-r-- 1 ubuntuserver ubuntuserver 299M dec 6 22:38 Squid.Game.S01E08.1080p.WEB.AAC.6CH.x265-LUMI.mkv
-rw-rw-r-- 1 ubuntuserver ubuntuserver 488M dec 6 22:38 Squid.Game.S01E09.1080p.WEB.AAC.6CH.x265-LUMI.mkv
drwxrwsr-x 2 ubuntuserver ubuntuserver 4,0K dec 6 18:45 tv
total 8,0K
drwxrwxrwx 2 root root 4,0K dec 6 13:22 .
d-wx-wx-wx 6 root root 4,0K dec 4 23:32 …
total 8,0K
drwxrwxrwx 2 root root 4,0K dec 4 23:27 .
d-wx-wx-wx 6 root root 4,0K dec 4 23:32 …

use dpkg (See installation instructions) to reconfigure Sonarr to run as sonarr / media

change qbit to not run as the group root and to be media instead.

your downloads are good

your library folders are not - they are all owned by root - fix that.
their permissions are also wrong as well - should be 775 for folders and 664 for files

the docker guide has a nice command for that
https://wiki.servarr.com/docker-guide#recursively-chmod-to-775664

1 Like

Thanks, will do what you said later as its 6 am

So I did everything you said, however I still get some errors:

One or more episodes expected in this release were not imported or missing

Squid.Game.S01E01.1080p.WEB.AAC.6CH.x265-LUMI.mkv

  • Failed to import episode

Squid.Game.S01E02.1080p.WEB.AAC.6CH.x265-LUMI.mkv

  • Failed to import episode

Squid.Game.S01E03.1080p.WEB.AAC.6CH.x265-LUMI.mkv

  • Failed to import episode

Squid.Game.S01E04.1080p.WEB.AAC.6CH.x265-LUMI.mkv

  • Failed to import episode

Squid.Game.S01E05.1080p.WEB.AAC.6CH.x265-LUMI.mkv

  • Failed to import episode

Squid.Game.S01E06.1080p.WEB.AAC.6CH.x265-LUMI.mkv

  • Failed to import episode

Squid.Game.S01E07.1080p.WEB.AAC.6CH.x265-LUMI.mkv

  • Failed to import episode

Squid.Game.S01E08.1080p.WEB.AAC.6CH.x265-LUMI.mkv

  • Failed to import episode

Squid.Game.S01E09.1080p.WEB.AAC.6CH.x265-LUMI.mkv

  • Failed to import episode

This is what it says now (I created it with the user ubuntuserver and the permissions are 775 for folders, and sonarr is configured to use chmod 777 on newly downloaded movies):

total 76K
drwsrwsr-x 5 ubuntuserver ubuntuserver 4,0K dec 7 19:07 .
drwxrwxrwx 27 root root 4,0K dec 7 17:48 …
drwxrwsr-x 2 ubuntuserver ubuntuserver 4,0K dec 6 18:45 movies
drwxrwsr-x 2 ubuntuserver ubuntuserver 4,0K dec 7 19:08 Squid.Game.S01.1080p.WEB.AAC.6CH.x265-LUMI
-rwxrwxr-x 1 ubuntuserver ubuntuserver 53K dec 5 23:13 Squid.Game.S01.1080p.WEB.AAC.6CH.x265-LUMI.torrent
drwxrwsr-x 2 ubuntuserver ubuntuserver 4,0K dec 6 18:45 tv
total 8,0K
drwxrwxr-x 2 ubuntuserver ubuntuserver 4,0K dec 7 17:48 .
drwxrwxr-x 6 ubuntuserver ubuntuserver 4,0K dec 7 17:48 …
total 8,0K
drwxrwxr-x 2 ubuntuserver ubuntuserver 4,0K dec 7 17:48 .
drwxrwxr-x 6 ubuntuserver ubuntuserver 4,0K dec 7 17:48 …

It seems like this thing is still running on root. I don’t know what it is though

what do the logs show?

and sonarr is configured to use chmod 777 on newly downloaded movies):

again, don’t do this - disable this.

it looks like your permissions on the files are overzealous? file permissions should not be 775 only 664 unless they are executable files

1 Like

Ive set the folders to 775, I don’t have any file

https://paste.ubuntu.com/p/pZCcFd24k6/

This is the sonarr.debug.3.txt

Also aditional question: Is sonarr.debug.3.txt or sonarr.debug.txt the newest file?

This is the sonarr.debug.txt: https://paste.ubuntu.com/p/mQ8W2727Dk/