une fois la mise a jour faite le plugin fonctionne , mais ne supporte pas d’etre relancer, maj ou autre operation qui le relance.
essai en debug
> zigbee2mqtt@2.1.0 start /opt/zigbee2mqtt
> node index.js
Starting Zigbee2MQTT without watchdog.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
READ THIS CAREFULLY
Refusing to start because configuration is not valid, found the following errors:
- device_options must be object
If you don't know how to solve this, read https://www.zigbee2mqtt.io/guide/configuration
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ELIFECYCLE Command failed with exit code 1.
#######################################################
# INSTALL : Zigbee2mqtt #
#######################################################
#######################################################
##### apt-get update in progress
Hit:1 http://deb.debian.org/debian bullseye InRelease
Get:2 http://security.debian.org/debian-security bullseye-security InRelease [27.2 kB]
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Get:4 https://download.docker.com/linux/debian bullseye InRelease [43.3 kB]
Get:5 https://deb.nodesource.com/node_20.x nodistro InRelease [12.1 kB]
Get:6 http://security.debian.org/debian-security bullseye-security/main Sources [232 kB]
Get:7 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [341 kB]
Get:8 http://security.debian.org/debian-security bullseye-security/main Translation-en [221 kB]
Get:9 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages [10.4 kB]
Get:10 https://download.docker.com/linux/debian bullseye/stable amd64 Packages [49.0 kB]
Fetched 980 kB in 2s (524 kB/s)
Reading package lists...
#######################################################
##### Install or update Git
Reading package lists...
Building dependency tree...
Reading state information...
g++ is already the newest version (4:10.2.1-1).
gcc is already the newest version (4:10.2.1-1).
make is already the newest version (4.3-4.1).
Suggested packages:
git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk
gitweb git-cvs git-mediawiki git-svn
The following packages will be upgraded:
git
1 upgraded, 0 newly installed, 0 to remove and 74 not upgraded.
Need to get 5566 kB of archives.
After this operation, 8192 B of additional disk space will be used.
Get:1 http://security.debian.org/debian-security bullseye-security/main amd64 git amd64 1:2.30.2-1+deb11u4 [5566 kB]
apt-listchanges: Reading changelogs...
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Fetched 5566 kB in 4s (1484 kB/s)
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 73168 files and directories currently installed.)
Preparing to unpack .../git_1%3a2.30.2-1+deb11u4_amd64.deb ...
Unpacking git (1:2.30.2-1+deb11u4) over (1:2.30.2-1+deb11u3) ...
Setting up git (1:2.30.2-1+deb11u4) ...
#######################################################
##### Install or update NodeJs
NodeJs 20 already installed : Nothing to do !
added 1 package in 7s
1 package is looking for funding
run `npm fund` for details
#######################################################
# INSTALLING : Mosquitto for Php #
#######################################################
Mosquitto for Php is already installed, nothing to do
##### Z2M BRANCH version to install : master
#######################################################
##### Install Socat
Socat is already installed, nothing to do
#######################################################
##### Install yaml php and restart apache
Yaml is already installed, nothing to do
#######################################################
##### Stopping Zigbee2mqtt deamon #
## Supprime l'installation dans /opt/zigbee2mqtt
#######################################################
##### Complete installation : Download Zigbee2mqtt git
Cloning into '/opt/zigbee2mqtt'...
#######################################################
##### Install/Update Zigbee2mqtt
Lockfile is up to date, resolution step is skipped
Progress: resolved 1, reused 0, downloaded 0, added 0
Packages: +366
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 366, reused 0, downloaded 0, added 0
Progress: resolved 366, reused 0, downloaded 37, added 32
╭──────────────────────────────────────────────────────────────────╮
│ │
│ Update available! 9.15.4 → 10.2.0. │
│ Changelog: https://github.com/pnpm/pnpm/releases/tag/v10.2.0 │
│ Run "pnpm add -g pnpm" to update. │
│ │
╰──────────────────────────────────────────────────────────────────╯
Progress: resolved 366, reused 0, downloaded 68, added 68
Progress: resolved 366, reused 0, downloaded 100, added 96
Progress: resolved 366, reused 0, downloaded 140, added 140
Progress: resolved 366, reused 0, downloaded 164, added 164
Progress: resolved 366, reused 0, downloaded 181, added 181
Progress: resolved 366, reused 0, downloaded 199, added 198
Progress: resolved 366, reused 0, downloaded 213, added 212
Progress: resolved 366, reused 0, downloaded 231, added 231
Progress: resolved 366, reused 0, downloaded 248, added 248
Progress: resolved 366, reused 0, downloaded 266, added 266
Progress: resolved 366, reused 0, downloaded 288, added 288
Progress: resolved 366, reused 0, downloaded 310, added 310
Progress: resolved 366, reused 0, downloaded 321, added 321
Progress: resolved 366, reused 0, downloaded 335, added 335
Progress: resolved 366, reused 0, downloaded 354, added 354
Progress: resolved 366, reused 0, downloaded 357, added 357
Progress: resolved 366, reused 0, downloaded 359, added 359
Progress: resolved 366, reused 0, downloaded 362, added 362
Progress: resolved 366, reused 0, downloaded 364, added 364
Progress: resolved 366, reused 0, downloaded 365, added 364
Progress: resolved 366, reused 0, downloaded 366, added 366, done
.../node_modules/unix-dgram install$ node-gyp rebuild
.../node_modules/sd-notify install$ node-gyp rebuild
.../@serialport/bindings-cpp install$ node-gyp-build
.../esbuild@0.24.2/node_modules/esbuild postinstall$ node install.js
.../node_modules/sd-notify install: gyp info it worked if it ends with ok
.../node_modules/sd-notify install: gyp info using node-gyp@10.3.1
.../node_modules/sd-notify install: gyp info using node@20.18.0 | linux | x64
.../node_modules/unix-dgram install: gyp info it worked if it ends with ok
.../node_modules/unix-dgram install: gyp info using node-gyp@10.3.1
.../node_modules/unix-dgram install: gyp info using node@20.18.0 | linux | x64
.../esbuild@0.24.2/node_modules/esbuild postinstall: Done
.../node_modules/sd-notify install: gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
.../@serialport/bindings-cpp install: Done
.../node_modules/unix-dgram install: gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
.../node_modules/sd-notify install: gyp info spawn /usr/bin/python3
.../node_modules/unix-dgram install: gyp info spawn /usr/bin/python3
.../node_modules/sd-notify install: gyp info spawn args [
.../node_modules/sd-notify install: gyp info spawn args '/root/.local/share/pnpm/.tools/pnpm/9.15.4/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/dist/node_modules/node-gyp/gyp/gyp_main.py',
.../node_modules/sd-notify install: gyp info spawn args 'binding.gyp',
.../node_modules/sd-notify install: gyp info spawn args '-f',
.../node_modules/sd-notify install: gyp info spawn args 'make',
.../node_modules/sd-notify install: gyp info spawn args '-I',
.../node_modules/sd-notify install: gyp info spawn args '/opt/zigbee2mqtt/node_modules/.pnpm/sd-notify@2.8.0/node_modules/sd-notify/build/config.gypi',
.../node_modules/sd-notify install: gyp info spawn args '-I',
.../node_modules/sd-notify install: gyp info spawn args '/root/.local/share/pnpm/.tools/pnpm/9.15.4/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/dist/node_modules/node-gyp/addon.gypi',
.../node_modules/sd-notify install: gyp info spawn args '-I',
.../node_modules/sd-notify install: gyp info spawn args '/root/.cache/node-gyp/20.18.0/include/node/common.gypi',
.../node_modules/sd-notify install: gyp info spawn args '-Dlibrary=shared_library',
.../node_modules/sd-notify install: gyp info spawn args '-Dvisibility=default',
.../node_modules/sd-notify install: gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/20.18.0',
.../node_modules/sd-notify install: gyp info spawn args '-Dnode_gyp_dir=/root/.local/share/pnpm/.tools/pnpm/9.15.4/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/dist/node_modules/node-gyp',
.../node_modules/sd-notify install: gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/20.18.0/<(target_arch)/node.lib',
.../node_modules/sd-notify install: gyp info spawn args '-Dmodule_root_dir=/opt/zigbee2mqtt/node_modules/.pnpm/sd-notify@2.8.0/node_modules/sd-notify',
.../node_modules/sd-notify install: gyp info spawn args '-Dnode_engine=v8',
.../node_modules/sd-notify install: gyp info spawn args '--depth=.',
.../node_modules/sd-notify install: gyp info spawn args '--no-parallel',
.../node_modules/sd-notify install: gyp info spawn args '--generator-output',
.../node_modules/sd-notify install: gyp info spawn args 'build',
.../node_modules/sd-notify install: gyp info spawn args '-Goutput_dir=.'
.../node_modules/sd-notify install: gyp info spawn args ]
.../node_modules/unix-dgram install: gyp info spawn args [
.../node_modules/unix-dgram install: gyp info spawn args '/root/.local/share/pnpm/.tools/pnpm/9.15.4/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/dist/node_modules/node-gyp/gyp/gyp_main.py',
.../node_modules/unix-dgram install: gyp info spawn args 'binding.gyp',
.../node_modules/unix-dgram install: gyp info spawn args '-f',
.../node_modules/unix-dgram install: gyp info spawn args 'make',
.../node_modules/unix-dgram install: gyp info spawn args '-I',
.../node_modules/unix-dgram install: gyp info spawn args '/opt/zigbee2mqtt/node_modules/.pnpm/unix-dgram@2.0.6/node_modules/unix-dgram/build/config.gypi',
.../node_modules/unix-dgram install: gyp info spawn args '-I',
.../node_modules/unix-dgram install: gyp info spawn args '/root/.local/share/pnpm/.tools/pnpm/9.15.4/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/dist/node_modules/node-gyp/addon.gypi',
.../node_modules/unix-dgram install: gyp info spawn args '-I',
.../node_modules/unix-dgram install: gyp info spawn args '/root/.cache/node-gyp/20.18.0/include/node/common.gypi',
.../node_modules/unix-dgram install: gyp info spawn args '-Dlibrary=shared_library',
.../node_modules/unix-dgram install: gyp info spawn args '-Dvisibility=default',
.../node_modules/unix-dgram install: gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/20.18.0',
.../node_modules/unix-dgram install: gyp info spawn args '-Dnode_gyp_dir=/root/.local/share/pnpm/.tools/pnpm/9.15.4/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/dist/node_modules/node-gyp',
.../node_modules/unix-dgram install: gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/20.18.0/<(target_arch)/node.lib',
.../node_modules/unix-dgram install: gyp info spawn args '-Dmodule_root_dir=/opt/zigbee2mqtt/node_modules/.pnpm/unix-dgram@2.0.6/node_modules/unix-dgram',
.../node_modules/unix-dgram install: gyp info spawn args '-Dnode_engine=v8',
.../node_modules/unix-dgram install: gyp info spawn args '--depth=.',
.../node_modules/unix-dgram install: gyp info spawn args '--no-parallel',
.../node_modules/unix-dgram install: gyp info spawn args '--generator-output',
.../node_modules/unix-dgram install: gyp info spawn args 'build',
.../node_modules/unix-dgram install: gyp info spawn args '-Goutput_dir=.'
.../node_modules/unix-dgram install: gyp info spawn args ]
.../node_modules/sd-notify install: gyp info spawn make
.../node_modules/sd-notify install: gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
.../node_modules/sd-notify install: make: Entering directory '/opt/zigbee2mqtt/node_modules/.pnpm/sd-notify@2.8.0/node_modules/sd-notify/build'
.../node_modules/sd-notify install: CXX(target) Release/obj.target/notify/notify.o
.../node_modules/unix-dgram install: gyp info spawn make
.../node_modules/unix-dgram install: gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
.../node_modules/unix-dgram install: make: Entering directory '/opt/zigbee2mqtt/node_modules/.pnpm/unix-dgram@2.0.6/node_modules/unix-dgram/build'
.../node_modules/unix-dgram install: CXX(target) Release/obj.target/unix_dgram/src/unix_dgram.o
.../node_modules/sd-notify install: ../notify.cc:5:10: fatal error: systemd/sd-daemon.h: No such file or directory
.../node_modules/sd-notify install: 5 | #include <systemd/sd-daemon.h>
.../node_modules/sd-notify install: | ^~~~~~~~~~~~~~~~~~~~~
.../node_modules/sd-notify install: compilation terminated.
.../node_modules/sd-notify install: make: *** [notify.target.mk:106: Release/obj.target/notify/notify.o] Error 1
.../node_modules/sd-notify install: make: Leaving directory '/opt/zigbee2mqtt/node_modules/.pnpm/sd-notify@2.8.0/node_modules/sd-notify/build'
.../node_modules/sd-notify install: gyp ERR! build error
.../node_modules/sd-notify install: gyp ERR! stack Error: `make` failed with exit code: 2
.../node_modules/sd-notify install: gyp ERR! stack at ChildProcess.<anonymous> (/root/.local/share/pnpm/.tools/pnpm/9.15.4/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/dist/node_modules/node-gyp/lib/build.js:216:23)
.../node_modules/sd-notify install: gyp ERR! System Linux 5.10.0-33-amd64
.../node_modules/sd-notify install: gyp ERR! command "/usr/bin/node" "/root/.local/share/pnpm/.tools/pnpm/9.15.4/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
.../node_modules/sd-notify install: gyp ERR! cwd /opt/zigbee2mqtt/node_modules/.pnpm/sd-notify@2.8.0/node_modules/sd-notify
.../node_modules/sd-notify install: gyp ERR! node -v v20.18.0
.../node_modules/sd-notify install: gyp ERR! node-gyp -v v10.3.1
.../node_modules/sd-notify install: gyp ERR! not ok
.../node_modules/sd-notify install: Failed
.../node_modules/unix-dgram install: In file included from ../../../../nan@2.22.0/node_modules/nan/nan.h:62,
.../node_modules/unix-dgram install: from ../src/unix_dgram.cc:5:
.../node_modules/unix-dgram install: /root/.cache/node-gyp/20.18.0/include/node/node.h:1232:7: warning: cast between incompatible function types from 'void (*)(v8::Local<v8::Object>)' to 'node::addon_register_func' {aka 'void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)'} [-Wcast-function-type]
.../node_modules/unix-dgram install: 1232 | (node::addon_register_func) (regfunc), \
.../node_modules/unix-dgram install: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.../node_modules/unix-dgram install: /root/.cache/node-gyp/20.18.0/include/node/node.h:1266:3: note: in expansion of macro 'NODE_MODULE_X'
.../node_modules/unix-dgram install: 1266 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
.../node_modules/unix-dgram install: | ^~~~~~~~~~~~~
.../node_modules/unix-dgram install: ../src/unix_dgram.cc:404:1: note: in expansion of macro 'NODE_MODULE'
.../node_modules/unix-dgram install: 404 | NODE_MODULE(unix_dgram, Initialize)
.../node_modules/unix-dgram install: | ^~~~~~~~~~~
.../node_modules/unix-dgram install: SOLINK_MODULE(target) Release/obj.target/unix_dgram.node
.../node_modules/unix-dgram install: COPY Release/unix_dgram.node
.../node_modules/unix-dgram install: make: Leaving directory '/opt/zigbee2mqtt/node_modules/.pnpm/unix-dgram@2.0.6/node_modules/unix-dgram/build'
.../node_modules/unix-dgram install: gyp info ok
.../node_modules/unix-dgram install: Done
dependencies:
+ ajv 8.17.1
+ bind-decorator 1.0.11
+ debounce 2.2.0
+ express-static-gzip 2.2.0
+ fast-deep-equal 3.1.3
+ finalhandler 1.3.1
+ git-last-commit 1.0.1
+ humanize-duration 3.32.1
+ js-yaml 4.1.0
+ json-stable-stringify-without-jsonify 1.0.1
+ jszip 3.10.1
+ moment 2.30.1
+ mqtt 5.10.3
+ object-assign-deep 0.4.0
+ rimraf 6.0.1
+ semver 7.6.3
+ source-map-support 0.5.21
+ throttleit 2.1.0
+ winston 3.17.0
+ winston-syslog 2.7.1
+ winston-transport 4.9.0
+ ws 8.18.0
+ zigbee-herdsman 3.2.5
+ zigbee-herdsman-converters 21.27.1
+ zigbee2mqtt-frontend 0.9.4
optionalDependencies:
+ sd-notify 2.8.0
devDependencies:
+ @eslint/core 0.10.0
+ @eslint/js 9.19.0
+ @ianvs/prettier-plugin-sort-imports 4.4.1
+ @types/eslint__js 8.42.3
+ @types/finalhandler 1.2.3
+ @types/humanize-duration 3.27.4
+ @types/js-yaml 4.0.9
+ @types/node 22.10.10
+ @types/object-assign-deep 0.4.3
+ @types/readable-stream 4.0.18
+ @types/sd-notify 2.8.2
+ @types/serve-static 1.15.7
+ @types/ws 8.5.14
+ @vitest/coverage-v8 3.0.4
+ eslint 9.19.0
+ eslint-config-prettier 10.0.1
+ prettier 3.4.2
+ tmp 0.2.3
+ typescript 5.7.3
+ typescript-eslint 8.21.0
+ vitest 3.0.4
Done in 38.7s
> zigbee2mqtt@2.1.0 build /opt/zigbee2mqtt
> tsc && node index.js writehash
#######################################################
##### Configure deamon and start it
#######################################################
# END #
#######################################################
meme avec une réparation cela ne fonctionne plus…
donc le plugins ne fonctione temps que je ne l’arrete pas , une fois arreter il ne redemarre jamais