I have a trouble with n8n on my VPS.
Everythings work good for several months.
I restart my VPS, restart n8n with this command:
sudo docker-compose up -d
But I have this error:
WARNING: The DATA_FOLDER variable is not set. Defaulting to a blank string.
Starting root_n8n_1 ...
Starting root_traefik_1 ...
Starting root_traefik_1 ... error
...
And when I try to access with chrome I have a 404 erreur.
Hello @frankl1, it seems that you have other containers running and using these ports.
If you list your running/stopped containers (sudo docker ps), do you have something?
Strange, because you see in the CLI that docker-compose add the suffix _1 to each container, like if you have already containers created with the name without the suffix.
Also, I see that you have a problem with variable definition “Variable is not set” when you up docker-compose. Maybe a problem related.
root@vps767290:~# sudo docker-compose up -d
Creating network “root_default” with the default driver
Creating root_traefik_1 …
Creating root_traefik_1 … error
WARNING: Host is already in use by another container
ERROR: for root_traefik_1 Cannot start service traefik: driver failed programming external connectivity on endpoint root_traefik_1 (c3a02b54c7b6d4c53729f4000b69baa419610790e969638810be673010fee4c5): Error starting userland proxy: listen tcp 0.0.0.0:443: bind: address already in use
Creating root_n8n_1 … error
ERROR: for root_n8n_1 Cannot start service n8n: driver failed programming external connectivity on endpoint root_n8n_1 (a40461194e06db6fcf609cdd50f81990cdfe1a4c62fc56b10d283f4ce367bd69): Error starting userland proxy: listen tcp 127.0.0.1:5678: bind: address already in use
ERROR: for traefik Cannot start service traefik: driver failed programming external connectivity on endpoint root_traefik_1 (c3a02b54c7b6d4c53729f4000b69baa419610790e969638810be673010fee4c5): Error starting userland proxy: listen tcp 0.0.0.0:443: bind: address already in use
ERROR: for n8n Cannot start service n8n: driver failed programming external connectivity on endpoint root_n8n_1 (a40461194e06db6fcf609cdd50f81990cdfe1a4c62fc56b10d283f4ce367bd69): Error starting userland proxy: listen tcp 127.0.0.1:5678: bind: address already in use
ERROR: Encountered errors while bringing up the project.
However I don’t have the duplicate container anymore.
root@vps767290:~# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
root@vps767290:~# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3c25e62fa84d n8nio/n8n “tini – /docker-ent…” 3 minutes ago Created root_n8n_1
6e678892f3bf traefik “/entrypoint.sh --ap…” 3 minutes ago Created root_traefik_1
Sadly no idea what exactly is going on there. Make best sure to stop everything (docker-compose stop) and then also remove them (docker-compose rm). Then make sure that there is no other docker image running. If there are still any, remove them manually. Once you are 100% sure that everything is clean try to start again.
Hello @frankl1, have you successfully restart your stack of containers?
I was thinking about 2 things: launch docker-compose with remove-orphans and force-recreate arguments.