Démarrage demon impossible

Bonjour,

Désolé, j’ouvre un sujet déjà abordé.

Mais, après avoir consulté les différents posts, je n’ai pas vu de conclusion (sauf erreur) disant la position à adopter quant à la mise à jour de z2m vers une v2.1.x. depuis la 1.42.0.
Je rencontre le même problème que beaucoup, à savoir que le démon de jeezigbee ne démarre pas en version 2.1.x. Je suis en version 1.42.0 sous jeedom 4.4.19 sur raspberry pi4.
Et j’ai le dongle sonoff ZBDongle-E en version firmware EZSP.

J’ai essayé de supprimer la ligne « device » dans la config yaml sans succès.

Ma question est donc de savoir s’il faut rester en 1.42 en attendant une correction, ou est-ce que le problème vient de ma conf ?

Merci d’avance pour votre aide/réponse.

Salut

Page santé jeedom, log démarrage du demon et copie du fichier configuration.yaml

On fait comment pour te répondre ?

Antoine

OK merci pour l’intérêt que tu portes à mon problème. Je vais fournir ces éléments. Je vais faire ça demain, il faut que je redémarre sur la carte SD qui me sert d’environnement de test.

Bonjour Antoine,
Etant dans mon environnement de test en z2m 1.42.0, je viens donc de relancer l’installation des dépendances, z2m est bien passé en v2.1.3 et comme prévu le démon ne démarre pas. Voici les logs :
log z2m_packages:

0000|+ echo '*******************Begin of package installation******************'
0001|*******************Begin of package installation******************
0002|+ touch /tmp/jeedom_install_in_progress_z2m
0003|+ echo 1
0004|+ echo 2
0005|+ sudo chmod +x /var/www/html/core/class/../../plugins/z2m/resources/pre-install.sh
0006|+ sudo /var/www/html/core/class/../../plugins/z2m/resources/pre-install.sh
0007|Launch pre-install of z2m dependancy
0008|+ echo 3
0009|+ php /var/www/html/core/class/../php/jeecli.php plugin install mqtt2
0010|+ echo 4
0011|+ sudo killall apt apt-get unattended-upgr
0012|apt: no process found
0013|apt-get: no process found
0014|+ sudo rm /var/lib/apt/lists/lock
0015|+ sudo rm /var/cache/apt/archives/lock
0016|+ sudo rm /var/lib/dpkg/lock /var/lib/dpkg/lock-frontend
0017|+ sudo sudo dpkg --configure -a --force-confdef
0018|+ sudo apt update
0019|WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
0020|Hit:1 https://deb.nodesource.com/node_20.x nodistro InRelease
0021|Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease
0022|Hit:3 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
0023|Reading package lists...
0024|Building dependency tree...
0025|Reading state information...
0026|85 packages can be upgraded. Run 'apt list --upgradable' to see them.
0027|+ echo 5
0028|+ sudo chmod +x /var/www/html/core/class/../../resources/install_nodejs.sh
0029|+ sudo /var/www/html/core/class/../../resources/install_nodejs.sh
0030|Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
0031|Hit:2 https://deb.nodesource.com/node_20.x nodistro InRelease
0032|Hit:3 http://archive.raspberrypi.org/debian bullseye InRelease
0033|Reading package lists...
0034|Reading package lists...
0035|Building dependency tree...
0036|Reading state information...
0037|apt-utils is already the newest version (2.2.4).
0038|build-essential is already the newest version (12.9).
0039|git is already the newest version (1:2.30.2-1+deb11u4).
0040|lsb-release is already the newest version (11.1.0+rpi1).
0041|0 upgraded, 0 newly installed, 0 to remove and 85 not upgraded.
0042|[Check Version NodeJS actuelle : v20.18.1 : [  OK  ]
0043|[Check Prefix : /usr and sudo prefix : /usr and www-data prefix : /usr : [  OK  ]
0044|Clean npm cache
0045|npm warn using --force Recommended protections disabled.
0046|+ echo 6
0047|+ sudo apt install -o Dpkg::Options::=--force-confdef -y php-yaml
0048|WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
0049|Reading package lists...
0050|Building dependency tree...
0051|Reading state information...
0052|php-yaml is already the newest version (2.2.1+2.1.0+2.0.4+1.3.2-2).
0053|0 upgraded, 0 newly installed, 0 to remove and 85 not upgraded.
0054|+ echo 7
0055|+ sudo systemctl restart apache2
0056|+ echo 8
0057|+ sudo chmod +x /var/www/html/core/class/../../plugins/z2m/resources/post-install.sh
0058|+ sudo /var/www/html/core/class/../../plugins/z2m/resources/post-install.sh
0059|+ echo Launch post-install of z2m dependancy
0060|Launch post-install of z2m dependancy
0061|+ realpath /var/www/html/core/class/../../plugins/z2m/resources/post-install.sh
0062|+ dirname /var/www/html/plugins/z2m/resources/post-install.sh
0063|+ BASEDIR=/var/www/html/plugins/z2m/resources
0064|+ [ -d /var/www/html/plugins/z2m/resources/zigbee2mqtt ]
0065|+ rm -rf /var/www/html/plugins/z2m/resources/zigbee2mqtt
0066|+ mkdir /var/www/html/plugins/z2m/resources/zigbee2mqtt
0067|+ git clone --depth 1 https://github.com/Koenkk/zigbee2mqtt.git /var/www/html/plugins/z2m/resources/zigbee2mqtt
0068|Cloning into '/var/www/html/plugins/z2m/resources/zigbee2mqtt'...
0069|+ cd /var/www/html/plugins/z2m/resources/zigbee2mqtt
0070|+ [ -f /var/www/html/plugins/z2m/resources/../data/wanted_z2m_version ]
0071|+ npm ci
0072|npm error code EUSAGE
0073|npm error
0074|npm error The `npm ci` command can only install with an existing package-lock.json or
0075|npm error npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or
0076|npm error later to generate a package-lock.json file, then try again.
0077|npm error
0078|npm error Clean install a project
0079|npm error
0080|npm error Usage:
0081|npm error npm ci
0082|npm error
0083|npm error Options:
0084|npm error [--install-strategy <hoisted|nested|shallow|linked>] [--legacy-bundling]
0085|npm error [--global-style] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
0086|npm error [--include <prod|dev|optional|peer> [--include <prod|dev|optional|peer> ...]]
0087|npm error [--strict-peer-deps] [--foreground-scripts] [--ignore-scripts] [--no-audit]
0088|npm error [--no-bin-links] [--no-fund] [--dry-run]
0089|npm error [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
0090|npm error [-ws|--workspaces] [--include-workspace-root] [--install-links]
0091|npm error
0092|npm error aliases: clean-install, ic, install-clean, isntall-clean
0093|npm error
0094|npm error Run "npm help ci" for more info
0095|npm error A complete log of this run can be found in: /root/.npm/_logs/2025-03-08T09_17_56_129Z-debug-0.log
0096|+ npm run build
0097|> zigbee2mqtt@2.1.3 build
0098|> tsc && node index.js writehash
0099|sh: 1: tsc: not found
0100|+ chown www-data:www-data -R /var/www/html/plugins/z2m/resources/zigbee2mqtt
0101|+ echo 9
0102|+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end z2m
0103|rm: invalid option -- '/'
0104|Try 'rm --help' for more information.
0105|+ echo 10
0106|+ rm /tmp/jeedom_install_in_progress_z2m
0107|+ echo '*******************End of package installation******************'
0108|*******************End of package installation******************

log z2md:

0000|> zigbee2mqtt@1.42.0 start
0001|> node index.js
0002|Starting Zigbee2MQTT without watchdog.
0003|[2025-03-06 19:28:27] e[31merrore[39m: 	z2m: Failed to load external converter file '/var/www/html/plugins/z2m/core/class/../config/converters/Danfoss/icon.js' (Cannot find module 'zigbee-herdsman-converters/lib/extend'
0004|Require stack:
0005|- /var/www/html/plugins/z2m/resources/zigbee2mqtt/dist/util/utils.js
0006|- /var/www/html/plugins/z2m/resources/zigbee2mqtt/dist/util/settings.js
0007|- /var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js)
0008|[2025-03-06 19:28:27] e[31merrore[39m: 	z2m: Probably there is a syntax error in the file or the external converter is not compatible with the current Zigbee2MQTT version
0009|[2025-03-06 19:28:27] e[31merrore[39m: 	z2m: Note that external converters are not meant for long term usage, it's meant for local testing after which a pull request should be created to add out-of-the-box support for the device
0010|> zigbee2mqtt@1.42.0 start
0011|> node index.js
0012|Starting Zigbee2MQTT without watchdog.
0013|[2025-03-07 10:15:31] e[31merrore[39m: 	z2m: Failed to load external converter file '/var/www/html/plugins/z2m/core/class/../config/converters/Danfoss/icon.js' (Cannot find module 'zigbee-herdsman-converters/lib/extend'
0014|Require stack:
0015|- /var/www/html/plugins/z2m/resources/zigbee2mqtt/dist/util/utils.js
0016|- /var/www/html/plugins/z2m/resources/zigbee2mqtt/dist/util/settings.js
0017|- /var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js)
0018|[2025-03-07 10:15:31] e[31merrore[39m: 	z2m: Probably there is a syntax error in the file or the external converter is not compatible with the current Zigbee2MQTT version
0019|[2025-03-07 10:15:31] e[31merrore[39m: 	z2m: Note that external converters are not meant for long term usage, it's meant for local testing after which a pull request should be created to add out-of-the-box support for the device
0020|> zigbee2mqtt@1.42.0 start
0021|> node index.js
0022|Starting Zigbee2MQTT without watchdog.
0023|[2025-03-07 20:15:04] e[31merrore[39m: 	z2m: Failed to load external converter file '/var/www/html/plugins/z2m/core/class/../config/converters/Danfoss/icon.js' (Cannot find module 'zigbee-herdsman-converters/lib/extend'
0024|Require stack:
0025|- /var/www/html/plugins/z2m/resources/zigbee2mqtt/dist/util/utils.js
0026|- /var/www/html/plugins/z2m/resources/zigbee2mqtt/dist/util/settings.js
0027|- /var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js)
0028|[2025-03-07 20:15:04] e[31merrore[39m: 	z2m: Probably there is a syntax error in the file or the external converter is not compatible with the current Zigbee2MQTT version
0029|[2025-03-07 20:15:04] e[31merrore[39m: 	z2m: Note that external converters are not meant for long term usage, it's meant for local testing after which a pull request should be created to add out-of-the-box support for the device
0030|> zigbee2mqtt@2.1.3 start
0031|> node index.js
0032|node:internal/modules/cjs/loader:1228
0033|throw err;
0034|^
0035|Error: Cannot find module 'semver'
0036|Require stack:
0037|- /var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js
0038|at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
0039|at Module._load (node:internal/modules/cjs/loader:1051:27)
0040|at Module.require (node:internal/modules/cjs/loader:1311:19)
0041|at require (node:internal/modules/helpers:179:18)
0042|at Object.<anonymous> (/var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js:1:16)
0043|at Module._compile (node:internal/modules/cjs/loader:1469:14)
0044|at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
0045|at Module.load (node:internal/modules/cjs/loader:1288:32)
0046|at Module._load (node:internal/modules/cjs/loader:1104:12)
0047|at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:173:12) {
0048|code: 'MODULE_NOT_FOUND',
0049|requireStack: [ '/var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js' ]
0050|}
0051|Node.js v20.18.1
0052|> zigbee2mqtt@2.1.3 start
0053|> node index.js
0054|node:internal/modules/cjs/loader:1228
0055|throw err;
0056|^
0057|Error: Cannot find module 'semver'
0058|Require stack:
0059|- /var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js
0060|at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
0061|at Module._load (node:internal/modules/cjs/loader:1051:27)
0062|at Module.require (node:internal/modules/cjs/loader:1311:19)
0063|at require (node:internal/modules/helpers:179:18)
0064|at Object.<anonymous> (/var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js:1:16)
0065|at Module._compile (node:internal/modules/cjs/loader:1469:14)
0066|at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
0067|at Module.load (node:internal/modules/cjs/loader:1288:32)
0068|at Module._load (node:internal/modules/cjs/loader:1104:12)
0069|at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:173:12) {
0070|code: 'MODULE_NOT_FOUND',
0071|requireStack: [ '/var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js' ]
0072|}
0073|Node.js v20.18.1
0074|> zigbee2mqtt@2.1.3 start
0075|> node index.js
0076|node:internal/modules/cjs/loader:1228
0077|throw err;
0078|^
0079|Error: Cannot find module 'semver'
0080|Require stack:
0081|- /var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js
0082|at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
0083|at Module._load (node:internal/modules/cjs/loader:1051:27)
0084|at Module.require (node:internal/modules/cjs/loader:1311:19)
0085|at require (node:internal/modules/helpers:179:18)
0086|at Object.<anonymous> (/var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js:1:16)
0087|at Module._compile (node:internal/modules/cjs/loader:1469:14)
0088|at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
0089|at Module.load (node:internal/modules/cjs/loader:1288:32)
0090|at Module._load (node:internal/modules/cjs/loader:1104:12)
0091|at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:173:12) {
0092|code: 'MODULE_NOT_FOUND',
0093|requireStack: [ '/var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js' ]
0094|}
0095|Node.js v20.18.1

Copie écran plugin z2m:

Merci d’avance pour votre aide.
Et j’allais oublier la config yaml :

---
permit_join: false
mqtt:
  server: mqtt://127.0.0.1:1883
  user: jeedom
  password: I9XU1kM6IW2Vb4SALP9MtXvA76r14JOQwMm63KIv4vTXLa0ChWLEvSR4Pkqva865
  base_topic: zigbee2mqtt
  include_device_information: true
serial:
  port: /dev/serial/by-id/usb-Itead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_V2_30440d055812ef11a3e46db8bf9df066-if00-port0
  adapter: ezsp
frontend:
  port: 8080
  host: 0.0.0.0
  auth_token: V5YpxlCkGfMDBuqaKXxta0khqj5utJV1
advanced:
  last_seen: ISO_8601
  network_key:
  - 113
  - 46
  - 13
  - 133
  - 160
  - 44
  - 157
  - 233
  - 13
  - 23
  - 14
  - 41
  - 169
  - 127
  - 166
  - 58
  pan_id: 26259
  ext_pan_id:
  - 119
  - 206
  - 177
  - 4
  - 177
  - 201
  - 144
  - 25
  log_level: error
  homeassistant_legacy_entity_attributes: false
  legacy_api: false
  legacy_availability_payload: false
external_converters:
- /var/www/html/plugins/z2m/core/class/../config/converters/Danfoss/icon.js
device_options:
  legacy: false
devices:
  "0x00124b00252bf62c":
    friendly_name: sonoff_snzb02_salon
    description: "Sonde temp\xE9rature et humidit\xE9 Sonoff SNZB-02 pile CR2450"
  "0x00124b00292f101f":
    friendly_name: sonoff_snzb02_ch1
    description: "Sonde temp\xE9rature et humidit\xE9 Sonoff SNZB-02 pile CR2450"
  "0x00124b0029115536":
    friendly_name: sonoff_snzb02_ch2
    description: "Sonde temp\xE9rature et humidit\xE9 Sonoff SNZB-02 pile CR2450"
  "0x0c4314fffee0e0f5":
    friendly_name: moes_zht-002_sdb_parents
    description: Thermostat radiateur MOES_ZHT-002 GB
  "0x00124b0025798116":
    friendly_name: sonoff_zbmini-L_garage
    description: "Inter \xE9clairage bassin Sonoff ZBMINI-L sans neutre"
  "0xe0798dfffed4d09e":
    friendly_name: moes_ts0207_garage
    description: "R\xE9p\xE9teur tuya zigbee 3.0 MOES JMRP01 (TS0207) grand format"
  "0x04cd15fffe0a2205":
    friendly_name: loratap_ts0207_salon
    description: "R\xE9p\xE9teur tuya zigbee 3.0 Loratap TS207 mini format fabricant
      Loratap"
  "0x00158d0009e13420":
    friendly_name: aqara_sjcgq11lm_buanderie
    description: "D\xE9tecteur d'eau Aqara  SJCGQ11LM pile CR2032"
  "0x00124b00253d8682":
    friendly_name: "sonoff_snzb01_salle \xE0 manger"
    description: "Bouton poussoir carr\xE9 Sonoff SNZB-01 \xE0 3 sc\xE9narios pile
      CR2450"
  "0x00158d000945fba0":
    friendly_name: aquara_wsdcgq11lm_salon
    description: "Sonde temp\xE9rature humidit\xE9 pression Aqara  WSDCGQ11LM pile
      CR2032"
  "0x44e2f8fffe27895e":
    friendly_name: sonoff_snzb-01p_cuisine
    description: "Bouton poussoir rond Sonoff SNZB-01P \xE0 3 sc\xE9narios pile CR2477"
  "0x44e2f8fffe232278":
    friendly_name: sonoff_snzb-02p_ch parents
    description: "Sonde temp\xE9rature et humidit\xE9 Sonoff SNZB-02P pile CR2477"
...
saisissez ou collez du code ici

Bonjour,

Voir les autres sujets plugin-z2m. Une solution temporaire à ce problème a déjà été donnée en attendant la prise en compte par le dev.

Voir : Erreur de mise à jour dépendances zigbee2mqtt 2.1.2 - #8 par FabriceC01

akenad :slight_smile:

1 « J'aime »

OK merci pour ta réponse. J’en déduis qu’il faut forcer la version de npn avec la commande : ```
npm install -g pnpm@10.4.1. C’est bien ça ?
Entre temps j’ai refais l’installation de npm et j’ai la version 10.6.1, donc ce n’est pas bon je pense.

Pnpm et npm sont deux logiciels différents. On est d’accord?

Oui.

npm est utilisé pour installer pnpm en version 10.4.1
pour pouvoir installer correctement zigbee2mqtt 2.1.2 ou 2.1.3.

akenad :slight_smile:

Parfait. Alors comme j’avais déjà passé la commande « npm install -g pnpm » je n’ai pas modifié le fichier .sh pour forcer la version pnpm en 10.4.1.
J’ai donc la version 10.6.1 de pnpm. J’ai relancé l’installation des dépendances et ça fonctionne.

Super. Encore merci pour vos réponses et réactivité.

1 « J'aime »

Bonjour,

En fait ça ne fonctionne pas. J’ai du redémarré Jeedom ce matin et le démon jeezigbee ne redémarre pas alors qu’il a tourné hier toute la journée. Je ne comprends pas.
La log z2md indique maintenant un problème de configuration au niveau du « device_options ».

0230|node:internal/modules/cjs/loader:1228
0231|throw err;
0232|^
0233|Error: Cannot find module 'semver'
0234|Require stack:
0235|- /var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js
0236|at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
0237|at Module._load (node:internal/modules/cjs/loader:1051:27)
0238|at Module.require (node:internal/modules/cjs/loader:1311:19)
0239|at require (node:internal/modules/helpers:179:18)
0240|at Object.<anonymous> (/var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js:1:16)
0241|at Module._compile (node:internal/modules/cjs/loader:1469:14)
0242|at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
0243|at Module.load (node:internal/modules/cjs/loader:1288:32)
0244|at Module._load (node:internal/modules/cjs/loader:1104:12)
0245|at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:173:12) {
0246|code: 'MODULE_NOT_FOUND',
0247|requireStack: [ '/var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js' ]
0248|}
0249|Node.js v20.18.1
0250|> zigbee2mqtt@2.1.3 start
0251|> node index.js
0252|node:internal/modules/cjs/loader:1228
0253|throw err;
0254|^
0255|Error: Cannot find module 'semver'
0256|Require stack:
0257|- /var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js
0258|at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
0259|at Module._load (node:internal/modules/cjs/loader:1051:27)
0260|at Module.require (node:internal/modules/cjs/loader:1311:19)
0261|at require (node:internal/modules/helpers:179:18)
0262|at Object.<anonymous> (/var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js:1:16)
0263|at Module._compile (node:internal/modules/cjs/loader:1469:14)
0264|at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
0265|at Module.load (node:internal/modules/cjs/loader:1288:32)
0266|at Module._load (node:internal/modules/cjs/loader:1104:12)
0267|at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:173:12) {
0268|code: 'MODULE_NOT_FOUND',
0269|requireStack: [ '/var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js' ]
0270|}
0271|Node.js v20.18.1
0272|> zigbee2mqtt@2.1.3 start
0273|> node index.js
0274|node:internal/modules/cjs/loader:1228
0275|throw err;
0276|^
0277|Error: Cannot find module 'semver'
0278|Require stack:
0279|- /var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js
0280|at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
0281|at Module._load (node:internal/modules/cjs/loader:1051:27)
0282|at Module.require (node:internal/modules/cjs/loader:1311:19)
0283|at require (node:internal/modules/helpers:179:18)
0284|at Object.<anonymous> (/var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js:1:16)
0285|at Module._compile (node:internal/modules/cjs/loader:1469:14)
0286|at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
0287|at Module.load (node:internal/modules/cjs/loader:1288:32)
0288|at Module._load (node:internal/modules/cjs/loader:1104:12)
0289|at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:173:12) {
0290|code: 'MODULE_NOT_FOUND',
0291|requireStack: [ '/var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js' ]
0292|}
0293|Node.js v20.18.1
0294|> zigbee2mqtt@2.1.3 start
0295|> node index.js
0296|node:internal/modules/cjs/loader:1228
0297|throw err;
0298|^
0299|Error: Cannot find module 'semver'
0300|Require stack:
0301|- /var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js
0302|at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
0303|at Module._load (node:internal/modules/cjs/loader:1051:27)
0304|at Module.require (node:internal/modules/cjs/loader:1311:19)
0305|at require (node:internal/modules/helpers:179:18)
0306|at Object.<anonymous> (/var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js:1:16)
0307|at Module._compile (node:internal/modules/cjs/loader:1469:14)
0308|at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
0309|at Module.load (node:internal/modules/cjs/loader:1288:32)
0310|at Module._load (node:internal/modules/cjs/loader:1104:12)
0311|at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:173:12) {
0312|code: 'MODULE_NOT_FOUND',
0313|requireStack: [ '/var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js' ]
0314|}
0315|Node.js v20.18.1
0316|> zigbee2mqtt@2.1.3 start
0317|> node index.js
0318|node:internal/modules/cjs/loader:1228
0319|throw err;
0320|^
0321|Error: Cannot find module 'semver'
0322|Require stack:
0323|- /var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js
0324|at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
0325|at Module._load (node:internal/modules/cjs/loader:1051:27)
0326|at Module.require (node:internal/modules/cjs/loader:1311:19)
0327|at require (node:internal/modules/helpers:179:18)
0328|at Object.<anonymous> (/var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js:1:16)
0329|at Module._compile (node:internal/modules/cjs/loader:1469:14)
0330|at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
0331|at Module.load (node:internal/modules/cjs/loader:1288:32)
0332|at Module._load (node:internal/modules/cjs/loader:1104:12)
0333|at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:173:12) {
0334|code: 'MODULE_NOT_FOUND',
0335|requireStack: [ '/var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js' ]
0336|}
0337|Node.js v20.18.1
0338|> zigbee2mqtt@2.1.3 start
0339|> node index.js
0340|node:internal/modules/cjs/loader:1228
0341|throw err;
0342|^
0343|Error: Cannot find module 'semver'
0344|Require stack:
0345|- /var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js
0346|at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
0347|at Module._load (node:internal/modules/cjs/loader:1051:27)
0348|at Module.require (node:internal/modules/cjs/loader:1311:19)
0349|at require (node:internal/modules/helpers:179:18)
0350|at Object.<anonymous> (/var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js:1:16)
0351|at Module._compile (node:internal/modules/cjs/loader:1469:14)
0352|at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
0353|at Module.load (node:internal/modules/cjs/loader:1288:32)
0354|at Module._load (node:internal/modules/cjs/loader:1104:12)
0355|at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:173:12) {
0356|code: 'MODULE_NOT_FOUND',
0357|requireStack: [ '/var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js' ]
0358|}
0359|Node.js v20.18.1
0360|> zigbee2mqtt@2.1.3 start
0361|> node index.js
0362|node:internal/modules/cjs/loader:1228
0363|throw err;
0364|^
0365|Error: Cannot find module 'semver'
0366|Require stack:
0367|- /var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js
0368|at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
0369|at Module._load (node:internal/modules/cjs/loader:1051:27)
0370|at Module.require (node:internal/modules/cjs/loader:1311:19)
0371|at require (node:internal/modules/helpers:179:18)
0372|at Object.<anonymous> (/var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js:1:16)
0373|at Module._compile (node:internal/modules/cjs/loader:1469:14)
0374|at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
0375|at Module.load (node:internal/modules/cjs/loader:1288:32)
0376|at Module._load (node:internal/modules/cjs/loader:1104:12)
0377|at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:173:12) {
0378|code: 'MODULE_NOT_FOUND',
0379|requireStack: [ '/var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js' ]
0380|}
0381|Node.js v20.18.1
0382|> zigbee2mqtt@2.1.3 start
0383|> node index.js
0384|node:internal/modules/cjs/loader:1228
0385|throw err;
0386|^
0387|Error: Cannot find module 'semver'
0388|Require stack:
0389|- /var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js
0390|at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
0391|at Module._load (node:internal/modules/cjs/loader:1051:27)
0392|at Module.require (node:internal/modules/cjs/loader:1311:19)
0393|at require (node:internal/modules/helpers:179:18)
0394|at Object.<anonymous> (/var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js:1:16)
0395|at Module._compile (node:internal/modules/cjs/loader:1469:14)
0396|at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
0397|at Module.load (node:internal/modules/cjs/loader:1288:32)
0398|at Module._load (node:internal/modules/cjs/loader:1104:12)
0399|at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:173:12) {
0400|code: 'MODULE_NOT_FOUND',
0401|requireStack: [ '/var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js' ]
0402|}
0403|Node.js v20.18.1
0404|> zigbee2mqtt@2.1.3 start
0405|> node index.js
0406|node:internal/modules/cjs/loader:1228
0407|throw err;
0408|^
0409|Error: Cannot find module 'semver'
0410|Require stack:
0411|- /var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js
0412|at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
0413|at Module._load (node:internal/modules/cjs/loader:1051:27)
0414|at Module.require (node:internal/modules/cjs/loader:1311:19)
0415|at require (node:internal/modules/helpers:179:18)
0416|at Object.<anonymous> (/var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js:1:16)
0417|at Module._compile (node:internal/modules/cjs/loader:1469:14)
0418|at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
0419|at Module.load (node:internal/modules/cjs/loader:1288:32)
0420|at Module._load (node:internal/modules/cjs/loader:1104:12)
0421|at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:173:12) {
0422|code: 'MODULE_NOT_FOUND',
0423|requireStack: [ '/var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js' ]
0424|}
0425|Node.js v20.18.1
0426|> zigbee2mqtt@2.1.3 start
0427|> node index.js
0428|node:internal/modules/cjs/loader:1228
0429|throw err;
0430|^
0431|Error: Cannot find module 'semver'
0432|Require stack:
0433|- /var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js
0434|at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
0435|at Module._load (node:internal/modules/cjs/loader:1051:27)
0436|at Module.require (node:internal/modules/cjs/loader:1311:19)
0437|at require (node:internal/modules/helpers:179:18)
0438|at Object.<anonymous> (/var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js:1:16)
0439|at Module._compile (node:internal/modules/cjs/loader:1469:14)
0440|at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
0441|at Module.load (node:internal/modules/cjs/loader:1288:32)
0442|at Module._load (node:internal/modules/cjs/loader:1104:12)
0443|at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:173:12) {
0444|code: 'MODULE_NOT_FOUND',
0445|requireStack: [ '/var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js' ]
0446|}
0447|Node.js v20.18.1
0448|> zigbee2mqtt@2.1.3 start
0449|> node index.js
0450|node:internal/modules/cjs/loader:1228
0451|throw err;
0452|^
0453|Error: Cannot find module 'semver'
0454|Require stack:
0455|- /var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js
0456|at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
0457|at Module._load (node:internal/modules/cjs/loader:1051:27)
0458|at Module.require (node:internal/modules/cjs/loader:1311:19)
0459|at require (node:internal/modules/helpers:179:18)
0460|at Object.<anonymous> (/var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js:1:16)
0461|at Module._compile (node:internal/modules/cjs/loader:1469:14)
0462|at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
0463|at Module.load (node:internal/modules/cjs/loader:1288:32)
0464|at Module._load (node:internal/modules/cjs/loader:1104:12)
0465|at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:173:12) {
0466|code: 'MODULE_NOT_FOUND',
0467|requireStack: [ '/var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js' ]
0468|}
0469|Node.js v20.18.1
0470|> zigbee2mqtt@2.1.3 start
0471|> node index.js
0472|Starting Zigbee2MQTT without watchdog.
0473|Migration notes written in /var/www/html/plugins/z2m/data/migration-1-to-2.log
0474|Migration notes written in /var/www/html/plugins/z2m/data/migration-2-to-3.log
0475|Migration notes written in /var/www/html/plugins/z2m/data/migration-3-to-4.log
0476|> zigbee2mqtt@2.1.3 start
0477|> node index.js
0478|Starting Zigbee2MQTT without watchdog.
0479|!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
0480|READ THIS CAREFULLY
0481|Refusing to start because configuration is not valid, found the following errors:
0482|- device_options must be object
0483|If you don't know how to solve this, read https://www.zigbee2mqtt.io/guide/configuration
0484|!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
0485|> zigbee2mqtt@2.1.3 start
0486|> node index.js
0487|Starting Zigbee2MQTT without watchdog.
0488|!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
0489|READ THIS CAREFULLY
0490|Refusing to start because configuration is not valid, found the following errors:
0491|- device_options must be object
0492|If you don't know how to solve this, read https://www.zigbee2mqtt.io/guide/configuration
0493|!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
0494|> zigbee2mqtt@2.1.3 start
0495|> node index.js
0496|Starting Zigbee2MQTT without watchdog.
0497|!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
0498|READ THIS CAREFULLY
0499|Refusing to start because configuration is not valid, found the following errors:
0500|- device_options must be object
0501|If you don't know how to solve this, read https://www.zigbee2mqtt.io/guide/configuration
0502|!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
0503|> zigbee2mqtt@2.1.3 start
0504|> node index.js
0505|Starting Zigbee2MQTT without watchdog.
0506|!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
0507|READ THIS CAREFULLY
0508|Refusing to start because configuration is not valid, found the following errors:
0509|- device_options must be object
0510|If you don't know how to solve this, read https://www.zigbee2mqtt.io/guide/configuration
0511|!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
0512|> zigbee2mqtt@2.1.3 start
0513|> node index.js
0514|Starting Zigbee2MQTT without watchdog.
0515|!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
0516|READ THIS CAREFULLY
0517|Refusing to start because configuration is not valid, found the following errors:
0518|- device_options must be object
0519|If you don't know how to solve this, read https://www.zigbee2mqtt.io/guide/configuration
0520|!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
0521|> zigbee2mqtt@2.1.3 start
0522|> node index.js
0523|Starting Zigbee2MQTT without watchdog.
0524|!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
0525|READ THIS CAREFULLY
0526|Refusing to start because configuration is not valid, found the following errors:
0527|- device_options must be object
0528|If you don't know how to solve this, read https://www.zigbee2mqtt.io/guide/configuration
0529|!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Bonjour

Dans le fichier de configuration yaml, la ligne "device_options" ne serait-elle pas revenue suite à l’upgrade ?

Bonjour,

Voici le fichier de conf, effectivement la ligne « device » apparait avec des « [ » « ] » après les « : » Je ne sais pas comment elle était à l’issue de la migration.

---
mqtt:
  server: mqtt://127.0.0.1:1883
  user: jeedom
  password: I9XU1kM6IW2Vb4SALP9MtXvA76r14JOQwMm63KIv4vTXLa0ChWLEvSR4Pkqva865
  base_topic: zigbee2mqtt
  include_device_information: true
serial:
  port: /dev/serial/by-id/usb-Itead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_V2_30440d055812ef11a3e46db8bf9df066-if00-port0
  adapter: ezsp
frontend:
  enabled: true
  port: 8080
  host: 0.0.0.0
  auth_token: V5YpxlCkGfMDBuqaKXxta0khqj5utJV1
advanced:
  last_seen: ISO_8601
  network_key:
  - 113
  - 46
  - 13
  - 133
  - 160
  - 44
  - 157
  - 233
  - 13
  - 23
  - 14
  - 41
  - 169
  - 127
  - 166
  - 58
  pan_id: 26259
  ext_pan_id:
  - 119
  - 206
  - 177
  - 4
  - 177
  - 201
  - 144
  - 25
  log_level: error
device_options: []
devices:
  "0x00124b00252bf62c":
    friendly_name: sonoff_snzb02_salon
    description: "Sonde temp\xE9rature et humidit\xE9 Sonoff SNZB-02 pile CR2450"
  "0x00124b00292f101f":
    friendly_name: sonoff_snzb02_ch1
    description: "Sonde temp\xE9rature et humidit\xE9 Sonoff SNZB-02 pile CR2450"
  "0x00124b0029115536":
    friendly_name: sonoff_snzb02_ch2
    description: "Sonde temp\xE9rature et humidit\xE9 Sonoff SNZB-02 pile CR2450"
  "0x0c4314fffee0e0f5":
    friendly_name: moes_zht-002_sdb_parents
    description: Thermostat radiateur MOES_ZHT-002 GB
  "0x00124b0025798116":
    friendly_name: sonoff_zbmini-L_garage
    description: "Inter \xE9clairage bassin Sonoff ZBMINI-L sans neutre"
  "0xe0798dfffed4d09e":
    friendly_name: moes_ts0207_garage
    description: "R\xE9p\xE9teur tuya zigbee 3.0 MOES JMRP01 (TS0207) grand format"
  "0x04cd15fffe0a2205":
    friendly_name: loratap_ts0207_salon
    description: "R\xE9p\xE9teur tuya zigbee 3.0 Loratap TS207 mini format fabricant
      Loratap"
  "0x00158d0009e13420":
    friendly_name: aqara_sjcgq11lm_buanderie
    description: "D\xE9tecteur d'eau Aqara  SJCGQ11LM pile CR2032"
  "0x00124b00253d8682":
    friendly_name: "sonoff_snzb01_salle \xE0 manger"
    description: "Bouton poussoir carr\xE9 Sonoff SNZB-01 \xE0 3 sc\xE9narios pile
      CR2450"
  "0x00158d000945fba0":
    friendly_name: aquara_wsdcgq11lm_salon
    description: "Sonde temp\xE9rature humidit\xE9 pression Aqara  WSDCGQ11LM pile
      CR2032"
  "0x44e2f8fffe27895e":
    friendly_name: sonoff_snzb-01p_cuisine
    description: "Bouton poussoir rond Sonoff SNZB-01P \xE0 3 sc\xE9narios pile CR2477"
  "0x44e2f8fffe232278":
    friendly_name: sonoff_snzb-02p_ch parents
    description: "Sonde temp\xE9rature et humidit\xE9 Sonoff SNZB-02P pile CR2477"
version: 4
permit_join: false
external_converters:
- /var/www/html/plugins/z2m/core/class/../config/converters/Danfoss/icon.js
...

Il faut commenter # cette ligne, ou la supprimer, ce qui revient au même

J’ai mis un # devant pour la mettre en commentaire. Le démon est démarré et tient.
Je préfère ça !
Merci mille fois. Je me voyais reparti dans une galère.

1 « J'aime »

Vous pouvez indiquer votre version actuelle de Zigbee2MQTT dans « version voulue » et ainsi ne plus risquer une modif lors d’un redémarrage.

OK très bonne remarque, pour ce qui me concerne c’est donc la 2.1.3.
Merci.

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