DEMON NOK homekit

Bonjour,
Après un plantage complet de ma jeedom Smart.
J’ai réinstaller l’ensemble a partir d’une sauvegarde date d’une dizaine de jours.
Problème : Impossible de relancer le démon Homekit?
Auriez vous une idée?
Voici les logs :
Error: Cannot find module ‹ hap-controller ›
Require stack:

  • /var/www/html/plugins/hkControl/resources/hkControl.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
    at Module._load (node:internal/modules/cjs/loader:981:27)
    at Module.require (node:internal/modules/cjs/loader:1231:19)
    at require (node:internal/modules/helpers:177:18)
    at Object. (/var/www/html/plugins/hkControl/resources/hkControl.js:3:75)
    at Module._compile (node:internal/modules/cjs/loader:1364:14)
    at Module._extensions…js (node:internal/modules/cjs/loader:1422:10)
    at Module.load (node:internal/modules/cjs/loader:1203:32)
    at Module._load (node:internal/modules/cjs/loader:1019:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12) {
    code: ‹ MODULE_NOT_FOUND ›,
    requireStack: [ ‹ /var/www/html/plugins/hkControl/resources/hkControl.js › ]
    }
    Node.js v18.20.4

Informations Jeedom

Core : 4.4.12 (master)
DNS Jeedom : oui

Plugin : Homekit Network Devices Control
Version : 2024-08-29 07:32:19 (stable)
Statut Démon : Stoppé - (2024-09-07 09:19:35)

Bonjour,

Bha relancez les dépendances :slight_smile:

Je les ai relancé plusieurs fois , sans effet

y’a moyen de voir tous les logs du plugin ? en debug évidemment
et la page santé ?

Bonjour, voici les logs du plugin

[2024-09-08 10:10: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-09-08 10:10:05] INFO  : Lancement du démon hkControl
[2024-09-08 10:10:06] DEBUG  : Lancement démon hkControl : nice -n 19 node  /var/www/html/plugins/hkControl/resources/hkControl.js http://192.168.1.168/core/api/jeeApi.php 8Cy6BJsERcKT9je810KN1RCP5gIgLOTLssEPStV7iZmZNSv1B8FnP6Ekk0Yf8nZW 8260 debug /var/www/html/plugins/hkControl/data/pairings.json NoCam
[2024-09-08 10:10:06] INFO  : Démon hkControl lancé
[2024-09-08 10:15: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-09-08 10:15:05] INFO  : Lancement du démon hkControl
[2024-09-08 10:15:05] DEBUG  : Lancement démon hkControl : nice -n 19 node  /var/www/html/plugins/hkControl/resources/hkControl.js http://192.168.1.168/core/api/jeeApi.php 8Cy6BJsERcKT9je810KN1RCP5gIgLOTLssEPStV7iZmZNSv1B8FnP6Ekk0Yf8nZW 38940 debug /var/www/html/plugins/hkControl/data/pairings.json NoCam
[2024-09-08 10:15:05] INFO  : Démon hkControl lancé
[2024-09-08 10: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-09-08 10:20:05] INFO  : Lancement du démon hkControl
[2024-09-08 10:20:05] DEBUG  : Lancement démon hkControl : nice -n 19 node  /var/www/html/plugins/hkControl/resources/hkControl.js http://192.168.1.168/core/api/jeeApi.php 8Cy6BJsERcKT9je810KN1RCP5gIgLOTLssEPStV7iZmZNSv1B8FnP6Ekk0Yf8nZW 34419 debug /var/www/html/plugins/hkControl/data/pairings.json NoCam
[2024-09-08 10:20:05] INFO  : Démon hkControl lancé

Et la santé du plugin

Merci de vos réponses et de votre aide

Bonjour,

Toujours pas le log hkControl_dep dont j’ai besoin.

Désolé, le voici :

= KO == Erreur d'Installation [55sec]
======================================================================
== ANALYSE DES ERREURS...
== AUCUNE ERREUR CONNUE DÉTECTÉE
== Erreur à l'étape : Installation des librairies, veuillez patienter svp
== Ligne 219
== La commande `sudo npm install --no-fund --no-package-lock --no-audit' pose problème
== Le code de retour est 1
== Le message d'erreur :
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.
npm warn deprecated npmlog@5.0.1: This package is no longer supported.
npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm warn deprecated are-we-there-yet@2.0.0: This package is no longer supported.
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated gauge@3.0.2: This package is no longer supported.
npm error code 1
npm error path /var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble
npm error command failed
npm error command sh -c node-gyp-build
npm error gyp info it worked if it ends with ok
npm error gyp info using node-gyp@10.2.0
npm error gyp info using node@18.20.4 | linux | arm64
npm error gyp info find Python using Python version 3.7.3 found at "/usr/bin/python3"
npm error gyp info spawn /usr/bin/python3
npm error gyp info spawn args [
npm error gyp info spawn args '/var/www/html/plugins/hkControl/resources/node_modules/node-gyp/gyp/gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '-f',
npm error gyp info spawn args 'make',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/var/www/html/plugins/hkControl/resources/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/root/.cache/node-gyp/18.20.4/include/node/common.gypi',
npm error gyp info spawn args '-Dlibrary=shared_library',
npm error gyp info spawn args '-Dvisibility=default',
npm error gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/18.20.4',
npm error gyp info spawn args '-Dnode_gyp_dir=/var/www/html/plugins/hkControl/resources/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/18.20.4/<(target_arch)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble',
npm error gyp info spawn args '-Dnode_engine=v8',
npm error gyp info spawn args '--depth=.',
npm error gyp info spawn args '--no-parallel',
npm error gyp info spawn args '--generator-output',
npm error gyp info spawn args 'build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error Traceback (most recent call last):
npm error   File "/var/www/html/plugins/hkControl/resources/node_modules/node-gyp/gyp/gyp_main.py", line 42, in <module>
npm error     import gyp  # noqa: E402
npm error   File "/var/www/html/plugins/hkControl/resources/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 9, in <module>
npm error     import gyp.input
npm error   File "/var/www/html/plugins/hkControl/resources/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 8, in <module>
npm error     import gyp.common
npm error   File "/var/www/html/plugins/hkControl/resources/node_modules/node-gyp/gyp/pylib/gyp/common.py", line 435
npm error     if CC := os.environ.get("CC_target") or os.environ.get("CC"):
npm error            ^
npm error SyntaxError: invalid syntax
npm error gyp ERR! configure error
npm error gyp ERR! stack Error: `gyp` failed with exit code: 1
npm error gyp ERR! stack at ChildProcess.<anonymous> (/var/www/html/plugins/hkControl/resources/node_modules/node-gyp/lib/configure.js:317:18)
npm error gyp ERR! stack at ChildProcess.emit (node:events:517:28)
npm error gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:292:12)
npm error gyp ERR! System Linux 3.14.79-94
npm error gyp ERR! command "/usr/bin/node" "/var/www/html/plugins/hkControl/resources/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm error gyp ERR! cwd /var/www/html/plugins/hkControl/resources/node_modules/@abandonware/noble
npm error gyp ERR! node -v v18.20.4
npm error gyp ERR! node-gyp -v v10.2.0
npm error gyp ERR! not ok
npm error A complete log of this run can be found in: /root/.npm/_logs/2024-09-07T08_37_55_066Z-debug-0.log
======================================================================

Vous pouvez fournir le log complet s’il vous plaît ? Et n’oubliez pas d’utiliser le formatage de code car sinon c’est illisible.

Par contre je ne pense pas que je puisse vous aider, vous utilisez toujours un debian 10 qui bien que jeedom supporte toujours, je ne supporte plus car debian a décidé de ne plus le supporter.

Désolé mais je ne sais pas ce qu’est le formatage de code.

Je vous invite à lire le point 11 de ce post : Comment nous aider à vous aider - ou Comment poser une bonne question?