-
-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to create folder root directory mkdir /data1: read-only file system #80
Comments
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. |
Yea. I can create folders without any problem by 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 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. |
@Roxedus Any idea how to solve this? |
Seems to work now for some reason! |
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
The text was updated successfully, but these errors were encountered: