+ 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 unattended-upgr: 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 https://deb.debian.org/debian bullseye InRelease Hit:2 https://deb.debian.org/debian-security bullseye-security InRelease Hit:3 https://deb.debian.org/debian bullseye-updates InRelease Hit:4 https://deb.debian.org/debian bullseye-backports InRelease Hit:5 https://deb.nodesource.com/node_20.x nodistro InRelease Reading package lists... Building dependency tree... Reading state information... 266 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 https://deb.debian.org/debian bullseye InRelease Hit:2 https://deb.debian.org/debian-security bullseye-security InRelease Hit:3 https://deb.debian.org/debian bullseye-updates InRelease Hit:4 https://deb.debian.org/debian bullseye-backports InRelease Hit:5 https://deb.nodesource.com/node_20.x nodistro InRelease 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 266 not upgraded. [Check Version NodeJS actuelle : v20.18.3 : [ 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 266 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 ] + npm ci npm error code EUSAGE npm error npm error The `npm ci` command can only install with an existing package-lock.json or npm error npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or npm error later to generate a package-lock.json file, then try again. npm error npm error Clean install a project npm error npm error Usage: npm error npm ci npm error npm error Options: npm error [--install-strategy ] [--legacy-bundling] npm error [--global-style] [--omit [--omit ...]] npm error [--include [--include ...]] npm error [--strict-peer-deps] [--foreground-scripts] [--ignore-scripts] [--no-audit] npm error [--no-bin-links] [--no-fund] [--dry-run] npm error [-w|--workspace [-w|--workspace ...]] npm error [-ws|--workspaces] [--include-workspace-root] [--install-links] npm error npm error aliases: clean-install, ic, install-clean, isntall-clean npm error npm error Run "npm help ci" for more info npm error A complete log of this run can be found in: /root/.npm/_logs/2025-03-01T22_06_57_685Z-debug-0.log + npm run build > zigbee2mqtt@2.1.2 build > tsc && node index.js writehash sh: 1: tsc: not found + 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 PHP Fatal error: Uncaught Exception: Veuillez vérifier la configuration : Le démon MQTT Manager n'est pas démarré in /var/www/html/plugins/z2m/core/class/z2m.class.php:315 Stack trace: #0 /var/www/html/plugins/z2m/core/class/z2m.class.php(44): z2m::deamon_start() #1 /var/www/html/core/php/jeecli.php(62): z2m::dependancy_end() #2 {main} thrown in /var/www/html/plugins/z2m/core/class/z2m.class.php on line 315 + echo 10 + rm /tmp/jeedom_install_in_progress_z2m + echo '*******************End of package installation******************' *******************End of package installation******************