Intermittent 502 Openresty Error with Home Assistant on Proxmox VM via Nginx Proxy Manager

Hello everyone,

I’m encountering an intermittent issue with my Home Assistant setup and would appreciate any insights or advice. Here’s my setup:

  • Home Assistant is running on a Proxmox VM.
  • I use Nginx Proxy Manager to forward a DynDNS IP to the Proxmox VM.

This setup usually works well, but sometimes, especially after not using it for a while, I run into problems when accessing Home Assistant. Specifically:

  • When I try to access the Home Assistant UI at homeassistant.myDomain.de/lovelace, I occasionally get a 502 Openresty error.
  • Additionally, at homeassistant.myDomain.de, I sometimes encounter a dialog box stating “no connection, retry in 60s.”

Interestingly, once I SSH into the server, I am able to access the Home Assistant UI again through both of the aforementioned URLs without any issues.

I’m not sure why this is happening or how to permanently fix it. Has anyone experienced something similar or have any suggestions on how to resolve this?

Thanks in advance for your help!