error while traversing /data1: permission denied

I am using ubuntu linux. syncthing is setup in docker on a ugreen nas. Syncthing does appear to be working, and synced about 15 gb to my macbook. However, I get the following error:

For the following folders an error occurred while starting to watch for changes. It will be retried every minute, so the errors might go away soon. If they persist, try to fix the underlying issue and ask for help if you can’t.

Documents: error while traversing /data1: permission denied

The user that owns the Syncthing process apparently does not have the correct rights to scan /data1 .

EDITED TO ADD: I missed that this was a Docker setup when I wrote the below. Docker file rights are not something I can help with, unfortunately.

On Ubuntu, you can figure out the user like this:

chaos@REDACTED$ ps -ef | grep syncthing
chaos        987     668  0 Jul28 ?        00:00:00 /usr/bin/syncthing serve --no-browser --no-restart
chaos        993     987  0 Jul28 ?        00:01:29 /usr/bin/syncthing serve --no-browser --no-restart
chaos       5498    5454  0 07:36 pts/0    00:00:00 grep --color=auto Syncthing


On my Ubuntu Device, the user “chaos” owns the Syncthing process.

THIS IS THE WRONG ADVICE FOR DOCKER: You can use chmod or chown on the files that you want that user to be able to see in Syncthing. Be sure to understand what will happen before you use those commands.

I changed the PUID and PGID to 0,0 in the container and the watcher error disappeared. So should I just leave it like that?

I’m not smart enough with Docker to answer that question for you. My apologies.