ateodorescu / home-assistant-ipmi

IPMI connector for Home Assistant
MIT License
36 stars 8 forks source link

IPMI integration is slow to start since IPMI server update to v1.2.9 #32

Closed 35gh closed 3 months ago

35gh commented 3 months ago

IPMI server prompted for an update this morning (from v1.2.7 to v1.2.9) and since then the IPMI integration is slow to start, and even failing from time to time.

I see the following warnings in logs:

Enregistreur: homeassistant.components.switch
Source: runner.py:188
intégration: Commutateur (documentation, problèmes)
S'est produit pour la première fois: 10:17:25 (1 occurrences)
Dernier enregistrement: 10:17:25
Setup of switch platform ipmi is taking over 10 seconds.
Enregistreur: homeassistant.bootstrap
Source: bootstrap.py:601
S'est produit pour la première fois: 10:17:35 (1 occurrences)
Dernier enregistrement: 10:17:35
Waiting on integrations to complete setup: ipmi, ipmi.switch

Thanks!

ateodorescu commented 3 months ago

Nothing changed except for the version number: https://github.com/ateodorescu/home-assistant-addons/compare/v1.2.7...main I did some tests with a user, trying to figure out if we can setup a fixed version number for impitool inside the docker container (that was 1.2.8) but then I reverted back the changes. So, 1.2.9 is the same as 1.2.7.

35gh commented 3 months ago

Strange, because I have seen those log entries after the update this morning after noticing HA was taking time to restart. I also see this in the IPMI Server logs if that helps:

2024/03/21 10:22:24 [error] 205#205: *5 FastCGI sent in stderr: "PHP message: No hostname provided!PHP message: No hostname provided!PHP message: No hostname provided!PHP message: No hostname provided!" while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "hassio.lan:8080", referrer: "http://hassio.lan:8080/hassio"
2024/03/21 10:22:32 [error] 205#205: *9 FastCGI sent in stderr: "PHP message: No hostname provided!PHP message: No hostname provided!PHP message: No hostname provided!PHP message: No hostname provided!" while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "hassio.lan:8080", referrer: "http://hassio.lan:8080/hassio"

Update: I also have restarted my router at roughly the same time. I'm wondering if those messages are related to the internal DNS for my IPMI device not fully propagated yet, as I am not able to reproduce it any longer. I close the issue for now.