Page 1 of 1

SOLVED: Sonarr unable to write to shared folders

Posted: Mon Jun 05, 2017 11:26 pm
by bertyboynz
Hey,

So im new to all of this, not 100% sure if this is the correct place to be posting... Have a few questions, but starting with this one. I installed Sonarr via the apps and can get into it no problem, however when I try add tv shows from my drives which I have mounted and added to my shares etc It says Sonarr does not have permission to write to those folders. I have tried everything I can find on google to give it the correct permissions but nothing seems to work.

I saw on a different thread someone ask for a paste of apaste --sysinfo.... so here is the link:
https://da.gd/SE9L5

Please ask if you require any additional info - Thanks for your help in advance

Re: Sonarr unable to write to shared folders

Posted: Tue Jun 06, 2017 4:40 am
by bigfoot65
Please provide what permissions are set for the shares you are trying to access.

Typically you can do (replace path-to-shares with actual path):

Code: Select all

ls -al path-to-shares
If you are referring to the default shares, it's /var/hda/files/sharename.

Re: Sonarr unable to write to shared folders

Posted: Thu Jun 08, 2017 2:40 am
by bertyboynz
Is this what you'd be expecting?
drwxrwxr-x 1 500 users 4096 Jun 4 14:45 drive1
drwxrwxr-x 1 500 users 12288 Jun 4 18:19 drive2
drwxrwxr-x 1 500 users 4096 Jun 1 06:43 drive3
drwxrwxr-x 1 500 users 16384 Jun 3 16:25 drive4

I have mounted 4 drives at these points using this command "

Code: Select all

sudo vi /etc/fstab
" to place the following info:
UUID=1090FA4190FA2D3A /var/hda/files/drives/drive1 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100,noatime 1 2
UUID=BC6C7F536C7F0802 /var/hda/files/drives/drive2 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100,noatime 1 2
UUID=B484A19F84A16498 /var/hda/files/drives/drive3 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100,noatime 1 2
UUID=01D1DD16FEE93390 /var/hda/files/drives/drive4 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100,noatime 1 2

I do not actually know waht eth stuff after the drive number means - perhaps something can be changed there?

Thank you for your reply :D

[SOLVED] Re: Sonarr unable to write to shared folders

Posted: Fri Jun 09, 2017 3:38 am
by cpg
Just a quick note that rather to jump directly unto the void of the Linux command line, the simplest solution here (initially) was to click on Setup > Shares > YourShare > Permissions ... to clear permissions in the share.

I had a moment to debug this. The issue was clear in the first link that the user posted!

However, I dug in and only realized after the fact. The user mounted the drives with fuseblk, which means they are not native linux drives. The fuseblk determines the permission in the mount settings in /etc/fstab (which the user had surmised from web searches and it was working! sans permissions). There was a tiny hint in line 61 where mount.ntfs-3g was listed as a top CPU hog.

I had to re-edit the /etc/fstab for the user (maybe he can post it here, please?) to make the mounts fully writeable. After that, a reboot could have done, or what I did: umount -a && mount -a

Re: Sonarr unable to write to shared folders

Posted: Fri Jun 09, 2017 3:47 am
by bertyboynz
here is the original incorrect lines:
UUID=1090FA4190FA2D3A /var/hda/files/drives/drive1 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100,noatime 1 2
UUID=BC6C7F536C7F0802 /var/hda/files/drives/drive2 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100,noatime 1 2
UUID=B484A19F84A16498 /var/hda/files/drives/drive3 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100,noatime 1 2
UUID=01D1DD16FEE93390 /var/hda/files/drives/drive4 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100,noatime 1 2

And here are the corrected and now working lines:
UUID=1090FA4190FA2D3A /var/hda/files/drives/drive1 ntfs-3g rw,user,fmask=0113,dmask=0000,uid=1000,gid=100,noatime 1 2
UUID=BC6C7F536C7F0802 /var/hda/files/drives/drive2 ntfs-3g rw,user,fmask=0113,dmask=0000,uid=1000,gid=100,noatime 1 2
UUID=B484A19F84A16498 /var/hda/files/drives/drive3 ntfs-3g rw,user,fmask=0113,dmask=0000,uid=1000,gid=100,noatime 1 2
UUID=01D1DD16FEE93390 /var/hda/files/drives/drive4 ntfs-3g rw,user,fmask=0113,dmask=0000,uid=1000,gid=100,noatime 1 2

Super big thank you for your help in resolving this with me :D :D :D :D

Re: SOLVED: Sonarr unable to write to shared folders

Posted: Fri Jun 09, 2017 6:51 pm
by bigfoot65
Thanks to cpg for solving this one.

I missed the boat on it :(