Client MQTT est arrété

Salut,

J’utilise le plugin-zigbee2mqtt plugin-zigbeelinker en mode client seulement.

J’ai mosquitto et zigbee2mqtt en container installés sur une VM dédié à docker.

Le tout communique bien la plupart du temps mais régulièrement j’ai le plugin qui se coupe puis se relance au bout de 2min. Le lien entre zigbee2mqtt et mosquitto ne se coupe pas.

Aucune idée de ce qu’il faut que je cherche .

J’utilise aussi le plugin jMQTT pour récupérer les infos de mes shelly et de mon aspirateur vacuum et aucune coupure sur celui-ci.

Si quelqu’un à déjà rencontré ce genre de soucis, help me :grin:

Configuration :

le log du plugin (c’est comme cela 2 à 3 fois par heure) :

[2024-01-25 21:33:53] ERROR  : ##### Le service Client MQTT "zigbee" est arrêté #####
[2024-01-25 21:35:54] INFO  : ##### Démarrage du service Client MQTT (zigbee) #####
[2024-01-25 21:35:54] INFO  : ##### Le service Client MQTT a démarré (zigbee) #####
[2024-01-25 21:35:54] INFO  : [Maison][zigbee] : Client MQTT subscribe : 1
[2024-01-25 21:35:54] INFO  : ##### Le client MQTT zigbee a reçu un premier message de Zigbee2MQTT #####
[2024-01-25 21:35:55] INFO  : ##### Démarrage du service Client MQTT (zigbee) terminé avec succès #####
[2024-01-25 21:36:05] INFO  : ##### Le service Client MQTT "zigbee" a démarré #####
[2024-01-25 21:41:24] ERROR  : ##### Le service Client MQTT "zigbee" est arrêté #####
[2024-01-25 21:43:25] INFO  : ##### Démarrage du service Client MQTT (zigbee) #####
[2024-01-25 21:43:25] INFO  : ##### Le service Client MQTT a démarré (zigbee) #####
[2024-01-25 21:43:25] INFO  : [Maison][zigbee] : Client MQTT subscribe : 1
[2024-01-25 21:43:25] INFO  : ##### Le client MQTT zigbee a reçu un premier message de Zigbee2MQTT #####
[2024-01-25 21:43:26] INFO  : ##### Démarrage du service Client MQTT (zigbee) terminé avec succès #####
[2024-01-25 21:43:36] INFO  : ##### Le service Client MQTT "zigbee" a démarré #####

Le log du container mosquitto :

1706213275: Saving in-memory database to /mosquitto/data/mosquitto.db.
1706214827: Client jeedomzb1479 disconnected.
1706214954: New connection from 192.168.2.50:35434 on port 1883.
1706214954: New client connected from 192.168.2.50:35434 as jeedomzb1479 (p2, c1, k60).
1706215076: Saving in-memory database to /mosquitto/data/mosquitto.db.
1706215282: Client jeedomzb1479 disconnected.
1706215405: New connection from 192.168.2.50:37686 on port 1883.
1706215405: New client connected from 192.168.2.50:37686 as jeedomzb1479 (p2, c1, k60).
1706215661: New connection from 192.168.2.50:38922 on port 1883.
1706215661: Client <unknown> closed its connection.
1706215686: Client jeedomzb1479 disconnected.
1706215767: New connection from 192.168.2.50:39500 on port 1883.
1706215767: Client <unknown> closed its connection.
1706215812: New connection from 192.168.2.50:39738 on port 1883.
1706215812: New client connected from 192.168.2.50:39738 as jeedomzb1479 (p2, c1, k60).
1706215823: New connection from 192.168.2.50:39766 on port 1883.
1706215823: Client <unknown> closed its connection.

Page santé Jeedom :


Mes infos de config :

Core : 4.4.2 (beta)
DNS Jeedom : non

Plugin : ZigbeeLinker
Version : 2024-01-20 01:03:03 (stable)
Statut Démon : Démarré - (2024-01-25 12:51:00)

Tu n’aurais pas 2 clients mqtt avec le même ID

Dans ce cas là, à chaque fois qu’un des 2 se presente, il déconnecte l’autre …
Ca doit typiquement pouvoir arriver si tu clones ton env jeedom de prod sur un env de test en les faisant se connecter tous les 2 vers le même mosquito, ce qui est typiquement ton cas puis que tu gères mosquitto de manière independante.

Norbert

Je n’ai pas de zigbee sur ma VM de test.

Mais vu que je n’avais rien indiqué dans ce champ, ni pour zigbeeLinker, ni pour jMQTT, je viens de le paramétrer et je verrais bien le résultat demain matin.

Merci pour l’info.

Salut

Tu veux dire plugin-zigbeelinker. Plugin-zigbee2mqtt est la première dénomination qui ne doit plus etre employé.

Antoine

Oui, mais j’ai utilisé le bouton assistance pour créer le post :grin:

Zigbee2mqtt étant toujours l’id du plugin, on se comprend ? En plus j’ai mis assez de screen.

Donc hier soir j’ai mis des client id pour les plugins ZigbeeLinker (Jeedom02) et jMQTT (Jeedom01).

Les 2 se sont connecté sans soucis avec les nouveau id et depuis on vois que le seul à se déconnecter c’est ZigbeeLinker.

1706216877: Saving in-memory database to /mosquitto/data/mosquitto.db.
1706218353: Client jeedomzb1479 disconnected.
1706218474: New connection from 192.168.2.50:52874 on port 1883.
1706218474: New client connected from 192.168.2.50:52874 as jeedomzb1479 (p2, c1, k60).
1706218678: Saving in-memory database to /mosquitto/data/mosquitto.db.
1706219121: Client jeedomzb1479 disconnected.
1706219244: New connection from 192.168.2.50:56506 on port 1883.
1706219244: New client connected from 192.168.2.50:56506 as jeedomzb1479 (p2, c1, k60).
1706220479: Saving in-memory database to /mosquitto/data/mosquitto.db.
1706221878: Client jeedomzb1479 disconnected.
1706221994: New connection from 192.168.2.50:41816 on port 1883.
1706221994: New client connected from 192.168.2.50:41816 as jeedomzb1479 (p2, c1, k60).
1706222280: Saving in-memory database to /mosquitto/data/mosquitto.db.
1706223843: Client auto-F8583068-6E3B-9EC2-D863-DA21511BD9EF disconnected.
1706223843: New connection from 192.168.2.50:53967 on port 1883.
1706223843: New client connected from 192.168.2.50:53967 as JeedomJmqtt (p2, c1, k30).
1706223858: Client JeedomJmqtt disconnected.
1706223858: New connection from 192.168.2.50:54285 on port 1883.
1706223858: New client connected from 192.168.2.50:54285 as Jeedom01 (p2, c1, k30).
1706223874: Client jeedomzb1479 closed its connection.
1706223874: New connection from 192.168.2.50:51212 on port 1883.
1706223874: New client connected from 192.168.2.50:51212 as Jeedom02 (p2, c1, k60).
1706224081: Saving in-memory database to /mosquitto/data/mosquitto.db.
1706225090: Client Jeedom02 disconnected.
1706225217: New connection from 192.168.2.50:57598 on port 1883.
1706225217: New client connected from 192.168.2.50:57598 as Jeedom02 (p2, c1, k60).
1706225882: Saving in-memory database to /mosquitto/data/mosquitto.db.
1706225990: Client Jeedom02 disconnected.
1706226108: New connection from 192.168.2.50:33808 on port 1883.
1706226108: New client connected from 192.168.2.50:33808 as Jeedom02 (p2, c1, k60).
1706227683: Saving in-memory database to /mosquitto/data/mosquitto.db.
1706228525: Client Jeedom02 disconnected.
1706228650: New connection from 192.168.2.50:46190 on port 1883.
1706228650: New client connected from 192.168.2.50:46190 as Jeedom02 (p2, c1, k60).
1706229484: Saving in-memory database to /mosquitto/data/mosquitto.db.
1706231285: Saving in-memory database to /mosquitto/data/mosquitto.db.
1706231969: Client Jeedom02 disconnected.
1706232093: New connection from 192.168.2.50:34760 on port 1883.
1706232093: New client connected from 192.168.2.50:34760 as Jeedom02 (p2, c1, k60).
1706233086: Saving in-memory database to /mosquitto/data/mosquitto.db.
1706234887: Saving in-memory database to /mosquitto/data/mosquitto.db.
1706235020: Client mqttjs_bcca87f9 closed its connection.
1706235076: New connection from 192.168.2.194:52788 on port 1883.
1706235076: New client connected from 192.168.2.194:52788 as mqttjs_82f9347d (p2, c1, k60).
1706235444: Client Jeedom02 disconnected.
1706235569: New connection from 192.168.2.50:51744 on port 1883.
1706235569: New client connected from 192.168.2.50:51744 as Jeedom02 (p2, c1, k60).
1706236505: Client Jeedom02 disconnected.
1706236625: New connection from 192.168.2.50:56878 on port 1883.
1706236625: New client connected from 192.168.2.50:56878 as Jeedom02 (p2, c1, k60).
1706236688: Saving in-memory database to /mosquitto/data/mosquitto.db.
1706238414: Client Jeedom02 disconnected.
1706238489: Saving in-memory database to /mosquitto/data/mosquitto.db.
1706238539: New connection from 192.168.2.50:38016 on port 1883.
1706238539: New client connected from 192.168.2.50:38016 as Jeedom02 (p2, c1, k60).
1706238778: Client Jeedom02 disconnected.
1706238903: New connection from 192.168.2.50:39728 on port 1883.
1706238903: New client connected from 192.168.2.50:39728 as Jeedom02 (p2, c1, k60).
1706240290: Saving in-memory database to /mosquitto/data/mosquitto.db.
1706242060: Client Jeedom02 disconnected.
1706242091: Saving in-memory database to /mosquitto/data/mosquitto.db.
1706242180: New connection from 192.168.2.50:55786 on port 1883.
1706242180: New client connected from 192.168.2.50:55786 as Jeedom02 (p2, c1, k60).
1706242314: Client Jeedom02 disconnected.
1706242433: New connection from 192.168.2.50:56956 on port 1883.
1706242433: New client connected from 192.168.2.50:56956 as Jeedom02 (p2, c1, k60).
1706243892: Saving in-memory database to /mosquitto/data/mosquitto.db.
1706245132: Client Jeedom02 disconnected.
1706245249: New connection from 192.168.2.50:42694 on port 1883.
1706245249: New client connected from 192.168.2.50:42694 as Jeedom02 (p2, c1, k60).
1706245693: Saving in-memory database to /mosquitto/data/mosquitto.db.
1706247455: Client Jeedom02 disconnected.
1706247494: Saving in-memory database to /mosquitto/data/mosquitto.db.
1706247581: New connection from 192.168.2.50:53944 on port 1883.
1706247581: New client connected from 192.168.2.50:53944 as Jeedom02 (p2, c1, k60).
1706249203: Client Jeedom02 disconnected.
1706249295: Saving in-memory database to /mosquitto/data/mosquitto.db.
1706249330: New connection from 192.168.2.50:34328 on port 1883.
1706249330: New client connected from 192.168.2.50:34328 as Jeedom02 (p2, c1, k60).
1706251021: Client Jeedom02 disconnected.
1706251096: Saving in-memory database to /mosquitto/data/mosquitto.db.
1706251146: New connection from 192.168.2.50:43172 on port 1883.
1706251146: New client connected from 192.168.2.50:43172 as Jeedom02 (p2, c1, k60).
1706251466: Client Jeedom02 disconnected.
1706251586: New connection from 192.168.2.50:45274 on port 1883.
1706251586: New client connected from 192.168.2.50:45274 as Jeedom02 (p2, c1, k60).
1706251780: Client Jeedom02 disconnected.
1706251905: New connection from 192.168.2.50:46854 on port 1883.
1706251905: New client connected from 192.168.2.50:46854 as Jeedom02 (p2, c1, k60).
1706252897: Saving in-memory database to /mosquitto/data/mosquitto.db.
1706253901: Client Jeedom02 disconnected.
1706254028: New connection from 192.168.2.50:57142 on port 1883.
1706254028: New client connected from 192.168.2.50:57142 as Jeedom02 (p2, c1, k60).
1706254638: Client Jeedom02 disconnected.
1706254698: Saving in-memory database to /mosquitto/data/mosquitto.db.
1706254765: New connection from 192.168.2.50:60820 on port 1883.
1706254765: New client connected from 192.168.2.50:60820 as Jeedom02 (p2, c1, k60).
1706254820: Client Jeedom02 disconnected.
1706254942: New connection from 192.168.2.50:33446 on port 1883.
1706254942: New client connected from 192.168.2.50:33446 as Jeedom02 (p2, c1, k60).

Je viens de remarqué ceci qui est bizzarre :

Log zigbee2mqtt :

3503|[2024-01-26 10:24:42][ERROR] : Erreur sur zigbee2mqtt::deamon_client() : Class &apos;InfluxDB\Client&apos; not found
13963|[2024-01-26 10:27:45][ERROR] : Erreur sur zigbee2mqtt::deamon_client() : Class &apos;InfluxDB\Client&apos; not found
20904|[2024-01-26 11:16:04][ERROR] : Erreur sur zigbee2mqtt::deamon_client() : Class &apos;InfluxDB\Client&apos; not found
26965|[2024-01-26 12:08:55][ERROR] : Erreur sur zigbee2mqtt::deamon_client() : Class &apos;InfluxDB\Client&apos; not found
27718|[2024-01-26 12:16:30][ERROR] : Erreur sur zigbee2mqtt::deamon_client() : Class &apos;InfluxDB\Client&apos; not found
30321|[2024-01-26 12:39:24][ERROR] : Erreur sur zigbee2mqtt::deamon_client() : Class &apos;InfluxDB\Client&apos; not found

Log zigbee2mqtt_deamon :

0006|[2024-01-26 10:26:41][INFO] : ##### Le service Client MQTT a démarré (zigbee) #####
0009|[2024-01-26 10:29:48][INFO] : ##### Le service Client MQTT a démarré (zigbee) #####
0012|[2024-01-26 11:18:12][INFO] : ##### Le service Client MQTT a démarré (zigbee) #####
0015|[2024-01-26 12:11:00][INFO] : ##### Le service Client MQTT a démarré (zigbee) #####
0018|[2024-01-26 12:18:31][INFO] : ##### Le service Client MQTT a démarré (zigbee) #####
0021|[2024-01-26 12:41:26][INFO] : ##### Le service Client MQTT a démarré (zigbee) #####

J’ai supprimé le plugin influxDB et la configuration influxDB dans Jeedom, on verra bien.

Edit 1

19h00: pas de nouveau arrêt depuis que j’ai enlevé la configuration influxDB dans jeedom.

InfluxDB et mosquitto sont tous 2 installé sur la même VM dans des conteneurs dédié.

Donc le plugin entre en conflit avec cette configuration, pourquoi ?

Edit 2

Bilan c’est ici que cela entre en conflit avec le plugin, je n’ai plus d’erreur depuis que j’ai enlevé la config. Je testerais la semaine prochaine de remettre la config influxDB pour valider le bug;

En attendant je laisse comme cela et j’ajoute un tag « bug » :wink: