Page 1 of 1

Completed Files Disappearing on mounted Share [Debian/NAS/Sonarr/Radarr]

Posted: January 3rd, 2022, 12:25 pm
by n00b
Issue resolved. See Update #3 for details.

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
If I change the complete folder to a local drive then everything works fine i.e., files remain as they are, but if I switch it to a mounted drive then the files disappear after a few minutes. I have no clue what's going on here.

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
Update #1:

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.
Log entries from sab:

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)

Re: Completed Files Disappearing on mounted Share [Debian/NAS/Sonarr/Radarr]

Posted: January 3rd, 2022, 1:11 pm
by sander
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.
Cause (99% sure): Radarr/Sonarr.
To verify: stop Radarr/Sonarr, plus postprocessing call from SAB to Radarr/Sonarr.

Re: Completed Files Disappearing on mounted Share [Debian/NAS/Sonarr/Radarr]

Posted: January 3rd, 2022, 1:47 pm
by n00b
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. What am I doing wrong guys? The folder has full 777 permission.

Re: Completed Files Disappearing on mounted Share [Debian/NAS/Sonarr/Radarr]

Posted: January 3rd, 2022, 1:57 pm
by n00b
sander wrote: January 3rd, 2022, 1:11 pm
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.
Cause (99% sure): Radarr/Sonarr.
To verify: stop Radarr/Sonarr, plus postprocessing call from SAB to Radarr/Sonarr.
Where do I configure the postprocessing jobs in radarr/sonarr/sab?

Re: Completed Files Disappearing on mounted Share [Debian/NAS/Sonarr/Radarr]

Posted: January 3rd, 2022, 2:11 pm
by sander
Where do I configure the postprocessing jobs in radarr/sonarr/sab?
I've have no idea; this is the SABnzbd forum.

I referred to post-processing in SABnzbd.

But I think you've already discovered yourself that Sonarr/Radarr is moving/deleting files. Not SAB.

Re: Completed Files Disappearing on mounted Share [Debian/NAS/Sonarr/Radarr]

Posted: January 3rd, 2022, 2:20 pm
by n00b
sander wrote: January 3rd, 2022, 2:11 pm
Where do I configure the postprocessing jobs in radarr/sonarr/sab?
I've have no idea; this is the SABnzbd forum.

I referred to post-processing in SABnzbd.

But I think you've already discovered yourself that Sonarr/Radarr is moving/deleting files. Not SAB.
I'm not sure exactly what's going on, but you are right that it's not an sab issue so will close this thread. Thanks!

Re: Completed Files Disappearing on mounted Share [Debian/NAS/Sonarr/Radarr]

Posted: January 3rd, 2022, 2:31 pm
by n00b
Now if I can only figure out how to close this thread... help!