Hello,
I’m experiencing an issue with a fresh n8n installation in Docker on a new Ubuntu 24.04 server. The container starts successfully, but it rejects all incoming network connections with a Connection reset by peer error, both directly via curl and through an Apache reverse proxy.
We have performed extensive troubleshooting and have ruled out all standard configuration issues.
Troubleshooting Summary:
-
The n8n container is stable and shows as ‘Up’ in
docker compose ps. -
The n8n logs show a successful startup with no errors.
-
The issue occurs with a direct
curl -v ``http://127.0.0.1:5678, so the reverse proxy (Apache) has been ruled out as the cause. -
We’ve confirmed all Apache modules are loaded and the config is correct.
-
File permissions on the data volume were corrected with
sudo chown -R 1000:1000 n8n_data/. -
AppArmor was tested by setting the Apache profile to ‘complain mode’, which did not solve the issue.
-
The error persists even when sending the correct
Hostheader usingcurl --resolve. -
A full data reset (
docker compose down,sudo rm -rf n8n_data,docker compose pull,docker compose up) did not solve the problem.
The failure seems to be a deep environmental incompatibility. Here is my server’s information: