Can't start docker, says "Error: Command "start" not found

Hello everyone, I’m trying to get n8n running in a docker container. I’ve been able to create the docker with the image and specify the variables but as soon as I run it it saysthis:

Error: Command “start” not found

Then the docker stops running

I’ve set up the variables, following a few guides. Specifying the postgre sql database and credentials, speficying the volume mapping like this: /var/n8n_data /home/node/.n8n

Im not sure what else to do, the docker logs just show the very same error message line it doesn’t show anything else.

My server is an ubuntu server 20.04

I appriciate any help

Thanks!

in the YML remove start and just have n8n, feel free to share but the issues is “n8n start” it should just be ‘n8n’

@Daniel_Garcia1 Had this yesterday when spinning up from template on railway.

Hey, thanks for your reply but I’m not sure what’s the YML, I’m using docker via Plesk I just have a button to start or stop the docker

Hey, I’ve found that if I create the docker without the volume mapping it works, when I add volume mapping it doesn’t work and it shows the Error: Command “start” not found

ah nice glad it working, btw dont forget the backup side if no persistant storage, u can export to github quite easy Discover 3939 Automation Workflows from the n8n's Community or CLI commands | n8n Docs just incase.

Ah plesk sorry assumed using docker ymls, hope all goes well.

Samuel

I was able to use the volume mapping by changing the owner of the n8n_data folder. Now the docker runs fine, or at least that’s what it seems. It says “Editor is now accessible via:
http://localhost:5678” but when I go to my server’s address and that port I just get an error saying connection refused ERR_CONNECTION_REFUSED. Any idea of what can be causing this? I’ve already have a firewall rule allowing incoming traffic from port 5678

use https, even if without cert, but this should fix most browser dont allow http anymore @Daniel_Garcia1

It happened the same with https. What I also tried to do is telnet to the n8n port but I can’t get a connection. I’m not sure if that’s because it’s on a docker container or why exactly but the firewall rules allow incoming traffic to the 5678 tcp port

I saw what the issue was, there was a checkbox that was making the port inaccesible when accessing from internet now everything is working fine!

May I ask how did you managed to change the n8n_data folder’s owner? I’m having a similar problem, but Im using a Dockerfile and a docker-compose.yml, where and how do you set the permissions for the n8n_data folder

Hey, what I did was run this command to change the owner: sudo chown -R 1000:1000 /path/to/n8n_data

I run that command directly on my ssh session on my ubuntu server

I hope that helps you too