ForestMuffin

Atualização do Home Assistant com HTTP 504 atrás do Nginx: use o IP interno ou SSH

Notas de desenvolvimento5 min de leitura

Tradução automática do artigo original em inglês. Pode conter erros.

It probably didn’t fail. You click update in Home Assistant, the page hangs, and nginx hands you a 504 Gateway Time-out instead of a new version. According to community reports (as of November 2026), the update keeps running behind that error and finishes. Below is how to confirm it, and how to run the next one without the 504.

Short version: wait it out, then check the Supervisor log. Nobody reports what a second click does, so don’t click again. Next time, start the update from the internal IP address, or run ha os update over SSH if it’s a host OS update.

One caveat up front: the only version data is an old Hass.io-era report (0.107.5), so check your own version before you lean on any of this. I’ll skip setting up the proxy itself. This is only about getting the update through it.

What the error looks like

504 Gateway Time-out

That’s the whole message. It shows up in the browser when you click update in the Home Assistant UI. The report includes no log output or stack trace, so there’s nothing more to quote.

The setup behind it is a Generic Hassio install with nginx in front. In this case that’s the SSL proxy add-on for Home Assistant, with a certificate issued for a subdomain. The reporter gets the error on every update, and every update still finishes, so they’ve learned to ignore the message. That’s most likely what you’re seeing too.

Getting through the update

Flowchart: after a 504 on update, wait without clicking again, then check whether the Supervisor log shows the new version. If yes, the update finished. If no, try the internal IP route.
What to do after the 504, based on the community reports.

1. Wait, and don’t click update again

Several users say the update keeps running behind the 504 and finishes on its own. One says “the update continues and is a success”. Another says you “just have to be patient”.

The page looks dead, so a second click feels natural. Don’t. Nobody reports what a repeat click does, so I can’t tell you whether it’s safe or harmful.

Waiting is the only option without that unknown. How long should you wait? The reports don’t give a wait time, so I can’t give you a number.

2. Check the Supervisor log, not the browser tab

Reload the UI and look in the Supervisor log for the version you expected. In the original thread, the log showed the new version (0.107.5) running after the 504. Trust the log, not the 504 in the tab.

If the log still shows the old version after a long wait, nobody in the reports covers that case. The update may not have been applied, but that’s my reading, not a reported result. Treat it as a reason to try step 3, not as proof of failure.

Check your own Home Assistant and Supervisor version while you’re in there. 0.107.5 is the only version anyone reported, and it’s from the Hass.io era. Current Home Assistant OS or Supervisor may behave differently, and I have no source that says either way.

3. Next time, go around the proxy with the internal IP

Most of the reports with this 504 come from setups with Nginx in front of Home Assistant: the SSL proxy add-on, Nginx Proxy Manager, or a separate nginx server. If your update hangs on a 504 through a proxy, open Home Assistant by its internal IP address and start the update from there. One user reports this as a workaround for the Hass.io update. They didn’t say which proxy, if any, they ran.

Three update paths: browser through the nginx proxy to Home Assistant giving a 504, browser directly to Home Assistant by internal IP address, and SSH to the host running ha os update.
The proxy path that returns the 504, and the two reported ways around it.

Use the address and port you normally use on your LAN. The exact URL depends on your setup, so I won’t invent one.

If you get the 504 on every update, like the original reporter, this is the route to switch to.

Does it work if your nginx runs on a separate server? Nobody has said. Another user reports the same 504 with nginx on a separate server but doesn’t mention whether they tried the internal IP.

What if you normally reach Home Assistant only from outside your network? The reports say nothing about remote access. They only describe updating through the internal address, so I can’t point you to a verified route from outside. If you can’t reach the LAN address right now, waiting out the 504 is the only other path the reports mention.

The internal-IP route and the “just wait” route come from different users, and nobody tested them against each other. Treat waiting as the default and the internal IP as the fallback.

4. For a host OS update, use SSH instead

If the update is for the host OS, you can skip the web UI entirely. One user reports that running this over SSH on the host applied the update with no nginx errors:

ha os update

This command also reboots the host. Home Assistant goes offline until the reboot finishes, so don’t run it if something else on the machine can’t tolerate a restart.

Use it for the OS only. The report covers a host OS update, and the sources don’t say whether the SSH route works for a core update, so I’m not claiming it does. For core, use the internal IP from step 3.

Why it happens (as far as anyone knows)

No official doc or issue explains the root cause, so read this as a pattern in community reports, not a confirmed mechanism. Some reports name Nginx in front of Home Assistant: the SSL proxy add-on, a separate nginx server, and Nginx Proxy Manager. The trigger may be a long-running request through the proxy, but that’s my inference, not a reported finding.

That’s also why you shouldn’t start changing timeout values in your nginx config on a hunch. No report confirms a root cause or a config fix for this 504, so any timeout change is a guess. It also adds one more variable if an update still looks stuck. Leave the proxy config alone and use the internal IP or SSH route.

The 504 isn’t limited to updates. One user reports the same error with Nginx Proxy Manager while making a snapshot, not an update. That report doesn’t say whether the snapshot finished, so check that it exists before you retry.

The IPv6 report is a separate case. There, Home Assistant returns a persistent 504 over IPv6 after an update, while IPv4 and internal network access work fine, and no cause was given. It’s the same status code with a different symptom, so don’t apply the update advice above to it.

Sources

This article was created using generative AI based on publicly available sources.