Démon Home Bridge NOK

Bonjour
J’ai lu et relu des pages et des pages sans trouver ma réponse
Mon plugin Homebridge qui fonctionnait très bien depuis quelques années m’a lâché hier ou aujourd’hui
Le Démon se lance puis passe en NOK
Je peux lire dans le log daemon l’erreur « shutting down Homebridge » que j’ai évidemment Google-isée) :

(node:15962) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 shutdown listeners added to [HomebridgeAPI]. Use emitter.setMaxListeners() to increase limit
(Use `node --trace-warnings ...` to show where the warning was created)
[2/14/2024, 1:07:30 PM] Homebridge v1.6.1 (HAP v0.11.1) (DDEF-Jeedom_Repaired_71) is running on port 51826.
[2/14/2024, 1:07:30 PM] [DDEF-Jeedom_Repaired_71] [INFO] On écoute les messages sur le port 37211
[2/14/2024, 1:07:30 PM] UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "Aucune demande".
[2/14/2024, 1:07:30 PM] Got SIGTERM, shutting down Homebridge...

Dans tout ce que j’ai lu, voici ce que j’ai fait:

  • Reboot Jeedom: Rien
  • Désactiver toutes les pièces, relancer les dépendances: Rien
  • Relancer les concentrateurs iPad, Apple TV et Homepod: Rien
  • Relancer mon routeur Orbi sur lequel je gère mon réseau domestique: Rien
  • Tenter le bouton « Réinstaller »: Rien
  • Tenter le bouton: Réparer et désinstaller (je n’en avais pas bien envie… Il faudra tout refaire sur Home): Rien
  • Pour essayer, comme j’ai aussi une IP en wifi wlan0, j’ai tenté de cocher l’interface à l’IP wifi en décochant celle en eth0: Rien

Je suis perdu

Voici des logs dans lesquels j’essaye d’enlever des infos sensibles et/ou inutiles et longues sur mes équipements, j’ai alors mis un message [Perso]:

homebridge: Toutes les 5 minutes la même chose

[2024-02-14 13:20:05]ERROR : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
[2024-02-14 13:20:05]INFO : Mode debug :
[2024-02-14 13:20:05]INFO : Génération du fichier config.json de Homebridge
[2024-02-14 13:20:05]DEBUG : On prend l'API de l'utilisateur : admin configuré localOnly=0| apiMode=enable
[2024-02-14 13:20:05]DEBUG : has iface selected :eth0/1
[2024-02-14 13:20:05]DEBUG : has iface selected :wlan0/0
[2024-02-14 13:20:06]DEBUG : Pas de changement du fichier config depuis le dernier démarrage du démon, on ne l'historise pas.
[2024-02-14 13:20:06]DEBUG : CMD=export AVAHI_COMPAT_NOWARN=1; /var/www/html/plugins/homebridge/core/class/../../resources/node_modules/homebridge/bin/homebridge -I --no-qrcode -U /var/www/html/plugins/homebridge/core/class/../../resources/homebridge >> /var/www/html/core/class/../../log/homebridge_daemon 2>&1 &
[2024-02-14 13:20:07]INFO : Démon homebridge lancé
[2024-02-14 13:20:15]INFO : Demande de Sync Homebridge
[2024-02-14 13:20:17]DEBUG : cache updated with : [grosse enumération de plein de nombres à 4 chiffres]
[2024-02-14 13:20:35]DEBUG : On prend l'API de l'utilisateur : admin configuré localOnly=0| apiMode=enable

homebridge_dep:

== Jeedom 4.3.22 sur Debian GNU/Linux 10 (buster)/arm64/aarch64/64bits aka 'Atlas' avec nodeJS  et jsonrpc:enable et homebridge (stable) 2024-01-05 08:52:50 (avant:stable/2023-09-30 08:46:36)
======================================================================
== 14/02/2024 13:03:17 == Installation des dépendances de homebridge
======================================================================
[  0% ] : Vérification des droits...
[  4% ] : Vérification des droits : [0sec] : [  OK  ]
[  5% ] : Mise à jour APT et installation des packages nécessaires...
[  9% ] : Mise à jour APT et installation des packages nécessaires : [14sec] : [  OK  ]
[ 10% ] : Prérequis...
[ 14% ] : Prérequis : [0sec] : [  OK  ]
[ 15% ] : Installation des packages nécessaires...
[ 19% ] : Installation des packages nécessaires : [2sec] : [  OK  ]
[ 20% ] : Vérification du système...
[ 24% ] : Vérification du système : [1sec] : [  OK  ]
[ 25% ] : Vérification de la version de NodeJS installée...
[Check Version NodeJS actuelle : Aucune : Correction...
[ 29% ] : Vérification de la version de NodeJS installée : [0sec] : [  OK  ]
[ 30% ] : Installation de NodeJS 18...
Utilisation du dépot officiel
[Check Version NodeJS après install : v18.19.0 : [  OK  ]
[Check Version NPM : 10.2.3 : [  OK  ]
[Check Prefixe : /usr et sudo prefixe : /usr et www-data prefixe : /usr : [  OK  ]
[ 49% ] : Installation de NodeJS 18 : [54sec] : [  OK  ]
[ 50% ] : Nettoyage...
[ 59% ] : Nettoyage : [0sec] : [  OK  ]
[ 60% ] : Nettoyage anciens modules...
[ 69% ] : Nettoyage anciens modules : [5sec] : [  OK  ]
[ 70% ] : Vérification des droits avant install...
[ 71% ] : Vérification des droits avant install : [0sec] : [  OK  ]
[ 72% ] : Installation/Mise à jour de homebridge-camera-ffmpeg...
[ 73% ] : Installation/Mise à jour de homebridge-camera-ffmpeg : [11sec] : [  OK  ]
[ 74% ] : Installation/Mise à jour de homebridge-alexa...
[ 75% ] : Installation/Mise à jour de homebridge-alexa : [13sec] : [  OK  ]
[ 76% ] : Installation/Mise à jour de homebridge-gsh...
[ 77% ] : Installation/Mise à jour de homebridge-gsh : [16sec] : [  OK  ]
[ 78% ] : Installation/Mise à jour de homebridge-config-ui-x...
[ 79% ] : Installation/Mise à jour de homebridge-config-ui-x : [1:09] : [  OK  ]
[ 80% ] : Installation de Homebridge...
[ 81% ] : Installation de Homebridge : [20sec] : [  OK  ]
[ 82% ] : Installation de homebridge-jeedom master, veuillez patienter svp...
[ 83% ] : Installation de homebridge-jeedom master, veuillez patienter svp : [32sec] : [  OK  ]
[ 84% ] : Vérification des droits après install...
[ 89% ] : Vérification des droits après install : [0sec] : [  OK  ]
[ 90% ] : Configuration Avahi...
[ 99% ] : Configuration Avahi : [0sec] : [  OK  ]
[100% ] : Terminé !
======================================================================
== OK == Installation Réussie [3:57]
======================================================================

homebridge_start

[2024-02-14T12:15:11.750Z] ---Début du log de création---
[2024-02-14T12:15:11.752Z] debugLevel:100
[2024-02-14T12:15:11.753Z] [INFO] Adresse Jeedom bien configurée :http://XXX.XXX.XXX.XXX
[Perso] Accessoires en cache
[Perso] Enumération des objets
[2024-02-14T12:15:27.325Z] ┌────RAMASSE-MIETTES─────
[2024-02-14T12:15:27.325Z] │ (Suppression des accessoires qui sont dans le cache mais plus dans jeedom (peut provenir de renommage ou changement de pièce))
[2024-02-14T12:15:27.326Z] │ Rien à supprimer
[2024-02-14T12:15:27.326Z] └────────────────────────
[2024-02-14T12:15:27.326Z] --== Homebridge est démarré et a intégré 132 accessoires ! ==--
[2024-02-14T12:15:27.326Z] ----Fin du log de création----

homebridge_deamon

[2/14/2024, 1:10:05 PM] Loaded config.json with 0 accessories and 3 platforms.
[2/14/2024, 1:10:05 PM] Loaded 146 cached accessories from cachedAccessories.
[2/14/2024, 1:10:06 PM] ---
[2/14/2024, 1:10:07 PM] Loaded plugin: @nebz/homebridge-jeedom@v1.7.0
[2/14/2024, 1:10:10 PM] Registering platform '@nebz/homebridge-jeedom.Jeedom'
[2/14/2024, 1:10:10 PM] ---
[2/14/2024, 1:10:11 PM] Loaded plugin: homebridge-alexa@0.6.8
[2/14/2024, 1:10:11 PM] Registering platform 'homebridge-alexa.Alexa'
[2/14/2024, 1:10:11 PM] ---
[2/14/2024, 1:10:11 PM] Loaded plugin: homebridge-camera-ffmpeg@3.1.4
[2/14/2024, 1:10:11 PM] Registering platform 'homebridge-camera-ffmpeg.Camera-ffmpeg'
[2/14/2024, 1:10:11 PM] ---
[2/14/2024, 1:10:11 PM] Loaded plugin: homebridge-config-ui-x@4.55.1
[2/14/2024, 1:10:11 PM] Registering platform 'homebridge-config-ui-x.config'
[2/14/2024, 1:10:11 PM] ---
[2/14/2024, 1:10:11 PM] Loaded plugin: homebridge-gsh@2.2.0
[2/14/2024, 1:10:11 PM] Registering platform 'homebridge-gsh.google-smarthome'
[2/14/2024, 1:10:11 PM] ---
[2/14/2024, 1:10:11 PM] Loading 3 platforms...
[2/14/2024, 1:10:11 PM] [DDEF-Jeedom_Repaired_71] Initializing Jeedom platform...
[2/14/2024, 1:10:11 PM] [DDEF-Jeedom_Repaired_71] debugLevel:100
[2/14/2024, 1:10:11 PM] [DDEF-Jeedom_Repaired_71] [INFO] Adresse Jeedom bien configurée :http://10.0.1.200
[2/14/2024, 1:10:11 PM] [Config] Initializing config platform...
[2/14/2024, 1:10:11 PM] [Config] Spawning homebridge-config-ui-x with PID 21997
[Perso]: Configuration des caméras
[Perso]: Accessoires en cache
[2/14/2024, 1:10:12 PM] [DDEF-Jeedom_Repaired_71] Synchronisation Jeedom <> Homebridge...
Setup Payload:
X-HM://0023ISYWY45AA
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
┌────────────┐
│ XXX-XX-XXX│
└────────────┘
(node:21620) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 shutdown listeners added to [HomebridgeAPI]. Use emitter.setMaxListeners() to increase limit
(Use `node --trace-warnings ...` to show where the warning was created)
[2/14/2024, 1:10:12 PM] Homebridge v1.6.1 (HAP v0.11.1) (DDEF-Jeedom_Repaired_71) is running on port 51826.
[2/14/2024, 1:10:12 PM] [DDEF-Jeedom_Repaired_71] [INFO] On écoute les messages sur le port 44839
[2/14/2024, 1:10:12 PM] UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "Aucune demande".
[2/14/2024, 1:10:12 PM] Got SIGTERM, shutting down Homebridge...
[Perso]: Il énumère tout
[2/14/2024, 1:10:26 PM] [DDEF-Jeedom_Repaired_71] --== Homebridge est démarré et a intégré 132 accessoires ! ==--
[2/14/2024, 1:10:26 PM] [DDEF-Jeedom_Repaired_71] [DEBUG] ==START POLLING==

Bonjour,

Il y a une mise à jour aujourd’hui, installez-là et relancez les dépendances.

Merci pour cette info rapide
Je découvre qu’elle est là effectivement, je tente :slight_smile:
Mise à jour faite
Dépendances OK
Et… Ca marche…
Je suis dégouté d’avoir tout réinstallé, mais ravi que ça fonctionne :slight_smile:
En plus, j’ai fait une mise à jour il y a quelques heures et celle de Homebridge n’était pas dispo. Et je n’avais pas la notification rouge en haut.
Bref, un grand merci @nebz

1 « J'aime »

Pas si génial que ça, impossible de faire fonctionner Homebridge, j’ai tout reparamétré sur Home mais aucune action ne fonctionne
Dans le log, je vois:
Erreur de la fonction addAccessory : Error: Cannot Bridge more than 149 Accessories

Au passage, je n’en ai activé « que » 132

Log quand problème:

[2/14/2024, 3:53:28 PM] [DDEF-Jeedom] ERROR │ Erreur de la fonction addAccessory : Error: Cannot Bridge more than 149 Accessories
at Bridge.Accessory.addBridgedAccessory (/var/www/html/plugins/homebridge/resources/node_modules/hap-nodejs/src/lib/Accessory.ts:683:13)
at Bridge.Accessory.addBridgedAccessories (/var/www/html/plugins/homebridge/resources/node_modules/hap-nodejs/src/lib/Accessory.ts:707:12)
at BridgeService.handleRegisterPlatformAccessories (/var/www/html/plugins/homebridge/resources/node_modules/homebridge/src/bridgeService.ts:384:17)
at HomebridgeAPI.emit (node:events:517:28)
at HomebridgeAPI.registerPlatformAccessories (/var/www/html/plugins/homebridge/resources/node_modules/homebridge/src/api.ts:340:10)
at JeedomPlatform.addAccessory (/var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:2981:13)
at JeedomPlatform.AccessoireCreateHomebridge (/var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:2777:9)
at /var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:331:11
at Array.map (<anonymous>)
at JeedomPlatform.JeedomDevices2HomeKitAccessories (/var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:325:12)
Error: Cannot Bridge more than 149 Accessories
at Bridge.Accessory.addBridgedAccessory (/var/www/html/plugins/homebridge/resources/node_modules/hap-nodejs/src/lib/Accessory.ts:683:13)
at Bridge.Accessory.addBridgedAccessories (/var/www/html/plugins/homebridge/resources/node_modules/hap-nodejs/src/lib/Accessory.ts:707:12)
at BridgeService.handleRegisterPlatformAccessories (/var/www/html/plugins/homebridge/resources/node_modules/homebridge/src/bridgeService.ts:384:17)
at HomebridgeAPI.emit (node:events:517:28)
at HomebridgeAPI.registerPlatformAccessories (/var/www/html/plugins/homebridge/resources/node_modules/homebridge/src/api.ts:340:10)
at JeedomPlatform.addAccessory (/var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:2981:13)
at JeedomPlatform.AccessoireCreateHomebridge (/var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:2777:9)
at /var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:331:11
at Array.map (<anonymous>)
at JeedomPlatform.JeedomDevices2HomeKitAccessories (/var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:325:12)
[2/14/2024, 3:53:28 PM] [DDEF-Jeedom] ERROR Erreur de la fonction AccessoireCreateHomebridge : Error: Cannot find the bridged Accessory to remove.
at Bridge.Accessory.removeBridgedAccessory (/var/www/html/plugins/homebridge/resources/node_modules/hap-nodejs/src/lib/Accessory.ts:717:13)
at Bridge.Accessory.removeBridgedAccessories (/var/www/html/plugins/homebridge/resources/node_modules/hap-nodejs/src/lib/Accessory.ts:733:12)
at BridgeService.handleUnregisterPlatformAccessories (/var/www/html/plugins/homebridge/resources/node_modules/homebridge/src/bridgeService.ts:404:17)
at HomebridgeAPI.emit (node:events:517:28)
at HomebridgeAPI.unregisterPlatformAccessories (/var/www/html/plugins/homebridge/resources/node_modules/homebridge/src/api.ts:355:10)
at JeedomPlatform.addAccessory (/var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:2996:12)
at JeedomPlatform.AccessoireCreateHomebridge (/var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:2777:9)
at /var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:331:11
at Array.map (<anonymous>)
at JeedomPlatform.JeedomDevices2HomeKitAccessories (/var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:325:12)
Error: Cannot find the bridged Accessory to remove.
at Bridge.Accessory.removeBridgedAccessory (/var/www/html/plugins/homebridge/resources/node_modules/hap-nodejs/src/lib/Accessory.ts:717:13)
at Bridge.Accessory.removeBridgedAccessories (/var/www/html/plugins/homebridge/resources/node_modules/hap-nodejs/src/lib/Accessory.ts:733:12)
at BridgeService.handleUnregisterPlatformAccessories (/var/www/html/plugins/homebridge/resources/node_modules/homebridge/src/bridgeService.ts:404:17)
at HomebridgeAPI.emit (node:events:517:28)
at HomebridgeAPI.unregisterPlatformAccessories (/var/www/html/plugins/homebridge/resources/node_modules/homebridge/src/api.ts:355:10)
at JeedomPlatform.addAccessory (/var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:2996:12)
at JeedomPlatform.AccessoireCreateHomebridge (/var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:2777:9)
at /var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:331:11
at Array.map (<anonymous>)
at JeedomPlatform.JeedomDevices2HomeKitAccessories (/var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:325:12)
[2/14/2024, 3:53:28 PM] [DDEF-Jeedom] ERROR Erreur de la fonction JeedomDevices2HomeKitAccessories : Error: Cannot find the bridged Accessory to remove.
at Bridge.Accessory.removeBridgedAccessory (/var/www/html/plugins/homebridge/resources/node_modules/hap-nodejs/src/lib/Accessory.ts:717:13)
at Bridge.Accessory.removeBridgedAccessories (/var/www/html/plugins/homebridge/resources/node_modules/hap-nodejs/src/lib/Accessory.ts:733:12)
at BridgeService.handleUnregisterPlatformAccessories (/var/www/html/plugins/homebridge/resources/node_modules/homebridge/src/bridgeService.ts:404:17)
at HomebridgeAPI.emit (node:events:517:28)
at HomebridgeAPI.unregisterPlatformAccessories (/var/www/html/plugins/homebridge/resources/node_modules/homebridge/src/api.ts:355:10)
at JeedomPlatform.AccessoireCreateHomebridge (/var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:2791:12)
at /var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:331:11
at Array.map (<anonymous>)
at JeedomPlatform.JeedomDevices2HomeKitAccessories (/var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:325:12)
at /var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:207:12
Error: Cannot find the bridged Accessory to remove.
at Bridge.Accessory.removeBridgedAccessory (/var/www/html/plugins/homebridge/resources/node_modules/hap-nodejs/src/lib/Accessory.ts:717:13)
at Bridge.Accessory.removeBridgedAccessories (/var/www/html/plugins/homebridge/resources/node_modules/hap-nodejs/src/lib/Accessory.ts:733:12)
at BridgeService.handleUnregisterPlatformAccessories (/var/www/html/plugins/homebridge/resources/node_modules/homebridge/src/bridgeService.ts:404:17)
at HomebridgeAPI.emit (node:events:517:28)
at HomebridgeAPI.unregisterPlatformAccessories (/var/www/html/plugins/homebridge/resources/node_modules/homebridge/src/api.ts:355:10)
at JeedomPlatform.AccessoireCreateHomebridge (/var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:2791:12)
at /var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:331:11
at Array.map (<anonymous>)
at JeedomPlatform.JeedomDevices2HomeKitAccessories (/var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:325:12)
at /var/www/html/plugins/homebridge/resources/node_modules/homebridge-jeedom/index.js:207:12
e[0;37m[2/14/2024, 3:53:31 PM] e[0me[0;36m[Homebridge UI]e[0m e[0;33mHomebridge UI v4.55.1 is listening on :: port 33221e[0m
e[0;37m[2/14/2024, 3:54:20 PM] e[0me[0;36m[Homebridge UI]e[0m [admin] Accessory layout changes saved.

J’ai vu sur le net que c’est une limite d’Appel qui est passée de 99 à 149
Mais je n’avais pas ce problème, et je n’ai rien changé…
J’ai tenté de désactiver une pièce à 26 accessoires activés, mais toujours le problème
J’ai l’impression qu’après des modifications de noms d’appareils, il les crée sans supprimer les anciens. Je peux voir sur Home et sur l’interface config-UI-X des doublons qui me font dépasser 149 (155 équipements visibles dans « Accessoires »). Je cherche…
Au passage, pourquoi ne supprime-t-il pas les appareils renommés…

Solution: Désactiver toutes les pièces sauf une, installer les dépendances, puis réactiver les pièces. Cela a supprimé les doublons et permis la mise à jour des 132 accessoires

Oui quand on ajoute et retire trop HomeKit garde un cache sur les HomePods et donc a un moment il s’embrouille.

Il faut en effet repartir de zéro.

1 « J'aime »

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.