Closed casakampa closed 12 months ago
Hey there @dmulcahey, @adminiuga, @puddly, mind taking a look at this issue as it has been labeled with an integration (zha
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
zha documentation zha source (message by IssueLinks)
Looks like I have over 1,700,000 of these errors...
Discarding _save_device_relays event
11:22:31 – (WARNING) runner.py - message first occurred at 9 September 2023 at 15:06:17 and shows up 1743013 times
Discarding _save_attribute event
11:22:19 – (WARNING) components/zha/core/cluster_handlers/__init__.py - message first occurred at 9 September 2023 at 19:40:42 and shows up 147417 times
Logger: zigpy.appdb
Source: runner.py:186
First occurred: 9 September 2023 at 15:06:17 (1743013 occurrences)
Last logged: 11:22:31
Discarding _save_device_relays event
Discarding _save_device_last_seen event
Discarding _save_attribute event
Discarding _neighbors_updated event
Discarding _routes_updated event
Same amount of warnings here as well. Could not find a solution, so I downgraded to HA 2023.8.4 as a temporary fix.
Still having the same issue here with 2023.9.2
@strutings Can you open a separate issue and include a ZHA debug log, from HA startup (https://www.home-assistant.io/integrations/zha/#debug-logging) including the warnings? I've not been able to replicate this problem in the most recent release.
Never mind. It seems like some dependencies where not installed and loaded in the update process.
I have a pretty similar issue right here:
Same messages, but constantly during normal HASS operation independent from start of HASS. It feels like it is pulling a lot of resources and the web-ui and mobile app become very slow and laggy quite often.
Running core-2023.9.2
2023-09-18 11:27:01.602 WARNING (MainThread) [zigpy.appdb] Discarding _save_device_relays event 2023-09-18 11:27:01.618 WARNING (MainThread) [zigpy.appdb] Discarding _save_device_relays event 2023-09-18 11:27:01.650 WARNING (MainThread) [zigpy.appdb] Discarding _save_device_last_seen event 2023-09-18 11:27:01.676 WARNING (MainThread) [zigpy.appdb] Discarding _save_device_last_seen event 2023-09-18 11:27:01.679 WARNING (MainThread) [zigpy.appdb] Discarding _save_attribute event 2023-09-18 11:27:01.685 WARNING (MainThread) [zigpy.appdb] Discarding _save_device_relays event 2023-09-18 11:27:01.721 WARNING (MainThread) [zigpy.appdb] Discarding _save_device_last_seen event 2023-09-18 11:27:01.729 WARNING (MainThread) [zigpy.appdb] Discarding _save_attribute event 2023-09-18 11:27:03.183 WARNING (MainThread) [zigpy.appdb] Discarding _save_device_relays event 2023-09-18 11:27:03.189 WARNING (MainThread) [zigpy.appdb] Discarding _save_device_relays event 2023-09-18 11:27:08.311 WARNING (MainThread) [zigpy.appdb] Discarding _save_device_last_seen event 2023-09-18 11:27:08.315 WARNING (MainThread) [zigpy.appdb] Discarding _save_attribute event 2023-09-18 11:27:08.318 WARNING (MainThread) [zigpy.appdb] Discarding _save_attribute event 2023-09-18 11:27:08.350 WARNING (MainThread) [zigpy.appdb] Discarding _save_device_last_seen event 2023-09-18 11:27:08.355 WARNING (MainThread) [zigpy.appdb] Discarding _save_attribute event 2023-09-18 11:27:08.359 WARNING (MainThread) [zigpy.appdb] Discarding _save_attribute event 2023-09-18 11:27:08.362 WARNING (MainThread) [zigpy.appdb] Discarding _save_attribute event 2023-09-18 11:27:08.377 WARNING (MainThread) [zigpy.appdb] Discarding _save_device_last_seen event 2023-09-18 11:27:09.033 WARNING (MainThread) [zigpy.appdb] Discarding _save_device_last_seen event 2023-09-18 11:27:09.040 WARNING (MainThread) [zigpy.appdb] Discarding _save_attribute event 2023-09-18 11:27:09.043 WARNING (MainThread) [zigpy.appdb] Discarding _save_attribute event 2023-09-18 11:27:09.045 WARNING (MainThread) [zigpy.appdb] Discarding _save_attribute event 2023-09-18 11:27:10.438 WARNING (MainThread) [zigpy.appdb] Discarding _save_device_last_seen event 2023-09-18 11:27:11.006 WARNING (MainThread) [zigpy.appdb] Discarding _save_device_last_seen event 2023-09-18 11:27:11.015 WARNING (MainThread) [zigpy.appdb] Discarding _save_attribute event
Never mind. It seems like some dependencies where not installed and loaded in the update process.
@strutings what kind of dependencies were missing? Maybe this is the same reason here...
Yup, mine is also going crazy here....
mine too
2023-10-07 22:53:00.850 WARNING (MainThread) [zigpy.appdb] Discarding _save_attribute event 2023-10-07 22:53:00.894 WARNING (MainThread) [zigpy.appdb] Discarding _save_device_last_seen event 2023-10-07 22:53:00.897 WARNING (MainThread) [zigpy.appdb] Discarding _save_attribute event 2023-10-07 22:53:05.766 WARNING (MainThread) [zigpy.appdb] Discarding _save_device_last_seen event 2023-10-07 22:53:05.767 WARNING (MainThread) [zigpy.appdb] Discarding _save_attribute event 2023-10-07 22:53:07.968 WARNING (MainThread) [zigpy.appdb] Discarding _save_device_last_seen event 2023-10-07 22:53:07.968 WARNING (MainThread) [zigpy.appdb] Discarding _save_attribute event 2023-10-07 22:53:07.969 WARNING (MainThread) [zigpy.appdb] Discarding _save_attribute event 2023-10-07 22:53:09.947 WARNING (MainThread) [zigpy.appdb] Discarding _save_device_relays event 2023-10-07 22:53:09.977 WARNING (MainThread) [zigpy.appdb] Discarding _save_device_last_seen event 2023-10-07 22:53:09.978 WARNING (MainThread) [zigpy.appdb] Discarding _save_attribute event 2023-10-07 22:53:10.664 WARNING (MainThread) [zigpy.appdb] Discarding _save_device_relays event 2023-10-07 22:53:10.756 WARNING (MainThread) [zigpy.appdb] Discarding _save_device_last_seen event 2023-10-07 22:53:10.757 WARNING (MainThread) [zigpy.appdb] Discarding _save_attribute event 2023-10-07 22:53:10.891 WARNING (MainThread) [zigpy.appdb] Discarding _save_device_relays event 2023-10-07 22:53:11.043 WARNING (MainThread) [zigpy.appdb] Discarding _save_device_last_seen event
version | core-2023.10.1 installation_type | Home Assistant OS dev | false hassio | true docker | true user | root virtualenv | false python_version | 3.11.5 os_name | Linux os_version | 6.1.45 arch | x86_64 timezone | Europe/Amsterdam config_dir | /config
I have this issue as well in my logs. Why is the issue closed?
Here the same, flooding of messages in the log, why it is closed?
I too have about 171002 of these messages in my log. I'm on HA 2023.10.3 and HAOS 11.0.
Logger: zigpy.appdb
Source: runner.py:186
First occurred: 16 October 2023 at 08:39:38 (171002 occurrences)
Last logged: 06:59:34
Discarding _network_backup_created event
Discarding _neighbors_updated event
Discarding _routes_updated event
Discarding _save_device_last_seen event
Discarding _save_attribute event
The problem
When restarting Home Asisstant Core, I get these errors when the ZHA add-on is starting.
Sometimes, after restarting HA Core, ZHA cannot connect to the ZZH! zigbee stick after three attempts, and it generates errors in the logs. It only mentions these three attempts in the log and when they fail, the zigbee network is down but no new errors appear in the log. Rebooting the HA OS solves this, and then the network is working as normal.
After upgrading to 2023.9.0, when restarting HA Core, this behaviour has changed when after a few attempts an attempt is successfull and ZHA can connect to the ZZH! zigbee stick. When that happens, a lot of zigpy.appdb errors are shown in the logs. The ZHA network works fine and no restart of HA OS is necessary, but these errors still show up in the logs.
So now, after upgrading to 2023.9.0 and 2023.9.1, I have to reboot HA OS to make sure ZHA is working correctly.
As you can see in the logs, the last time this has occured, the errors come after the second attempt to contact the ZZH! zigbee stick. The ZZH! stick has the latest official released firmware.
What version of Home Assistant Core has the issue?
core-2023.9.0
What was the last working version of Home Assistant Core?
core-2023.8.2
What type of installation are you running?
Home Assistant OS
Integration causing the issue
ZHA
Link to integration documentation on our website
https://www.home-assistant.io/integrations/zha/
Diagnostics information
config_entry-zha-f9d2636c199446dc32a3a6db7e521abd.json.txt
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No external database is used, HA Core runs on the default SQLite database.
ZHA not able to connect to the ZZH! zigbee stick has happened for a lot of releases in the past. With some HA Core releases, there were no problems after restarting HA Core and the zigbee network was working fine, restart after restart.
And with some releases, after every restart of HA Core with ZHA, I had to restart the whole OS before the zigbee network started working.