Filesystem Watcher Errors in Syncthing Docker Container (UGREEN NAS)

Hello Syncthing Community,

I am running Syncthing in a Docker container on a UGREEN NAS and encountering Filesystem Watcher Errors when using PUID and PGID that match my NAS user. However, if I set both values to 0, the error disappears, but Syncthing warns that running as an admin user is not recommended.

Issue:

When PUID=1000 and PGID=10 (matching my NAS user), I get Filesystem Watcher Errors like:

kotlin

KopierenBearbeiten

Filesystem Watcher Errors  
error while traversing /var/syncthing/data/<folder>: permission denied  
error while traversing /var/syncthing/data/<another-folder>: permission denied  

However, if I set PUID=0 and PGID=0, the errors disappear, but Syncthing warns:

pgsql

KopierenBearbeiten

Syncthing should not run as a privileged or system user. Please consider using a normal user account.  

Troubleshooting Tried:

  • Verified that the folders have drwxrwxrwx permissions and belong to the correct user/group.
  • Mounted volumes using :rw, :z, and :Z to adjust access control.
  • Ensured that no SELinux/AppArmor restrictions apply.
  • Confirmed that the Syncthing container user matches the expected NAS user/group.

Question:

What is the best way to resolve this issue without running Syncthing as root? Is there a known way to fix the Filesystem Watcher Errors while keeping proper user/group settings?

Any help or guidance would be greatly appreciated. Thank you! :blush:

The errors present as from the watcher but I think they are just regular file permission issues. You say you’ve checked all the basics there, but nonetheless that appears to be the problem.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.