Réinstallation z2m, mqtt2 et mosquitto après crash

Bonjour, suite à un défaut d’alimentation électrique, j’ai cramé un pi3b+ ainsi que sa carte electronique ssd

Jeedom 4.3.20
Z2M 2023-11-07 01:02:35

bon pas de soucis normalement, j’ai du matos de spare et des sauvegardes quotidiennes

je reinstalle, le pi, refait l’install de jeedom et je recupère ma sauvegarde

Par contre, mqqtmanager ne démarre pas et m’indique « veuillez installer mosquitto »

Est-ce que vous savez si c’est normal ?

Hint: ça râle dans mes logs « Mqtt2-packages »

Merci d’avance

+ echo '*******************Begin of package installation******************'
*******************Begin of package installation******************
+ touch /tmp/jeedom_install_in_progress_mqtt2
+ echo 1
+ echo 2
+ sudo apt update
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
E: Could not get lock /var/lib/apt/lists/lock. It is held by process 11947 (apt)
E: Unable to lock directory /var/lib/apt/lists/
+ echo 3
+ sudo chmod +x /var/www/html/core/class/../../resources/install_nodejs.sh
+ sudo /var/www/html/core/class/../../resources/install_nodejs.sh
Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:3 https://deb.nodesource.com/node_18.x nodistro InRelease
Reading package lists...
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
[Check Version NodeJS actuelle : Aucune : [  KO  ]
Installation de NodeJS 18
Utilisation du dépot officiel
deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main
Hit:1 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Hit:3 https://deb.nodesource.com/node_18.x nodistro InRelease
Reading package lists...
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
/var/www/html/core/class/../../resources/install_nodejs.sh: line 150: nodejs: command not found
[Check Version NodeJS après install :  : [  KO  ] -> relancez les dépendances
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
sudo: npm: command not found
+ echo 4
+ sudo chmod +x /var/www/html/core/class/../../resources/install_nodejs.sh
+ sudo /var/www/html/core/class/../../resources/install_nodejs.sh
Hit:1 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Hit:3 https://deb.nodesource.com/node_18.x nodistro InRelease
Reading package lists...
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
[Check Version NodeJS actuelle : Aucune : [  KO  ]
Installation de NodeJS 18
Utilisation du dépot officiel
deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main
Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:3 https://deb.nodesource.com/node_18.x nodistro InRelease
Reading package lists...
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
/var/www/html/core/class/../../resources/install_nodejs.sh: line 150: nodejs: command not found
[Check Version NodeJS après install :  : [  KO  ] -> relancez les dépendances
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
sudo: npm: command not found
+ echo 5
+ sudo chmod +x /var/www/html/core/class/../../resources/install_nodejs.sh
+ sudo /var/www/html/core/class/../../resources/install_nodejs.sh
Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:3 https://deb.nodesource.com/node_18.x nodistro InRelease
Reading package lists...
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
[Check Version NodeJS actuelle : Aucune : [  KO  ]
Installation de NodeJS 18
Utilisation du dépot officiel
deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main
Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:3 https://deb.nodesource.com/node_18.x nodistro InRelease
Reading package lists...
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
/var/www/html/core/class/../../resources/install_nodejs.sh: line 150: nodejs: command not found
[Check Version NodeJS après install :  : [  KO  ] -> relancez les dépendances
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
sudo: npm: command not found
+ echo 6
+ cd /var/www/html/core/class/../../plugins/mqtt2/resources/mqtt2d
+ rm -rf node_modules
+ sudo npm install
sudo: npm: command not found
+ chown -R www-data:www-data jeedom mqtt2d.js package.json package-lock.json
+ echo 7
+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end mqtt2
PHP Warning:  fopen(/tmp/jeedom/event_cache_lock): failed to open stream: Permission denied in /var/www/html/core/class/event.class.php on line 32
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
sudo: mosquitto_passwd: command not found
Job for mosquitto.service failed because the control process exited with error code.
See "systemctl status mosquitto.service" and "journalctl -xe" for details.
+ rm /tmp/jeedom_install_in_progress_mqtt2
+ echo '*******************End of package installation******************'
*******************End of package installation******************

Mettez déjà à jour votre core

EN 4.3.21

  • Lancement forcé à chaque mise à jour du script de verification de nodejs/npm pour eviter des soucis d’installation de certain plugin (zwavejs, jeezigbee…)
sudo apt-get purge mosquitto mosquitto-clients
sudo apt-get install mosquitto mosquitto-clients

Y aura peut être cela aussi à vérifier par la suite

Merci!
en effet les logs c’est précieux
après le

sudo dpkg --configure -a

j’ai relancé les dépendances et il a tout bien remouliné, y compris l’installation de nodejs 18

et au redémarrage

[2024-02-09 23:40:20]WARNING : Service mosquitto non lancé, je lance une installation

Bref ça marche

et j’en profite pour passer en 4.3.22

merci bcp pour vos conseils

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.