Bonjour,
J’essaye d’installer jeedom dans un docker avec le plugin zwave js et mqtt manager.
Depuis le début j’ai l’erreur ECONNREFUSED 127.0.0.1:8883 avec le plugin mqtt manager.
J’ai tenté pas mal de solutions trouvées sur le forum mais sans succès.
J’ai donc refait un tout nouveau container jeedom avec uniquement le plugin mqtt manager histoire de partir sur une base propre.
l’installation semble bien se dérouler :
+ 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 Hit:1 http://deb.debian.org/debian bullseye InRelease Hit:2 http://deb.debian.org/debian-security bullseye-security InRelease Hit:3 http://deb.debian.org/debian bullseye-updates InRelease Hit:4 https://deb.nodesource.com/node_18.x nodistro InRelease Reading package lists... Reading package lists... Building dependency tree... Reading state information... apt-utils is already the newest version (2.2.4). build-essential is already the newest version (12.9). git is already the newest version (1:2.30.2-1+deb11u2). lsb-release is already the newest version (11.1.0). 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. [Check Version NodeJS actuelle : v18.19.1 : [ **OK** ] [Check Prefix : /usr and sudo prefix : /usr and www-data prefix : /usr : [ **OK** ] + 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://deb.debian.org/debian bullseye InRelease Hit:2 http://deb.debian.org/debian-security bullseye-security InRelease Hit:3 http://deb.debian.org/debian bullseye-updates InRelease Hit:4 https://deb.nodesource.com/node_18.x nodistro InRelease Reading package lists... Reading package lists... Building dependency tree... Reading state information... apt-utils is already the newest version (2.2.4). build-essential is already the newest version (12.9). git is already the newest version (1:2.30.2-1+deb11u2). lsb-release is already the newest version (11.1.0). 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. [Check Version NodeJS actuelle : v18.19.1 : [ **OK** ] [Check Prefix : /usr and sudo prefix : /usr and www-data prefix : /usr : [ **OK** ] + echo 4 + cd /var/www/html/core/class/../../plugins/mqtt2/resources/mqtt2d + rm -rf node_modules + sudo npm install added 117 packages, and audited 118 packages in 5s 19 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 + echo 6 + rm /tmp/jeedom_install_in_progress_mqtt2 + echo '*******************End of package installation******************' *******************End of package installation******************
ensuite je suis bien en broker local
et la conf mosquitto est :
per_listener_settings true
listener 1883
persistence false
allow_anonymous false
password_file /var/www/html/plugins/mqtt2/core/class/../../data/passwords
listener 8883
persistence false
password_file /var/www/html/plugins/mqtt2/core/class/../../data/passwords
allow_anonymous false
cafile /var/www/html/plugins/mqtt2/core/class/../../data/ssl/ca.crt
certfile /var/www/html/plugins/mqtt2/core/class/../../data/ssl/mosquitto.crt
keyfile /var/www/html/plugins/mqtt2/core/class/../../data/ssl/mosquitto.key
require_certificate true
mais je vois que Etat Broker Mosquitto = NOK
j’ai réinstallé et redémarré plusieurs fois, mais j’ai toujours l’erreur suivante
Tue, 12 Mar 2024 17:19:35 GMT body-parser deprecated undefined extended: provide extended option at jeedom/jeedom.js:168:31
[2024-03-12 17:19:35]ERROR : Error on connection to mqtt server : Error: connect ECONNREFUSED 127.0.0.1:8883
au cas où voilà mon docker-compse
services:
jeedom:
container_name: "jeedom"
image: jeedom/jeedom:latest
volumes:
- /srv/.../http:/var/www/html
- /srv/.../db:/var/lib/mysql
devices:
- /dev/ttyACM0:/dev/ttyACM0
tmpfs:
- /tmp/jeedom
ports:
- 40080:80
restart: always
network_mode: bridge
healthcheck:
test: ["CMD", "curl", "-fs", "-S", "--max-time", "2", "http://localhost:80"]
interval: 30s
timeout: 10s
retries: 5
si quelqu’un peut m’aider à trouver mes erreurs d’avance un grand merci