LukasGrebe / ha-addons

Addons for Home Assistant
GNU General Public License v3.0
37 stars 42 forks source link

Stuck in **starting** state again #125

Open StCyr opened 3 weeks ago

StCyr commented 3 weeks ago

It seems that https://github.com/LukasGrebe/ha-addons/issues/61 is still in version 23.2.5

I've rebooted my HA server and ebusd is stuck in starting state.

watchdog is enabled and ebusd is started as follow:

root       12250   12048  0 11:53 ?        00:00:05 ebusd --foreground --mqtthost=core-mosquitto --mqttport=1883 --mqttuser=addons --mqttpass= --scanconfig --mqttjson --accesslevel=* --mqttint=/etc/ebusd/mqtt-hassio.cfg --mqtttopic=ebusd --device=ens:192.168.0.21:9999 --log=all notice

I have enabled HTTP frontend and now ebusd runs as follow:

root       14060   13851  0 12:07 ?        00:00:05 ebusd --foreground --httpport=8889 --mqtthost=core-mosquitto --mqttport=1883 --mqttuser=addons --mqttpass= --scanconfig --mqttjson --accesslevel=* --mqttint=/etc/ebusd/mqtt-hassio.cfg --mqtttopic=ebusd --device=ens:192.168.0.21:9999 --log=all notice

But it doesn't seem to solve the issue.

Disabling the watchdog prevents the add-on to get stuck in starting state

StCyr commented 3 weeks ago

Ok, I've disabled the HTTP frontend again and here's what I've in the container:

2ad9b828-ebusd:/# netstat -anp | grep 888
tcp        0      0 0.0.0.0:8888            0.0.0.0:*               LISTEN      281/ebusd
2ad9b828-ebusd:/# echo "INFO" | nc localhost 8888
2ad9b828-ebusd:/# echo $?
1
StCyr commented 3 weeks ago

Hahaha, DNS resolution doesn't work in the container:

2ad9b828-ebusd:/# echo "INFO" | nc 127.0.0.1 8888
version: ebusd 23.2.p20230716
update check: version 23.3 available, device firmware 1[451a] available
device: 192.168.0.21:9999, enhanced, firmware 1.1[3c17].1[3c17]
access: *
signal: acquired
symbol rate: 23
max symbol rate: 90
min arbitration micros: 7
max arbitration micros: 93
min symbol latency: 12
max symbol latency: 56
scan: finished
reconnects: 0
masters: 3
messages: 669
conditional: 2
poll: 166
update: 10
address 03: master #11
address 08: slave #11, scanned "MF=Vaillant;ID=BAI00;SW=0405;HW=9602", loaded "vaillant/bai.0010015600.inc" ([HW=9602]), "vaillant/08.bai.csv"
address 10: master #2
address 15: slave #2, scanned "MF=Vaillant;ID=B7V00;SW=0422;HW=5503", loaded "vaillant/15.b7v.csv"
address 31: master #8, ebusd
address 36: slave #8, ebusd

2ad9b828-ebusd:/# echo $?
0
2ad9b828-ebusd:/# 
thomaskilian commented 6 days ago

Not sure if this is the same issue, but i get

Bildschirmfoto 2024-06-26 um 14 23 13

After startup. I'm on HA core 2024.6.3 I seem to remember that the previous release had temporarily fixed this (I started noticing it two releases earlier) but now it's back again. The process itself is running, just the start spins and you cannot stop the container (except for going in and issue a kill manually).

LukasGrebe commented 1 day ago

Thank you for your contribution! Sorry for the delay in merging.

thomaskilian commented 1 day ago

No hurry! I'm happy you're looking!