Skip to content
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

chown: /home/node/.n8n: Permission denied #4280

Closed
geekhuashan opened this issue Oct 6, 2022 · 3 comments
Closed

chown: /home/node/.n8n: Permission denied #4280

geekhuashan opened this issue Oct 6, 2022 · 3 comments

Comments

@geekhuashan
Copy link

geekhuashan commented Oct 6, 2022

Describe the bug
When i use docker to install on my DO vps. The wrong message showed

To Reproduce
Steps to reproduce the behavior:

1.rebuild my vps
2.install docker
3. install n8n

Expected behavior
A clear and concise description of what you expected to happen.

Environment (please complete the following information):

  • OS: [e.g. centos 7 Linux ]
  • n8n Version 0.196.0

The wrong message:

chown: /home/node/.n8n: Permission denied
Initializing n8n process
UserSettings were generated and saved to: /home/node/.n8n/config
There was an error initializing DB: "SQLITE_CANTOPEN: unable to open database file"

Stopping n8n...

@Joffcom
Copy link
Member

Joffcom commented Oct 6, 2022

Hey @geekhuashan,

Can you confirm which docker image you are using? Are you running the docker run command as a user that has permission to write to the volume (assuming there is one) as well?

@geekhuashan
Copy link
Author

geekhuashan commented Oct 7, 2022

Hey @geekhuashan,

Can you confirm which docker image you are using? Are you running the docker run command as a user that has permission to write to the volume (assuming there is one) as well?

Hey @Joffcom The docker image version is 0.196.0. I'm a newbie and I don't know how to run command as a user or root. I just copy the code from the doc.

docker run -it --rm \
	--name n8n \
	-p 5678:5678 \
	-v ~/.n8n:/home/node/.n8n \
	n8nio/n8n

Updated:

I found the issue closed #1240
Follow the instruction, and sucess

docker volume create n8n_data

docker run -it --rm -v n8n_data:/home/data bash chown 1000:1000 -R /home/data

docker run -it --rm \
        --name n8n \
        -p 5678:5678 \
        -v n8n_data:/home/node/.n8n \
        n8nio/n8n 

@Joffcom
Copy link
Member

Joffcom commented Oct 7, 2022

Hey @geekhuashan,

That is good to hear, I will get this one marked as closed.

@Joffcom Joffcom closed this as completed Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants