Syncthing - Failed to create folder root directory mkdir /Test: permission denied..

JohnnyBeGood

Dabbler
Joined
Jan 9, 2012
Messages
31
Hi all,

I've got this error right after install. Searched forums and all suggestions did not help. I came across this tutorial https://www.youtube.com/watch?v=xkER4b5JX8g and followed it, but was getting same error. I feel like this is a bug. I'm on TrueNAS-12.0-U3
and I simply ran out of ideas.

Code:
Notice
2021-04-19 19:42:17: Failed to create folder root directory mkdir /Test: permission denied

2021-04-19 19:42:17: Error on folder "Test" (Test): folder path missing




users1_cr.png


users2_cr.png


Sync folder owner.JPG


mount point.JPG


GUI.JPG
 

Attachments

  • users2.png
    users2.png
    462.4 KB · Views: 1,223
  • users1.png
    users1.png
    454.2 KB · Views: 1,197

JohnnyBeGood

Dabbler
Joined
Jan 9, 2012
Messages
31
Thanks for the reply!

Code:
root@truenas[~]# getfacl /mnt/MojPool
# file: /mnt/MojPool
# owner: root
# group: wheel
            owner@:rwxp--aARWcCos:-------:allow
            group@:r-x---a-R-c--s:-------:allow
         everyone@:r-x---a-R-c--s:-------:allow
root@truenas[~]# getfacl /mnt/MojPool/syncthing_data
# file: /mnt/MojPool/syncthing_data
# owner: sync
# group: sync
            owner@:-wxp----------:-------:allow
            group@:-wxp----------:-------:deny
            owner@:rwxp--aARWcCos:-------:allow
            group@:r-----a-R-c--s:-------:allow
         everyone@:rwxp--a-R-c--s:-------:allow
root@truenas[~]#
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
Code:
# file: /mnt/MojPool/syncthing_data
# owner: sync
# group: sync
            owner@:-wxp----------:-------:allow
            group@:-wxp----------:-------:deny
            owner@:rwxp--aARWcCos:-------:allow
            group@:r-----a-R-c--s:-------:allow
         everyone@:rwxp--a-R-c--s:-------:allow


You have removed the GROUP execute bit. This prevents the "sync" user from being able to traverse this mountpoint. Change permissions on this path to 775 perhaps.
User: rwx
Group: rwx
Other: rx
 
Last edited:

JohnnyBeGood

Dabbler
Joined
Jan 9, 2012
Messages
31
Still no joy. Under Dataset "syncthing_data" I added permission and now it shows

Code:
root@truenas[~]# getfacl /mnt/MojPool/syncthing_data
# file: /mnt/MojPool/syncthing_data
# owner: sync
# group: sync
            owner@:--x-----------:-------:allow
            group@:--x-----------:-------:deny
            owner@:rwxp--aARWcCos:-------:allow
            group@:rw-p--a-R-c--s:-------:allow
         everyone@:rwxp--a-R-c--s:-------:allow
root@truenas[~]# getfacl /mnt/MojPool/syncthing_data
# file: /mnt/MojPool/syncthing_data
# owner: sync
# group: sync
            owner@:rwxp--aARWcCos:-------:allow
            group@:rwxp--a-R-c--s:-------:allow
         everyone@:rwxp--a-R-c--s:-------:allow
root@truenas[~]#


Same error is still being shown?

1618929783600.png


1618929912031.png


I've tried to add group permission under users but after I hit save the changes are not being saved and it shows the same:

1618930006404.png
 

JohnnyBeGood

Dabbler
Joined
Jan 9, 2012
Messages
31
Found the solution!
Just in case someone still looking for a solution with this and it will come handy for someone who runs into same issue.
Folder path needs to be /mnt/syncthing_data and not /
No wonder sync user does not permission to write to root folder /
 

Attachments

  • 1.png
    1.png
    74.5 KB · Views: 4,735
  • 2.png
    2.png
    149.8 KB · Views: 4,752
  • 3.png
    3.png
    121.5 KB · Views: 4,794
  • 4.png
    4.png
    129.4 KB · Views: 4,734

viktorio

Cadet
Joined
Oct 8, 2023
Messages
1
Hello everyone to me experienced the exact same problem. Could you show me step by step how to solve? I tried changing the folder path to: /mnt/syncthing_data but it always gives me error.
 

Attachments

  • Screenshot 2023-10-08 alle 20.21.10.png
    Screenshot 2023-10-08 alle 20.21.10.png
    850.7 KB · Views: 1,967
  • Screenshot 2023-10-08 alle 20.21.27.png
    Screenshot 2023-10-08 alle 20.21.27.png
    310.3 KB · Views: 1,423
Top