LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-06-2018, 12:45 PM   #1
road hazard
Member
 
Registered: Nov 2015
Posts: 241

Rep: Reputation: Disabled
Question Can't get Sonarr and NZBGet working together


I'm trying to switch away from Mint to Antergos for my Plex server but for the life of me, I can't get Sonarr and NZBGet to work together.

I have the following accounts on my system:
roadhazard, plex, nzbget and sonarr

All belong to the 'wheel' group and I'm pretty sure I assigned the wheel group to my "tvshows" folder (will double check tonight). What happens is, Sonarr will tell NZBGet to download a file. NZBGet downloads it to the tvshows folder but sonarr can't rename/import it due to permission errors.

In a bit of frustration, I even tried adding all these accounts to the sudoers file (and restarted afterwards) but STILL had problems with permissions. Permissions on the folder are:

drwxrwxrwx 4 roadhazard users 109 Feb 3 17:56 .
drwxr-xr-x 18 root root 241 Feb 1 18:18 ..
drwxr-xr-x 3 sonarr sonarr 22 Feb 3 17:56 'Super Awesome TV Show'
drwxr-xr-x 2 nzbget nzbget 50 Feb 3 17:55 'Super.Awesome.TV Show.S01E13.blahblah'

How do I use umask to permanently adjust this folder so that existing files, AND NEWLY CREATED FILES/FOLDERS are open to the world? So that ANY user can do whatever they want to any file in there? Do I create my folder, go into it and just type: umask 000 ?

Or, is there a stupid-proof, step-by-step, ultra friendly newbie guide to setting up Sonarr and NZBGet to run under my account?

I've seen a LOT of posts talking about how difficult it is getting NZBGet working under Arch. Maybe I'll do what others suggested..... switch to SabNZB and dump Sonarr for Medusa or something else.

In Mint, NZBGet and Sonarr run under my account and I don' t have any of these problems. I use Antergos on my gaming PC and would really like to switch to Antergos on my Plex server butman is this frustrating! (Don't worry..... not going back to Windows........... ever.
 
Old 02-07-2018, 02:32 PM   #2
road hazard
Member
 
Registered: Nov 2015
Posts: 241

Original Poster
Rep: Reputation: Disabled
Solved my problems. I think everything centered around NZBGet being the main problem!? Just in case somebody else (far into the future) has the same issue, what I did to fix things was:

Don't mess with any Sonarr settings. Leave it running under the 'sonarr' user account. Make sure to add sonarr to the groups 'users' AND 'wheel'!

nzbget:

1) Log into the web console and in the security section/DaemonUsername field, change it to your account (or whatever account you want it to run under, don't leave it running under nzbget.........unless you like banging your head into the wall in frustration like I did and waste your time chasing down permission issues.)

2) Set UMask to 0000

3) Stop NZBGet (if it's running!) and edit /lib/systemd/system/nzbget.service. Change user and group to your account and the group that you're in.

4) Make sure all accounts are added to each others' groups. (add your account to wheel, plex, nzbget, sonarr)...... nzbget to users, plex, sonarr, wheel, etc., etc.

5) Restart the PC (I tried re-enabling the service and manually starting it but that didn't work. I had to reboot my PC at this point.)

Right now, sonarr has NZBGet grab the files, sonarr can rename and import them and plex can see things just fine. Everything is finally working together in perfect harmony!

Side question.......I'm painfully aware of how much Linux LOVES file permissions..... as I switch over to Antergos from Mint, will I need to do anything special to my movies/tv folders? In Windows, when you hook up a new data drive, you sometimes have to take ownership of the folders/files. Will it be the same with switching distros? Will I have to go into the folders (once the mdadm RAID 6 array is assembled) and go into the properties of these folders and do anything?
 
Old 03-20-2019, 02:44 PM   #3
VeryGimpy
LQ Newbie
 
Registered: Mar 2019
Posts: 1

Rep: Reputation: Disabled
I had this or a similar problem and after much hardship i found out that it was caused by unrar restoring file permissions from the rar archive instead of granting access to the user or group. This would happen only in some archives, for some reason.

The solution was to tell unrar to ignore file attributes and permissions during unpack, by adding "unrar x -ai" to setting UnrarCmd in the Unpack section of NZBGet settings. (This should really be the default)

Hope this helps someone end their own permissions nightmare.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running unattended processes (Plex, Nzbget, etc) as Kerberos users for CIFS shares? sofakng Linux - Server 0 08-18-2015 11:45 PM
media problem with .avi --- audio only in vlc working rest amarock ,etc. not working fedex Linux - Newbie 1 12-22-2007 08:06 AM
SED - minor changes work - Larger doesn't (working and non working code included) Nimoy Programming 17 09-22-2007 04:34 PM
Fortemedia FM801 card not working under FC5 on Intel 845 but working with windows morningkiran Linux - Hardware 0 11-30-2006 07:57 AM
acpi nearly working IBM thinkpad R40e 2684HVG no Fn key working, throttling OK Emmanuel_uk Linux - Laptop and Netbook 2 05-31-2006 01:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration