Bonjour,
Je fais face à un problème de stabilité sur z2m qui amplifie chaque jours.
Avant, c’était une fois de temps en temps et maintenant c’est 1 ou 2 fois par jour.
Quand le problème survient, je n’ai plus aucune communication avec aucun module zigbee
Dans la partie santé, tout est au vert.
Pour relancer, je fais un redémarrage du Démon et ça repart.
J’ai cherché un peu sur le forum, mais je ne suis pas très technique et donc vite perdu.
Merci pour le coup de main
Voici ma configuration
Et voici mes logs
0000|+ echo '*******************Begin of package installation******************'
0001|*******************Begin of package installation******************
0002|+ touch /tmp/jeedom_install_in_progress_z2m
0003|+ echo 1
0004|+ echo 2
0005|+ sudo chmod +x /var/www/html/core/class/../../plugins/z2m/resources/pre-install.sh
0006|+ sudo /var/www/html/core/class/../../plugins/z2m/resources/pre-install.sh
0007|Launch pre-install of z2m dependancy
0008|+ echo 3
0009|+ php /var/www/html/core/class/../php/jeecli.php plugin install mqtt2
0010|+ echo 4
0011|+ sudo killall apt apt-get unattended-upgr
0012|apt: no process found
0013|apt-get: no process found
0014|+ sudo rm /var/lib/apt/lists/lock
0015|+ sudo rm /var/cache/apt/archives/lock
0016|+ sudo rm /var/lib/dpkg/lock /var/lib/dpkg/lock-frontend
0017|+ sudo sudo dpkg --configure -a --force-confdef
0018|+ sudo apt update
0019|WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
0020|Get:1 http://security.debian.org/debian-security bullseye-security InRelease [27.2 kB]
0021|Hit:2 http://deb.debian.org/debian bullseye InRelease
0022|Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
0023|Hit:4 https://deb.nodesource.com/node_20.x nodistro InRelease
0024|Get:5 http://security.debian.org/debian-security bullseye-security/main Sources [210 kB]
0025|Get:6 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [307 kB]
0026|Get:7 http://security.debian.org/debian-security bullseye-security/main Translation-en [197 kB]
0027|Fetched 785 kB in 1s (1086 kB/s)
0028|Reading package lists...
0029|Building dependency tree...
0030|Reading state information...
0031|1 package can be upgraded. Run 'apt list --upgradable' to see it.
0032|+ echo 5
0033|+ sudo chmod +x /var/www/html/core/class/../../resources/install_nodejs.sh
0034|+ sudo /var/www/html/core/class/../../resources/install_nodejs.sh
0035|Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
0036|Hit:2 http://deb.debian.org/debian bullseye InRelease
0037|Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
0038|Hit:4 https://deb.nodesource.com/node_20.x nodistro InRelease
0039|Reading package lists...
0040|Reading package lists...
0041|Building dependency tree...
0042|Reading state information...
0043|apt-utils is already the newest version (2.2.4).
0044|build-essential is already the newest version (12.9).
0045|lsb-release is already the newest version (11.1.0).
0046|git is already the newest version (1:2.30.2-1+deb11u3).
0047|0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
0048|[Check Version NodeJS actuelle : v20.17.0 : [ OK ]
0049|[Check Prefix : /usr and sudo prefix : /usr and www-data prefix : /usr : [ OK ]
0050|Clean npm cache
0051|npm warn using --force Recommended protections disabled.
0052|+ echo 6
0053|+ sudo apt install -o Dpkg::Options::=--force-confdef -y php-yaml
0054|WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
0055|Reading package lists...
0056|Building dependency tree...
0057|Reading state information...
0058|php-yaml is already the newest version (2.2.1+2.1.0+2.0.4+1.3.2-2).
0059|0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
0060|+ echo 7
0061|+ sudo systemctl restart apache2
0062|+ echo 8
0063|+ sudo chmod +x /var/www/html/core/class/../../plugins/z2m/resources/post-install.sh
0064|+ sudo /var/www/html/core/class/../../plugins/z2m/resources/post-install.sh
0065|+ echo Launch post-install of z2m dependancy
0066|Launch post-install of z2m dependancy
0067|+ realpath /var/www/html/core/class/../../plugins/z2m/resources/post-install.sh
0068|+ dirname /var/www/html/plugins/z2m/resources/post-install.sh
0069|+ BASEDIR=/var/www/html/plugins/z2m/resources
0070|+ [ -d /var/www/html/plugins/z2m/resources/zigbee2mqtt ]
0071|+ rm -rf /var/www/html/plugins/z2m/resources/zigbee2mqtt
0072|+ mkdir /var/www/html/plugins/z2m/resources/zigbee2mqtt
0073|+ git clone --depth 1 https://github.com/Koenkk/zigbee2mqtt.git /var/www/html/plugins/z2m/resources/zigbee2mqtt
0074|Cloning into '/var/www/html/plugins/z2m/resources/zigbee2mqtt'...
0075|+ cd /var/www/html/plugins/z2m/resources/zigbee2mqtt
0076|+ [ -f /var/www/html/plugins/z2m/resources/../data/wanted_z2m_version ]
0077|+ npm ci
0078|npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
0079|npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
0080|added 649 packages, and audited 650 packages in 18s
0081|90 packages are looking for funding
0082|run `npm fund` for details
0083|found 0 vulnerabilities
0084|+ npm run build
0085|> zigbee2mqtt@1.41.0 build
0086|> tsc && node index.js writehash
0087|+ chown www-data:www-data -R /var/www/html/plugins/z2m/resources/zigbee2mqtt
0088|+ echo 9
0089|+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end z2m
0090|+ echo 10
0091|+ rm /tmp/jeedom_install_in_progress_z2m
0092|+ echo '*******************End of package installation******************'
0093|*******************End of package installation******************
0387|[2024-11-03 09:29:27] e[31merrore[39m: zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
0388|[2024-11-03 09:29:29] e[31merrore[39m: zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
0389|[2024-11-03 09:29:29] e[31merrore[39m: zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
0390|[2024-11-03 09:29:30] e[31merrore[39m: zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
0391|[2024-11-03 09:29:30] e[31merrore[39m: zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
0392|Killed
0393|> zigbee2mqtt@1.41.0 start
0394|> node index.js
0395|Starting Zigbee2MQTT without watchdog.
0396|[2024-11-03 12:16:37] e[31merrore[39m: z2m: Failed to load external converter file '/var/www/html/plugins/z2m/core/class/../config/converters/Danfoss/icon.js' (Cannot find module 'zigbee-herdsman-converters/lib/extend'
0397|Require stack:
0398|- /var/www/html/plugins/z2m/resources/zigbee2mqtt/dist/util/utils.js
0399|- /var/www/html/plugins/z2m/resources/zigbee2mqtt/dist/util/settings.js
0400|- /var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js)
0401|[2024-11-03 12:16:37] e[31merrore[39m: z2m: Probably there is a syntax error in the file or the external converter is not compatible with the current Zigbee2MQTT version
0402|[2024-11-03 12:16:37] e[31merrore[39m: z2m: Note that external converters are not meant for long term usage, it's meant for local testing after which a pull request should be created to add out-of-the-box support for the device
0403|[2024-11-03 12:16:46] e[31merrore[39m: zh:ezsp:uart: --> Error: Error: {"sequence":1} after 4000ms
0404|[2024-11-03 12:16:46] e[31merrore[39m: zh:ezsp:uart: -!- break waiting (1)
0405|[2024-11-03 12:16:46] e[31merrore[39m: zh:ezsp:uart: Can't send DATA frame (0,1,0): 1800012800
0406|[2024-11-03 12:16:51] e[31merrore[39m: zh:ezsp:uart: --> Error: Error: {"sequence":1} after 4000ms
0407|[2024-11-03 12:16:51] e[31merrore[39m: zh:ezsp:uart: -!- break rewaiting (1)
0408|[2024-11-03 12:16:51] e[31merrore[39m: zh:ezsp:uart: Can't resend DATA frame (0,1,1): 1800012800
0409|[2024-11-03 12:16:51] e[31merrore[39m: z2m: Error while starting zigbee-herdsman
0410|[2024-11-03 12:16:51] e[31merrore[39m: z2m: Failed to start zigbee
0411|[2024-11-03 12:16:51] e[31merrore[39m: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
0412|[2024-11-03 12:16:51] e[31merrore[39m: z2m: Exiting...
0413|[2024-11-03 12:16:51] e[31merrore[39m: z2m: Error: Failure send getNetworkParameters:{"type":"Buffer","data":[24,0,1,40,0]}
0414|at /var/www/html/plugins/z2m/resources/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:679:23
0415|at Queue.execute (/var/www/html/plugins/z2m/resources/zigbee2mqtt/node_modules/zigbee-herdsman/src/utils/queue.ts:36:20)
0416|at Ezsp.execCommand (/var/www/html/plugins/z2m/resources/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:666:16)
0417|at Driver.needsToBeInitialised (/var/www/html/plugins/z2m/resources/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:310:27)
0418|at Driver.startup (/var/www/html/plugins/z2m/resources/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:242:13)
0419|at EZSPAdapter.start (/var/www/html/plugins/z2m/resources/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/ezsp/adapter/ezspAdapter.ts:152:16)
0420|at Controller.start (/var/www/html/plugins/z2m/resources/zigbee2mqtt/node_modules/zigbee-herdsman/src/controller/controller.ts:137:29)
0421|at Zigbee.start (/var/www/html/plugins/z2m/resources/zigbee2mqtt/lib/zigbee.ts:69:27)
0422|at Controller.start (/var/www/html/plugins/z2m/resources/zigbee2mqtt/lib/controller.ts:161:27)
0423|at start (/var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js:154:5)
0424|> zigbee2mqtt@1.41.0 start
0425|> node index.js
0426|Starting Zigbee2MQTT without watchdog.
0427|[2024-11-03 12:18:05] e[31merrore[39m: z2m: Failed to load external converter file '/var/www/html/plugins/z2m/core/class/../config/converters/Danfoss/icon.js' (Cannot find module 'zigbee-herdsman-converters/lib/extend'
0428|Require stack:
0429|- /var/www/html/plugins/z2m/resources/zigbee2mqtt/dist/util/utils.js
0430|- /var/www/html/plugins/z2m/resources/zigbee2mqtt/dist/util/settings.js
0431|- /var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js)
0432|[2024-11-03 12:18:05] e[31merrore[39m: z2m: Probably there is a syntax error in the file or the external converter is not compatible with the current Zigbee2MQTT version
0433|[2024-11-03 12:18:05] e[31merrore[39m: z2m: Note that external converters are not meant for long term usage, it's meant for local testing after which a pull request should be created to add out-of-the-box support for the device
0434|[2024-11-03 12:36:52] e[31merrore[39m: zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
0435|[2024-11-03 12:36:52] e[31merrore[39m: zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
0436|[2024-11-03 12:36:54] e[31merrore[39m: zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
0437|[2024-11-03 12:36:54] e[31merrore[39m: zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped