J’ai toujours le message message d’erreur me demandant d’installer mosquitto (j’ai également essayé de désinstaller mosquitto et cela me dit qu’il n’est pas trouvé :
Pour le log d’installation, j’ai tenté de le trouver et je vois ceci :
+ echo '*******************Begin of package installation******************'
*******************Begin of package installation******************
+ touch /tmp/jeedom_install_in_progress_mqtt2
+ echo 1
+ echo 2
+ sudo chmod +x /var/www/html/core/class/../../resources/install_nodejs.sh
+ sudo /var/www/html/core/class/../../resources/install_nodejs.sh
Get:1 http://security.debian.org buster/updates InRelease [34.8 kB]
Hit:2 http://deb.debian.org/debian buster InRelease
Hit:3 http://deb.debian.org/debian buster-updates InRelease
Hit:4 http://deb.debian.org/debian buster-backports InRelease
Hit:5 https://deb.nodesource.com/node_16.x buster InRelease
Hit:6 http://armbian.hosthatch.com/apt buster InRelease
Fetched 34.8 kB in 3s (13.5 kB/s)
Reading package lists...
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
[Check Version NodeJS actuelle : v16.15.1 : [ OK ]
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
[Check Prefix : /usr and sudo prefix : /usr and www-data prefix : : [ KO ]
Reset prefix (/usr) pour npm root
+ 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://security.debian.org buster/updates InRelease
Hit:2 http://deb.debian.org/debian buster InRelease
Hit:3 http://deb.debian.org/debian buster-updates InRelease
Hit:4 http://deb.debian.org/debian buster-backports InRelease
Hit:5 https://deb.nodesource.com/node_16.x buster InRelease
Hit:6 http://mirrors.xtom.de/armbian buster InRelease
Reading package lists...
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
[Check Version NodeJS actuelle : v16.15.1 : [ OK ]
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
[Check Prefix : /usr and sudo prefix : /usr and www-data prefix : : [ KO ]
Reset prefix (/usr) pour npm root
+ echo 4
+ cd /var/www/html/core/class/../../plugins/mqtt2/resources/mqtt2d
+ rm -rf node_modules
+ sudo npm install
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
added 147 packages, and audited 148 packages in 11s
13 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
+ chown -R www-data:www-data jeedom mqtt2d.js node_modules package-lock.json package.json
+ echo 5
+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end mqtt2
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.
Generating RSA private key, 2048 bit long modulus (2 primes)
..........................................................+++++
.+++++
e is 65537 (0x010001)
Generating RSA private key, 2048 bit long modulus (2 primes)
...........................................................+++++
....+++++
e is 65537 (0x010001)
Signature ok
subject=C = FR, ST = Paris, L = Paris, O = jeedom, CN = jeedom-mosquitto
Getting CA Private Key
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******************
Merci beaucoup, cela a bien résolu mon soucis ! Je ne savais pas qu’il était possible d’exécuter des commandes depuis l’interface web et je n’avais jamais réussi à me connecter en ssh.