Open panomitrius opened 1 month ago
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.
Does user 1000 have permissions to write to /media/bigdata/syncthing.persistent.image? Error claims it doesn't.
Does user 1000 have permissions to write to /media/bigdata/syncthing.persistent.image? Error claims it doesn't.
Yea. I can create folders without any problem by sudo -u abc mkdir /data1/telefon-backups
through the syncthing docker shell (after installing sudo in it).
I've also set permissions to (-R) 777 (to avoid any permissions issues) on /media/bigdata/syncthing.persistent.image
I have a similar issue as well, it appears the container mounts the additional data volume(s) as container's root user and not the app user despite setting the puid and guid appropriately.. Works for me on another server so I'm not sure what it could be.. Though the working instance was created a long time ago and updated along the way while this problematic instance is new... Both are using the same image currently. I'm running docker as the same user that I have set puid and guid to in container env, host permission and ownership is appropriate. When shelled into the problematic container, I see ownership set to root
for the mapped data volumes yet app's /config
is a non-root user, abc:users
. That explains the permission issue inside the container I would suspect. The older working container shows the data dir ownership within the container as abc
user. For me, I do get an error from the log:
WARNING: Failed to create folder marker: mkdir /data/<redacted>/.stfolder: permission denied
...
INFO: Failed initial scan of sendreceive folder "<redacted>" (<redacted>)
WARNING: Error on folder "<redacted>" (<redacted>): folder marker missing (this indicates potential data loss, search docs/forum to get information about how to proceed)
results from shell within the container:
drwx------ 4 abc users 4.0K Jul 15 01:59 config
drwxrwxr-x 3 root root 4.0K Jul 14 23:38 data
Any ideas on this issue? All worked fine for me until recently when I wanted to sync a new folder. I haven't found a way to create new folders.
This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.
Is there an existing issue for this?
Current Behavior
When adding a new synced folder to /data1/somepath - I get this error in Syncthing GUI:
Failed to create folder root directory mkdir /data1: read-only file system
Expected Behavior
That should work.
Steps To Reproduce
Setting up docker with default config and trying to sync a folder. creating files in /data1 from shell on docker container works fine, also as user abc.
Environment
CPU architecture
x86-64
Docker creation
Container logs