hassio-zigbee2mqtt
hassio-zigbee2mqtt copied to clipboard
Backup file coordinator_backup.json is not updated when the addon is restarted
Description of problem:
Backup file coordinator_backup.json is not updated when the addon is restarted or stoped.
Only UI restart button update the backup file.
Running platform (details from Suypervisor > System)
Add-on: 1.21.0-1
Core: core-2021.7.4
Supervisor: supervisor-2021.06.8
Operating System: Raspbian GNU/Linux 10 (buster)
I can look to fix this if you can point me to how the UI is triggering the backup update.
In UI go to the Settings->Tools->Restart Zigbee2MQTT

@ciotlosm did I misunderstand the question?
Nope, but was curious of the code behind the restart backup, not the button. I will have to dig more in the code to see what I could add to the s6 container to perform the backup at restart
+1. Same behavior in 1.21.1 HA add-on.
@ciotlosm any news?
@Koenkk can you help us with fix?
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days
Keep alive
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days
Keep alive
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days
Keep alive
Can you provide the herdsman debug log of this?
See https://www.zigbee2mqtt.io/guide/usage/debug.html on how to enable the herdsman debug logging. Note that this is only logged to STDOUT and not to log files.
Can you provide the herdsman debug log of this?
See https://www.zigbee2mqtt.io/guide/usage/debug.html on how to enable the herdsman debug logging. Note that this is only logged to STDOUT and not to log files.
Yes, I add zigbee_herdsman_debug: true and grab log file with command docker logs CONTAINER_ID > log.txt 2>&1
After that restart addon twice, the last one log file in attachment
log.txt
Just wanted to let you know that I found a possible solution, will update you probably later this week.
This should be partially fixed now (https://github.com/zigbee2mqtt/hassio-zigbee2mqtt/commit/5fb69e744271487ed0bc333b8148d015b37ad643). However if the backup takes longer than 10 seconds docker will kill the container resulting in no backup.
Can you check if this fixed the issue for you @Enzokot ? (use the edge addon)
@Koenkk Seems this fix work correctly for me with edge addon
Great! Then this can be closed now 😄
Thanks!