Perte de messages provenant de KNX

Bonjour à tous,

Depuis quelques semaines, j’observe des problèmes sur mon installation avec l’utilisation du plugin KNX. Après investigation, j’observe que le plugin KNX de Jeedom ne reçoit plus tous les messages provenant de ma passerelle KNX.
Sur l’exemple ci dessous, le message de 13:40:34 indiquant un Off (0x00) sur le groupe 0/1/32 n’est pas affiché dans le moniteur de bus

Alors qu’il est bien transmis quand je monitore le bus KNX en passant par ETS

Je n’ai pas pris note précisément de la date à laquelle ce problème a débuté mais je suis sûr qu’avant la migration vers Debian 12 / Jeedom 4.4, je n’observais pas ce phénomène.

Est-ce que quelqu’un a déjà rencontré ce problème ou a une solution / idée à me soumettre ?

Un grand merci d’avance,
/Papatte

Update : Dans le log du démon, je me suis aperçu que le service knxd redémarre intempestivement toutes les 5 minutes environ, parfois 3 fois de suite, ce qui cause, j’imagine la perte des messages

Voilà ce que je vois dans les logs:

Aug 03 16:26:27 raspberrypi knxd[18887]: Jeedom: Layer 4 [38:systemd_/ConnS       0.001] link state changed: up
Aug 03 16:26:27 raspberrypi systemd[1]: Started knxd.service - KNX Daemon.
Aug 03 16:26:37 raspberrypi knxd[18887]: Jeedom: F00000105: [18:Gateway] Link down, terminating
Aug 03 16:26:37 raspberrypi knxd[18887]: Jeedom: Layer 4 [38:systemd_/ConnS       10.001] R Stopping
Aug 03 16:26:37 raspberrypi knxd[18887]: Jeedom: Layer 5 [38:systemd_/ConnS       10.001] up => >down
Aug 03 16:26:37 raspberrypi knxd[18887]: Jeedom: Layer 5 [38:systemd_/ConnS       10.001] L Stopping
Aug 03 16:26:37 raspberrypi knxd[18887]: Jeedom: Layer 0 [40:log/systemd_         10.001] State stop
Aug 03 16:26:37 raspberrypi knxd[18887]: Jeedom: Layer 0 [40:log/systemd_         10.001] State stopped
Aug 03 16:26:37 raspberrypi knxd[18887]: Jeedom: Layer 5 [38:systemd_/ConnS       10.001] >down => down
Aug 03 16:26:37 raspberrypi knxd[18887]: Jeedom: Layer 4 [38:systemd_/ConnS       10.001] link state changed: down
Aug 03 16:26:37 raspberrypi knxd[18887]: Jeedom: Layer 4 [38:systemd_/ConnS       10.001] link state changed: down
Aug 03 16:26:37 raspberrypi knxd[18887]: Jeedom: Layer 0 [34:log/router           10.001] State stop
Aug 03 16:26:37 raspberrypi knxd[18887]: Jeedom: Layer 0 [34:log/router           10.001] State stopped
Aug 03 16:26:37 raspberrypi knxd[18887]: Jeedom: Layer 0 [34:log/router           10.001] State stop
Aug 03 16:26:37 raspberrypi knxd[18887]: Jeedom: Layer 0 [34:log/router           10.001] State stopped
Aug 03 16:26:37 raspberrypi knxd[18887]: Jeedom: Layer 4 [ 9:systemd_/systemd     10.001] R Stopping
Aug 03 16:26:37 raspberrypi knxd[18887]: Jeedom: Layer 5 [ 9:systemd_/systemd     10.001] up => >down
Aug 03 16:26:37 raspberrypi knxd[18887]: Jeedom: Layer 3 [38:systemd_/ConnS       10.001] unregisterLink: systemd__38
Aug 03 16:26:37 raspberrypi knxd[18887]: Jeedom: Layer 7 [36:systemd_/CConn       10.001] CloseGroupSocket
Aug 03 16:26:37 raspberrypi knxd[18887]: Jeedom: Layer 0 [40:log/systemd_         10.001] State stopped
Aug 03 16:26:37 raspberrypi knxd[18887]: Jeedom: Layer 5 [ 9:systemd_/systemd     10.001] >down => down
Aug 03 16:26:37 raspberrypi knxd[18887]: Jeedom: Layer 4 [ 9:systemd_/systemd     10.001] link state changed: down
Aug 03 16:26:37 raspberrypi knxd[18887]: Jeedom: Layer 4 [ 9:systemd_/systemd     10.001] link state changed: down
Aug 03 16:26:37 raspberrypi knxd[18887]: Jeedom: Layer 4 [ 4:systemd_/systemd     10.001] R Stopping
Aug 03 16:26:37 raspberrypi knxd[18887]: Jeedom: Layer 5 [ 4:systemd_/systemd     10.001] up => >down
Aug 03 16:26:37 raspberrypi knxd[18887]: Jeedom: Layer 5 [ 4:systemd_/systemd     10.001] >down => down
Aug 03 16:26:37 raspberrypi knxd[18887]: Jeedom: Layer 4 [ 4:systemd_/systemd     10.001] link state changed: down
Aug 03 16:26:37 raspberrypi knxd[18887]: Jeedom: Layer 4 [ 4:systemd_/systemd     10.001] link state changed: down
Aug 03 16:26:37 raspberrypi knxd[18887]: Jeedom: Layer 4 [39:systemd_/LineDr      10.001] CloseGroupSocket
Aug 03 16:26:37 raspberrypi knxd[18887]: Jeedom: Layer 4 [ 9:systemd_/systemd     10.001] is down
Aug 03 16:26:37 raspberrypi knxd[18887]: Jeedom: Layer 4 [ 4:systemd_/systemd     10.001] is down
Aug 03 16:26:37 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=1/FAILURE
Aug 03 16:26:37 raspberrypi systemd[1]: knxd.service: Failed with result 'exit-code'.

A noter que je ne vois pas de pattern dans le crash du plugin

Aug 03 16:36:37 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=1/FAILURE
Aug 03 16:36:17 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=1/FAILURE
Aug 03 16:35:57 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=1/FAILURE
Aug 03 16:35:36 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=1/FAILURE
Aug 03 16:35:16 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=1/FAILURE
Aug 03 16:31:59 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=1/FAILURE
Aug 03 16:31:39 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=1/FAILURE
Aug 03 16:31:19 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=1/FAILURE
Aug 03 16:30:59 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=1/FAILURE
Aug 03 16:30:38 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=1/FAILURE
Aug 03 16:30:18 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=1/FAILURE
Aug 03 16:26:57 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=1/FAILURE
Aug 03 16:26:37 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=1/FAILURE
Aug 03 16:26:16 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=1/FAILURE
Aug 03 16:25:56 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=1/FAILURE
Aug 03 16:25:36 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=1/FAILURE
Aug 03 16:25:16 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=1/FAILURE
Aug 03 16:21:38 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=1/FAILURE
Aug 03 16:21:17 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=1/FAILURE
Aug 03 16:20:57 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=1/FAILURE
Aug 03 16:20:37 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=1/FAILURE
Aug 03 16:20:17 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=1/FAILURE
Aug 03 16:16:58 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=1/FAILURE
Aug 03 16:16:38 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=1/FAILURE
Aug 03 16:16:18 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=1/FAILURE
Aug 03 16:15:57 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=1/FAILURE
Aug 03 16:15:37 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=1/FAILURE
Aug 03 16:15:17 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=1/FAILURE
Aug 03 16:12:02 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=1/FAILURE
Aug 03 16:11:42 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=1/FAILURE
Aug 03 16:11:22 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=1/FAILURE
Aug 03 16:11:01 raspberrypi systemd[1]: knxd.service: Main process exited, code=exited, status=1/FAILURE

Pour essayer de résoudre le problème :

  • J’ai redémarré ma passerelle IP KNX (switch off - switch on), mais ça n’a rien changé.
  • J’ai bien vérifié les paramètres de connection, tout semble en ordre
  • J’ai créé un nouveau serveur Jeedom from scratch et installé uniquement le plugin KNX et vérifié que le service ne crashait pas. J’ai vérifié que le fichier knxd.ini était exactement le même que celui de mon serveur

A noter que j’ai créé presque 100 éléments dans le plugin KNX qui sont utilisés dans les objets virtuels, des scénarios et des designs et je n’aimerai pas avoir à tous les redéfinir.

Si ça peut aider, voilà la configuration du plugin

Une idée ?
@mika-nt28 , peut-être ?

Un grand
/Papatte

Bonjour

Personne n’a répondu depuis 1 journée, si je ne me trompe pas Debian 12 n’est pas supporté par Jeedom, peut être que ton problème vient de là. En plus nous sommes en période de vacances et des J.O. et donc la fréquentation du forum est faible en ce moment.

Cordialement.

Merci @echo pour l’info concernant la release de Debian.
Suite à tous ses problèmes, je suis reparti d’une installation clean et j’ai téléchargé la dernière version de Debian dispo en pensant qu’elle était compatible avec Jeedom.

Après moultes recherches, j’ai finalement trouvé l’origine de mon problème : une variable de retour d’état pour une commande d’un de mes équipements était mal défini. Je suis vraiment surpris que cela provoque un comportement aussi erratique du plugin. Mais, en passant le plugin en mode debug, l’origine du problème a été clairement indiquée. En espérant que cela puisse servir à d’autres utilisateurs de Jeedom.

Pour information, une fois ce problème corrigé, il me semble que Jeedom tourne très bien sur Debian 12. Quoi qu’il en soit et pour éviter des problèmes dans le futur, je vais repasser sur une version 11 de Debian fraichement installée.

/Papatte

Bonjour

Tu peux peut être rester en Debian 12, il ya un fil qui parle des plugins compatible avec Debian 12.
https://community.jeedom.com/t/compatibilite-des-plugins-avec-debian-12-bookworm-php-8-python-3-11/126200

Cordialement