SabNZBd and Sonarr file/ permissions issue

Houghton19

Dabbler
Joined
Dec 25, 2011
Messages
15
Hi everyone, I think we need to change my username to Eminem because im back again!!! (Sorry)


so i have managed to install Sab and I can set downloads, unpack and get them into their individual files/datasets...... I set films and tv...... I had everything working then installed Sonarr, this then started giving me errors in Sonarr about it having issues because of the rules set in catagories in Sab. So now if I go to Sonarr add a tv series it now fails to create a new directory (this did work when jusy using SAB itself, I feel the issue is in Sonarr, I have deleted the error message i got in Sab, I have just started to download a new series so can post again in a few hours whe it tries to create a new directory. I have copied and pasted my error from the log (I think).


2024-01-13 12:25:30,216::INFO::[filesystem:737] Creating directories: /mnt/Apps/SabNZBd_Downloads/The.Last.Kingdom.S05.1080p.BluRay.x264-OFT
2024-01-13 12:25:30,216::INFO::[notifier:137] Sending notification: Error - Failed making (/mnt/Apps/SabNZBd_Downloads/The.Last.Kingdom.S05.1080p.BluRay.x264-OFT) (type=error, job_cat=None)
2024-01-13 12:25:30,216::ERROR::[filesystem:759] Failed making (/mnt/Apps/SabNZBd_Downloads/The.Last.Kingdom.S05.1080p.BluRay.x264-OFT)
Traceback (most recent call last):
File "/app/sabnzbd/filesystem.py", line 753, in create_all_dirs
os.mkdir(path_part_combined)
OSError: [Errno 30] Read-only file system: '/mnt/Apps/SabNZBd_Downloads/The.Last.Kingdom.S05.1080p.BluRay.x264-OFT'
2024-01-13 12:25:30,217::INFO::[notifier:137] Sending notification: Error - Cannot create final folder /mnt/Apps/SabNZBd_Downloads/The.Last.Kingdom.S05.1080p.BluRay.x264-OFT (type=error, job_cat=None)
2024-01-13 12:25:30,217::ERROR::[postproc:755] Cannot create final folder /mnt/Apps/SabNZBd_Downloads/The.Last.Kingdom.S05.1080p.BluRay.x264-OFT
2024-01-13 12:25:30,217::INFO::[notifier:137] Sending notification: Error - Post Processing Failed for The.Last.Kingdom.S05.1080p.BluRay.x264-OFT (see logfile) (type=error, job_cat=None)
2024-01-13 12:25:30,217::ERROR::[postproc:638] Post Processing Failed for The.Last.Kingdom.S05.1080p.BluRay.x264-OFT (see logfile)
2024-01-13 12:25:30,217::INFO::[postproc:639] Traceback:
Traceback (most recent call last):
File "/app/sabnzbd/postproc.py", line 465, in process_job
tmp_workdir_complete, workdir_complete, file_sorter, one_folder, marker_file = prepare_extraction_path(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/sabnzbd/postproc.py", line 756, in prepare_extraction_path
raise IOError
OSError
2024-01-13 12:25:30,217::INFO::[notifier:137] Sending notification: Download Failed - The.Last.Kingdom.S05.1080p.BluRay.x264-OFT (type=failed, job_cat=tv)
2024-01-13 12:25:30,217::INFO::[nzbstuff:1804] [N/A] Purging data for job The.Last.Kingdom.S05.1080p.BluRay.x264-OFT (delete_all_data=False)
2024-01-13 12:25:30,218::INFO::[notifier:137] Sending notification: Download Failed - The.Last.Kingdom.S05.1080p.BluRay.x264-OFT (type=failed, job_cat=tv)
2024-01-13 12:25:30,697::INFO::[database:279] Added job The.Last.Kingdom.S05.1080p.BluRay.x264-OFT to history
2024-01-13 12:25:30,697::INFO::[postproc:138] Saving postproc queue
2024-01-13 12:25:30,699::INFO::[downloader:422] Post-processing finished, resuming download
2024-01-13 12:25:34,699::INFO::[nzbqueue:230] Saving queue
2024-01-13 12:25:34,701::INFO::[postproc:138] Saving postproc queue
2024-01-13 12:25:34,703::INFO::[notifier:137] Sending notification: SABnzbd - Queue finished (type=queue_done, job_cat=None)
2024-01-13 12:26:56,363::INFO::[database:232] [N/A] Removing job SABnzbd_nzo_16s2ii9x from history
2024-01-13 13:13:27,231::INFO::[rss:459] Starting scheduled RSS read-out for "Nzb.su Cart"


I believe the permissions for each app should be the same as I have both apps running as both apps Sab and Sonarr are both set to 568 (apps) user, and then the tv data set is as follows, all allowed with full permissions.

person
User - apps
Allow | Special
Permissions Advanced
  • check_circleRead Data
  • check_circleWrite Data
  • check_circleExecute
  • check_circleAppend Data
  • check_circleDelete Children
  • check_circleDelete
  • check_circleRead Attributes
  • check_circleWrite Attributes
  • check_circleRead Named Attributes
  • check_circleWrite Named Attributes
  • check_circleRead ACL
  • check_circleWrite ACL
  • check_circleWrite Owner
  • check_circleSynchronize

thanks for any input.
 

Houghton19

Dabbler
Joined
Dec 25, 2011
Messages
15
pretty much the same as it says in the log I guess.
 

Attachments

  • error.jpg
    error.jpg
    61.4 KB · Views: 33

Dirk

Patron
Joined
May 23, 2016
Messages
206
pretty much the same as it says in the log I guess.
I'm aware this is a little old but wanted to share my resolution.

Everything needs to talk to each other. For me I found a guide that said to change who the app runs as. It went on to say after that a new user and group with the same ID as the user in the root operating system (you did not say if you are running separate jails). For me I cloned settings for media and it's ID (working from memory here) to a new media user and group in Sab and Sonarr with read and write privilege. Sab and Sonarr see each other as the same person and group. You also need to change the root media folders (ie) tv movies etc. ownership to media this allows sonarr to create directories (since sonarr is being run by media)

I know what I have here is no doubt a bit flawed, but maybe others will lend a little clean up
 
Top