Getting "502 Bad Gateway" on dedicated RPI3

HA on a standalone RPi3b. Getting "502 Bad Gateway" errors from ESPHome and Everything Presence Zone Configurator (can't even open them in the UI most of the time). 1 ESP32 and 2 Everything Presence devices are linked into HA and appear to be working; but my system also appears to be restarting frequently.

My system has defined DNS name/domain and fixed address in DHCP - so "*.local" names won't resolve via DNS - wondering if that's related? Most of the search engine results I've seen for this error come from folks running docker installs though (and I'm not).

Also see this in my logs but don't know why it has an issue connecting to 127.0.0.1:
ERROR (MainThread) [homeassistant.components.esphome.coordinator] Error requesting ESPHome Dashboard data: 502, message='Bad Gateway', url='http://127.0.0.1:65148/devices'

About info:

  • Installation method Home Assistant OS
  • Core 2026.5.0
  • Supervisor 2026.05.0
  • Operating System 17.3
  • Frontend 20260429.3

That's your issue. The Pi3b doesn't have enough memory to run HA + Apps & is no longer recommended hardware. What you're seeing is probably the apps (& HA) crashing due to out of memory errors. If the app has crashed, you'll get a 502 error until it restarts.

There's plenty of threads here about the issue and suitable hardware replacements. Personally, I would suggest a used NUC or laptop.

1 Like