Trying run on the port 80

Hi Guys, I´m trying run the n8n on Docker, using the official latest version, on the port 80.

When I run it on the 5678 port, this is the log.

n8n ready on, port 5678
Version: 0.85.0

Start Active Workflows:

But, when I change the port to 80 (or 443) this is the log.

throw er; // Unhandled ‘error’ event
Error: listen EACCES: permission denied
at Server.setupListenHandle [as _listen2] (net.js:1296:21)
at listenInCluster (net.js:1361:12)
at doListen (net.js:1500:7)
at processTicksAndRejections (internal/process/task_queues.js:85:21)
Emitted ‘error’ event on Server instance at:
at emitErrorNT (net.js:1340:8)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
code: ‘EACCES’,
errno: ‘EACCES’,
syscall: ‘listen’,
address: ‘’,
port: 80
ln: /home/node/.n8n: File exists

I need to change any more on argument or ENV to run it on the 80 port?

Why you need to run it on Port 80?

Have you opened the ports?

It looks like something else is already running on port 80. As only one application at a time can use any given port, n8n gets blocked.

1 Like

I’m running on a container stack with docker+nginx as a reverse proxy.
When i set the ENV
The nginx was sets to point the domain to the route the 80.

In traying to route the 5678 port. But i found some trouble.

Sadly do not totally understand but yes if you have already nginx running on that port that would cause the problem. If you however also run n8n in docker that should not be a problem.

Anyway, here is a full guide on how to setup n8n on a server:

Thanks Jan. I will continue looking for a solution, when i found, I publish here!

1 Like