R
Railway12mo ago
Jack

EACCES: permission denied (volume)

Error: EACCES: permission denied, open '/home/node/.n8n/crash.journal'
Error: Exiting due to an error.
Error: EACCES: permission denied, open '/home/node/.n8n/crash.journal'
Error: Exiting due to an error.
while have volume mounted on /home/node/.n8n
15 Replies
Percy
Percy12mo ago
Project ID: ba59258e-37d9-4304-9271-6441ec33e2f3
Jack
Jack12mo ago
ba59258e-37d9-4304-9271-6441ec33e2f3
Brody
Brody12mo ago
what updates did n8n do to break your template so badly?
Jack
Jack12mo ago
it turned out to have just been a railway or docker issue because i made changes and then it wasnt working so i ran the original and it worked but im trying to fix volume stuff but its a little confusing how they do it with
Jack
Jack12mo ago
Error: EACCES: permission denied, mkdir '.n8n'
Error: Exiting due to an error.
Error: EACCES: permission denied, mkdir '.n8n'
Error: EACCES: permission denied, mkdir '.n8n'
Error: Exiting due to an error.
Error: EACCES: permission denied, mkdir '.n8n'
Error: EACCES: permission denied, mkdir '.n8n'
Error: Exiting due to an error.
Error: EACCES: permission denied, mkdir '.n8n'
Error: EACCES: permission denied, mkdir '.n8n'
Error: Exiting due to an error.
Error: EACCES: permission denied, mkdir '.n8n'
mayve gotten it nope may have an alternative fix quick question tho, whats the variable for generating a secret string in a template env
Brody
Brody12mo ago
what's your data folder env set to?
Jack
Jack12mo ago
N8N_USER_FOLDER was set to the volume variable and the volume was set to /root/volume that is ive tried the same with the volume set to /home/node, /home/node/.n8n. /root/.n8n
Brody
Brody12mo ago
set your variables without using template variables, there's an issue with rendering variables from templates
Jack
Jack12mo ago
same for the db or can that remain tbh keeping a static env encryption key works, not sure the pros of having a volume with n8n ill look
Brody
Brody12mo ago
no those are fine, they are automatically added
Jack
Jack12mo ago
wait youre talking about like i was setting it internally in the dockerfile for the volume not in the template deploy page options would like more volume documentation, hard to understand better how it works or to learn when i start it w/o declaring that env var too this is among some of the few deploy logs UserSettings were generated and saved to: /home/node/.n8n/config
Brody
Brody12mo ago
sorry I went afk read the recent messages in this chat https://discord.com/channels/713503345364697088/1133689689384177814
Jack
Jack12mo ago
I don’t have any problem with template variables, those work fine in my case.
Brody
Brody12mo ago
oh that's good then, but unfortunately I don't quite know what to tell you here, this is more so something I'd need be to be hands on to debug