Hi there,
I’ve been interested in N8N for a few months now and I finally decided to take some courses and started to setup everything yesterday. Since I’m a complete neophyte I thought that the best would be to run everything locally (self-hosted) before trying out other alternatives.
However, I ran into a few issues with Docker and I don’t know how exactly to solve them. Not sure if you’re able to give me some tips, but I’d appreciate some help if possible.
So, I installed Docker desktop and all went fine with the initial setup.
I came then along with this youtube link from AI Workshop (https://www.youtube.com/watch?v=PB24nnMBHlc) which is a tutorial on how to install the AI self starter kit as documented in Github (GitHub - n8n-io/self-hosted-ai-starter-kit: The Self-hosted AI Starter Kit is an open-source template that quickly sets up a local AI environment. Curated by n8n, it provides essential tools for creating secure, self-hosted AI workflows.)
Seemed pretty straight forward, and it looked like everything was going fine once I typed in the last command in Powershell : docker compose --profile cpu up
It pulled in the required stuff, but then the error messages appeared.
Hey @K3nshiro hope all is well. Welcome to the community.
Not sure if your post cut short and you were planning on adding more info, but if not, can you please share what errors you got when running docker compose --profile cpu up command?
@jabbson I’m unable to edit my initial post. I keep getting 403 error. Not sure then, why the system allowed me to post, it had created 3 drafts and I posted by error the wrong one…
The pull gracefully stops at 32%. Com.docker.backend.exe and wslrelay.exe use port 5678.
This is the error : Error response from daemon: failed to set up container networking: driver failed programming external connectivity on endpoint n8n (baf7ab7087dc1b4811f9d9379d0db45fc62f938212977f61d2e65d5f6931c64f): Bind for 0.0.0.0:5678 failed: port is already allocated
Uhhh…now that you say about running two instances…
Maybe I did things wrong. After Docker Desktop install I always went to images and pulled first n8nio/n8n, Once done, I git cloned the starter kit. I see now, there’s no need to pull it from Docker first, the ai starter kit does all…omg…such a noob. Will uninstall all and do a final (hopefully) clean install.
The last line is something you should already have in your docker compose file from the starter kit. Although it is probably using the named volume, which it really should. No need to change that, so all you really are looking for from this excerpt is the environment variable to be set.
Did a fresh install with starter kit only, all seems fine . By the end of the Powershell instance though, I see this, regarding some failed Ollama parts, do I need to worry ? :
I can see that it still says : - N8N_RUNNERS_ENABLED → Running n8n without task runners is deprecated. Task runners will be turned on by default in a future version. Please set N8N_RUNNERS_ENABLED=true to enable task runners now and avoid potential issues in the future. Learn more: Task runners | n8n Docs. Do I need to address this?
Last but not least, should I have more initial questions or problems that may pop-up, can I continue in this thread or should I open a specific post for this ?
When trying to Run the N8N image itself I get the “port is already allocated message”. So, it does not run as it already is running in the container, yes ?
Sorry for all my noobish questions, but I am completely new to this container/volume/image things…
correct, is you are getting this error, that means there is already a running container, which “occupies” this port. Which is what you can see on the second screenshot (a green dot next to the n8n).
Don’t be, we all have started somewhere, and I am sure you will learn the ropes in no time! I am here to help, so any question is a good question.