I have just installed hass.io (was running HA in virtenv previously) and the ESPhome addon is not working for me…
When I click the “Open Web UI” button, I get a 502: Bad Gateway
There is nothing in the addon log, but there is the following error in the hass.io system log:
19-11-29 23:11:58 ERROR (MainThread) [hassio.api.ingress] Ingress error: Cannot connect to host 172.30.32.1:64208 ssl:None [Connection refused]
This is the only error.
My system info from the addon log:
Add-on version: 1.14.3
You are running the latest version of this add-on.
System: CentOS Linux 7 (Core) (amd64 / qemux86-64)
Home Assistant version: 0.102.2
Supervisor version: 192
It is a bit old discussion, but I’ve just had a similar problem running hassio in docker under linux. My problem turn out to be firewall related. Running iptables -I INPUT -s 172.30.32.0/23 -d 172.30.32.0/23 -j ACCEPT fixed it for me (as a workaround). I’m still investigating why this is happening.
Glad I found this one. I Know it’s an old topic but since I still had this issue, other people probably do too.
In my case, it has probably something to do with docker networks. The only 2 addons I could not access through ingress are running in the host network while all other addons (that do work) run in hassio network.
Unfortunately I don’t know enough about docker (or linux/networking) figure out why this is an issue and why it does not create that rule automatically.
I also have pretty much the same problem.
Almost all addons fail to open with this error.
But my home assistant server is on the VDS on the Internet, not on the local network.
I tried to install a home assistant on a new clean VDS - it works.
I tried to remove home assistant, docker and network manager from the combat server.
Then reinstalled.
And no way. Addons won’t open
I found the problem and was able to fix it. Problem in the Firewall!
Dropping all the rules with the command iptables -t nat -F
I saw that the File Editor addon opens as it should.
Then I restored the firewall to the state “as it was before” with the reboot command. Or with netfilter-persistent reload commannd if apt-get install iptables-persistent is installed. (In order to save the current state of the firewall, I did netfilter-persistent save a few months ago.
After restoring the firewall, I removed one rule after another with the commands:
and after each removal, I looked to see if the addon worked.
In the end, I realized that the rules interfered: MASQUERADE all -- anywhere anywhere
I had several.
To delete multiple rules, you need to enter the command: iptables -t nat -D POSTROUTING -j MASQUERADE
several times until it gives an error iptables: Bad rule (does a matching rule exist in that chain?).