Demon toujours NOK au lancement

bonjour @nebz
je viens d’installer le plugin pour mon iDiamant et le DEMON ne se lance pas .

voici mes log en DEBUG

== Jeedom 4.3.17 sur Debian GNU/Linux 10 (buster)/arm64/aarch64/64bits aka 'diy' avec nodeJS v16.19.1 et jsonrpc:enable et hkControl (stable) 2023-04-03 09:06:08 (avant:inconnu)
======================================================================
== 07/04/2023 12:18:11 == Installation des dépendances de hkControl
======================================================================
[  0% ] : Vérification des droits...
[  4% ] : Vérification des droits : [  OK  ]
[  5% ] : Mise à jour APT et installation des packages nécessaires...
[  9% ] : Mise à jour APT et installation des packages nécessaires : [  OK  ]
[ 10% ] : Prérequis...
[ 14% ] : Prérequis : [  OK  ]
[ 15% ] : Installation des packages nécessaires...
[ 19% ] : Installation des packages nécessaires : [  OK  ]
[ 20% ] : Vérification du système...
[ 24% ] : Vérification du système : [  OK  ]
[ 25% ] : Vérification de la version de NodeJS installée...
[Check Version NodeJS actuelle : v16.19.1 : [  OK  ]
[Check Version NPM : 8.19.3 : [  OK  ]
[Check Prefixe : /usr et sudo prefixe : /usr et www-data prefixe : /usr : [  OK  ]
[ 49% ] : Vérification de la version de NodeJS installée : [  OK  ]
[ 50% ] : Nettoyage...
[ 59% ] : Nettoyage : [  OK  ]
[ 60% ] : Nettoyage anciens modules...
[ 69% ] : Nettoyage anciens modules : [  OK  ]
[ 70% ] : Installation des librairies, veuillez patienter svp...
[ 89% ] : Installation des librairies, veuillez patienter svp : [  OK  ]
[ 90% ] : Mise à jour class utilitaires...
[ 99% ] : Mise à jour class utilitaires : [  OK  ]
[100% ] : Terminé !
======================================================================
== OK == Installation Réussie
======================================================================
/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/bluetooth-hci-socket/lib/native.js:9
super(...args);
^
Error: EAFNOSUPPORT, Address family not supported by protocol
at new BluetoothHciSocketWrapped (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/bluetooth-hci-socket/lib/native.js:9:5)
at new Hci (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/lib/hci-socket/hci.js:99:18)
at new NobleBindings (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:27:15)
at module.exports (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/lib/resolve-bindings.js:34:12)
at module.exports (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/with-custom-binding.js:3:53)
at Object. (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/index.js:1:50)
at Module._compile (node:internal/modules/cjs/loader:1191:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
at Module.load (node:internal/modules/cjs/loader:1069:32)
at Function.Module._load (node:internal/modules/cjs/loader:904:12) {
errno: 97,
code: 'EAFNOSUPPORT',
syscall: 'socket'
}
/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/bluetooth-hci-socket/lib/native.js:9
super(...args);
^
Error: EAFNOSUPPORT, Address family not supported by protocol
at new BluetoothHciSocketWrapped (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/bluetooth-hci-socket/lib/native.js:9:5)
at new Hci (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/lib/hci-socket/hci.js:99:18)
at new NobleBindings (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:27:15)
at module.exports (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/lib/resolve-bindings.js:34:12)
at module.exports (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/with-custom-binding.js:3:53)
at Object. (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/index.js:1:50)
at Module._compile (node:internal/modules/cjs/loader:1191:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
at Module.load (node:internal/modules/cjs/loader:1069:32)
at Function.Module._load (node:internal/modules/cjs/loader:904:12) {
errno: 97,
code: 'EAFNOSUPPORT',
syscall: 'socket'
}

et enfin :

[2023-04-07 12:20:06]ERROR : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
[2023-04-07 12:20:06]INFO : Arrêt du démon hkControl
[2023-04-07 12:20:11]INFO : Lancement du démon hkControl
[2023-04-07 12:20:11]DEBUG : Lancement démon hkControl : nice -n 19 node  /var/www/html/plugins/hkControl/resources/hkControl.js http://192.168.1.41/core/api/jeeApi.php H8D9rKBruDHEexJqfnsH6yPlJylYrBslpdOLpK2y2yWEmEcM98AvWdNGjbEAZbHE 62622 debug /var/www/html/plugins/hkControl/data/pairings.json 1 NoCam
[2023-04-07 12:20:11]INFO : Démon hkControl lancé
[2023-04-07 12:20:14]ERROR : Erreur sur la fonction deamon_start du plugin : Vous devez attendre au moins 45 secondes entre deux lancements du démon. Dernier lancement : 2023-04-07 12:20:06
[2023-04-07 12:25: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
[2023-04-07 12:25:05]INFO : Arrêt du démon hkControl
[2023-04-07 12:25:10]INFO : Lancement du démon hkControl
[2023-04-07 12:25:10]DEBUG : Lancement démon hkControl : nice -n 19 node  /var/www/html/plugins/hkControl/resources/hkControl.js http://192.168.1.41/core/api/jeeApi.php H8D9rKBruDHEexJqfnsH6yPlJylYrBslpdOLpK2y2yWEmEcM98AvWdNGjbEAZbHE 37768 debug /var/www/html/plugins/hkControl/data/pairings.json 1 NoCam
[2023-04-07 12:25:10]INFO : Démon hkControl lancé
[2023-04-07 12:30:06]ERROR : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
[2023-04-07 12:30:06]INFO : Arrêt du démon hkControl
[2023-04-07 12:30:11]INFO : Lancement du démon hkControl
[2023-04-07 12:30:12]DEBUG : Lancement démon hkControl : nice -n 19 node  /var/www/html/plugins/hkControl/resources/hkControl.js http://192.168.1.41/core/api/jeeApi.php H8D9rKBruDHEexJqfnsH6yPlJylYrBslpdOLpK2y2yWEmEcM98AvWdNGjbEAZbHE 5648 debug /var/www/html/plugins/hkControl/data/pairings.json 1 NoCam
[2023-04-07 12:30:12]INFO : Démon hkControl lancé

Merci

Bonjour, pouvez vous fournir le log hkControl_daemon s’il vous plait.

@nebz
oups je ne les ai pas nommés
en voici un plus complet:

/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/bluetooth-hci-socket/lib/native.js:9
super(...args);
^
Error: EAFNOSUPPORT, Address family not supported by protocol
at new BluetoothHciSocketWrapped (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/bluetooth-hci-socket/lib/native.js:9:5)
at new Hci (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/lib/hci-socket/hci.js:99:18)
at new NobleBindings (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:27:15)
at module.exports (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/lib/resolve-bindings.js:34:12)
at module.exports (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/with-custom-binding.js:3:53)
at Object. (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/index.js:1:50)
at Module._compile (node:internal/modules/cjs/loader:1191:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
at Module.load (node:internal/modules/cjs/loader:1069:32)
at Function.Module._load (node:internal/modules/cjs/loader:904:12) {
errno: 97,
code: 'EAFNOSUPPORT',
syscall: 'socket'
}
/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/bluetooth-hci-socket/lib/native.js:9
super(...args);
^
Error: EAFNOSUPPORT, Address family not supported by protocol
at new BluetoothHciSocketWrapped (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/bluetooth-hci-socket/lib/native.js:9:5)
at new Hci (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/lib/hci-socket/hci.js:99:18)
at new NobleBindings (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:27:15)
at module.exports (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/lib/resolve-bindings.js:34:12)
at module.exports (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/with-custom-binding.js:3:53)
at Object. (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/index.js:1:50)
at Module._compile (node:internal/modules/cjs/loader:1191:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
at Module.load (node:internal/modules/cjs/loader:1069:32)
at Function.Module._load (node:internal/modules/cjs/loader:904:12) {
errno: 97,
code: 'EAFNOSUPPORT',
syscall: 'socket'
}
/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/bluetooth-hci-socket/lib/native.js:9
super(...args);
^
Error: EAFNOSUPPORT, Address family not supported by protocol
at new BluetoothHciSocketWrapped (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/bluetooth-hci-socket/lib/native.js:9:5)
at new Hci (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/lib/hci-socket/hci.js:99:18)
at new NobleBindings (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:27:15)
at module.exports (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/lib/resolve-bindings.js:34:12)
at module.exports (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/with-custom-binding.js:3:53)
at Object. (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/index.js:1:50)
at Module._compile (node:internal/modules/cjs/loader:1191:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
at Module.load (node:internal/modules/cjs/loader:1069:32)
at Function.Module._load (node:internal/modules/cjs/loader:904:12) {
errno: 97,
code: 'EAFNOSUPPORT',
syscall: 'socket'
}
/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/bluetooth-hci-socket/lib/native.js:9
super(...args);
^
Error: EAFNOSUPPORT, Address family not supported by protocol
at new BluetoothHciSocketWrapped (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/bluetooth-hci-socket/lib/native.js:9:5)
at new Hci (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/lib/hci-socket/hci.js:99:18)
at new NobleBindings (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:27:15)
at module.exports (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/lib/resolve-bindings.js:34:12)
at module.exports (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/with-custom-binding.js:3:53)
at Object. (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/index.js:1:50)
at Module._compile (node:internal/modules/cjs/loader:1191:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
at Module.load (node:internal/modules/cjs/loader:1069:32)
at Function.Module._load (node:internal/modules/cjs/loader:904:12) {
errno: 97,
code: 'EAFNOSUPPORT',
syscall: 'socket'
}

Merci

Non, le log complet s’il vous plait

@nebz, je n’ai que cela

0000|/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/bluetooth-hci-socket/lib/native.js:9
0001|super(...args);
0002|^
0003|Error: EAFNOSUPPORT, Address family not supported by protocol
0004|at new BluetoothHciSocketWrapped (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/bluetooth-hci-socket/lib/native.js:9:5)
0005|at new Hci (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/lib/hci-socket/hci.js:99:18)
0006|at new NobleBindings (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:27:15)
0007|at module.exports (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/lib/resolve-bindings.js:34:12)
0008|at module.exports (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/with-custom-binding.js:3:53)
0009|at Object. (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/index.js:1:50)
0010|at Module._compile (node:internal/modules/cjs/loader:1191:14)
0011|at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
0012|at Module.load (node:internal/modules/cjs/loader:1069:32)
0013|at Function.Module._load (node:internal/modules/cjs/loader:904:12) {
0014|errno: 97,
0015|code: 'EAFNOSUPPORT',
0016|syscall: 'socket'
0017|}
0018|/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/bluetooth-hci-socket/lib/native.js:9
0019|super(...args);
0020|^
0021|Error: EAFNOSUPPORT, Address family not supported by protocol
0022|at new BluetoothHciSocketWrapped (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/bluetooth-hci-socket/lib/native.js:9:5)
0023|at new Hci (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/lib/hci-socket/hci.js:99:18)
0024|at new NobleBindings (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:27:15)
0025|at module.exports (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/lib/resolve-bindings.js:34:12)
0026|at module.exports (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/with-custom-binding.js:3:53)
0027|at Object. (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/index.js:1:50)
0028|at Module._compile (node:internal/modules/cjs/loader:1191:14)
0029|at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
0030|at Module.load (node:internal/modules/cjs/loader:1069:32)
0031|at Function.Module._load (node:internal/modules/cjs/loader:904:12) {
0032|errno: 97,
0033|code: 'EAFNOSUPPORT',
0034|syscall: 'socket'
0035|}
0036|/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/bluetooth-hci-socket/lib/native.js:9
0037|super(...args);
0038|^
0039|Error: EAFNOSUPPORT, Address family not supported by protocol
0040|at new BluetoothHciSocketWrapped (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/bluetooth-hci-socket/lib/native.js:9:5)
0041|at new Hci (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/lib/hci-socket/hci.js:99:18)
0042|at new NobleBindings (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:27:15)
0043|at module.exports (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/lib/resolve-bindings.js:34:12)
0044|at module.exports (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/with-custom-binding.js:3:53)
0045|at Object. (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/index.js:1:50)
0046|at Module._compile (node:internal/modules/cjs/loader:1191:14)
0047|at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
0048|at Module.load (node:internal/modules/cjs/loader:1069:32)
0049|at Function.Module._load (node:internal/modules/cjs/loader:904:12) {
0050|errno: 97,
0051|code: 'EAFNOSUPPORT',
0052|syscall: 'socket'
0053|}
0054|/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/bluetooth-hci-socket/lib/native.js:9
0055|super(...args);
0056|^
0057|Error: EAFNOSUPPORT, Address family not supported by protocol
0058|at new BluetoothHciSocketWrapped (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/bluetooth-hci-socket/lib/native.js:9:5)
0059|at new Hci (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/lib/hci-socket/hci.js:99:18)
0060|at new NobleBindings (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:27:15)
0061|at module.exports (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/lib/resolve-bindings.js:34:12)
0062|at module.exports (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/with-custom-binding.js:3:53)
0063|at Object. (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/index.js:1:50)
0064|at Module._compile (node:internal/modules/cjs/loader:1191:14)
0065|at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
0066|at Module.load (node:internal/modules/cjs/loader:1069:32)
0067|at Function.Module._load (node:internal/modules/cjs/loader:904:12) {
0068|errno: 97,
0069|code: 'EAFNOSUPPORT',
0070|syscall: 'socket'
0071|}
0072|/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/bluetooth-hci-socket/lib/native.js:9
0073|super(...args);
0074|^
0075|Error: EAFNOSUPPORT, Address family not supported by protocol
0076|at new BluetoothHciSocketWrapped (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/bluetooth-hci-socket/lib/native.js:9:5)
0077|at new Hci (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/lib/hci-socket/hci.js:99:18)
0078|at new NobleBindings (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:27:15)
0079|at module.exports (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/lib/resolve-bindings.js:34:12)
0080|at module.exports (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/with-custom-binding.js:3:53)
0081|at Object. (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/index.js:1:50)
0082|at Module._compile (node:internal/modules/cjs/loader:1191:14)
0083|at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
0084|at Module.load (node:internal/modules/cjs/loader:1069:32)
0085|at Function.Module._load (node:internal/modules/cjs/loader:904:12) {
0086|errno: 97,
0087|code: 'EAFNOSUPPORT',
0088|syscall: 'socket'
0089|}

:frowning:

Augmentez le nombre de lignes dans la config jeedom > Logs >Logs

puis videz le log actuel, relancez le démon (en debug) et envoyez moi le nouveau log hkControl_daemon

@nebz
voilà ce que j’obtiens : log Hkcontrol_daemon (1.3ko)

0000|/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/bluetooth-hci-socket/lib/native.js:9
0001|super(...args);
0002|^
0003|Error: EAFNOSUPPORT, Address family not supported by protocol
0004|at new BluetoothHciSocketWrapped (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/bluetooth-hci-socket/lib/native.js:9:5)
0005|at new Hci (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/lib/hci-socket/hci.js:99:18)
0006|at new NobleBindings (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:27:15)
0007|at module.exports (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/lib/resolve-bindings.js:34:12)
0008|at module.exports (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/with-custom-binding.js:3:53)
0009|at Object. (/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/index.js:1:50)
0010|at Module._compile (node:internal/modules/cjs/loader:1191:14)
0011|at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
0012|at Module.load (node:internal/modules/cjs/loader:1069:32)
0013|at Function.Module._load (node:internal/modules/cjs/loader:904:12) {
0014|errno: 97,
0015|code: 'EAFNOSUPPORT',
0016|syscall: 'socket'
0017|}

tentez un reboot svp

OK, je fais ça

Ok cela a réglé le pb

[07-04-2023 12:48:17]INFO : Démarrage démon hkControl...
[07-04-2023 12:48:17]DEBUG : urlJeedom = http://192.168.1.41/core/api/jeeApi.php
[07-04-2023 12:48:17]DEBUG : apiKey = Hxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[07-04-2023 12:48:17]DEBUG : serverPort = 53465
[07-04-2023 12:48:17]DEBUG : logLevel = debug
[07-04-2023 12:48:17]DEBUG : pairingFile = /var/www/html/plugins/hkControl/data/pairings.json
[07-04-2023 12:48:17]DEBUG : jeedom42 = 1
[07-04-2023 12:48:17]DEBUG : detectCam = false
[07-04-2023 12:48:17]DEBUG : pairings = {}
[07-04-2023 12:48:17]INFO : Démon prêt et à l'écoute sur 53465 !
[07-04-2023 12:48:18]DEBUG : Bonjour reçu : {"name":"Prise Control","address":"192.168.1.3","port":5001,"c#":8,"ff":1,"id":"E2:95:A4:42:B2:82","md":"Bubendorff Gateway\u0000","pv":"1.1","s#":1,"sf":1,"ci":2,"availableToPair":true}
[07-04-2023 12:48:18]INFO : Le pont Prise Control est éligible à l'ajout !

Merci @nebz

Bonne journée :slight_smile:

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.