-
Notifications
You must be signed in to change notification settings - Fork 387
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
User data not being stored in mounted /data directory #70
Comments
Would be great to see a solution to this issue. |
Same problem. |
I think there is a bug. When you place the required files in the /data directory the docker will automatically assign them to user 1001 instead of the user you define at Temporary solution: You have to change permissions of the mounted folder to 777, so other users can write to it Similar to #82 I think. |
@drcobra unfortunately using Synology Docker which is all UI based. Reluctant to SSH into the box to make this permissions change if I can avoid it. Makes sense that the PUID/PGID environment variables are not being honoured like most other containers which is causing the issue. |
A workaround update for anyone else that finds this. |
Node-RED 1.0.0 is now available on docker hub - https://hub.docker.com/r/nodered/node-red. This closes this issue. There are a few changes to the new release, please read the README for further details. However Synology Docker UI does not allow you to add the --user option to start node-red with a different uid:gid. Like @alexsahka purpose, with portainer you can or start node-red from the synology command line using ssh. |
Hello, to solve the issue it's possible to change the folder permission using SSH. Here is a small guide on how to do it on Synology NAS: |
What are the steps to reproduce?
Mount /data directory to external volume.
Use the --user myLocalUserName parameter so that container has permission to read/write to the external volume. (Container will not launch without this)
From the log the command lines used are;
Where the environment variable $FLOWS is just the default flows.json
What happens?
See in the log that a user directory is created and my settings and flows are stored there;
4 Apr 06:34:50 - [info] Settings file : /usr/src/node-red/myLocalUserName/settings.js
4 Apr 06:34:50 - [info] User directory : /usr/src/node-red/myLocalUserName
4 Apr 06:34:50 - [info] Flows file : /usr/src/node-red/myLocalUserName/flows.json
However there is nothing stored in the mounted /data directory.
What do you expect to happen?
That the user directory and/or data would appear in the mounted /data directory and therefore my settings and flows would be external to the container, so could be backed up and survive container upgrades etc.
Please tell us about your environment:
The text was updated successfully, but these errors were encountered: