SOLVED: Sonarr unable to write to shared folders

bertyboynz
Posts: 3
Joined: Mon Jun 05, 2017 11:22 pm

SOLVED: Sonarr unable to write to shared folders

Postby bertyboynz » Mon Jun 05, 2017 11:26 pm

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

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Sonarr unable to write to shared folders

Postby bigfoot65 » Tue Jun 06, 2017 4:40 am

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.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

bertyboynz
Posts: 3
Joined: Mon Jun 05, 2017 11:22 pm

Re: Sonarr unable to write to shared folders

Postby bertyboynz » Thu Jun 08, 2017 2:40 am

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

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

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

Postby cpg » Fri Jun 09, 2017 3:38 am

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
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

bertyboynz
Posts: 3
Joined: Mon Jun 05, 2017 11:22 pm

Re: Sonarr unable to write to shared folders

Postby bertyboynz » Fri Jun 09, 2017 3:47 am

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

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: SOLVED: Sonarr unable to write to shared folders

Postby bigfoot65 » Fri Jun 09, 2017 6:51 pm

Thanks to cpg for solving this one.

I missed the boat on it :(
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 13 guests