Démon MQTT ne se lance pas - Problème certificat

Hello à tous,
Je me permet ce petit message car j’ai un souci pour lancer le démon mqtt, je précise que je suis débutant :slight_smile:
D’après le log mqtt2d, il y aurai un souci au niveau d’un certificat :

reason: ‹ no start line ›,
code: ‹ ERR_OSSL_PEM_NO_START_LINE ›

ca.crt a bien les balises -----BEGIN CERTIFICATE----- et -----END CERTIFICATE-----, mais client.crt est vide, et je me demandais si le souci ne venait pas de là…

Merci à vous pour votre aide :slight_smile:

Configuration du plugin :

Log mqtt2d :


Informations Jeedom Luna

Core : 4.4.19 (master)
DNS Jeedom Luna : oui

Plugin : MQTT Manager
Version : 2024-10-07 13:45:55 (stable)
Statut Démon : Stoppé - (2024-10-26 21:15:03)

Bonjour

On peut voir la page santé de votre Jeedom ?
Ainsi que la page de l’onglet réseaux de la configuration ?

Salut

Pour les logs, merci de faire un copié-collé (et non une image) en utilisant le bouton </> Texte préformaté pour le formatage. C’est plus lisible et évite que le log soit tronqué.

Merci

Antoine

Hello, les voici :

Page santé :

Matériel	Luna	Système à jour	OK
Cron actif	OK	Scénario actif	OK
Démarré	OK 2024-10-26 19:51:04	Date système (dernière heure enregistrée)	OK 2024-10-27 08:09:53 (2024-10-27 07:32:02)
Droits sudo	OK	Version Jeedom	4.4.19
Version OS	debian 11.11	Version PHP	7.4.33
Nombre de processus Apache	13	Version OS	Linux JeedomLuna 4.4.194 #101 SMP Wed Sep 14 01:49:23 UTC 2022 aarch64 GNU/Linux [11.11]
Version database	10.5.26-MariaDB-0+deb11u2	Espace disque libre	63 %
Connexion active/max/autorisée	8/18/151	Taille base de données	2.05 MB
Espace disque libre tmp	100 %	Mémoire disponible	87 % (Total 1958 Mo)
Mémoire suffisante	0	Erreur I/O	0
Swap disponible	100 % (Total 512 Mo)	Swapiness	10 %
Charge	0.12 - 0.18 - 0.13	Configuration réseau interne	OK
Configuration réseau externe	OK	Node	v20.18.0
Python 3	Python 3.9.2	Persistance du cache	OK (2024-10-27 08:00:05)
Apache private tmp	OK	Plugins 	3 NOK
 Santé MQTT Manager  1 erreurs
Dépendances	OK
Configuration démon	OK
Statut démon	NOK
Santé JeeZigbee   /dev/ttyLuna-Zigbee 2 erreurs
Dépendances	OK
Configuration démon 	NOK
Statut démon	NOK

Onglet réseaux :

Accès interne
Gestion automatiqueDésactiver 
Interface
Automatique
Adresse 

HTTP
://
192.168.1.22
:
80
/
Interfaces 
Nom	IP	MAC
lo	127.0.0.1	00:00:00:00:00:00
dummy0		8e:cb:34:2d:f8:56
wlan0		b2:1a:df:4d:50:e9
wlan1		2a:b3:a0:c2:a7:4e
eth0	192.168.1.22	30:ae:7b:ea:c2:dc
tun0	10.13.38.198	
Accès externe
Gestion automatiqueDésactiver 
Adresse

HTTP
://
:
80
/
DNS MarketActiver DNS Jeedom Luna
Mode
Openvpn (standard)
Démarré : https://05e8bb60.eu.jeedom.link  
Accès Docker
Masque IP locales 
127.0.0.1;192.168.*.*;10.*.*.*;172.*.*.*
Proxy Market
Activer le proxy 
Adresse du proxy
Port du proxy
Nom d'utilisateur
Mot de passe

Salut, ça marche !

Là, tu peux mettre une image, ce n’est pas un log :wink:

Oups ok, désolé j’avais pas saisi :sweat_smile:

Et je remets le log mqtt2d au bon format :

2068|node:internal/tls/secure-context:70
2069|context.setCert(cert);
2070|^
2071|Error: error:0480006C:PEM routines::no start line
2072|at node:internal/tls/secure-context:70:13
2073|at Array.forEach (<anonymous>)
2074|at setCerts (node:internal/tls/secure-context:68:3)
2075|at configSecureContext (node:internal/tls/secure-context:191:5)
2076|at Object.createSecureContext (node:_tls_common:114:3)
2077|at Object.connect (node:_tls_wrap:1766:48)
2078|at Object.buildBuilder (/var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/mqtt/lib/connect/tls.js:20:26)
2079|at MqttClient.wrapper [as streamBuilder] (/var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/mqtt/lib/connect/index.js:155:36)
2080|at MqttClient._setupStream (/var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/mqtt/lib/client.js:407:22)
2081|at new MqttClient (/var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/mqtt/lib/client.js:387:8) {
2082|library: 'PEM routines',
2083|reason: 'no start line',
2084|code: 'ERR_OSSL_PEM_NO_START_LINE'
2085|}
2086|Node.js v20.18.0

Bonjour,

Il faudrait les logs d’installation des dépendances de mqtt

ATTENTION : vous avez 2 plugins zigbee, les 2 ne peuvent tourner en même temps !
C’est l’un ou l’autre.

Merci pour la réponse rapide !

Ok je viens de désactiver le plugin Zigbee, je n’ai plus que JeeZigbee.

Voici le log d’installation de mqtt :

0000|+ echo '*******************Begin of package installation******************'
0001|*******************Begin of package installation******************
0002|+ touch /tmp/jeedom_install_in_progress_mqtt2
0003|+ echo 1
0004|+ echo 2
0005|+ sudo killall apt apt-get unattended-upgr
0006|apt: no process found
0007|apt-get: no process found
0008|unattended-upgr: no process found
0009|+ sudo rm /var/lib/apt/lists/lock
0010|+ sudo rm /var/cache/apt/archives/lock
0011|+ sudo rm /var/lib/dpkg/lock /var/lib/dpkg/lock-frontend
0012|+ sudo sudo dpkg --configure -a --force-confdef
0013|+ sudo apt update
0014|WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
0015|Hit:1 https://deb.debian.org/debian bullseye InRelease
0016|Hit:2 https://deb.debian.org/debian-security bullseye-security InRelease
0017|Hit:3 https://deb.debian.org/debian bullseye-updates InRelease
0018|Hit:4 https://deb.debian.org/debian bullseye-backports InRelease
0019|Hit:5 https://deb.nodesource.com/node_18.x nodistro InRelease
0020|Reading package lists...
0021|Building dependency tree...
0022|Reading state information...
0023|1 package can be upgraded. Run 'apt list --upgradable' to see it.
0024|+ echo 3
0025|+ sudo chmod +x /var/www/html/core/class/../../resources/install_nodejs.sh
0026|+ sudo /var/www/html/core/class/../../resources/install_nodejs.sh
0027|Hit:1 https://deb.debian.org/debian bullseye InRelease
0028|Hit:2 https://deb.debian.org/debian-security bullseye-security InRelease
0029|Hit:3 https://deb.debian.org/debian bullseye-updates InRelease
0030|Hit:4 https://deb.debian.org/debian bullseye-backports InRelease
0031|Hit:5 https://deb.nodesource.com/node_18.x nodistro InRelease
0032|Reading package lists...
0033|Reading package lists...
0034|Building dependency tree...
0035|Reading state information...
0036|apt-utils is already the newest version (2.2.4).
0037|build-essential is already the newest version (12.9).
0038|lsb-release is already the newest version (11.1.0).
0039|git is already the newest version (1:2.30.2-1+deb11u3).
0040|0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
0041|[Check Version NodeJS actuelle : v18.20.4 : [  OK  ]
0042|[Check Prefix : /usr and sudo prefix : /usr and www-data prefix : /usr : [  OK  ]
0043|+ echo 4
0044|+ sudo chmod +x /var/www/html/core/class/../../resources/install_nodejs.sh
0045|+ sudo /var/www/html/core/class/../../resources/install_nodejs.sh
0046|Hit:1 https://deb.debian.org/debian bullseye InRelease
0047|Hit:2 https://deb.debian.org/debian-security bullseye-security InRelease
0048|Hit:3 https://deb.debian.org/debian bullseye-updates InRelease
0049|Hit:4 https://deb.debian.org/debian bullseye-backports InRelease
0050|Hit:5 https://deb.nodesource.com/node_18.x nodistro InRelease
0051|Reading package lists...
0052|Reading package lists...
0053|Building dependency tree...
0054|Reading state information...
0055|apt-utils is already the newest version (2.2.4).
0056|build-essential is already the newest version (12.9).
0057|lsb-release is already the newest version (11.1.0).
0058|git is already the newest version (1:2.30.2-1+deb11u3).
0059|0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
0060|[Check Version NodeJS actuelle : v18.20.4 : [  OK  ]
0061|[Check Prefix : /usr and sudo prefix : /usr and www-data prefix : /usr : [  OK  ]
0062|+ echo 5
0063|+ sudo chmod +x /var/www/html/core/class/../../resources/install_nodejs.sh
0064|+ sudo /var/www/html/core/class/../../resources/install_nodejs.sh
0065|Hit:1 https://deb.debian.org/debian bullseye InRelease
0066|Hit:2 https://deb.debian.org/debian-security bullseye-security InRelease
0067|Hit:3 https://deb.debian.org/debian bullseye-updates InRelease
0068|Hit:4 https://deb.debian.org/debian bullseye-backports InRelease
0069|Hit:5 https://deb.nodesource.com/node_18.x nodistro InRelease
0070|Reading package lists...
0071|E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 8076 (apt)
0072|E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
0073|[Check Version NodeJS actuelle : v18.20.4 : [  OK  ]
0074|[Check Prefix : /usr and sudo prefix : /usr and www-data prefix : /usr : [  OK  ]
0075|+ echo 6
0076|+ sudo chmod +x /var/www/html/core/class/../../resources/install_composer.sh
0077|+ sudo /var/www/html/core/class/../../resources/install_composer.sh
0078|Begin installation of composer
0079|--2024-10-26 16:08:23--  https://getcomposer.org/installer
0080|Resolving getcomposer.org (getcomposer.org)... 2001:41d0:302:1100::8:104f, 54.36.53.46
0081|Connecting to getcomposer.org (getcomposer.org)|2001:41d0:302:1100::8:104f|:443... connected.
0082|HTTP request sent, awaiting response... 200 OK
0083|Length: 58444 (57K) [application/octet-stream]
0084|Saving to: 'composer-setup.php'
0085|0K .......... .......... .......... .......... .......... 87% 2.48M 0s
0086|50K .......                                               100% 8.80M=0.02s
0087|2024-10-26 16:08:23 (2.72 MB/s) - 'composer-setup.php' saved [58444/58444]
0088|All settings correct for using Composer
0089|Downloading...
0090|Composer (version 2.8.1) successfully installed to: /var/www/html/core/ajax/composer.phar
0091|Use it: php composer.phar
0092|End installation of composer
0093|+ echo 7
0094|+ cd /var/www/html/core/class/../../plugins/mqtt2/resources/mqtt2d
0095|+ rm -rf node_modules
0096|+ sudo NODE_OPTIONS=--dns-result-order=ipv4first npm install
0097|npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
0098|npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
0099|added 118 packages, and audited 119 packages in 14s
0100|20 packages are looking for funding
0101|run `npm fund` for details
0102|found 0 vulnerabilities
0103|+ sudo chown -R www-data:www-data jeedom mqtt2d.js node_modules package-lock.json package.json
0104|+ echo 8
0105|+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end mqtt2
0106|Generating RSA private key, 2048 bit long modulus (2 primes)
0107|.............+++++
0108|..+++++
0109|e is 65537 (0x010001)
0110|Generating RSA private key, 2048 bit long modulus (2 primes)
0111|.........................................................................................+++++
0112|........+++++
0113|e is 65537 (0x010001)
0114|Signature ok
0115|subject=C = FR, ST = Paris, L = Paris, O = jeedom, CN = jeedom-mosquitto
0116|Getting CA Private Key
0117|chmod: cannot access '/var/www/html/plugins/mqtt2/core/class/../../data/mosquitto.conf': No such file or directory
0118|Synchronizing state of mosquitto.service with SysV service script with /lib/systemd/systemd-sysv-install.
0119|Executing: /lib/systemd/systemd-sysv-install enable mosquitto
0120|+ echo 9
0121|+ rm /tmp/jeedom_install_in_progress_mqtt2
0122|+ echo '*******************End of package installation******************'
0123|*******************End of package installation******************

Bonjour
Va dans la configuration de jeedom onglet os/db puis l’administrateur de fichier ensuite dans plugins/mqtt/data et de mémoire le dossier ssl tu le supprimes et relance le démon.

Sinon plus simple supprimer le plugin et le remettre.

1 « J'aime »

ca c’est dans les logs des dépendances de mqtt

et ce qui suit la page santé jeedom
image

:thinking:

Bonjour,
Super ça fonctionne :blush:
Merci beaucoup à tous !