HTTP ERROR 502 on Hetzner self hosting with Docker Compose Caddy

Describe the problem/error/question

I followed the documentation with attention, installed everything, changed only .env file and caddy_config/Caddyfile, as i did in two other instances in the past. However when i open the site, i get a 502 error

What is the error message (if any)?


Information on your n8n setup

Docker compose on Hetzner cloud VM

Anyone has experienced this and knows what may be happening?

here the logs from the containers n8n-logs - Google Docs

Thank you so much in advance for the help

Update: following this suggestion it was enough to change the path in the docker-compose file


   - ${DATA_FOLDER}/.n8n:/home/node/.n8n


   - ${DATA_FOLDER}/.n8n:/root/.n8n

And then restart

Case closed, Watson :slight_smile:

1 Like

Hey @lstnadmin,

We moved away from root in 1.0 so the change to /root/.n8n is likely to cause more issues. The correct solutions is to run the command below (replacing ~/.n8n with the correct path) until we update the image again to fix the recent issue that was introduced.

docker run --rm -it --user root -v ~/.n8n:/home/node/.n8n --entrypoint chown n8nio/base:16 -R node:node /home/node/.n8n

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.