Merci, mais cela ne passe pas lors de l’installation du deamon malgré la modif.
Le log :
#######################################################
# INSTALL : Zigbee2mqtt #
#######################################################
#######################################################
##### apt-get update in progress
Hit:1 http://security.debian.org bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Hit:4 http://deb.debian.org/debian bullseye-backports InRelease
Hit:5 https://deb.nodesource.com/node_20.x nodistro InRelease
Hit:6 http://www.deb-multimedia.org bullseye InRelease
Hit:7 https://oph.mdrjr.net/meveric all InRelease
Hit:8 https://oph.mdrjr.net/meveric bullseye InRelease
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).
git is already the newest version (1:2.30.2-1+deb11u4).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
#######################################################
##### Install or update NodeJs
NodeJs 20 already installed : Nothing to do !
pnpm install version 9.15.6
changed 1 package in 8s
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: +363
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 363, reused 0, downloaded 0, added 0
Progress: resolved 363, reused 0, downloaded 4, added 0
Progress: resolved 363, reused 0, downloaded 32, added 19
Progress: resolved 363, reused 0, downloaded 54, added 43
Progress: resolved 363, reused 0, downloaded 85, added 75
Progress: resolved 363, reused 0, downloaded 133, added 119
Progress: resolved 363, reused 0, downloaded 163, added 157
Progress: resolved 363, reused 0, downloaded 181, added 167
Progress: resolved 363, reused 0, downloaded 217, added 205
Progress: resolved 363, reused 0, downloaded 237, added 230
Progress: resolved 363, reused 0, downloaded 264, added 254
Progress: resolved 363, reused 0, downloaded 311, added 298
Progress: resolved 363, reused 0, downloaded 319, added 311
Progress: resolved 363, reused 0, downloaded 325, added 312
Progress: resolved 363, reused 0, downloaded 355, added 347
Progress: resolved 363, reused 0, downloaded 363, added 363, 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/unix-dgram install: gyp info it worked if it ends with ok
.../node_modules/unix-dgram install: gyp info using node-gyp@11.1.0
.../node_modules/unix-dgram install: gyp info using node@20.17.0 | linux | arm64
.../node_modules/sd-notify install: gyp info it worked if it ends with ok
.../node_modules/sd-notify install: gyp info using node-gyp@11.1.0
.../node_modules/sd-notify install: gyp info using node@20.17.0 | linux | arm64
.../esbuild@0.24.2/node_modules/esbuild postinstall: Done
.../@serialport/bindings-cpp install: Done
.../node_modules/sd-notify install: gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
.../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 '/usr/lib/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 '/usr/lib/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.17.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.17.0',
.../node_modules/sd-notify install: gyp info spawn args '-Dnode_gyp_dir=/usr/lib/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.17.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 '/usr/lib/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 '/usr/lib/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.17.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.17.0',
.../node_modules/unix-dgram install: gyp info spawn args '-Dnode_gyp_dir=/usr/lib/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.17.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:104: 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> (/usr/lib/node_modules/pnpm/dist/node_modules/node-gyp/lib/build.js:216:23)
.../node_modules/sd-notify install: gyp ERR! System Linux 6.5.13-arm64
.../node_modules/sd-notify install: gyp ERR! command "/usr/bin/node" "/usr/lib/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.17.0
.../node_modules/sd-notify install: gyp ERR! node-gyp -v v11.1.0
.../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.1/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.17.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.17.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.7.1
+ 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.1
+ zigbee-herdsman 3.2.7
+ zigbee-herdsman-converters 23.2.0
+ zigbee2mqtt-frontend 0.9.4
optionalDependencies:
+ sd-notify 2.8.0
devDependencies:
+ @eslint/core 0.12.0
+ @eslint/js 9.21.0
+ @ianvs/prettier-plugin-sort-imports 4.4.1
+ @types/finalhandler 1.2.3
+ @types/humanize-duration 3.27.4
+ @types/js-yaml 4.0.9
+ @types/node 22.13.5
+ @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.7
+ eslint 9.21.0
+ eslint-config-prettier 10.0.1
+ prettier 3.5.2
+ tmp 0.2.3
+ typescript 5.7.3
+ typescript-eslint 8.25.0
+ vitest 3.0.7
Done in 37.3s using pnpm v10.4.1
> zigbee2mqtt@2.1.3 build /opt/zigbee2mqtt
> tsc && node index.js writehash
#######################################################
##### Configure deamon and start it
#######################################################
# END #
#######################################################