+ echo '*******************Begin of package installation******************' *******************Begin of package installation****************** + touch /tmp/jeedom_install_in_progress_z2m + echo 1 + echo 2 + sudo chmod +x /var/www/html/core/class/../../plugins/z2m/resources/pre-install.sh + sudo /var/www/html/core/class/../../plugins/z2m/resources/pre-install.sh Launch pre-install of z2m dependancy + echo 3 + php /var/www/html/core/class/../php/jeecli.php plugin install mqtt2 + echo 4 + sudo killall apt apt-get unattended-upgr apt: no process found apt-get: no process found + sudo rm /var/lib/apt/lists/lock + sudo rm /var/cache/apt/archives/lock + sudo rm /var/lib/dpkg/lock /var/lib/dpkg/lock-frontend + sudo sudo dpkg --configure -a --force-confdef + sudo apt update WARNING: apt does not have a stable CLI interface. Use with caution in scripts. 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 Get:5 https://download.docker.com/linux/debian bullseye InRelease [43.3 kB] Hit:6 https://deb.nodesource.com/node_20.x nodistro InRelease Hit:7 http://netcup.armbian.com/apt buster InRelease Fetched 43.3 kB in 3s (14.1 kB/s) Reading package lists... Building dependency tree... Reading state information... 189 packages can be upgraded. Run 'apt list --upgradable' to see them. + echo 5 + sudo chmod +x /var/www/html/core/class/../../resources/install_nodejs.sh + sudo /var/www/html/core/class/../../resources/install_nodejs.sh 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 Get:5 https://download.docker.com/linux/debian bullseye InRelease [43.3 kB] Hit:6 https://deb.nodesource.com/node_20.x nodistro InRelease Hit:7 http://netcup.armbian.com/apt buster InRelease Fetched 43.3 kB in 3s (14.4 kB/s) Reading package lists... Reading package lists... Building dependency tree... Reading state information... apt-utils is already the newest version (2.2.4). build-essential is already the newest version (12.9). lsb-release is already the newest version (11.1.0). git is already the newest version (1:2.30.2-1+deb11u4). 0 upgraded, 0 newly installed, 0 to remove and 189 not upgraded. [Check Version NodeJS actuelle : v20.18.0 : [ OK ] [Check Prefix : /usr and sudo prefix : /usr and www-data prefix : /usr : [ OK ] Clean npm cache npm warn using --force Recommended protections disabled. + echo 6 + sudo apt install -o Dpkg::Options::=--force-confdef -y php-yaml WARNING: apt does not have a stable CLI interface. Use with caution in scripts. Reading package lists... Building dependency tree... Reading state information... php-yaml is already the newest version (2.2.1+2.1.0+2.0.4+1.3.2-2). 0 upgraded, 0 newly installed, 0 to remove and 189 not upgraded. + echo 7 + sudo systemctl restart apache2 + echo 8 + sudo chmod +x /var/www/html/core/class/../../plugins/z2m/resources/post-install.sh + sudo /var/www/html/core/class/../../plugins/z2m/resources/post-install.sh + echo Launch post-install of z2m dependancy Launch post-install of z2m dependancy + realpath /var/www/html/core/class/../../plugins/z2m/resources/post-install.sh + dirname /var/www/html/plugins/z2m/resources/post-install.sh + BASEDIR=/var/www/html/plugins/z2m/resources + [ -d /var/www/html/plugins/z2m/resources/zigbee2mqtt ] + rm -rf /var/www/html/plugins/z2m/resources/zigbee2mqtt + mkdir /var/www/html/plugins/z2m/resources/zigbee2mqtt + git clone --depth 1 https://github.com/Koenkk/zigbee2mqtt.git /var/www/html/plugins/z2m/resources/zigbee2mqtt Cloning into '/var/www/html/plugins/z2m/resources/zigbee2mqtt'... + cd /var/www/html/plugins/z2m/resources/zigbee2mqtt + [ -f /var/www/html/plugins/z2m/resources/../data/wanted_z2m_version ] + cat /var/www/html/plugins/z2m/resources/../data/wanted_z2m_version + wanted_z2m_version=2.1.1 + [ -n 2.1.1 ] + echo Need version : 2.1.1 Need version : 2.1.1 + git fetch --all --tags Fetching origin From https://github.com/Koenkk/zigbee2mqtt * [new tag] 0.1.0 -> 0.1.0 * [new tag] 0.1.1 -> 0.1.1 * [new tag] 0.1.2 -> 0.1.2 * [new tag] 0.1.3 -> 0.1.3 * [new tag] 0.1.4 -> 0.1.4 * [new tag] 0.1.5 -> 0.1.5 * [new tag] 0.1.6 -> 0.1.6 * [new tag] 0.1.7 -> 0.1.7 * [new tag] 0.1.8 -> 0.1.8 * [new tag] 0.2.0 -> 0.2.0 * [new tag] 1.0.0 -> 1.0.0 * [new tag] 1.0.1 -> 1.0.1 * [new tag] 1.1.0 -> 1.1.0 * [new tag] 1.1.1 -> 1.1.1 * [new tag] 1.10.0 -> 1.10.0 * [new tag] 1.11.0 -> 1.11.0 * [new tag] 1.12.0 -> 1.12.0 * [new tag] 1.12.1 -> 1.12.1 * [new tag] 1.12.2 -> 1.12.2 * [new tag] 1.13.0 -> 1.13.0 * [new tag] 1.13.1 -> 1.13.1 * [new tag] 1.14.0 -> 1.14.0 * [new tag] 1.14.1 -> 1.14.1 * [new tag] 1.14.2 -> 1.14.2 * [new tag] 1.14.3 -> 1.14.3 * [new tag] 1.14.4 -> 1.14.4 * [new tag] 1.15.0 -> 1.15.0 * [new tag] 1.16.0 -> 1.16.0 * [new tag] 1.16.1 -> 1.16.1 * [new tag] 1.16.2 -> 1.16.2 * [new tag] 1.17.0 -> 1.17.0 * [new tag] 1.17.1 -> 1.17.1 * [new tag] 1.18.0 -> 1.18.0 * [new tag] 1.18.1 -> 1.18.1 * [new tag] 1.18.2 -> 1.18.2 * [new tag] 1.18.3 -> 1.18.3 * [new tag] 1.19.0 -> 1.19.0 * [new tag] 1.19.1 -> 1.19.1 * [new tag] 1.2.0 -> 1.2.0 * [new tag] 1.2.1 -> 1.2.1 * [new tag] 1.20.0 -> 1.20.0 * [new tag] 1.21.0 -> 1.21.0 * [new tag] 1.21.1 -> 1.21.1 * [new tag] 1.21.2 -> 1.21.2 * [new tag] 1.22.0 -> 1.22.0 * [new tag] 1.22.1 -> 1.22.1 * [new tag] 1.22.2 -> 1.22.2 * [new tag] 1.23.0 -> 1.23.0 * [new tag] 1.24.0 -> 1.24.0 * [new tag] 1.25.0 -> 1.25.0 * [new tag] 1.25.1 -> 1.25.1 * [new tag] 1.25.2 -> 1.25.2 * [new tag] 1.26.0 -> 1.26.0 * [new tag] 1.27.0 -> 1.27.0 * [new tag] 1.27.1 -> 1.27.1 * [new tag] 1.27.2 -> 1.27.2 * [new tag] 1.28.0 -> 1.28.0 * [new tag] 1.28.1 -> 1.28.1 * [new tag] 1.28.2 -> 1.28.2 * [new tag] 1.28.3 -> 1.28.3 * [new tag] 1.28.4 -> 1.28.4 * [new tag] 1.29.0 -> 1.29.0 * [new tag] 1.29.1 -> 1.29.1 * [new tag] 1.29.2 -> 1.29.2 * [new tag] 1.3.0 -> 1.3.0 * [new tag] 1.3.1 -> 1.3.1 * [new tag] 1.30.0 -> 1.30.0 * [new tag] 1.30.1 -> 1.30.1 * [new tag] 1.30.2 -> 1.30.2 * [new tag] 1.30.3 -> 1.30.3 * [new tag] 1.30.4 -> 1.30.4 * [new tag] 1.31.0 -> 1.31.0 * [new tag] 1.31.1 -> 1.31.1 * [new tag] 1.31.2 -> 1.31.2 * [new tag] 1.32.0 -> 1.32.0 * [new tag] 1.32.1 -> 1.32.1 * [new tag] 1.32.2 -> 1.32.2 * [new tag] 1.33.0 -> 1.33.0 * [new tag] 1.33.1 -> 1.33.1 * [new tag] 1.33.2 -> 1.33.2 * [new tag] 1.34.0 -> 1.34.0 * [new tag] 1.35.0 -> 1.35.0 * [new tag] 1.35.1 -> 1.35.1 * [new tag] 1.35.2 -> 1.35.2 * [new tag] 1.35.3 -> 1.35.3 * [new tag] 1.36.0 -> 1.36.0 * [new tag] 1.36.1 -> 1.36.1 * [new tag] 1.37.0 -> 1.37.0 * [new tag] 1.37.1 -> 1.37.1 * [new tag] 1.38.0 -> 1.38.0 * [new tag] 1.39.0 -> 1.39.0 * [new tag] 1.39.1 -> 1.39.1 * [new tag] 1.4.0 -> 1.4.0 * [new tag] 1.40.0 -> 1.40.0 * [new tag] 1.40.1 -> 1.40.1 * [new tag] 1.40.2 -> 1.40.2 * [new tag] 1.41.0 -> 1.41.0 * [new tag] 1.42.0 -> 1.42.0 * [new tag] 1.5.0 -> 1.5.0 * [new tag] 1.5.1 -> 1.5.1 * [new tag] 1.6.0 -> 1.6.0 * [new tag] 1.7.0 -> 1.7.0 * [new tag] 1.7.1 -> 1.7.1 * [new tag] 1.8.0 -> 1.8.0 * [new tag] 1.9.0 -> 1.9.0 * [new tag] 2.0.0 -> 2.0.0 * [new tag] 2.1.0 -> 2.1.0 + git checkout tags/2.1.1 Note: switching to 'tags/2.1.1'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example: git switch -c Or undo this operation with: git switch - Turn off this advice by setting config variable advice.detachedHead to false HEAD is now at 1accb8b6 chore(dev): release 2.1.1 (#26135) + [ -n 2.1.1 ] + echo 2.1.1 + head -c 1 + [ 2 -lt 2 ] + npm install -g pnpm changed 1 package in 4s 1 package is looking for funding run `npm fund` for details + pnpm i --frozen-lockfile Lockfile is up to date, resolution step is skipped Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +366 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Progress: resolved 366, reused 75, downloaded 0, added 0 Progress: resolved 366, reused 362, downloaded 0, added 0 Progress: resolved 366, reused 366, downloaded 0, added 366, done .../node_modules/sd-notify install$ node-gyp rebuild .../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 | arm64 .../node_modules/sd-notify 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/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 '/var/www/html/plugins/z2m/resources/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=/var/www/html/plugins/z2m/resources/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/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 '/var/www/html/plugins/z2m/resources/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/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 .../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 '/var/www/html/plugins/z2m/resources/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. (/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.15.93-rockchip64 .../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 /var/www/html/plugins/z2m/resources/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 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.0 + 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.31.0 + zigbee2mqtt-frontend 0.9.4 optionalDependencies: + sd-notify 2.8.0 devDependencies: + @eslint/core 0.11.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.13.0 + @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.22.0 + vitest 3.0.4 Done in 7.8s + pnpm run build > zigbee2mqtt@2.1.1 build /var/www/html/plugins/z2m/resources/zigbee2mqtt > tsc && node index.js writehash + chown www-data:www-data -R /var/www/html/plugins/z2m/resources/zigbee2mqtt + echo 9 + php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end z2m rm: invalid option -- '/' Try 'rm --help' for more information. + echo 10 + rm /tmp/jeedom_install_in_progress_z2m + echo '*******************End of package installation******************' *******************End of package installation******************