Hi everybody,
I just tried to clone n8n locally on my mac and to start it under http://localhost:8081. I get this message and can’t figure out what I’m missing.
There was a problem loading init data: API-Server can not be reached. It is probably down.
Is there a reason why you do not want to use the standard n8n port 5678?
Anyway, you then have to make sure to set some environment variables accordingly that everything knows how to find the backend. You can find information about that here:
It does not have to be a mistake. There are definitely good reasons not to run it on the default port. But at the beginning especially for the first tests, it is definitely the easiest.
Very great to hear! Hope that feeling gets even stronger the more you use it
And if you run in any problems simply post here. I do my best to help you asap. Have a great day!
By default does n8n start on port 5678. Only if you run the editor in development mode does it additionally serve it also from port 8080 (with hot-reload). If you have already something else running on 8080 then it starts on 8081 but will then not work because of cors.
hey @jan im new to n8n, I pretty much liked it and started using the dev mode. By default its using the 8081 port and im getting the init error. i tried to use Nginx Configuration that you have suggested but that didnt work for me. I still getting init error. Can u plz help me out with this
thanks, @jan., yes was not even able to change the execute node in p tag to something else, and the page is not reloading in 5678, but then I re-executed the application still nothing changed
apart from these, I tried consoling the values
I was unable to do that as well
Do sadly still not understand at all what is going on. There is is no port.js file and even in the server.js file there is also no port 8080 defined (except the one to allow to make CORS requests for local development).
What exactly is the problem you are having? Do you also have that problem if you do not change things in the n8n source code? Because if you do I can simply not support you as that is really not meant to happen. There is no need for users to change anything in the source code. Everything is set up in a way that it works out of the box and can be configured via environment variables.
So is the editor-UI really starting on port 8080 or does it end up on a different port, because that would cause problems. Is it working normally if you access via port 5678?
when i was not on local development version then it was starting on 5678 but when i download packages and run editor-ui that is run on 8080 port by default
The editor-UI in development mode tries to start on 8080, but if that port is taken it uses another one like 8081. So if that happens it would cause problems and not work anymore.
If you do not make changes to the editor-UI there is no need to use the version running on port 8080, you can still use the “regular” one that gets served by the backend via port 5678.
With npm run dev, the application starts on http://localhost:8080 with the same screenshot from @ah6442 and all the resources attempting to load are failing with CORS errors for http://localhost:5678. I cannot access anything on http://localhost:5678 if I hit that directly.
These are the results for what is listening on 8080 and 5678:
I’m not necessarily having an issue because I don’t need this to run with hot reload, but I figured since I came across this thread, I’d provide some helpful info.