There is a really strange behavior as it is showing me a “gateway timeout” on the frontend.
All lets-encrypt certificates are generated without any problems but the request is ending in a gateway timeout.
When I restart the service, it randomly lets me into the GUI but when restarting container, stack, service or server again it is showing the gateway timeout again.
I have enabled debug logging for traefik and n8n service but there are logs on n8n it just says that the GUI is available and it is setup correctly.
In traefik the only log that is there for the gateway error seems to be: time="2022-08-18T20:47:08Z" level=debug msg="'504 Gateway Timeout' caused by: dial tcp 10.0.0.46:5678: i/o timeout"
I suppose as there is no network set in the docker compose, it does not know where to send the request correctly, but I do not know how to solve it.
I have replicated that procedure on new servers and setups about 10 times with always the same results.
It would be really nice to get a solution for this.
Hi @prononext , Where did you put traefik’s docker-compose file? Is it same stack with N8N or it is a different stack in portainer?
And which host is 10.0.0.46? you portainer host ?
Yes traefik is inside the docker-compose file just like shown in the official docs, so it is on the same stack inside portainer. The host 10.0.0.46 is some docker ip, that seems to change on every restart.
The n8n container is running, here the debug log:
2022-08-19T12:58:04.463Z | info | Initializing n8n process "{ file: 'start.js' }"
2022-08-19T12:58:06.081Z | debug | No codex available for: N8nTrainingCustomerDatastore.node.js "{ file: 'LoadNodesAndCredentials.js', function: 'addCodex' }"
2022-08-19T12:58:06.082Z | debug | No codex available for: N8nTrainingCustomerMessenger.node.js "{ file: 'LoadNodesAndCredentials.js', function: 'addCodex' }"
2022-08-19T12:58:07.263Z | debug | Wait tracker querying database for waiting executions "{ file: 'WaitTracker.js', function: 'getwaitingExecutions' }"
n8n ready on 0.0.0.0, port 5678
Version: 0.191.1
2022-08-19T12:58:07.738Z [Rudder] debug: in flush
2022-08-19T12:58:07.738Z [Rudder] debug: batch size is 1
2022-08-19T12:58:07.740Z [Rudder] debug: no existing flush timer, creating new one
Editor is now accessible via: https://n8n.example.com
Yes treafik and n8n where on the same network and reachable to eachother. I got a real headache from Traefik now and switched to Caddy, which was working on the first try.