ZIgbeefordomoticz: UI not loading and errors in log

Xiaomi, Ikea TRÅDFRI, Philips Hue and more.

Moderator: leecollings

Post Reply
hyeronimo
Posts: 54
Joined: Saturday 11 March 2023 8:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

ZIgbeefordomoticz: UI not loading and errors in log

Post by hyeronimo »

After messing up my domoticz system with a failed update, I had to revert back to a version of long ago, now my Zigbeeforfdomoticz is not working any more. Since I have hundreds of (sub) devices in there from my heating system, I'd really like to get this up and running again with the exiting device list. I have already updated python.
Would be very grateful for some help with this!

from the error log:
2024-03-05 09:28:56.850 Error: zigbee4domoticz hardware (53) thread seems to have ended unexpectedly
2024-03-05 09:29:10.854 Error: Creasol Dombus hardware (32) thread seems to have ended unexpectedly

from yesterday:
2024-03-04 15:31:57.819 Error: zigbee4domoticz: (Zigate) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/Domoticz-Zigbee/:/usr/lib/python39.zip:/usr/lib/python3.9:/usr/lib/python3.9/lib-dynload:/usr/local/lib/python3.9/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.9/dist-packages'.
2024-03-04 15:31:57.827 Error: zigbee4domoticz: Traceback (most recent call last):
2024-03-04 15:31:57.827 Error: zigbee4domoticz: File "/home/pi/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 122, in <module>
2024-03-04 15:31:57.828 Error: zigbee4domoticz: from Modules.checkingUpdate import (checkFirmwareUpdate, checkPluginUpdate,
2024-03-04 15:31:57.828 Error: zigbee4domoticz: File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Modules/checkingUpdate.py", line 14, in <module>
2024-03-04 15:31:57.828 Error: zigbee4domoticz: import dns.resolver
2024-03-04 15:31:57.829 Error: zigbee4domoticz: File "/usr/local/lib/python3.9/dist-packages/dns/resolver.py", line 39, in <module>
2024-03-04 15:31:57.829 Error: zigbee4domoticz: import dns.query
2024-03-04 15:31:57.829 Error: zigbee4domoticz: File "/usr/local/lib/python3.9/dist-packages/dns/query.py", line 47, in <module>
2024-03-04 15:31:57.829 Error: zigbee4domoticz: import requests
2024-03-04 15:31:57.830 Error: zigbee4domoticz: File "/usr/local/lib/python3.9/dist-packages/requests/__init__.py", line 95, in <module>
2024-03-04 15:31:57.830 Error: zigbee4domoticz: from urllib3.contrib import pyopenssl
2024-03-04 15:31:57.830 Error: zigbee4domoticz: File "/usr/local/lib/python3.9/dist-packages/urllib3/contrib/pyopenssl.py", line 46, in <module>
2024-03-04 15:31:57.830 Error: zigbee4domoticz: import OpenSSL.SSL
2024-03-04 15:31:57.831 Error: zigbee4domoticz: File "/usr/lib/python3/dist-packages/OpenSSL/__init__.py", line 8, in <module>
2024-03-04 15:31:57.831 Error: zigbee4domoticz: from OpenSSL import crypto, SSL
2024-03-04 15:31:57.831 Error: zigbee4domoticz: File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 1556, in <module>
2024-03-04 15:31:57.832 Error: zigbee4domoticz: class X509StoreFlags(object):
2024-03-04 15:31:57.832 Error: zigbee4domoticz: File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 1577, in X509StoreFlags
2024-03-04 15:31:57.832 Error: zigbee4domoticz: CB_ISSUER_CHECK = _lib.X509_V_FLAG_CB_ISSUER_CHECK
2024-03-04 15:31:57.832 Error: zigbee4domoticz: AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
pipiche
Posts: 2016
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: ZIgbeefordomoticz: UI not loading and errors in log

Post by pipiche »

Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
hyeronimo
Posts: 54
Joined: Saturday 11 March 2023 8:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: ZIgbeefordomoticz: UI not loading and errors in log

Post by hyeronimo »

Thank you Pipiche, will try that
hyeronimo
Posts: 54
Joined: Saturday 11 March 2023 8:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: ZIgbeefordomoticz: UI not loading and errors in log

Post by hyeronimo »

I solved the AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK' error by deleting the OpenSSL folder from /usr/lib/python3/dist-packages/OpenSSL . Then reinstalled pyOpenSSL: pip3 install pyOpenSSL --upgrade, then from the Domoticz-Zigbee folder installed the dependendencies: sudo pip3 install -r requirements.txt.

UI is working, I have the devices in the domoticz device list but not in Zigbeefordomoticz. Can I somehow fix that?
pipiche
Posts: 2016
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: ZIgbeefordomoticz: UI not loading and errors in log

Post by pipiche »

If you start from an empty plugin then you cannot rebuild the device.

(1) stop the plugin

(2) restore from a backup the latest Data/DeviceList-xx.txt , and you need to overwrite the one which have been created in this new plugin instance


(3) restart the plugin


xx stands for the plugin hardware Id in Domoticz, if it has not changed, then you just overwrite it.


PS/ https://zigbeefordomoticz.github.io/wik ... ackup.html
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
hyeronimo
Posts: 54
Joined: Saturday 11 March 2023 8:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: ZIgbeefordomoticz: UI not loading and errors in log

Post by hyeronimo »

To be sure: with stop the plugin do you mean disable the plugin from domoticz?
I tried after stopping domoticz, but the DeviceList-53.txt file seems to be overwritten once it has started up with a much smaller file
pipiche
Posts: 2016
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: ZIgbeefordomoticz: UI not loading and errors in log

Post by pipiche »

By stoping the plugin, I mean disabling, so it is not running anymore.
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
hyeronimo
Posts: 54
Joined: Saturday 11 March 2023 8:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: ZIgbeefordomoticz: UI not loading and errors in log

Post by hyeronimo »

Thanks! That worked. I disabled the plugin, copied only the DeviceList-XX.txt and Coordinator-XX.backup from the working install. Enabled the plugin again. Then restarted Domoticz. All devices are back, wonderful!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests