Demon KO après panne secteur

Bonjour a tous

Depuis cette nuit et une longue panne secteur vraisemblablement , le demon est ko

J’ai redémarré , relancé les dépendances mais rien

:confused:

-------------------- TRUNCATED LOG --------------------
at Zigbee.start (/var/www/html/plugins/z2m/resources/zigbee2mqtt/lib/zigbee.ts:62:27)
at Controller.start (/var/www/html/plugins/z2m/resources/zigbee2mqtt/lib/controller.ts:109:27)
at start (/var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js:107:5)
> zigbee2mqtt@1.36.1 start
> node index.js
Zigbee2MQTT:error 15-05-2024 08:50:16: 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'
Require stack:
- /var/www/html/plugins/z2m/resources/zigbee2mqtt/dist/util/utils.js
- /var/www/html/plugins/z2m/resources/zigbee2mqtt/dist/util/settings.js
- /var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js)
Zigbee2MQTT:error 15-05-2024 08:50:16: Probably there is a syntax error in the file or the external converter is not compatible with the current Zigbee2MQTT version
Zigbee2MQTT:error 15-05-2024 08:50:16: 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
Zigbee2MQTT:error 15-05-2024 08:50:29: Error while starting zigbee-herdsman
Zigbee2MQTT:error 15-05-2024 08:50:29: Failed to start zigbee
Zigbee2MQTT:error 15-05-2024 08:50:29: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 15-05-2024 08:50:29: Exiting...
Zigbee2MQTT:error 15-05-2024 08:50:29: Error: Failure send networkState:{"type":"Buffer","data":[25,0,1,24,0]}
at /var/www/html/plugins/z2m/resources/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:664:23
at Queue.execute (/var/www/html/plugins/z2m/resources/zigbee2mqtt/node_modules/zigbee-herdsman/src/utils/queue.ts:35:20)
at Driver.startup (/var/www/html/plugins/z2m/resources/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:253:24)
at Controller.start (/var/www/html/plugins/z2m/resources/zigbee2mqtt/node_modules/zigbee-herdsman/src/controller/controller.ts:132:29)
at Zigbee.start (/var/www/html/plugins/z2m/resources/zigbee2mqtt/lib/zigbee.ts:62:27)
at Controller.start (/var/www/html/plugins/z2m/resources/zigbee2mqtt/lib/controller.ts:109:27)
at start (/var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js:107:5)
> zigbee2mqtt@1.36.1 start
> node index.js
Zigbee2MQTT:error 15-05-2024 08:55:13: 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'
Require stack:
- /var/www/html/plugins/z2m/resources/zigbee2mqtt/dist/util/utils.js
- /var/www/html/plugins/z2m/resources/zigbee2mqtt/dist/util/settings.js
- /var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js)
Zigbee2MQTT:error 15-05-2024 08:55:13: Probably there is a syntax error in the file or the external converter is not compatible with the current Zigbee2MQTT version
Zigbee2MQTT:error 15-05-2024 08:55:13: 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
Zigbee2MQTT:debug 15-05-2024 08:55:13: Loaded state from file /var/www/html/plugins/z2m/data/state.json
Zigbee2MQTT:info  15-05-2024 08:55:13: Logging to console and directory: '/var/www/html/plugins/z2m/data/log/2024-05-15.08-55-13' filename: log.txt
Zigbee2MQTT:debug 15-05-2024 08:55:13: Removing old log directory '/var/www/html/plugins/z2m/data/log/2024-05-15.08-10-12'
Zigbee2MQTT:info  15-05-2024 08:55:13: Starting Zigbee2MQTT version 1.36.1 (commit #ffc2ff1)
Zigbee2MQTT:info  15-05-2024 08:55:13: Starting zigbee-herdsman (0.40.3)
Zigbee2MQTT:debug 15-05-2024 08:55:13: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null,"delay":null,"disableLED":false},"backupPath":"/var/www/html/plugins/z2m/data/coordinator_backup.json","databaseBackupPath":"/var/www/html/plugins/z2m/data/database.db.backup","databasePath":"/var/www/html/plugins/z2m/data/database.db","network":{"channelList":[15],"extendedPanID":[45,178,132,83,81,250,12,112],"networkKey":"HIDDEN","panID":135},"serialPort":{"adapter":"ezsp","path":"/dev/ttyS2"}}'
Killed
> zigbee2mqtt@1.37.1 start
> node index.js
[15-05-2024 08:59:39] e[32minfoe[39m: 	z2m: Logging to console, file (filename: log.log)
[15-05-2024 08:59:39] 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'
Require stack:
- /var/www/html/plugins/z2m/resources/zigbee2mqtt/dist/util/utils.js
- /var/www/html/plugins/z2m/resources/zigbee2mqtt/dist/util/settings.js
- /var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js)
[15-05-2024 08:59:39] 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
[15-05-2024 08:59:39] 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
[15-05-2024 08:59:39] e[34mdebuge[39m: 	z2m: Loaded state from file /var/www/html/plugins/z2m/data/state.json
[15-05-2024 08:59:39] e[32minfoe[39m: 	z2m: Starting Zigbee2MQTT version 1.37.1 (commit #cda867a)
[15-05-2024 08:59:39] e[32minfoe[39m: 	z2m: Starting zigbee-herdsman (0.46.6)
[15-05-2024 08:59:39] e[34mdebuge[39m: 	z2m: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null,"delay":null,"disableLED":false},"backupPath":"/var/www/html/plugins/z2m/data/coordinator_backup.json","databaseBackupPath":"/var/www/html/plugins/z2m/data/database.db.backup","databasePath":"/var/www/html/plugins/z2m/data/database.db","network":{"channelList":[15],"extendedPanID":[45,178,132,83,81,250,12,112],"networkKey":"HIDDEN","panID":135},"serialPort":{"adapter":"ezsp","path":"/dev/ttyS2"}}'
[15-05-2024 08:59:40] e[34mdebuge[39m: 	zh:ezsp: Adapter concurrent: 8
[15-05-2024 08:59:40] e[34mdebuge[39m: 	zh:controller: Starting with options '{"network":{"networkKeyDistribute":false,"networkKey":[157,17,140,65,4,184,252,127,81,183,3,179,244,213,21,234],"panID":135,"extendedPanID":[45,178,132,83,81,250,12,112],"channelList":[15]},"serialPort":{"path":"/dev/ttyS2","adapter":"ezsp"},"databasePath":"/var/www/html/plugins/z2m/data/database.db","databaseBackupPath":"/var/www/html/plugins/z2m/data/database.db.backup","backupPath":"/var/www/html/plugins/z2m/data/coordinator_backup.json","adapter":{"disableLED":false,"concurrent":null,"delay":null}}'
[15-05-2024 08:59:40] e[33mwarninge[39m: 	zh:ezsp: Deprecated driver 'ezsp' currently in use, 'ember' will become the officially supported EmberZNet driver in next release. If using Zigbee2MQTT see https://github.com/Koenkk/zigbee2mqtt/discussions/21462
[15-05-2024 08:59:40] e[34mdebuge[39m: 	zh:ezsp:uart: RTS/CTS config is off, enabling software flow control.
[15-05-2024 08:59:40] e[34mdebuge[39m: 	zh:ezsp:uart: Opening SerialPort with {"path":"/dev/ttyS2","baudRate":115200,"rtscts":false,"autoOpen":false,"parity":"none","stopBits":1,"xon":true,"xoff":true}
[15-05-2024 08:59:40] e[34mdebuge[39m: 	zh:ezsp:uart: Serialport opened
[15-05-2024 08:59:40] e[34mdebuge[39m: 	zh:ezsp:uart: Uart reseting
[15-05-2024 08:59:40] e[34mdebuge[39m: 	zh:ezsp:uart: --> Write reset

Salut,

La config du port du contrôleur n’aurait pas sauté dans le plugin ?

non rien

Essayez ceci

Toujours pareil
Retour aussi en 1.36.1 mais sans effet

Bonjour
À mon avis c’est un soucis avec le contrôleur zigbee. Sans savoir ce que tu utilises par contre je peux pas aider plus.

C’est le contrôleur de la box Atlas

Ok dans ce cas sur la configuration du plugin il y a un bouton de mise à jour de firmware une fois cliqué tu peux choisir l’option fix bootloader peut etre ca corrigera ton soucis.

Non , pas d’amélioration pour le demon

PS : J’ai ouvert un ticket si besoin

Log MAJ

2024-05-15 10:15:36] ALERT  : sudo chmod +x /var/www/html/plugins/z2m/core/class/../../resources/misc/ezsp-fix-bootloader.sh;sudo /var/www/html/plugins/z2m/core/class/../../resources/misc/ezsp-fix-bootloader.sh /dev/ttyS2
kill: (9): No such process
Begin change mode of /dev/ttyS2
Download source...
--2024-05-15 10:15:36--  https://github.com/Elelabs/elelabs-zigbee-ezsp-utility/archive/master.zip
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/Elelabs/elelabs-zigbee-ezsp-utility/zip/refs/heads/master [following]
--2024-05-15 10:15:37--  https://codeload.github.com/Elelabs/elelabs-zigbee-ezsp-utility/zip/refs/heads/master
Resolving codeload.github.com (codeload.github.com)... 140.82.121.10
Connecting to codeload.github.com (codeload.github.com)|140.82.121.10|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: '/tmp/elelabs.zip'
0K .......... .......... .......... .......... .......... 1.44M
50K .......... .......... .......... .......... .......... 3.07M
100K .......... .......... .......... .......... .......... 35.8M
150K .......... .......... .......... .......... .......... 19.0M
200K .......... .......... .......... .......... .......... 3.72M
250K .......... .......... .......... .......... .......... 38.4M
300K .......... .......... .......... .......... .......... 37.4M
350K .......... .......... .......... .......... .......... 42.1M
400K .......... .......... .......... .......... .......... 3.99M
450K .......... .......... .......... .......... .......... 42.3M
500K .......... .......... .......... .......... .......... 38.0M
550K .......... .......... .......... .......... .......... 38.5M
600K .......... .......... .......... .......... .......... 41.8M
650K .......... .......... .......... .......... .......... 42.4M
700K .......... .......... .......... .......... .......... 44.5M
750K .......... .......... .......... .......... .......... 44.3M
800K .......... .......... .......... .......... .......... 78.9M
850K .......... .......... .......... .......... .......... 7.81M
900K .......... .......... .......... .......... .......... 35.5M
950K .......... .......... .......... .......... .......... 39.2M
1000K .......... .......... .......... .......... .......... 42.1M
1050K .......... .......... .......... .......... .......... 41.0M
1100K .......... .......... .......... .......... .......... 44.3M
1150K .......... .......... .......... .......... .......... 44.3M
1200K .......... ........                                    39.8M=0.1s
2024-05-15 10:15:37 (11.3 MB/s) - '/tmp/elelabs.zip' saved [1247988]
Unzip file...
Archive:  elelabs.zip
7fc415497f7e2b3410e3350b359ac5c71043399e
creating: elelabs-zigbee-ezsp-utility-master/
extracting: elelabs-zigbee-ezsp-utility-master/.gitignore
inflating: elelabs-zigbee-ezsp-utility-master/CHANGELOG.md
inflating: elelabs-zigbee-ezsp-utility-master/Elelabs_EzspFwUtility.py
inflating: elelabs-zigbee-ezsp-utility-master/LICENSE
inflating: elelabs-zigbee-ezsp-utility-master/README.md
creating: elelabs-zigbee-ezsp-utility-master/data/
creating: elelabs-zigbee-ezsp-utility-master/data/EFR32MG13/
inflating: elelabs-zigbee-ezsp-utility-master/data/EFR32MG13/ELE_MG13_ot_rcp_115200_120_211116.gbl
inflating: elelabs-zigbee-ezsp-utility-master/data/EFR32MG13/ELE_MG13_ot_rcp_123_220206.gbl
inflating: elelabs-zigbee-ezsp-utility-master/data/EFR32MG13/ELE_MG13_zb_ncp_115200_610_211112.gbl
inflating: elelabs-zigbee-ezsp-utility-master/data/EFR32MG13/ELX0X3_MG13_6.0.3_ezsp_v6.gbl
inflating: elelabs-zigbee-ezsp-utility-master/data/EFR32MG13/ELX0X3_MG13_6.7.0_ezsp_v8.gbl
creating: elelabs-zigbee-ezsp-utility-master/data/EFR32MG21/
inflating: elelabs-zigbee-ezsp-utility-master/data/EFR32MG21/ELU0141_MG21_ot_rcp_123_211204.gbl
inflating: elelabs-zigbee-ezsp-utility-master/data/EFR32MG21/ELU0141_MG21_zb_ncp_6103_211204.gbl
inflating: elelabs-zigbee-ezsp-utility-master/data/EFR32MG21/ELU0143_MG21_ot_rcp_123_211211.gbl
inflating: elelabs-zigbee-ezsp-utility-master/data/EFR32MG21/ELU0143_MG21_zb_ncp_6103_211211.gbl
creating: elelabs-zigbee-ezsp-utility-master/img/
inflating: elelabs-zigbee-ezsp-utility-master/img/ele_update_thread.png
inflating: elelabs-zigbee-ezsp-utility-master/img/ele_update_zigbee.png
inflating: elelabs-zigbee-ezsp-utility-master/img/logo.jpg
inflating: elelabs-zigbee-ezsp-utility-master/img/probe_btl.png
inflating: elelabs-zigbee-ezsp-utility-master/img/probe_thread.png
inflating: elelabs-zigbee-ezsp-utility-master/img/probe_zigbee.png
inflating: elelabs-zigbee-ezsp-utility-master/img/restart_btl.png
inflating: elelabs-zigbee-ezsp-utility-master/img/restart_nrml.png
extracting: elelabs-zigbee-ezsp-utility-master/requirements.txt
Requirement already satisfied: setuptools in /usr/local/lib/python3.9/dist-packages (69.5.0)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Requirement already satisfied: wheel in /usr/lib/python3/dist-packages (0.34.2)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Requirement already satisfied: pyserial==3.4 in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 1)) (3.4)
Requirement already satisfied: xmodem==0.4.6 in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 2)) (0.4.6)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Flash device...
2024/05/15 10:15:46 Elelabs_EzspFwUtility:   Elelabs Zigbee adapter detected:
2024/05/15 10:15:46 Elelabs_EzspFwUtility:   Adapter: ELR023
2024/05/15 10:15:46 Elelabs_EzspFwUtility:   Firmware: 6.10.3-41
2024/05/15 10:15:46 Elelabs_EzspFwUtility:   EZSP v8
2024/05/15 10:15:46 Elelabs_EzspFwUtility:   Launch in bootloader mode
2024/05/15 10:15:55 Elelabs_EzspFwUtility:   EZSP adapter in bootloader mode detected:
2024/05/15 10:15:55 Elelabs_EzspFwUtility:   Gecko Bootloader v1.A.0
2024/05/15 10:15:56 Elelabs_EzspFwUtility:   Successfully restarted into X-MODEM mode! Starting upload of the new firmware... DO NOT INTERRUPT(!)
2024/05/15 10:16:37 Elelabs_EzspFwUtility:   Firmware upload complete
2024/05/15 10:16:37 Elelabs_EzspFwUtility:   Rebooting NCP...
2024/05/15 10:16:44 Elelabs_EzspFwUtility:   Elelabs Zigbee adapter detected:
2024/05/15 10:16:44 Elelabs_EzspFwUtility:   Adapter: ELR023
2024/05/15 10:16:44 Elelabs_EzspFwUtility:   Firmware: 6.10.3-41
2024/05/15 10:16:44 Elelabs_EzspFwUtility:   EZSP v8
.....
.....
.....
.....
.....
.....
.....
.....
.....
.....
.....
.....
.....
.....
.....
.....
.....
.....
Probe device...
2024/05/15 10:16:46 Elelabs_EzspFwUtility:   Elelabs Zigbee adapter detected:
2024/05/15 10:16:46 Elelabs_EzspFwUtility:   Adapter: ELR023
2024/05/15 10:16:46 Elelabs_EzspFwUtility:   Firmware: 6.10.3-41
2024/05/15 10:16:46 Elelabs_EzspFwUtility:   EZSP v8
Clean source...
Task done
[2024-05-15 10:16:48] ALERT  : Fin de la mise à jour du firmware de la clef

Pour info

Loic a regardé mais n’a pas eu plus de succès.

J’ai débranché la carte sur le GPIO pour être sur du reset :sweat_smile:
Sauvegarde d’y a deux jours sans plus d’effet
Réinstallation de Zigbeelinker et test OK :ok:
Problème materiel supprimé comme ça

Passage en BETA de jeezigbee sans effet
Suppression puis réinstallation, de nouveau OK

Mais plus aucun périphérique … Environ 70 que j’avais réinclu et tout refait il y a un peu plus d’un mois car zigbeelinker ne fonctionnait plus , ça me gave … :rage: :face_with_symbols_over_mouth:

J’ai remis ma sauvegarde de cette nuit pour le moment. En espérant trouvé une solution

Bonjour,
J’avais noté ça dans un coin, peut-être que ça se tente sur la nouvelle install où tu ne retrouves pas tes équipements. Comme de toute façon tu as une sauvegarde qui fonctionne. :man_shrugging:
En sauvegardant par l’editeur de fichier ce rep data de ta sauvegarde et en le remettant sur la nouvelle install

le dossier /var/www/html/plugins/zigbee2mqtt/data
contient les équipements 
replacer les fichiers dans ce dossier uniquement
relances le démon et tu retrouveras tout.

Pour le plugin zigbeelinker :slight_smile:

Le modules sont ici dans database.db et la config dans configuration.yaml

image

Bah c’était marqué zigbee2mqtt et comme jeezigbee s’appuie aussi dessus, j’aurais pensé naïvement que c’était applicable. Bon tant pis :disappointed_relieved:
Merci :ok_hand:

Tu y étais presque :kissing_heart:

le dossier /var/www/html/plugins/z2m/data

:smile: on est perdu avec toute cette homogénéité.
A la base j’ai bien compris quand même ? Les 2 plugins s’appuient bien sur le même moteur z2m ou zigbee2mqtt, mais ils ne le mettent pas à la même place et sous le même nom ?
C’est pour comprendre pour l’avenir …

1 « J'aime »

le plugin-z2m et le plugin-zigbeelinker (qui porte le joli nom de zigbee2mqtt) utilisent tous les 2 la librairie Zigbee2MQTT mais les datas ne sont pas dans le même répertoire pour l’un ou l’autre plugin .

/var/www/html/plugins/zigbee2mqtt → répertoire du plugin zigbeelinker
/var/www/html/plugins/z2m → répertoire du plugin jeezigbee

qui ont chacun leurs propres sous répertoires.

1 « J'aime »

Merci les gars, mais cela fonctionne pour les deux plugins ?

1 « J'aime »

@rennais35000 et @Furaxworld

L’erreur est dans le database je pense car quand je remet les 2 dans le répertoire, je repars dans le meme problème

Je remets les 2 quoi?
Possible d’envoyer le fichier database?

Oui si je remet la database et le fichier de config. De nouveau non opérationnel donc surement un l’erreur
Oui ce soir en rentrant du taf