Le service Zigbee2MQTT arrêté après changement d'IP

Bonjour à tous,

Voici mon problème.
J’ai le plugin zigbeelinker qui tourne depuis quelques temps maintenant et qui ne m’a pas -trop- donné de problème. Tout fonctionnait parfaitement.

Aujourd’hui, je mets en place un routeur wifi, l’adresse IP de mon jeedom à donc été modifiée.
La nouvelle adresse IP (192.168.0.109) est bien répercutée dans les différents paramètres du plugin et dans les client MQTT


Le problème : Le service Zigbee2MQTT est arrêté et je n’arrive pas à me connecter à l’interface de Zigbee2MQTT .
Je n’avait pas ce problème avant.

J’ai essayé de réparer Zigbee2MQTT depuis la page de configuration du plugin et aussi relancer les dépendances, le demon et même redémarrer Jeedom.

Là je seche, je ne sais plus trop quoi faire.

Merci pour votre aide.

Je vois que beaucoup ont des problèmes avec Zigbee2MQTT.
Mon changement d’adresse IP n’est p-e pas mise en cause.

Info complémentaire : j’ai la version 2021-07-21 01:02:22 du plugin

#######################################################
#    INSTALL : Zigbee2mqtt                            #
#######################################################
#######################################################
##### apt-get update in progress
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Hit:3 https://deb.nodesource.com/node_14.x buster InRelease
Fetched 15.0 kB in 2s (6046 B/s)
Reading package lists...
#######################################################
##### Install or update Git
Reading package lists...
Building dependency tree...
Reading state information...
g++ is already the newest version (4:8.3.0-1+rpi2).
gcc is already the newest version (4:8.3.0-1+rpi2).
git is already the newest version (1:2.20.1-2+deb10u3).
make is already the newest version (4.2.1-1.2).
0 upgraded, 0 newly installed, 0 to remove and 123 not upgraded.
#######################################################
##### Install or update NodeJs
NodeJs 14 already installed : Nothing to do !
#######################################################
#    INSTALLING : Mosquitto (server)                  #
#######################################################
Reading package lists...
Building dependency tree...
Reading state information...
mosquitto is already the newest version (1.5.7-1+deb10u1).
0 upgraded, 0 newly installed, 0 to remove and 123 not upgraded.
#######################################################
#    INSTALLING : Mosquitto for Php                   #
#######################################################
Mosquitto for Php is already installed, nothing to do
#######################################################
##### Install Socat
Socat is already installed, nothing to do
#######################################################
##### Install yaml php and restart apache
Yaml is already installed, nothing to do
#######################################################
#####    Stopping Zigbee2mqtt deamon                  #
#######################################################
##### Update : Download update from Zigbee2mqtt git
##### up to date
#######################################################
##### Configure deamon and start it
Created symlink /etc/systemd/system/multi-user.target.wants/zigbee2mqtt.service -> /etc/systemd/system/zigbee2mqtt.service.
#######################################################
#                         END                         #
#######################################################

Salut,

En effet j’ai aussi ouvert un sujet. Depuis hier soir impossible de relancer après mise à jour.

Bonsoir que donne ```
sudo systemctl status zigbee2mqtt

en console ssh si vous etes sur rpi ?

1 « J'aime »

Voici le retour de la commande

jeedom@jeedom:~ $ sudo systemctl status zigbee2mqtt
● zigbee2mqtt.service - zigbee2mqtt
   Loaded: loaded (/etc/systemd/system/zigbee2mqtt.service; disabled; vendor preset: 
   Active: inactive (dead)
lines 1-3/3 (END)

EDIT

Voici le log du mod debug

> zigbee2mqtt@1.21.0 start /opt/zigbee2mqtt
> node index.js
Building Zigbee2MQTT... (initial build), failed
(node:3451) UnhandledPromiseRejectionWarning: Error: Command failed: npm run build
sh: 1: tsc: not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! zigbee2mqtt@1.21.0 build: `tsc && node index.js writehash`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the zigbee2mqtt@1.21.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-08-04T12_06_22_201Z-debug.log
at ChildProcess.exithandler (child_process.js:308:12)
at ChildProcess.emit (events.js:315:20)
at maybeClose (internal/child_process.js:1048:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:3451) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:3451) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Hello,
essayes de faire cette partie de la FAQ et mettre le résultat ici stp :
https://www.pasteck.com/plugin-zigbeelinker-jeedom-faq/#Debugger_le_demarrage_de_Zigbee2MQTT

J’espère avoir fait la bonne manip


jeedom@jeedom:~ $ cd /opt/zigbee2mqtt && sudo ZIGBEE2MQTT_DATA="/var/www/html/plugins/zigbee2mqtt/data/zigbee2mqtt/" npm start

> zigbee2mqtt@1.21.0-dev start /opt/zigbee2mqtt
> node index.js

Building Zigbee2MQTT... (initial build), failed
(node:15332) UnhandledPromiseRejectionWarning: Error: Command failed: npm run build
sh: 1: tsc: not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! zigbee2mqtt@1.21.0-dev build: `tsc && node index.js writehash`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the zigbee2mqtt@1.21.0-dev build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-08-04T17_24_35_042Z-debug.log

    at ChildProcess.exithandler (child_process.js:308:12)
    at ChildProcess.emit (events.js:315:20)
    at maybeClose (internal/child_process.js:1048:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:15332) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:15332) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
jeedom@jeedom:/opt/zigbee2mqtt $ 

Réponses à suivre ici : Problème démarrage service zigbee2mqtt - #6 par MrGreen