Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
12.22k stars 1.69k forks source link

Slow UI startup #22915

Closed derekoharrow closed 5 months ago

derekoharrow commented 5 months ago

What happened?

Every time Z2M starts or re-starts, it takes about 5 minutes before the Web UI responds. I've logged a bug on the GUI github here - https://github.com/nurikk/zigbee2mqtt-frontend/issues/1740 However, I've not had any response to that. I'm wondering if there is something blocking the GUI from starting? Perhaps doing a network scan or something at startup? Other than that, Z2M starts fine - everything works via MQTT and Home Assistant - just not accessible via the GUI for about 5 minutes.

What did you expect to happen?

No response

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

1.38.0 commit: fe048e6

Adapter firmware version

20230507

Adapter

SNZB06P

Setup

Docker

Debug log

No response

derekoharrow commented 5 months ago

p.s. There are no errors shown in the log file at all. The point at which the GUI starts responding, the log file shows these messages:

[03-06-2024 16:57:31] info:     z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Dressing Table sockets/availability', payload 'online'
[03-06-2024 16:57:31] info:     z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Tumble Dryer Socket/availability', payload 'online'
[03-06-2024 16:57:31] info:     z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Washing Machine Door sensor/availability', payload 'online'
[03-06-2024 16:57:31] info:     z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom sockets/availability', payload 'online'
[03-06-2024 16:57:31] info:     z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Dereks Blanket switch/availability', payload 'online'
[03-06-2024 16:57:31] info:     z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Lindseys Blanket switch/availability', payload 'online'
[03-06-2024 16:57:31] info:     z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Dishwasher socket/availability', payload 'offline'
[03-06-2024 16:57:31] info:     z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Tumble Dryer Door/availability', payload 'online'
[03-06-2024 16:57:31] info:     z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Velux sensor/availability', payload 'online'
[03-06-2024 16:57:31] info:     z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Back Door sensor/availability', payload 'online'
...
derekoharrow commented 5 months ago

p.p.s. I just noticed that I had reporting: true in the config file. I've commented this out now and it seems to have resolved the problem with the slow GUI startup.