Блин, незнаю что уже делать factory reset не помогает. Имеем полностью чистый контроллер, только что сделан ресет на последний образ в репозитории (202210210802_testing_bullseye_wb7x.fit, переименован в wb_update_FACTORYRESET.fit ) . После первой загрузки (да, удостоверился что /mnt/dата в заводском виде).
- apt update && apt upgrade - все окей
- apt install zigbee2mqtt - тоже все окей, nodejs тоже устанавливается впервые
root@wirenboard-AMENMA3Q:/mnt# apt install zigbee2mqtt
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
The following additional packages will be installed:
libatomic1 nodejs wb-zigbee2mqtt
The following NEW packages will be installed:
libatomic1 nodejs wb-zigbee2mqtt zigbee2mqtt
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 52.5 MB of archives.
After this operation, 254 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 Index of /debian bullseye/main armhf libatomic1 armhf 10.2.1-6 [6924 B]
Get:2 http://deb.wirenboard.com/wb7/bullseye testing/main armhf wb-zigbee2mqtt all 1.1.0 [2284 B]
Get:3 Index of /node_16.x/ bullseye/main armhf nodejs armhf 16.18.0-deb-1nodesource1 [24.2 MB]
Get:4 http://deb.wirenboard.com/wb7/bullseye testing/main armhf zigbee2mqtt armhf 1.25.2 [28.3 MB]
Fetched 52.5 MB in 6s (8180 kB/s)
Selecting previously unselected package libatomic1:armhf.
(Reading database … 29023 files and directories currently installed.)
Preparing to unpack …/libatomic1_10.2.1-6_armhf.deb …
Unpacking libatomic1:armhf (10.2.1-6) …
Selecting previously unselected package nodejs.
Preparing to unpack …/nodejs_16.18.0-deb-1nodesource1_armhf.deb …
Unpacking nodejs (16.18.0-deb-1nodesource1) …
Selecting previously unselected package wb-zigbee2mqtt.
Preparing to unpack …/wb-zigbee2mqtt_1.1.0_all.deb …
Unpacking wb-zigbee2mqtt (1.1.0) …
Selecting previously unselected package zigbee2mqtt.
Preparing to unpack …/zigbee2mqtt_1.25.2_armhf.deb …
Unpacking zigbee2mqtt (1.25.2) …
Setting up wb-zigbee2mqtt (1.1.0) …
Setting up libatomic1:armhf (10.2.1-6) …
Setting up nodejs (16.18.0-deb-1nodesource1) …
Setting up zigbee2mqtt (1.25.2) …
Created symlink /etc/systemd/system/multi-user.target.wants/zigbee2mqtt.service Б├▓ /lib/systemd/system/zigbee2mqtt.service.
Processing triggers for libc-bin (2.31-13+deb11u5) …
Created symlink /etc/systemd/system/multi-user.target.wants/zigbee2mqtt.service Б├▓ /lib/systemd/system/zigbee2mqtt.service.
root@wirenboard-AMENMA3Q:/mnt/data/root#
- правлю конфиг - меняю только адрес порта, и включаю фронтэнд.
zigbee2mqtt так же не запускается, в логах та же ошибка
26-10-2022 13:30:40.624 |
at Module.load (node:internal/modules/cjs/loader:1033:32) |
26-10-2022 13:30:40.624 |
at Object.Module._extensions…js (node:internal/modules/cjs/loader:1209:10) |
26-10-2022 13:30:40.624 |
at Module._compile (node:internal/modules/cjs/loader:1155:14) |
26-10-2022 13:30:40.624 |
at Object. (/mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings/lib/linux.js:2:36) |
26-10-2022 13:30:40.624 |
at bindings (/mnt/data/root/zigbee2mqtt/node_modules/bindings/bindings.js:112:48) |
26-10-2022 13:30:40.624 |
at require (node:internal/modules/cjs/helpers:103:18) |
26-10-2022 13:30:40.624 |
at Module.require (node:internal/modules/cjs/loader:1057:19) |
26-10-2022 13:30:40.624 |
at Function.Module._load (node:internal/modules/cjs/loader:868:12) |
26-10-2022 13:30:40.624 |
at Module.load (node:internal/modules/cjs/loader:1033:32) |
26-10-2022 13:30:40.624 |
at Object.Module._extensions…node (node:internal/modules/cjs/loader:1239:18) |
26-10-2022 13:30:40.624 |
at Object.Module._extensions…node (node:internal/modules/cjs/loader:1239:18) |
26-10-2022 13:30:40.624 |
the module (for instance, using npm rebuild or npm install ). |
26-10-2022 13:30:40.624 |
NODE_MODULE_VERSION 93. Please try re-compiling or re-installing |
26-10-2022 13:30:40.624 |
NODE_MODULE_VERSION 72. This version of Node.js requires |
26-10-2022 13:30:40.624 |
was compiled against a different Node.js version using |
26-10-2022 13:30:40.624 |
Zigbee2MQTT:error 2022-10-26 08:30:40: Error: The module ‘/mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings/build/Release/bindings.node’ |
26-10-2022 13:30:40.601 |
Zigbee2MQTT:error 2022-10-26 08:30:40: Exiting… |
26-10-2022 13:30:40.597 |
Zigbee2MQTT:error 2022-10-26 08:30:40: Check Zigbee2MQTT fails to start | Zigbee2MQTT for possible solutions |
26-10-2022 13:30:40.591 |
Zigbee2MQTT:error 2022-10-26 08:30:40: Failed to start zigbee |
26-10-2022 13:30:40.587 |
Zigbee2MQTT:error 2022-10-26 08:30:40: Error while starting zigbee-herdsman |
26-10-2022 13:30:40.587 |
Zigbee2MQTT:error 2022-10-26 08:30:40: Error while starting zigbee-herdsman |
26-10-2022 13:30:40.468 |
Zigbee2MQTT:info 2022-10-26 08:30:40: Starting zigbee-herdsman (0.14.34) |
26-10-2022 13:30:40.457 |
Zigbee2MQTT:info 2022-10-26 08:30:40: Starting Zigbee2MQTT version 1.25.2 (commit #e8528512) |
26-10-2022 13:30:40.384 |
Zigbee2MQTT:info 2022-10-26 08:30:40: Logging to console and directory: ‘/mnt/data/root/zigbee2mqtt/data/log/2022-10-26.08-30-40’ filename: log.txt |
26-10-2022 13:30:30.155 |
> node index.js |
26-10-2022 13:30:30.155 |
> zigbee2mqtt@1.25.2 start |
26-10-2022 13:28:56.313 |
at Module.load (node:internal/modules/cjs/loader:1033:32) |
26-10-2022 13:28:56.313 |
at Object.Module._extensions…js (node:internal/modules/cjs/loader:1209:10) |
26-10-2022 13:28:56.313 |
at Module._compile (node:internal/modules/cjs/loader:1155:14) |
26-10-2022 13:28:56.313 |
at Object. (/mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings/lib/linux.js:2:36) |
26-10-2022 13:28:56.313 |
at Object. (/mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings/lib/linux.js:2:36) |
26-10-2022 13:28:56.313 |
at bindings (/mnt/data/root/zigbee2mqtt/node_modules/bindings/bindings.js:112:48) |
26-10-2022 13:28:56.313 |
at require (node:internal/modules/cjs/helpers:103:18) |
- выполняю npm ci, такая же ошибка как раньше
root@wirenboard-AMENMA3Q:/mnt/data/root/zigbee2mqtt# npm ci
npm ERR! code 1
npm ERR! path /mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings
npm ERR! command failed
npm ERR! command sh -c – prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
npm ERR! prebuild-install WARN install No prebuilt binaries found (target=16.18.0 runtime=node arch=arm libc= platform=linux)
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.1.0
npm ERR! gyp info using node@16.18.0 | linux | arm
npm ERR! gyp info find Python using Python version 3.9.2 found at “/usr/bin/python3”
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args ‘/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py’,
npm ERR! gyp info spawn args ‘binding.gyp’,
npm ERR! gyp info spawn args ‘-f’,
npm ERR! gyp info spawn args ‘make’,
npm ERR! gyp info spawn args ‘-I’,
npm ERR! gyp info spawn args ‘/mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings/build/config.gypi’,
npm ERR! gyp info spawn args ‘-I’,
npm ERR! gyp info spawn args ‘/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi’,
npm ERR! gyp info spawn args ‘-I’,
npm ERR! gyp info spawn args ‘/root/.cache/node-gyp/16.18.0/include/node/common.gypi’,
npm ERR! gyp info spawn args ‘-Dlibrary=shared_library’,
npm ERR! gyp info spawn args ‘-Dvisibility=default’,
npm ERR! gyp info spawn args ‘-Dnode_root_dir=/root/.cache/node-gyp/16.18.0’,
npm ERR! gyp info spawn args ‘-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp’,
npm ERR! gyp info spawn args ‘-Dnode_lib_file=/root/.cache/node-gyp/16.18.0/<(target_arch)/node.lib’,
npm ERR! gyp info spawn args ‘-Dmodule_root_dir=/mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings’,
npm ERR! gyp info spawn args ‘-Dnode_engine=v8’,
npm ERR! gyp info spawn args ‘–depth=.’,
npm ERR! gyp info spawn args ‘–no-parallel’,
npm ERR! gyp info spawn args ‘–generator-output’,
npm ERR! gyp info spawn args ‘build’,
npm ERR! gyp info spawn args ‘-Goutput_dir=.’
npm ERR! gyp info spawn args ]
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: not found: make
npm ERR! gyp ERR! stack at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:10:17)
npm ERR! gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:57:18
npm ERR! gyp ERR! stack at new Promise ()
npm ERR! gyp ERR! stack at step (/usr/lib/node_modules/npm/node_modules/which/which.js:54:21)
npm ERR! gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:71:22
npm ERR! gyp ERR! stack at new Promise ()
npm ERR! gyp ERR! stack at subStep (/usr/lib/node_modules/npm/node_modules/which/which.js:69:33)
npm ERR! gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:80:22
npm ERR! gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/index.js:42:5
npm ERR! gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
npm ERR! gyp ERR! System Linux 5.10.35-wb120
npm ERR! gyp ERR! command “/usr/bin/node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
npm ERR! gyp ERR! cwd /mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings
npm ERR! gyp ERR! node -v v16.18.0
npm ERR! gyp ERR! node-gyp -v v9.1.0
npm ERR! gyp ERR! not ok
папка /zigbee2mqtt/node_modules становится пустой после этого
- подозреваю что audit fix уже смысла не имеет, но все же выполняю, так же без результатно.
root@wirenboard-AMENMA3Q:/mnt/data/root/zigbee2mqtt# npm audit fix --force
npm WARN using --force Recommended protections disabled.
npm ERR! code 1
npm ERR! path /mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings
npm ERR! command failed
npm ERR! command sh -c – prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
npm ERR! prebuild-install WARN install No prebuilt binaries found (target=16.18.0 runtime=node arch=arm libc= platform=linux)
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.1.0
npm ERR! gyp info using node@16.18.0 | linux | arm
npm ERR! gyp info find Python using Python version 3.9.2 found at “/usr/bin/python3”
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args ‘/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py’,
npm ERR! gyp info spawn args ‘binding.gyp’,
npm ERR! gyp info spawn args ‘-f’,
npm ERR! gyp info spawn args ‘make’,
npm ERR! gyp info spawn args ‘-I’,
npm ERR! gyp info spawn args ‘/mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings/build/config.gypi’,
npm ERR! gyp info spawn args ‘-I’,
npm ERR! gyp info spawn args ‘/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi’,
npm ERR! gyp info spawn args ‘-I’,
npm ERR! gyp info spawn args ‘/root/.cache/node-gyp/16.18.0/include/node/common.gypi’,
npm ERR! gyp info spawn args ‘-Dlibrary=shared_library’,
npm ERR! gyp info spawn args ‘-Dvisibility=default’,
npm ERR! gyp info spawn args ‘-Dnode_root_dir=/root/.cache/node-gyp/16.18.0’,
npm ERR! gyp info spawn args ‘-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp’,
npm ERR! gyp info spawn args ‘-Dnode_lib_file=/root/.cache/node-gyp/16.18.0/<(target_arch)/node.lib’,
npm ERR! gyp info spawn args ‘-Dmodule_root_dir=/mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings’,
npm ERR! gyp info spawn args ‘-Dnode_engine=v8’,
npm ERR! gyp info spawn args ‘–depth=.’,
npm ERR! gyp info spawn args ‘–no-parallel’,
npm ERR! gyp info spawn args ‘–generator-output’,
npm ERR! gyp info spawn args ‘build’,
npm ERR! gyp info spawn args ‘-Goutput_dir=.’
npm ERR! gyp info spawn args ]
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: not found: make
npm ERR! gyp ERR! stack at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:10:17)
npm ERR! gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:57:18
npm ERR! gyp ERR! stack at new Promise ()
npm ERR! gyp ERR! stack at step (/usr/lib/node_modules/npm/node_modules/which/which.js:54:21)
npm ERR! gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:71:22
npm ERR! gyp ERR! stack at new Promise ()
npm ERR! gyp ERR! stack at subStep (/usr/lib/node_modules/npm/node_modules/which/which.js:69:33)
npm ERR! gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:80:22
npm ERR! gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/index.js:42:5
npm ERR! gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
npm ERR! gyp ERR! System Linux 5.10.35-wb120
npm ERR! gyp ERR! command “/usr/bin/node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
npm ERR! gyp ERR! cwd /mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings
npm ERR! gyp ERR! node -v v16.18.0
npm ERR! gyp ERR! node-gyp -v v9.1.0
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-10-26T08_40_36_750Z-debug-0.log