Hi -
Complete noob here when it comes to sab. I've spent the last 8hrs trying to fix this problem, and I can't get anywhere with it. Any help would be greatly appreciated.
Problem: All completed (successful) downloads once then are moved to the "completed" folder, disappear after a few minutes from the network share irrespective of originating from Radarr/Sonarr.
Setup: Debian 11 + sabnzbd + Radarr + Sonarr (all latest versions).
- sabnzbd: Sorting is disabled.
- Radarr/Sonarr: Media Management is setup to all defaults.
- Debian: /home/sab/Downloads has the following two folders:
> incomplete >> local drive
> complete >> Mounted dir connected to my NAS (ReadyNAS). The share is mounted on boot using the fstab file with this command (note: I have given full permission for the time being for the groups that radarr/sonarr/sabnzbd belong to to avoid permission issues):
Code: Select all
//192.168.1.1/media /home/sab/Downloads/complete/ cifs username=user,password=pass,uid=1002,gid=1004,file_mode=0777,dir_mode=0777 0 0
Things that I have tried:
- Changed mount permissions to 777
- Changed ownership of the mount to the same user as sab
- sab - Disabled Sorting
- sab - Tried different Categories and Default
- Tried different share in the NAS
- Used the NAS Admin id/pwd to mount
I have discovered that the files are NOT getting deleted, but rather, they are moved into the Root Folder of Sonarr/Radarr. In my case, that's /sab/ folder (it has 777 access so everyone can r/w). This is strange. It appears that Sonarr/Radarr are the culprit here.
Update #2:
I thought ~/Downloads/complete is the final directory for all files, but I just realized that radarr/sonarr each have their Root Folders and THOSE are the final directories where sonarr/radarr put the files. So I pointed my sonarr/radarr Root Folders to my NAS mounted share, but now the files are staying in the ~/Downloads/complete directory. The folder has full 777 permission. Still an issue.
Update #3: RESOLVED!!!
So, there were a bunch of issues.
- Permission issues. sab/sonarr/radarr all needed to have the same service for start-up.
- All respective directories needed to have inherit the same permissions.
---
Note: All file names have been changed to Ubuntu.
Log entries from Sonarr (no errors at all); even in the debug log file:
Code: Select all
Episode search completed. 1 reports downloaded.
Report sent to sab. Ubuntu-13r5
Adding report Ubuntu-13r5 to the queue.
Code: Select all
2022-01-03 03:31:17,648::INFO::[filesystem:577] Creating directories: /home/sab/Downloads/completed/Ubuntu/Ubuntu-13r5
2022-01-03 03:31:17,756::INFO::[misc:988] [N/A] Running external command: ['/usr/bin/unrar', 'x', '-vp', '-idp', '-o+', '-p-', '/home/sab/Downloads/incomplete/Ubuntu-13r5/2bb99b364aaf437781423a757b13f2d8.part01.rar', '/home/sab/Downloads/completed/Ubuntu/_UNPACK_Ubuntu-13r5/']
2022-01-03 03:31:17,768::INFO::[directunpacker:420] DirectUnpacked volume 1 for 2bb99b364aaf437781423a757b13f2d8
2022-01-03 03:31:18,621::INFO::[assembler:114] Decoding finished /home/sab/Downloads/incomplete/Ubuntu-13r5/2bb99b364aaf437781423a757b13f2d8.part02.rar
2022-01-03 03:31:18,722::INFO::[directunpacker:293] DirectUnpacked volume 2 for 2bb99b364aaf437781423a757b13f2d8
2022-01-03 03:31:18,740::INFO::[assembler:114] Decoding finished /home/sab/Downloads/incomplete/Ubuntu-13r5/2bb99b364aaf437781423a757b13f2d8.part03.rar
2022-01-03 03:31:18,841::INFO::[directunpacker:293] DirectUnpacked volume 3 for 2bb99b364aaf437781423a757b13f2d8
2022-01-03 03:31:18,869::INFO::[assembler:114] Decoding finished /home/sab/Downloads/incomplete/Ubuntu-13r5/2bb99b364aaf437781423a757b13f2d8.part04.rar
2022-01-03 03:31:32,342::INFO::[nzbqueue:389] [N/A] Removing job Ubuntu-13r5
2022-01-03 03:31:32,343::INFO::[nzbqueue:231] Saving queue
2022-01-03 03:31:32,344::INFO::[postproc:134] Saving postproc queue
2022-01-03 03:31:32,464::INFO::[directunpacker:293] DirectUnpacked volume 27 for 2bb99b364aaf437781423a757b13f2d8
2022-01-03 03:31:33,821::INFO::[postproc:365] Starting Post-Processing on Ubuntu-13r5 => Repair:True, Unpack:True, Delete:True, Script:Default, Cat:movies
2022-01-03 03:31:33,821::INFO::[notifier:122] Sending notification: Post-processing - Ubuntu-13r5 (type=pp, job_cat=movies)
2022-01-03 03:31:33,821::INFO::[postproc:728] Starting verification and repair of Ubuntu-13r5
2022-01-03 03:31:33,822::INFO::[__init__:951] [N/A] /home/sab/Downloads/incomplete/Ubuntu-13r5/__ADMIN__/__verified__ missing
2022-01-03 03:31:33,822::INFO::[postproc:748] Running verification and repair on set Ubuntu-13r5
2022-01-03 03:31:33,823::INFO::[newsunpack:1121] Quick-check for Ubuntu-13r5 is OK, skipping repair
2022-01-03 03:31:33,825::INFO::[postproc:804] Verification and repair finished for Ubuntu-13r5
2022-01-03 03:31:33,825::INFO::[postproc:425] Running unpack_magic on Ubuntu-13r5
2022-01-03 03:31:33,828::INFO::[newsunpack:265] Unrar starting on /home/sab/Downloads/incomplete/Ubuntu-13r5
2022-01-03 03:31:42,861::INFO::[directunpacker:233] DirectUnpack completed for 2bb99b364aaf437781423a757b13f2d8
2022-01-03 03:31:43,839::INFO::[newsunpack:527] Set 2bb99b364aaf437781423a757b13f2d8 completed by DirectUnpack
2022-01-03 03:31:44,036::INFO::[newsunpack:269] Unrar finished on /home/sab/Downloads/incomplete/Ubuntu-13r5
[b]2022-01-03 03:31:44,045::INFO::[postproc:429] Unpacked files ['/home/sab/Downloads/completed/Ubuntu/_UNPACK_Ubuntu-13r5/2bb99b364aaf437781423a757b13f2d8.mkv'][/b]
2022-01-03 03:31:44,045::INFO::[postproc:434] Finished unpack_magic on Ubuntu-13r5
2022-01-03 03:31:44,090::INFO::[nzbstuff:1789] [N/A] Purging data for job Ubuntu-13r5 (delete_all_data=True)
2022-01-03 03:31:44,094::INFO::[notifier:122] Sending notification: Download completed - Ubuntu-13r5 (type=complete, job_cat=movies)
2022-01-03 03:31:44,103::INFO::[database:290] Added job Ubuntu-13r5 to history
2022-01-03 03:31:44,104::INFO::[postproc:134] Saving postproc queue
2022-01-03 03:31:44,104::INFO::[downloader:310] Post-processing finished, resuming download
2022-01-03 03:31:48,104::INFO::[nzbqueue:231] Saving queue
2022-01-03 03:31:48,106::INFO::[postproc:134] Saving postproc queue
2022-01-03 03:31:48,107::INFO::[notifier:122] Sending notification: sab - Queue finished (type=queue_done, job_cat=None)