PiZiGate makes Domoticz web server crash

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

Moderator: leecollings

Post Reply
Davdom
Posts: 10
Joined: Sunday 13 October 2019 23:35
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Contact:

PiZiGate makes Domoticz web server crash

Post by Davdom »

Hello,

I recently installed the PiZiGate on my RaspBerry 3B but it makes my Domoticz crash.
I followed instruction on ZiGate.fr.

Here is output of PiZiGate_test
pi@raspberrypi:~/PiZiGate-tools $ ./test/PiZiGate_test /dev/ttyAMA0
RPI Model searching ...
Warning !!! you must modify /boot/config.txt
Verifying /boot/cmdline.txt ...
+ /boot/cmdline.txt seems to be OK
Verifying /boot/config.txt ...
+ /boot/config.txt seems to be OK
Warning !!! if it's not the case, you have to execute the following commands :
sudo systemctl disable hciuart
sudo usermod -aG gpio pi
then reboot the PI
Searching /dev/ttyAMA0...
sh: 1: lsof: not found
+ Port : /dev/ttyAMA0 is not used
Verif GPIOs ...
+ GPIO 0 (RESET) --> OK
+ GPIO 2 (FLASH) --> OK
Config GPIOs ...
+ GPIO 0 (RESET) --> OK
+ GPIO 2 (FLASH) --> OK
Opening : /dev/ttyAMA0 ...
+ /dev/ttyAMA0 opened --> OK
+ Packet 01 02 10 10 02 10 02 10 10 03 sent --> OK
+ Packet received --> OK
size : 51
01 80 07 00 02 85 00 00 03
01 80 00 00 05 95 00 00 00 10 00 03
01 80 10 00 05 8f 00 03 03 1a 00 03

Here are the domoticz log output :
2019-10-13 23:24:47.521 (PiZigate) Debug: 0
2019-10-13 23:24:47.571 (PiZigate) runmode_with_osgpiocommand
2019-10-13 23:24:47.572 (PiZigate) + Checkint GPIO PINs
2019-10-13 23:24:47.627 (PiZigate) + Checkint GPIO PINs
2019-10-13 23:24:47.647 (PiZigate) setTimeServer - Setting UTC Time to : 624324287
2019-10-13 23:24:48.054 (PiZigate) Permit Join status: 00
2019-10-13 23:24:48.054 (PiZigate) ---> self.permitTojoin['Starttime']: 1571001887
2019-10-13 23:24:48.054 (PiZigate) ---> Current time : 1571001888
2019-10-13 23:24:48.054 (PiZigate) ---> self.Ping['Permit'] (prev) : None
2019-10-13 23:24:48.054 (PiZigate) ---> self.Ping['Permit'] (new ) : Off


output in verbose mode
2019-10-13 23:49:14.553 Status: (PiZigate) Entering work loop.
2019-10-13 23:49:14.555 Status: (PiZigate) Initialized version 4.5, author 'zaraki673 pipiche38'
2019-10-13 23:49:14.557 Status: (PiZigate) Zigate plugin stable-4.5.4 started
2019-10-13 23:49:14.558 (PiZigate) Debug: 0
2019-10-13 23:49:14.558 Status: (PiZigate) Python Version - 3.4.2 (default, Oct 19 2014, 14:03:53)
[GCC 4.9.1]
2019-10-13 23:49:14.558 Status: (PiZigate) Switching Heartbeat to 5 s interval
2019-10-13 23:49:14.559 Status: (PiZigate) DomoticzVersion: 4.10717
2019-10-13 23:49:14.559 Status: (PiZigate) DomoticzHash: b38b49e5
2019-10-13 23:49:14.559 Status: (PiZigate) DomoticzBuildTime: 2019-05-09 13:04:08
2019-10-13 23:49:14.559 Status: (PiZigate) load PluginConf
2019-10-13 23:49:14.560 Error: (PiZigate) 'onStart' failed 'PermissionError'.
2019-10-13 23:49:14.560 Error: (PiZigate) ----> Line 781 in '/home/pi/domoticz/plugins/Domoticz-Zigate/plugin.py', function onStart
2019-10-13 23:49:14.560 Error: (PiZigate) ----> Line 224 in '/home/pi/domoticz/plugins/Domoticz-Zigate/plugin.py', function onStart
2019-10-13 23:49:14.560 Error: (PiZigate) ----> Line 183 in '/home/pi/domoticz/plugins/Domoticz-Zigate/Classes/PluginConf.py', function __init__
2019-10-13 23:49:14.560 Error: (PiZigate) ----> Line 289 in '/home/pi/domoticz/plugins/Domoticz-Zigate/Classes/PluginConf.py', function _load_Settings
2019-10-13 23:49:15.278 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)


Any idea of what gets wrong?

Thanks a lot for your help
pipiche
Posts: 2009
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: PiZiGate makes Domoticz web server crash

Post by pipiche »

I don’t think your issue is related to the PiZigate.

In the domoticz logs there is some access right issue.

You should investigate on the access right.
Does the plugin directory and underneath have correct access right :mode and ownership ?


Envoyé de mon iPhone en utilisant Tapatalk
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
Davdom
Posts: 10
Joined: Sunday 13 October 2019 23:35
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Contact:

Re: PiZiGate makes Domoticz web server crash

Post by Davdom »

Thanks for your reply.

Seems ok to me for the permissions :
pi@raspberrypi:~/domoticz $ ls -ltr
total 45704
-rw-r--r-- 1 pi pi 35147 août 29 2017 License.txt
-rw-r--r-- 1 pi pi 4427 août 29 2017 domoticz.sh
-rw-r--r-- 1 pi pi 3414 août 29 2017 server_cert.pem
-rw-r--r-- 1 pi pi 60 mars 29 2018 index.html
-rw-r----- 1 root root 229 avril 2 2018 ozwcp.poll.XXXXXX.xml
drwxr-xr-x 4 pi pi 4096 avril 2 2018 dzVents
drwxr-x--- 5 root root 4096 avril 3 2018 backups
-rwxr-xr-x 1 pi pi 624 juin 14 2018 updaterelease
-rwxr-xr-x 1 pi pi 607 juin 14 2018 updatebeta
drwxr-xr-x 85 pi pi 4096 mars 6 2019 Config
drwxr-xr-x 8 pi pi 4096 mars 25 2019 scripts
drwxr-xr-x 13 pi pi 4096 avril 27 11:05 www
-rw-r--r-- 1 pi pi 94045 mai 9 13:04 History.txt
-rwxr-xr-x 1 pi pi 14840844 mai 9 13:06 domoticz
-rw-r----- 1 root root 235 oct. 13 05:00 domocookie.txt
drwxr-xr-x 5 pi pi 4096 oct. 13 16:11 plugins
-rw-r--r-- 1 root root 1134592 oct. 13 17:20 domoticz.old.db
-rw-r--r-- 1 root root 1130496 oct. 13 17:24 domoticz.old.2.db
-rw------- 1 root root 17940 oct. 13 23:24 domoticz_crash.log
-rw------- 1 root root 28921856 oct. 13 23:24 core
-rw-r--r-- 1 pi pi 1142784 oct. 14 00:03 domoticz.db

pi@raspberrypi:~/domoticz $ cd plugins
pi@raspberrypi:~/domoticz/plugins $ ls -ltr
total 12
drwxr-xr-x 3 pi pi 4096 août 29 2017 AwoxSMP
drwxr-xr-x 2 pi pi 4096 févr. 25 2019 examples
drwxr-xr-x 15 pi pi 4096 oct. 13 23:30 Domoticz-Zigate


I have a doubt for this :
pi@raspberrypi:~/domoticz/plugins $ ls -ltr /dev/ttyAMA0
crw-rw---- 1 root dialout 204, 64 oct. 14 00:27 /dev/ttyAMA0
pipiche
Posts: 2009
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: PiZiGate makes Domoticz web server crash

Post by pipiche »

What about plugins/Domoticz-Zigate ?


Envoyé de mon iPhone en utilisant Tapatalk
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
Davdom
Posts: 10
Joined: Sunday 13 October 2019 23:35
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Contact:

Re: PiZiGate makes Domoticz web server crash

Post by Davdom »

Here it is, only pycache is suspicious

pi@raspberrypi:~/domoticz/plugins/Domoticz-Zigate $ ls -ltr
total 156
-rw-r--r-- 1 pi pi 3424 oct. 13 16:11 CONTRIBUTING.md
-rw-r--r-- 1 pi pi 1912 oct. 13 16:11 00-UPGRADE-FROM-STABLE-4.0.md
-rw-r--r-- 1 pi pi 35144 oct. 13 16:11 LICENSE.txt
drwxr-xr-x 2 pi pi 4096 oct. 13 16:11 images
-rw-r--r-- 1 pi pi 2509 oct. 13 16:11 readme.md
drwxr-x--- 2 root root 4096 oct. 13 16:17 __pycache__
drwxr-xr-x 2 pi pi 4096 oct. 13 16:24 Reports
drwxr-xr-x 4 pi pi 4096 oct. 13 16:41 dns
drwxr-xr-x 2 pi pi 4096 oct. 13 23:05 Data
-rw-r--r-- 1 pi pi 188 oct. 13 23:30 MANIFEST.in
drwxr-xr-x 2 pi pi 4096 oct. 13 23:30 Conf
drwxr-xr-x 3 pi pi 4096 oct. 13 23:30 Classes
drwxr-xr-x 3 pi pi 4096 oct. 13 23:30 Modules
drwxr-xr-x 2 pi pi 4096 oct. 13 23:30 OTAFirmware
drwxr-xr-x 2 pi pi 4096 oct. 13 23:30 Tools
-rw-r--r-- 1 pi pi 19800 oct. 13 23:30 ReleaseNotes.md
-rwxr-xr-x 1 pi pi 40446 oct. 13 23:30 plugin.py
drwxr-xr-x 3 pi pi 4096 oct. 13 23:30 www
pipiche
Posts: 2009
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: PiZiGate makes Domoticz web server crash

Post by pipiche »

sorry to come back again

could you do

Code: Select all

ls -lR ~/domoticz/plugins/Domoticz-Zigate
Especially under Conf

What is the Operating System you are using ?
Python3.4 is quiet an old version, do you have any possibility to upgrade to 3.5 or 3.6 at least ?
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
Davdom
Posts: 10
Joined: Sunday 13 October 2019 23:35
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Contact:

Re: PiZiGate makes Domoticz web server crash

Post by Davdom »

Pas de soucis, au contraire ;)


pi@raspberrypi:~/domoticz/plugins/Domoticz-Zigate $ uname -a
Linux raspberrypi 4.1.19-v7+ #858 SMP Tue Mar 15 15:56:00 GMT 2016 armv7l GNU/Linux


pi@raspberrypi:~/domoticz/plugins/Domoticz-Zigate $ ls -lR ~/domoticz/plugins/Domoticz-Zigate
/home/pi/domoticz/plugins/Domoticz-Zigate:
total 160
-rw-r--r-- 1 pi pi 1912 oct. 13 16:11 00-UPGRADE-FROM-STABLE-4.0.md
drwxr-xr-x 3 pi pi 4096 oct. 13 23:30 Classes
drwxr-xr-x 2 pi pi 4096 oct. 13 23:30 Conf
-rw-r--r-- 1 pi pi 3424 oct. 13 16:11 CONTRIBUTING.md
drwxr-xr-x 2 pi pi 4096 oct. 13 23:05 Data
drwxr-xr-x 4 pi pi 4096 oct. 13 16:41 dns
drwxr-xr-x 2 pi pi 4096 oct. 13 16:11 images
-rw-r--r-- 1 pi pi 35144 oct. 13 16:11 LICENSE.txt
-rw-r--r-- 1 pi pi 188 oct. 13 23:30 MANIFEST.in
drwxr-xr-x 3 pi pi 4096 oct. 13 23:30 Modules
drwxr-xr-x 2 pi pi 4096 oct. 13 23:30 OTAFirmware
-rwxr-xr-x 1 pi pi 40446 oct. 13 23:30 plugin.py
drwxr-x--- 2 root root 4096 oct. 14 20:15 __pycache__
drwxr-x--- 2 root root 4096 oct. 13 16:17 __pycache__.old
-rw-r--r-- 1 pi pi 2509 oct. 13 16:11 readme.md
-rw-r--r-- 1 pi pi 19800 oct. 13 23:30 ReleaseNotes.md
drwxr-xr-x 2 pi pi 4096 oct. 13 16:24 Reports
drwxr-xr-x 2 pi pi 4096 oct. 13 23:30 Tools
drwxr-xr-x 3 pi pi 4096 oct. 13 23:30 www

/home/pi/domoticz/plugins/Domoticz-Zigate/Classes:
total 368
-rw-r--r-- 1 pi pi 5820 oct. 13 16:11 AdminWidgets.py
-rw-r--r-- 1 pi pi 9010 oct. 13 23:30 APS.py
-rw-r--r-- 1 pi pi 12891 oct. 13 23:30 DomoticzDB.py
-rw-r--r-- 1 pi pi 81983 oct. 13 23:30 GroupMgt.py
-rw-r--r-- 1 pi pi 18129 oct. 13 23:30 IAS.py
-rw-r--r-- 1 pi pi 16633 oct. 13 23:30 NetworkEnergy.py
-rw-r--r-- 1 pi pi 18259 oct. 13 23:30 NetworkMap.py
-rw-r--r-- 1 pi pi 39148 oct. 13 23:30 OTA.py
-rw-r--r-- 1 pi pi 20715 oct. 13 23:30 PluginConf.py
drwxr-x--- 2 root root 4096 oct. 14 20:15 __pycache__
-rw-r--r-- 1 pi pi 23288 oct. 13 23:30 Transport.py
-rw-r--r-- 1 pi pi 4694 oct. 13 23:30 TransportStats.py
-rw-r--r-- 1 pi pi 88518 oct. 13 23:30 WebServer.py
ls: impossible d'ouvrir le répertoire /home/pi/domoticz/plugins/Domoticz-Zigate/Classes/__pycache__: Permission non accordée

/home/pi/domoticz/plugins/Domoticz-Zigate/Conf:
total 24
-rw-r--r-- 1 pi pi 10743 oct. 13 23:30 DeviceConf.txt
-rw-r----- 1 root root 567 oct. 13 16:17 PluginConf-03.json
-rw-r----- 1 root root 567 oct. 13 16:23 PluginConf-04.json
-rw-r----- 1 root root 567 oct. 13 16:24 PluginConf-05.json

/home/pi/domoticz/plugins/Domoticz-Zigate/Data:
total 4
-rw-r----- 1 root root 0 oct. 13 19:47 DeviceList-3.txt
-rw-r----- 1 root root 0 oct. 14 20:18 DeviceList-3.txt-01
-rw-r----- 1 root root 0 oct. 14 20:18 DeviceList-3.txt-02
-rw-r----- 1 root root 0 oct. 14 20:18 DeviceList-3.txt-03
-rw-r----- 1 root root 0 oct. 14 20:18 DeviceList-3.txt-04
-rw-r----- 1 root root 0 oct. 14 20:18 DeviceList-3.txt-05
-rw-r----- 1 root root 0 oct. 14 20:18 DeviceList-3.txt-06
-rw-r----- 1 root root 0 oct. 14 20:18 DeviceList-3.txt-07
-rw-r----- 1 root root 0 oct. 14 20:18 DeviceList-3.txt-08
-rw-r----- 1 root root 0 oct. 14 20:18 DeviceList-3.txt-09
-rw-r----- 1 root root 0 oct. 14 20:18 DeviceList-3.txt-10
-rw-r----- 1 root root 0 oct. 14 20:18 DeviceList-3.txt-11
-rw-r----- 1 root root 0 oct. 14 20:18 DeviceList-3.txt-12
-rw-r----- 1 root root 0 oct. 13 16:24 DeviceList-4.txt
-rw-r----- 1 root root 0 oct. 13 16:24 DeviceList-4.txt-01
-rw-r----- 1 root root 0 oct. 13 16:24 DeviceList-4.txt-02
-rw-r----- 1 root root 0 oct. 13 16:24 DeviceList-5.txt
-rw-r--r-- 1 pi pi 0 oct. 13 16:11 empty
-rw-r----- 1 root root 186 oct. 14 20:18 Zigate.json

/home/pi/domoticz/plugins/Domoticz-Zigate/dns:
total 440
-rw-r--r-- 1 pi pi 1503 oct. 13 16:11 _compat.py
-rw-r--r-- 1 pi pi 16504 oct. 13 16:11 dnssec.py
-rw-r--r-- 1 pi pi 3753 oct. 13 16:11 e164.py
-rw-r--r-- 1 pi pi 7424 oct. 13 16:11 edns.py
-rw-r--r-- 1 pi pi 4771 oct. 13 16:11 entropy.py
-rw-r--r-- 1 pi pi 4876 oct. 13 16:11 exception.py
-rw-r--r-- 1 pi pi 2933 oct. 13 16:11 flags.py
-rw-r--r-- 1 pi pi 2055 oct. 13 16:11 grange.py
-rw-r--r-- 1 pi pi 1319 oct. 13 16:11 hash.py
-rw-r--r-- 1 pi pi 3377 oct. 13 16:11 inet.py
-rw-r--r-- 1 pi pi 1404 oct. 13 16:11 __init__.py
-rw-r--r-- 1 pi pi 2096 oct. 13 16:11 ipv4.py
-rw-r--r-- 1 pi pi 5527 oct. 13 16:11 ipv6.py
-rw-r--r-- 1 pi pi 1526 oct. 13 16:11 LICENSE
-rw-r--r-- 1 pi pi 41458 oct. 13 16:11 message.py
-rw-r--r-- 1 pi pi 3958 oct. 13 16:11 namedict.py
-rw-r--r-- 1 pi pi 31259 oct. 13 16:11 name.py
-rw-r--r-- 1 pi pi 6352 oct. 13 16:11 node.py
-rw-r--r-- 1 pi pi 2832 oct. 13 16:11 opcode.py
drwxr-x--- 2 root root 4096 oct. 13 16:41 __pycache__
-rw-r--r-- 1 pi pi 0 oct. 13 16:11 py.typed
-rw-r--r-- 1 pi pi 23691 oct. 13 16:11 query.py
-rw-r--r-- 1 pi pi 3613 oct. 13 16:11 rcode.py
-rw-r--r-- 1 pi pi 3219 oct. 13 16:11 rdataclass.py
-rw-r--r-- 1 pi pi 14451 oct. 13 16:11 rdata.py
-rw-r--r-- 1 pi pi 11463 oct. 13 16:11 rdataset.py
-rw-r--r-- 1 pi pi 5917 oct. 13 16:11 rdatatype.py
drwxr-xr-x 5 pi pi 4096 oct. 13 16:11 rdtypes
-rw-r--r-- 1 pi pi 10826 oct. 13 16:11 renderer.py
-rw-r--r-- 1 pi pi 50210 oct. 13 16:11 resolver.py
-rw-r--r-- 1 pi pi 3291 oct. 13 16:11 reversename.py
-rw-r--r-- 1 pi pi 6159 oct. 13 16:11 rrset.py
-rw-r--r-- 1 pi pi 7310 oct. 13 16:11 set.py
-rw-r--r-- 1 pi pi 18040 oct. 13 16:11 tokenizer.py
-rw-r--r-- 1 pi pi 1814 oct. 13 16:11 tsigkeyring.py
-rw-r--r-- 1 pi pi 7813 oct. 13 16:11 tsig.py
-rw-r--r-- 1 pi pi 2349 oct. 13 16:11 ttl.py
-rw-r--r-- 1 pi pi 10343 oct. 13 16:11 update.py
-rw-r--r-- 1 pi pi 1406 oct. 13 16:11 version.py
-rw-r--r-- 1 pi pi 3751 oct. 13 16:11 wiredata.py
-rw-r--r-- 1 pi pi 42381 oct. 13 16:11 zone.py
ls: impossible d'ouvrir le répertoire /home/pi/domoticz/plugins/Domoticz-Zigate/dns/__pycache__: Permission non accordée

/home/pi/domoticz/plugins/Domoticz-Zigate/dns/rdtypes:
total 44
drwxr-xr-x 2 pi pi 4096 oct. 13 16:11 ANY
drwxr-xr-x 2 pi pi 4096 oct. 13 16:11 CH
-rw-r--r-- 1 pi pi 4458 oct. 13 16:11 dnskeybase.py
-rw-r--r-- 1 pi pi 3157 oct. 13 16:11 dsbase.py
-rw-r--r-- 1 pi pi 2777 oct. 13 16:11 euibase.py
drwxr-xr-x 2 pi pi 4096 oct. 13 16:11 IN
-rw-r--r-- 1 pi pi 982 oct. 13 16:11 __init__.py
-rw-r--r-- 1 pi pi 3737 oct. 13 16:11 mxbase.py
-rw-r--r-- 1 pi pi 2928 oct. 13 16:11 nsbase.py
-rw-r--r-- 1 pi pi 3328 oct. 13 16:11 txtbase.py

/home/pi/domoticz/plugins/Domoticz-Zigate/dns/rdtypes/ANY:
total 188
-rw-r--r-- 1 pi pi 1925 oct. 13 16:11 AFSDB.py
-rw-r--r-- 1 pi pi 1027 oct. 13 16:11 AVC.py
-rw-r--r-- 1 pi pi 2699 oct. 13 16:11 CAA.py
-rw-r--r-- 1 pi pi 1103 oct. 13 16:11 CDNSKEY.py
-rw-r--r-- 1 pi pi 952 oct. 13 16:11 CDS.py
-rw-r--r-- 1 pi pi 4028 oct. 13 16:11 CERT.py
-rw-r--r-- 1 pi pi 1161 oct. 13 16:11 CNAME.py
-rw-r--r-- 1 pi pi 4721 oct. 13 16:11 CSYNC.py
-rw-r--r-- 1 pi pi 941 oct. 13 16:11 DLV.py
-rw-r--r-- 1 pi pi 1056 oct. 13 16:11 DNAME.py
-rw-r--r-- 1 pi pi 1101 oct. 13 16:11 DNSKEY.py
-rw-r--r-- 1 pi pi 950 oct. 13 16:11 DS.py
-rw-r--r-- 1 pi pi 1124 oct. 13 16:11 EUI48.py
-rw-r--r-- 1 pi pi 1134 oct. 13 16:11 EUI64.py
-rw-r--r-- 1 pi pi 5450 oct. 13 16:11 GPOS.py
-rw-r--r-- 1 pi pi 2750 oct. 13 16:11 HINFO.py
-rw-r--r-- 1 pi pi 4221 oct. 13 16:11 HIP.py
-rw-r--r-- 1 pi pi 1362 oct. 13 16:11 __init__.py
-rw-r--r-- 1 pi pi 3350 oct. 13 16:11 ISDN.py
-rw-r--r-- 1 pi pi 12351 oct. 13 16:11 LOC.py
-rw-r--r-- 1 pi pi 950 oct. 13 16:11 MX.py
-rw-r--r-- 1 pi pi 3175 oct. 13 16:11 NSEC3PARAM.py
-rw-r--r-- 1 pi pi 7211 oct. 13 16:11 NSEC3.py
-rw-r--r-- 1 pi pi 4771 oct. 13 16:11 NSEC.py
-rw-r--r-- 1 pi pi 950 oct. 13 16:11 NS.py
-rw-r--r-- 1 pi pi 2028 oct. 13 16:11 OPENPGPKEY.py
-rw-r--r-- 1 pi pi 952 oct. 13 16:11 PTR.py
-rw-r--r-- 1 pi pi 3151 oct. 13 16:11 RP.py
-rw-r--r-- 1 pi pi 5740 oct. 13 16:11 RRSIG.py
-rw-r--r-- 1 pi pi 968 oct. 13 16:11 RT.py
-rw-r--r-- 1 pi pi 4597 oct. 13 16:11 SOA.py
-rw-r--r-- 1 pi pi 976 oct. 13 16:11 SPF.py
-rw-r--r-- 1 pi pi 2905 oct. 13 16:11 SSHFP.py
-rw-r--r-- 1 pi pi 3033 oct. 13 16:11 TLSA.py
-rw-r--r-- 1 pi pi 955 oct. 13 16:11 TXT.py
-rw-r--r-- 1 pi pi 2975 oct. 13 16:11 URI.py
-rw-r--r-- 1 pi pi 2196 oct. 13 16:11 X25.py

/home/pi/domoticz/plugins/Domoticz-Zigate/dns/rdtypes/CH:
total 8
-rw-r--r-- 1 pi pi 2797 oct. 13 16:11 A.py
-rw-r--r-- 1 pi pi 923 oct. 13 16:11 __init__.py

/home/pi/domoticz/plugins/Domoticz-Zigate/dns/rdtypes/IN:
total 64
-rw-r--r-- 1 pi pi 2015 oct. 13 16:11 AAAA.py
-rw-r--r-- 1 pi pi 5344 oct. 13 16:11 APL.py
-rw-r--r-- 1 pi pi 1921 oct. 13 16:11 A.py
-rw-r--r-- 1 pi pi 2096 oct. 13 16:11 DHCID.py
-rw-r--r-- 1 pi pi 1058 oct. 13 16:11 __init__.py
-rw-r--r-- 1 pi pi 5758 oct. 13 16:11 IPSECKEY.py
-rw-r--r-- 1 pi pi 958 oct. 13 16:11 KX.py
-rw-r--r-- 1 pi pi 4547 oct. 13 16:11 NAPTR.py
-rw-r--r-- 1 pi pi 970 oct. 13 16:11 NSAP_PTR.py
-rw-r--r-- 1 pi pi 2156 oct. 13 16:11 NSAP.py
-rw-r--r-- 1 pi pi 3471 oct. 13 16:11 PX.py
-rw-r--r-- 1 pi pi 3131 oct. 13 16:11 SRV.py
-rw-r--r-- 1 pi pi 3888 oct. 13 16:11 WKS.py

/home/pi/domoticz/plugins/Domoticz-Zigate/images:
total 1444
-rw-r--r-- 1 pi pi 14189 oct. 13 16:11 Aqara-Cub.PNG
-rw-r--r-- 1 pi pi 303033 oct. 13 16:11 Channel-Allocations.png
-rw-r--r-- 1 pi pi 304259 oct. 13 16:11 Network_Topology.png
-rw-r--r-- 1 pi pi 3549 oct. 13 16:11 pp.svg
-rw-r--r-- 1 pi pi 155571 oct. 13 16:11 Widget_Notifications.png
-rw-r--r-- 1 pi pi 70172 oct. 13 16:11 Widgets_Admin.png
-rw-r--r-- 1 pi pi 115250 oct. 13 16:11 Zigate-Bulb-Device.png
-rw-r--r-- 1 pi pi 498000 oct. 13 16:11 Zigate-Configuration.png

/home/pi/domoticz/plugins/Domoticz-Zigate/Modules:
total 448
-rw-r--r-- 1 pi pi 2449 oct. 13 23:30 checkingUpdate.py
-rw-r--r-- 1 pi pi 14649 oct. 13 23:30 command.py
-rw-r--r-- 1 pi pi 7682 oct. 13 23:30 consts.py
-rw-r--r-- 1 pi pi 11327 oct. 13 23:30 database.py
-rw-r--r-- 1 pi pi 91788 oct. 13 23:30 domoticz.py
-rw-r--r-- 1 pi pi 31007 oct. 13 23:30 heartbeat.py
-rw-r--r-- 1 pi pi 82459 oct. 13 23:30 input.py
-rw-r--r-- 1 pi pi 60108 oct. 13 23:30 output.py
-rw-r--r-- 1 pi pi 4493 oct. 13 16:11 piZigate.py
drwxr-x--- 2 root root 4096 oct. 14 20:15 __pycache__
-rw-r--r-- 1 pi pi 87532 oct. 13 23:30 readClusters.py
-rw-r--r-- 1 pi pi 11629 oct. 13 16:11 status.py
-rw-r--r-- 1 pi pi 21561 oct. 13 23:30 tools.py
-rw-r--r-- 1 pi pi 1646 oct. 13 23:30 txPower.py
ls: impossible d'ouvrir le répertoire /home/pi/domoticz/plugins/Domoticz-Zigate/Modules/__pycache__: Permission non accordée

/home/pi/domoticz/plugins/Domoticz-Zigate/OTAFirmware:
total 2636
-rw-r--r-- 1 pi pi 204222 oct. 13 16:11 10005777-4.1-TRADFRI-control-outlet-2.0.022.ota.ota.signed
-rw-r--r-- 1 pi pi 179582 oct. 13 16:11 10005778-4.1-TRADFRI-onoff-shortcut-control-2.2.008.ota.ota
-rw-r--r-- 1 pi pi 172734 oct. 13 16:11 10035514-TRADFRI-bulb-ws-1.2.221.ota.ota
-rw-r--r-- 1 pi pi 178366 oct. 13 16:11 10035515-TRADFRI-bulb-cws-1.3.009.ota.ota
-rw-r--r-- 1 pi pi 172734 oct. 13 16:11 10035534-TRADFRI-bulb-ws-gu10-1.2.221.ota.ota
-rw-r--r-- 1 pi pi 209790 oct. 13 16:11 10038562-TRADFRI-sy5882-bulb-ws-2.0.022.ota.ota.signed
-rw-r--r-- 1 pi pi 178366 oct. 13 23:30 1004764-TRADFRI-bulb-cws-1.3.009.ota.ota
-rw-r--r-- 1 pi pi 181118 oct. 13 16:11 159495-TRADFRI-transformer-1.2.245.ota.ota
-rw-r--r-- 1 pi pi 173246 oct. 13 16:11 159695-TRADFRI-bulb-ws-1000lm-1.2.217.ota.ota
-rw-r--r-- 1 pi pi 168318 oct. 13 16:11 159696-TRADFRI-bulb-w-1000lm-1.2.214.ota.ota
-rw-r--r-- 1 pi pi 173246 oct. 13 16:11 159697-TRADFRI-driver-hp-1.2.217.ota.ota
-rw-r--r-- 1 pi pi 173246 oct. 13 16:11 159698-TRADFRI-driver-lp-1.2.217.ota.ota
-rw-r--r-- 1 pi pi 159806 oct. 13 16:11 159699-2.1-TRADFRI-remote-control-1.2.223.ota.ota.signed
-rw-r--r-- 1 pi pi 157822 oct. 13 16:11 159700-TRADFRI-motion-sensor-1.2.214.ota.ota
-rw-r--r-- 1 pi pi 172926 oct. 13 16:11 159701-TRADFRI-wireless-dimmer-1.2.248.ota.ota
-rw-r--r-- 1 pi pi 463 oct. 13 16:11 README.md
ls: impossible d'ouvrir le répertoire /home/pi/domoticz/plugins/Domoticz-Zigate/__pycache__: Permission non accordée
ls: impossible d'ouvrir le répertoire /home/pi/domoticz/plugins/Domoticz-Zigate/__pycache__.old: Permission non accordée

/home/pi/domoticz/plugins/Domoticz-Zigate/Reports:
total 16
-rw-r--r-- 1 pi pi 0 oct. 13 16:11 empty
-rw-r----- 1 root root 224 oct. 14 20:18 NetworkEnergy-v3-03.json
-rw-r----- 1 root root 169 oct. 13 16:24 NetworkEnergy-v3-04.json
-rw-r----- 1 root root 56 oct. 13 16:24 NetworkEnergy-v3-05.json
-rw-r----- 1 root root 1657 oct. 13 19:47 Transport-stats.json

/home/pi/domoticz/plugins/Domoticz-Zigate/Tools:
total 52
-rw-r--r-- 1 pi pi 360 oct. 13 16:11 PiZigate.service
-rwxr-xr-x 1 pi pi 668 oct. 13 16:11 pi-zigate.sh
-rw-r--r-- 1 pi pi 963 oct. 13 16:11 printLOD.py
-rw-r--r-- 1 pi pi 39847 oct. 13 23:30 SerialLink.py

/home/pi/domoticz/plugins/Domoticz-Zigate/www:
total 5296
-rw-r--r-- 1 pi pi 28248 oct. 13 23:30 10.ea35957e9411cd6812ce.js
-rw-r--r-- 1 pi pi 64347 oct. 13 23:30 3rdpartylicenses.txt
-rw-r--r-- 1 pi pi 145866 oct. 13 23:30 4.018e785f09f61495855f.js
-rw-r--r-- 1 pi pi 199204 oct. 13 23:30 5.3bec9603aa7556dff276.js
-rw-r--r-- 1 pi pi 10086 oct. 13 23:30 6.7f80394491100729252a.js
-rw-r--r-- 1 pi pi 22187 oct. 13 23:30 7.e1e5758bb8cac547599f.js
-rw-r--r-- 1 pi pi 19480 oct. 13 23:30 8.245d86634b7e37f0c555.js
-rw-r--r-- 1 pi pi 31336 oct. 13 23:30 9.779f38b42132b4fd37c2.js
drwxr-xr-x 2 pi pi 4096 oct. 13 16:11 assets
-rw-r--r-- 1 pi pi 1628 oct. 13 16:11 data-table.246ea8fa6c452b0f3c4f.woff
-rw-r--r-- 1 pi pi 2666 oct. 13 16:11 data-table.b0aebd744ce7adb780a9.svg
-rw-r--r-- 1 pi pi 2524 oct. 13 16:11 data-table.bce071e976865da51100.eot
-rw-r--r-- 1 pi pi 2352 oct. 13 16:11 data-table.c8c6d300cb7abb9f36e8.ttf
-rw-r--r-- 1 pi pi 691865 oct. 13 23:30 fa-brands-400.38975343b586296e9b73.svg
-rw-r--r-- 1 pi pi 129648 oct. 13 23:30 fa-brands-400.8e49b728413079dfd9ee.eot
-rw-r--r-- 1 pi pi 87544 oct. 13 23:30 fa-brands-400.9f018d1025561e96439f.woff
-rw-r--r-- 1 pi pi 74656 oct. 13 23:30 fa-brands-400.9f4ce3dc689981a1b87f.woff2
-rw-r--r-- 1 pi pi 129344 oct. 13 23:30 fa-brands-400.b7d071b9c3c197bff4af.ttf
-rw-r--r-- 1 pi pi 13584 oct. 13 23:30 fa-regular-400.7980a6361c25b4665dbb.woff2
-rw-r--r-- 1 pi pi 16804 oct. 13 23:30 fa-regular-400.7aaf5675efd6339e9aba.woff
-rw-r--r-- 1 pi pi 34388 oct. 13 23:30 fa-regular-400.859001f6ae8eb0bb3878.eot
-rw-r--r-- 1 pi pi 144451 oct. 13 23:30 fa-regular-400.da8a235bb207c74eea21.svg
-rw-r--r-- 1 pi pi 34092 oct. 13 23:30 fa-regular-400.f33342516f7cbe46f1d6.ttf
-rw-r--r-- 1 pi pi 96256 oct. 13 23:30 fa-solid-900.0be94a07755ba9b88f2e.woff
-rw-r--r-- 1 pi pi 74328 oct. 13 23:30 fa-solid-900.64b3e814a66c2719b15a.woff2
-rw-r--r-- 1 pi pi 816852 oct. 13 23:30 fa-solid-900.7726a281c1d436eb038f.svg
-rw-r--r-- 1 pi pi 186708 oct. 13 23:30 fa-solid-900.e2675a616b68f446fa62.eot
-rw-r--r-- 1 pi pi 186424 oct. 13 23:30 fa-solid-900.f14c3b2ff7c821a4c838.ttf
-rw-r--r-- 1 pi pi 17542 oct. 13 16:11 favicon.ico
-rw-r--r-- 1 pi pi 1353 oct. 13 23:30 index.html
-rw-r--r-- 1 pi pi 1690113 oct. 13 23:30 main.692203ceb48813c80f90.js
-rw-r--r-- 1 pi pi 306 oct. 13 16:11 manifest.json
-rw-r--r-- 1 pi pi 154526 oct. 13 23:30 polyfills.62a09f3b0d90106e506f.js
-rw-r--r-- 1 pi pi 78 oct. 13 16:11 robots.txt
-rw-r--r-- 1 pi pi 2347 oct. 13 23:30 runtime.ba64070820b3bb458934.js
-rw-r--r-- 1 pi pi 230206 oct. 13 23:30 styles.dec5d4055ea04b29b75d.css

/home/pi/domoticz/plugins/Domoticz-Zigate/www/assets:
total 8
-rw-r--r-- 1 pi pi 4599 oct. 13 16:11 zigate_logo.png
pi@raspberrypi:~/domoticz/plugins/Domoticz-Zigate $
pipiche
Posts: 2009
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: PiZiGate makes Domoticz web server crash

Post by pipiche »

Je propose continuer en Anglais puisque sur le forum Anglais ;-)

Could you cross-check how many instances of the plugin you have in the Hardware list of Domoticz ?
You might have 3, so I suggest that you remove 2 of them.

The plugin has an issue opening one of the file PluginConf-xx.txt (where xx is the Hardware Id that you can see in the Hardware list of domoticz)
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
Davdom
Posts: 10
Joined: Sunday 13 October 2019 23:35
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Contact:

Re: PiZiGate makes Domoticz web server crash

Post by Davdom »

In fact I created 3 instances of the plugin as I wanted to change the configuration but already deleted 2 of them.
So there should be only one left but I can't access anymore to the web interface of Domoticz as it crashes...

Should I delete the 2 older PluginConf files and keep the last one?
pipiche
Posts: 2009
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: PiZiGate makes Domoticz web server crash

Post by pipiche »

Yes, please remove them. The reason of the Domoticz crash is due to the plugin crashing on the access error on the corresponding file.
You can eventually remove all PluginConf-xx.json file as they will be created automatically (and then can be updated via the Web interface)
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
Davdom
Posts: 10
Joined: Sunday 13 October 2019 23:35
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Contact:

Re: PiZiGate makes Domoticz web server crash

Post by Davdom »

I deleted the 3 files then restarted domoticz.

One file has been re created :

pi@raspberrypi:~/domoticz/plugins/Domoticz-Zigate/Conf $ ls -ltr
total 16
-rw-r--r-- 1 pi pi 10743 oct. 13 23:30 DeviceConf.txt
-rw-r----- 1 root root 567 oct. 14 22:09 PluginConf-03.json

here is the output of domoticz. It still crash but we are moving forward since I don't have any more the permission error :

pi@raspberrypi:~/domoticz $ sudo ./domoticz -v
2019-10-14 22:15:33.570 Status: Domoticz V4.10717 (c)2012-2019 GizMoCuz
2019-10-14 22:15:33.571 Status: Build Hash: b38b49e5, Date: 2019-05-09 13:04:08
2019-10-14 22:15:33.571 Status: System: Raspberry Pi
2019-10-14 22:15:33.571 Status: Startup Path: /home/pi/domoticz/
2019-10-14 22:15:33.596 Sunrise: 08:24:00 SunSet: 19:21:00
2019-10-14 22:15:33.596 Day length: 10:57:00 Sun at south: 13:53:00
2019-10-14 22:15:33.596 Civil twilight start: 07:53:00 Civil twilight end: 19:52:00
2019-10-14 22:15:33.597 Nautical twilight start: 07:17:00 Nautical twilight end: 20:28:00
2019-10-14 22:15:33.597 Astronomical twilight start: 06:41:00 Astronomical twilight end: 21:04:00
2019-10-14 22:15:33.677 Status: PluginSystem: Started, Python version '3.4.2'.
2019-10-14 22:15:33.686 Active notification Subsystems: email, gcm (2/13)
2019-10-14 22:15:33.688 Status: WebServer(HTTP) started on address: :: with port 8080
2019-10-14 22:15:33.693 Status: WebServer(SSL) started on address: :: with port 443
2019-10-14 22:15:33.696 Status: Camera: settings (re)loaded
2019-10-14 22:15:33.697 Starting shared server on: :::6144
2019-10-14 22:15:33.697 Status: TCPServer: shared server started...
2019-10-14 22:15:33.698 Status: RxQueue: queue worker started...
2019-10-14 22:15:35.698 Status: (PiZigate) Started.
2019-10-14 22:15:35.699 Status: EventSystem: reset all events...
2019-10-14 22:15:35.701 Status: EventSystem: reset all device statuses...
2019-10-14 22:15:35.826 Status: Python EventSystem: Initalizing event module.
2019-10-14 22:15:35.827 Status: EventSystem: Started
2019-10-14 22:15:35.827 Status: EventSystem: Queue thread started...
2019-10-14 22:15:36.098 Status: PluginSystem: Entering work loop.
2019-10-14 22:15:36.198 Status: OpenZWave: using config in: /home/pi/domoticz/Config/
2019-10-14 22:15:36.201 Always, OpenZwave Version 1.4.3335 Starting Up
2019-10-14 22:15:36.201 Status: OpenZWave: Starting...
2019-10-14 22:15:36.201 Status: OpenZWave: Version: 1.4-3335-g74e05982-dirty
2019-10-14 22:15:36.435 Status: (PiZigate) Entering work loop.
2019-10-14 22:15:36.436 Status: (PiZigate) Initialized version 4.5, author 'zaraki673 pipiche38'
2019-10-14 22:15:36.439 Status: (PiZigate) Zigate plugin stable-4.5.4 started
2019-10-14 22:15:36.439 (PiZigate) Debug: 0
2019-10-14 22:15:36.439 Status: (PiZigate) Python Version - 3.4.2 (default, Oct 19 2014, 14:03:53)
[GCC 4.9.1]
2019-10-14 22:15:36.440 Status: (PiZigate) Switching Heartbeat to 5 s interval
2019-10-14 22:15:36.440 Status: (PiZigate) DomoticzVersion: 4.10717
2019-10-14 22:15:36.440 Status: (PiZigate) DomoticzHash: b38b49e5
2019-10-14 22:15:36.440 Status: (PiZigate) DomoticzBuildTime: 2019-05-09 13:04:08
2019-10-14 22:15:36.441 Status: (PiZigate) load PluginConf
2019-10-14 22:15:36.442 Status: (PiZigate) filename set to /home/pi/domoticz/plugins/Domoticz-Zigate/Conf/PluginConf-03.json
2019-10-14 22:15:36.443 Status: (PiZigate) pluginOTAFirmware set to /home/pi/domoticz/plugins/Domoticz-Zigate/OTAFirmware/
2019-10-14 22:15:36.443 Status: (PiZigate) pluginWWW set to /home/pi/domoticz/plugins/Domoticz-Zigate/www/
2019-10-14 22:15:36.443 Status: (PiZigate) homedirectory set to /home/pi/domoticz/plugins/Domoticz-Zigate/
2019-10-14 22:15:36.443 Status: (PiZigate) pluginConfig set to /home/pi/domoticz/plugins/Domoticz-Zigate/Conf/
2019-10-14 22:15:36.443 Status: (PiZigate) pluginData set to /home/pi/domoticz/plugins/Domoticz-Zigate/Data/
2019-10-14 22:15:36.444 Status: (PiZigate) pluginReports set to /home/pi/domoticz/plugins/Domoticz-Zigate/Reports/
2019-10-14 22:15:36.444 Status: (PiZigate) pluginHome set to /home/pi/domoticz/plugins/Domoticz-Zigate/
2019-10-14 22:15:36.444 Status: (PiZigate) Opening DomoticzDB in raw
2019-10-14 22:15:36.445 Status: (PiZigate) Plugin Database: DeviceList-3.txt
2019-10-14 22:15:36.470 Status: (PiZigate) DeviceConf loaded
2019-10-14 22:15:36.471 Status: (PiZigate) load ListOfDevice
2019-10-14 22:15:36.476 Status: (PiZigate) Entries loaded from /home/pi/domoticz/plugins/Domoticz-Zigate/Data/DeviceList-3.txt : 0
2019-10-14 22:15:36.476 Status: (PiZigate) Transport mode: PI
2019-10-14 22:15:36.491 Status: (PiZigate) Python version: ['3.4.2 (default, Oct 19 2014, 14:03:53) ', '[GCC 4.9.1]'] dist: ('debian', '8.0', '') linux_distribution: ('debian', '8.0', '') system: Linux machine: armv7l platform: Linux-4.1.19-v7+-armv7l-with-debian-8.0 uname: uname_result(system='Linux', node='raspberrypi', release='4.1.19-v7+', version='#858 SMP Tue Mar 15 15:56:00 GMT 2016', machine='armv7l', processor='') version: #858 SMP Tue Mar 15 15:56:00 GMT 2016 mac_ver: ('', ('', '', ''), '')
2019-10-14 22:15:36.494 Error: (PiZigate) Error while importing run from python module subprocess, fall back to os module
2019-10-14 22:15:36.495 (PiZigate) runmode_with_osgpiocommand
2019-10-14 22:15:36.495 (PiZigate) + Checkint GPIO PINs
1
1
2019-10-14 22:15:36.551 (PiZigate) + Checkint GPIO PINs
1
1
2019-10-14 22:15:36.573 Status: (PiZigate) Zigate set Time Server
2019-10-14 22:15:36.574 (PiZigate) setTimeServer - Setting UTC Time to : 624406536
2019-10-14 22:15:36.574 Status: (PiZigate) Configure Permit To Join
2019-10-14 22:15:36.574 Status: (PiZigate) Request Accepting new Hardware for 254 seconds
2019-10-14 22:15:36.574 Status: (PiZigate) Trigger a Topology Scan
2019-10-14 22:15:36.575 Status: (PiZigate) Trigger a Energy Level Scan
2019-10-14 22:15:36.575 Status: (PiZigate) Network Energy Level Report: 0000
2019-10-14 22:15:36.575 Status: (PiZigate) -----------------------------------------------
2019-10-14 22:15:36.575 Status: (PiZigate) router <- nwkid Tx Failure 11 15 19 20 25 26
2019-10-14 22:15:36.678 Status: (PiZigate) 'Factory new' Restart status: STARTUP
2019-10-14 22:15:36.679 Status: (PiZigate) Major Version Num: 0003
2019-10-14 22:15:36.679 Status: (PiZigate) Installer Version Number: 031a
2019-10-14 22:15:36.982 (PiZigate) Permit Join status: 00
2019-10-14 22:15:36.982 (PiZigate) ---> self.permitTojoin['Starttime']: 1571084136
2019-10-14 22:15:36.982 (PiZigate) ---> Current time : 1571084136
2019-10-14 22:15:36.982 (PiZigate) ---> self.Ping['Permit'] (prev) : None
2019-10-14 22:15:36.982 Status: (PiZigate) Accepting new Hardware: Disable
2019-10-14 22:15:36.982 (PiZigate) ---> self.Ping['Permit'] (new ) : Off
2019-10-14 22:15:37.031 Status: OpenZWave: Driver Ready
2019-10-14 22:15:37.032 OpenZWave: Value_Added: Node: 2 (0x02), CommandClass: SENSOR BINARY, Label: Sensor, Instance: 0
2019-10-14 22:15:37.033 OpenZWave: Value_Added: Node: 2 (0x02), CommandClass: BATTERY, Label: Battery Level, Instance: 1
2019-10-14 22:15:37.033 OpenZWave: Value_Added: Node: 7 (0x07), CommandClass: SENSOR BINARY, Label: Sensor, Instance: 0
2019-10-14 22:15:37.034 OpenZWave: Value_Added: Node: 7 (0x07), CommandClass: SENSOR MULTILEVEL, Label: Temperature, Instance: 1
2019-10-14 22:15:37.034 OpenZWave: Value_Added: Node: 7 (0x07), CommandClass: SENSOR MULTILEVEL, Label: Luminance, Instance: 3
2019-10-14 22:15:37.034 OpenZWave: Value_Added: Node: 7 (0x07), CommandClass: BATTERY, Label: Battery Level, Instance: 1
2019-10-14 22:15:37.035 OpenZWave: Value_Added: Node: 7 (0x07), CommandClass: SENSOR ALARM, Label: General, Instance: 1
2019-10-14 22:15:37.041 OpenZWave: Value_Added: Node: 8 (0x08), CommandClass: SENSOR BINARY, Label: Sensor, Instance: 0
2019-10-14 22:15:37.042 OpenZWave: Value_Added: Node: 8 (0x08), CommandClass: SENSOR MULTILEVEL, Label: Temperature, Instance: 1
2019-10-14 22:15:37.042 OpenZWave: Value_Added: Node: 8 (0x08), CommandClass: ALARM, Label: Alarm Type, Instance: 1
2019-10-14 22:15:37.042 OpenZWave: Value_Added: Node: 8 (0x08), CommandClass: ALARM, Label: Alarm Level, Instance: 1
2019-10-14 22:15:37.043 OpenZWave: Value_Added: Node: 8 (0x08), CommandClass: ALARM, Label: SourceNodeId, Instance: 1
2019-10-14 22:15:37.043 OpenZWave: Value_Added: Node: 8 (0x08), CommandClass: ALARM, Label: Smoke, Instance: 1
2019-10-14 22:15:37.043 OpenZWave: Value_Added: Node: 8 (0x08), CommandClass: ALARM, Label: Heat, Instance: 1
2019-10-14 22:15:37.043 OpenZWave: Value_Added: Node: 8 (0x08), CommandClass: ALARM, Label: Burglar, Instance: 1
2019-10-14 22:15:37.043 OpenZWave: Value_Added: Node: 8 (0x08), CommandClass: ALARM, Label: Power Management, Instance: 1
2019-10-14 22:15:37.044 OpenZWave: Value_Added: Node: 8 (0x08), CommandClass: ALARM, Label: System, Instance: 1
2019-10-14 22:15:37.044 OpenZWave: Value_Added: Node: 8 (0x08), CommandClass: BATTERY, Label: Battery Level, Instance: 1
2019-10-14 22:15:37.045 OpenZWave: Value_Added: Node: 8 (0x08), CommandClass: SENSOR ALARM, Label: General, Instance: 1
2019-10-14 22:15:37.045 OpenZWave: Value_Added: Node: 8 (0x08), CommandClass: SENSOR ALARM, Label: Smoke, Instance: 1
2019-10-14 22:15:37.045 OpenZWave: Value_Added: Node: 8 (0x08), CommandClass: SENSOR ALARM, Label: Heat, Instance: 1
2019-10-14 22:15:37.046 OpenZWave: Value_Added: Node: 9 (0x09), CommandClass: SENSOR BINARY, Label: Sensor, Instance: 0
2019-10-14 22:15:37.046 OpenZWave: Value_Added: Node: 9 (0x09), CommandClass: BATTERY, Label: Battery Level, Instance: 1
2019-10-14 22:15:37.056 Status: OpenZWave: Awake Nodes queried
2019-10-14 22:15:37.086 Error: (PiZigate) Zigate not correctly initialized
2019-10-14 22:15:37.086 Status: (PiZigate) Zigate addresses ieee: 00158d0003af5ef0 , short addr: ffff
2019-10-14 22:15:37.086 Status: (PiZigate) Network state UP, PANID: a161 extPANID: 0x0000000000000000 Channel: 11
2019-10-14 22:15:37.188 Status: (PiZigate) Number of devices recently active in Zigate = 0
2019-10-14 22:15:46.453 Status: (PiZigate) Zigate set to Certification : CE
2019-10-14 22:15:46.454 Error: (PiZigate) ATTENTION: the WebServer part is not supported with this version of Domoticz. Please upgrade to a version greater than 4.10901
2019-10-14 22:15:46.455 Status: (PiZigate) Start Web Server connection
2019-10-14 22:15:46.493 Status: (PiZigate) Web backend for Web User Interface started on port: 9440
2019-10-14 22:15:46.494 Status: (PiZigate) Plugin with Zigate firmware 031a correctly initialized
Fatal Python error: Segmentation fault

Current thread 0x75285430 (most recent call first):
File "/usr/lib/python3.4/hashlib.py", line 103 in __get_openssl_constructor
File "/usr/lib/python3.4/hashlib.py", line 210 in <module>
File "<frozen importlib._bootstrap>", line 321 in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1471 in exec_module
File "<frozen importlib._bootstrap>", line 1129 in _exec
File "<frozen importlib._bootstrap>", line 1200 in _load_unlocked
File "<frozen importlib._bootstrap>", line 2226 in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 2237 in _find_and_load
File "/usr/lib/python3.4/random.py", line 45 in <module>
File "<frozen importlib._bootstrap>", line 321 in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1471 in exec_module
File "<frozen importlib._bootstrap>", line 1129 in _exec
File "<frozen importlib._bootstrap>", line 1200 in _load_unlocked
File "<frozen importlib._bootstrap>", line 2226 in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 2237 in _find_and_load
File "/home/pi/domoticz/plugins/Domoticz-Zigate/dns/resolver.py", line 23 in <module>
File "<frozen importlib._bootstrap>", line 321 in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1471 in exec_module
File "<frozen importlib._bootstrap>", line 1129 in _exec
File "<frozen importlib._bootstrap>", line 1200 in _load_unlocked
File "<frozen importlib._bootstrap>", line 2226 in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 2237 in _find_and_load
File "/home/pi/domoticz/plugins/Domoticz-Zigate/Modules/checkingUpdate.py", line 17 in checkPluginVersion
File "/home/pi/domoticz/plugins/Domoticz-Zigate/plugin.py", line 634 in onHeartbeat
File "/home/pi/domoticz/plugins/Domoticz-Zigate/plugin.py", line 809 in onHeartbeat
2019-10-14 22:15:46.566 Error: Domoticz(pid:6103, tid:6106('PluginMgr')) received fatal signal 11 (Segmentation fault)
2019-10-14 22:15:46.566 Error: siginfo address=0x17d7, address=0x76eee2cc
2019-10-14 22:15:48.386 Error: Failed to start gdb, will use backtrace() for printing stack frame

2019-10-14 22:15:48.388 Error: #0 ./domoticz() [0x2d8464]
2019-10-14 22:15:48.388 Error: #1 ./domoticz : signal_handler(int, siginfo_t*, void*) + 0x27c [0x2d8ef8]
2019-10-14 22:15:48.388 Error: #2 /lib/arm-linux-gnueabihf/libc.so.6 : __default_rt_sa_restorer_v2 + 0 [0x76cab1a0]
Last edited by Davdom on Monday 14 October 2019 22:20, edited 1 time in total.
pipiche
Posts: 2009
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: PiZiGate makes Domoticz web server crash

Post by pipiche »

can you do a

Code: Select all

chmod 666 PluginConf-03.json
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
Davdom
Posts: 10
Joined: Sunday 13 October 2019 23:35
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Contact:

Re: PiZiGate makes Domoticz web server crash

Post by Davdom »

done.
Here is the output of domoticz -v :

2019-10-14 22:47:05.815 Status: (PiZigate) Entering work loop.
2019-10-14 22:47:05.816 Status: (PiZigate) Initialized version 4.5, author 'zaraki673 pipiche38'
2019-10-14 22:47:05.819 Status: (PiZigate) Zigate plugin stable-4.5.4 started
2019-10-14 22:47:05.819 (PiZigate) Debug: 0
2019-10-14 22:47:05.820 Status: (PiZigate) Python Version - 3.4.2 (default, Oct 19 2014, 14:03:53)
[GCC 4.9.1]
2019-10-14 22:47:05.820 Status: (PiZigate) Switching Heartbeat to 5 s interval
2019-10-14 22:47:05.820 Status: (PiZigate) DomoticzVersion: 4.10717
2019-10-14 22:47:05.820 Status: (PiZigate) DomoticzHash: b38b49e5
2019-10-14 22:47:05.820 Status: (PiZigate) DomoticzBuildTime: 2019-05-09 13:04:08
2019-10-14 22:47:05.820 Status: (PiZigate) load PluginConf
2019-10-14 22:47:05.822 Status: (PiZigate) filename set to /home/pi/domoticz/plugins/Domoticz-Zigate/Conf/PluginConf-03.json
2019-10-14 22:47:05.822 Status: (PiZigate) homedirectory set to /home/pi/domoticz/plugins/Domoticz-Zigate/
2019-10-14 22:47:05.823 Status: (PiZigate) pluginConfig set to /home/pi/domoticz/plugins/Domoticz-Zigate/Conf/
2019-10-14 22:47:05.823 Status: (PiZigate) pluginOTAFirmware set to /home/pi/domoticz/plugins/Domoticz-Zigate/OTAFirmware/
2019-10-14 22:47:05.823 Status: (PiZigate) pluginData set to /home/pi/domoticz/plugins/Domoticz-Zigate/Data/
2019-10-14 22:47:05.823 Status: (PiZigate) pluginWWW set to /home/pi/domoticz/plugins/Domoticz-Zigate/www/
2019-10-14 22:47:05.823 Status: (PiZigate) pluginHome set to /home/pi/domoticz/plugins/Domoticz-Zigate/
2019-10-14 22:47:05.823 Status: (PiZigate) pluginReports set to /home/pi/domoticz/plugins/Domoticz-Zigate/Reports/
2019-10-14 22:47:05.824 Status: (PiZigate) Opening DomoticzDB in raw
2019-10-14 22:47:05.824 Status: (PiZigate) Plugin Database: DeviceList-3.txt
2019-10-14 22:47:05.844 Status: (PiZigate) DeviceConf loaded
2019-10-14 22:47:05.844 Status: (PiZigate) load ListOfDevice
2019-10-14 22:47:05.844 Error: (PiZigate) 'onStart' failed 'PermissionError'.
2019-10-14 22:47:05.845 Error: (PiZigate) ----> Line 781 in '/home/pi/domoticz/plugins/Domoticz-Zigate/plugin.py', function onStart
2019-10-14 22:47:05.845 Error: (PiZigate) ----> Line 270 in '/home/pi/domoticz/plugins/Domoticz-Zigate/plugin.py', function onStart
2019-10-14 22:47:05.845 Error: (PiZigate) ----> Line 55 in '/home/pi/domoticz/plugins/Domoticz-Zigate/Modules/database.py', function LoadDeviceList
2019-10-14 22:47:05.845 Error: (PiZigate) ----> Line 39 in '/home/pi/domoticz/plugins/Domoticz-Zigate/Modules/database.py', function _versionFile
2019-10-14 22:47:05.845 Error: (PiZigate) ----> Line 22 in '/home/pi/domoticz/plugins/Domoticz-Zigate/Modules/database.py', function _copyfile
2019-10-14 22:47:15.860 (PiZigate) No Firmware Version received from Zigate
2019-10-14 22:47:20.818 Error: (PiZigate) 'onHeartbeat' failed 'AttributeError':''NoneType' object has no attribute 'sendData''.
2019-10-14 22:47:20.819 Error: (PiZigate) ----> Line 809 in '/home/pi/domoticz/plugins/Domoticz-Zigate/plugin.py', function onHeartbeat
2019-10-14 22:47:20.819 Error: (PiZigate) ----> Line 552 in '/home/pi/domoticz/plugins/Domoticz-Zigate/plugin.py', function onHeartbeat
2019-10-14 22:47:20.820 Error: (PiZigate) ----> Line 84 in '/home/pi/domoticz/plugins/Domoticz-Zigate/Modules/output.py', function sendZigateCmd
2019-10-14 22:47:25.828 (PiZigate) No Firmware Version received from Zigate
2019-10-14 22:47:30.836 Error: (PiZigate) 'onHeartbeat' failed 'AttributeError':''NoneType' object has no attribute 'sendData''.
2019-10-14 22:47:30.837 Error: (PiZigate) ----> Line 809 in '/home/pi/domoticz/plugins/Domoticz-Zigate/plugin.py', function onHeartbeat
2019-10-14 22:47:30.837 Error: (PiZigate) ----> Line 552 in '/home/pi/domoticz/plugins/Domoticz-Zigate/plugin.py', function onHeartbeat
2019-10-14 22:47:30.838 Error: (PiZigate) ----> Line 84 in '/home/pi/domoticz/plugins/Domoticz-Zigate/Modules/output.py', function sendZigateCmd
2019-10-14 22:47:35.846 Status: (PiZigate) ZigateConf setting Channel(s) to: 0
2019-10-14 22:47:35.846 Status: (PiZigate) setChannel - Channel set to : 00000000
2019-10-14 22:47:35.847 Error: (PiZigate) 'onHeartbeat' failed 'AttributeError':''NoneType' object has no attribute 'sendData''.
2019-10-14 22:47:35.847 Error: (PiZigate) ----> Line 809 in '/home/pi/domoticz/plugins/Domoticz-Zigate/plugin.py', function onHeartbeat
2019-10-14 22:47:35.848 Error: (PiZigate) ----> Line 554 in '/home/pi/domoticz/plugins/Domoticz-Zigate/plugin.py', function onHeartbeat
2019-10-14 22:47:35.848 Error: (PiZigate) ----> Line 59 in '/home/pi/domoticz/plugins/Domoticz-Zigate/Modules/output.py', function start_Zigate
2019-10-14 22:47:35.848 Error: (PiZigate) ----> Line 1019 in '/home/pi/domoticz/plugins/Domoticz-Zigate/Modules/output.py', function setChannel
2019-10-14 22:47:35.849 Error: (PiZigate) ----> Line 84 in '/home/pi/domoticz/plugins/Domoticz-Zigate/Modules/output.py', function sendZigateCmd
2019-10-14 22:47:40.857 (PiZigate) No Firmware Version received from Zigate
^C2019-10-14 22:47:43.230 Status: Closing application!...
2019-10-14 22:47:43.230 Status: Stopping worker...
pipiche
Posts: 2009
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: PiZiGate makes Domoticz web server crash

Post by pipiche »

Ok. I beleive the current error is a consequence of the initial one .

Can you do the following:

Code: Select all

chmod 770 Data
chmod 660 Data/*
Edit the file Conf/PluginConf-03.json and add the following line

Code: Select all

"internetAccess": 0,
In order to get something similar as:

Code: Select all

{
  "internetAccess": 0,
  "filename": "/var/lib/domoticz/plugins/Domoticz-Zigate/Conf/PluginConf-43.json",
  "homedirectory": "/var/lib/domoticz/plugins/Domoticz-Zigate/",
  "pluginConfig": "/var/lib/domoticz/plugins/Domoticz-Zigate/Conf/",
  "pluginData": "/var/lib/domoticz/plugins/Domoticz-Zigate/Data/",
  "pluginHome": "/var/lib/domoticz/plugins/Domoticz-Zigate/",
  "pluginOTAFirmware": "/var/lib/domoticz/plugins/Domoticz-Zigate/OTAFirmware/",
  "pluginReports": "/var/lib/domoticz/plugins/Domoticz-Zigate/Reports/",
  "pluginWWW": "/var/lib/domoticz/plugins/Domoticz-Zigate/www/"
}
And then restat
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
Davdom
Posts: 10
Joined: Sunday 13 October 2019 23:35
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Contact:

Re: PiZiGate makes Domoticz web server crash

Post by Davdom »

That's fine now, thanks a lot!

For my understanding : what was the issue and why did you put InternetAcess to 0?
pipiche
Posts: 2009
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: PiZiGate makes Domoticz web server crash

Post by pipiche »

I think there are 2 issues:

(1) One which is related to access rights, this is why I asked you to change the Data folder to 770 and all the files underneath to 666.
It is a bit strange as I feel that domoticz runs at root !!

(2) I suspect that due to the old version of python ( 3.4 ) the DNS library that is used by the plugin to retrieve the latest firmware and plugin version crash the Domoticz Python Framework.


PS/ here is the French Domoticz Forum in case of ;-)
https://easydomoticz.com/forum/viewforum.php?f=28
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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest