R
Railwayβ€’14mo ago
sdelta

Volume Permission Denied

Hey all, I'm experiencing a similar issue to this thread: https://discord.com/channels/713503345364697088/1158087604152045598 I am deploying a n8n instance with a volume. Whenever it tries to write to the volume, I receive the following error:
Error: EACCES: permission denied, open '/home/node/.n8n/crash.journal'
Error: EACCES: permission denied, open '/home/node/.n8n/crash.journal'
Project ID: c57e0988-8082-440b-8a7e-765fd5cec52d
No description
No description
No description
Solution:
try setting a service variable RAILWAY_RUN_UID to 0
Jump to solution
9 Replies
Percy
Percyβ€’14mo ago
Project ID: c57e0988-8082-440b-8a7e-765fd5cec52d
sdelta
sdeltaOPβ€’14mo ago
Issue persists with or without RAILWAY_VOLUME_MOUNT_PATH variable.
Brody
Brodyβ€’14mo ago
is this deployed from a docker image
Solution
Brody
Brodyβ€’14mo ago
try setting a service variable RAILWAY_RUN_UID to 0
sdelta
sdeltaOPβ€’14mo ago
What black magic is this? πŸ˜„ It appears to be working now. Thanks!
Brody
Brodyβ€’14mo ago
the volumes are mounted as root, but that docker image runs n8n as a non root user (uid=1000), RAILWAY_RUN_UID set to 0 forces the image to run as a root user (uid=0) this wouldnt work for the thread you linked since thats an issue with nixpacks
sdelta
sdeltaOPβ€’14mo ago
Awesome! Thank-you for explaining!
Brody
Brodyβ€’14mo ago
no problem πŸ™‚
Want results from more Discord servers?
Add your server