I’ve followed the KB several times for Digital Ocean. I’ve gone so far as to completely clear docker, and I’ve destroyed my droplet and started from scratch. When I run ‘docker compose’, it appears to go through the process and start the containers.
What I see when I then run ‘docker ps’ is:
docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
19c59d71300d caddy:latest “caddy run --config …” 3 minutes ago Up 3 minutes 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp, 443/udp, 2019/tcp n8n-docker-caddy-caddy-1
ddeffae2f568 n8nio/n8n “tini – /docker-ent…” 3 minutes ago Up 1 second 0.0.0.0:5678->5678/tcp, :::5678->5678/tcp n8n-docker-caddy-n8n-1
What is the error message (if any)?
When I look at the docker logs, I see this repeating:
Error: Exiting due to an error.
Error: EACCES: permission denied, open ‘/home/node/.n8n/crash.journal’
Error: EACCES: permission denied, open ‘/home/node/.n8n/crash.journal’
Information on your n8n setup
n8n version: 1.05
Database (default: SQLite): SQLite
Running n8n via (Docker, npm, n8n cloud, desktop app): Docker on Digital Ocean
Removing the docker-compose bind setting makes it temporarily possible, but it is inconvenient because it cannot be seen on the log host.
It’s not a perfect solution, so I’d like to hear your opinion
You shouldn’t need to run as root in 1.0 we made the change to the node user instead, The command should have changed the folder permissions so that the node user has access to them.
After you ran the command and before you added the user to the compose file what was your console output? Can you also share the other env options you have set?
Contents of my Docker Compose file that I used often
There is nothing special about “.env”, so please understand.
And please understand that some personal information will be deleted.
Of course, I used the same yml file without any problems in the previous version.
The system consists of AWS’ Elastic Beanstalk, but it does not seem to have much to do with the current situation.
Also, my system was restarted about 19 hours ago, and I estimate that docker pull in the yml file worked as latest
I’ll probably do it as root when I’m configuring the environment in beanstalk.
And what I wrote above is also the result of executing the “docker-compose up -d” command directly from the root authority.
It is automatically created if it means a host, not a container.
Because I’m the root
I think /home/node/.n8n/logs is the path to the container, not the host.
For your information, /home/node/.n8n/logs did not appear inside the container when the container-based n8n was driven.
I now have it working without the root user in docker-compose.yml.
The issue is in the permissions of the .n8n and local_files subdirectories. I had to chown these two directories to my user. Then I verified a new workflow survived a docker restart.