How to investigate "Connection Lost" and "502 Bad Gateway"

Hi @JulienDelRio, I am sorry to hear you’re having trouble.

It’s seems that the server stop. Then the OS restart it.

Yep, that sounds likely.

But we can’t find logs on the error causing the crash.

Logging in n8n can be configured using a number of environment variables. By default, errors would be written to the console and are accessible for example using commands such as docker logs (when using docker) or pm2 logs (when using pm2 to manage your npm deployment).

WIth the desktop app it’s a bit more tricky to view the logs. I think your best bet would be to start the desktop app via the command line as described here, then reproduce the crash.