sh2rman Posted April 29, 2021 Share Posted April 29, 2021 Доустановил последовательный интерфейс, роутер увидел модем z2m валится теперь так 12 минуты назад, TheBB сказал: А стик прошит? Обычно они идут пустые. заказывал прошитый. Подскажете как проверить? Quote Link to comment Share on other sites More sharing options...
sh2rman Posted April 29, 2021 Share Posted April 29, 2021 Порт был занят запущенным ранее z2m. Перезапустил, теперь так Ещё судя по схеме,нужно mqtt брокер какой то ставить? Quote Link to comment Share on other sites More sharing options...
r13 Posted April 30, 2021 Share Posted April 30, 2021 6 часов назад, sh2rman сказал: Ещё судя по схеме,нужно mqtt брокер какой то ставить? Да, нужно Quote Link to comment Share on other sites More sharing options...
TheBB Posted April 30, 2021 Author Share Posted April 30, 2021 17 часов назад, sh2rman сказал: Подскажете как проверить? Должно появиться в /dev что-то типа ttyACM 16 часов назад, sh2rman сказал: Ещё судя по схеме,нужно mqtt брокер какой то ставить? `opkg install mosquitto-nossl` или `opkg install mosquitto-ssl` , добавить пользователя/группу, создать скрипт запуска для mosquitt`a, отредактировать конфиги... Quote Link to comment Share on other sites More sharing options...
sh2rman Posted May 1, 2021 Share Posted May 1, 2021 (edited) установил "ssl", добавил пользователя - все завелось, прописал автозапуск. Спасибо всем за помощь! Новый вопрос: реально ли получить hass с возможностями 'supervised'? Edited May 1, 2021 by sh2rman Quote Link to comment Share on other sites More sharing options...
Starkun Posted May 3, 2021 Share Posted May 3, 2021 On 4/30/2021 at 5:22 PM, TheBB said: Должно появиться в /dev что-то типа ttyACM `opkg install mosquitto-nossl` или `opkg install mosquitto-ssl` , добавить пользователя/группу, создать скрипт запуска для mosquitt`a, отредактировать конфиги... Добрый день, а можете собрать билд из дев ветки??? Там просто поддерживается внешний свисток. Quote Link to comment Share on other sites More sharing options...
Starkun Posted May 3, 2021 Share Posted May 3, 2021 On 5/1/2021 at 4:00 PM, sh2rman said: установил "ssl", добавил пользователя - все завелось, прописал автозапуск. Спасибо всем за помощь! Новый вопрос: реально ли получить hass с возможностями 'supervised'? Для вайзера нужен docker. Думаю что это не возможно. Зато есть hacs в нем тоже много чего есть Quote Link to comment Share on other sites More sharing options...
TheBB Posted August 12, 2021 Author Share Posted August 12, 2021 (edited) Размер пакета уменьшился более чем в 10 раз (~ 5.5 MB) Скрытый текст ~ # opkg install http://bin.entware.net/mipselsf-k3.4/test/node-zigbee2mqtt_1.21.0-1_mipsel-3.4.ipk Downloading http://bin.entware.net/mipselsf-k3.4/test/node-zigbee2mqtt_1.21.0-1_mipsel-3.4.ipk Installing node-zigbee2mqtt (1.21.0-1) to root... Configuring node-zigbee2mqtt. *** Please install zigbee2mqtt dependencies manually *** "npm install -g typescript winston-transport" Do you wish to install them now? [y]: /opt/bin/tsc -> /opt/lib/node_modules/typescript/bin/tsc /opt/bin/tsserver -> /opt/lib/node_modules/typescript/bin/tsserver + typescript@4.3.5 updated 1 package in 27.2s + winston-transport@4.4.0 updated 1 package in 10.241s ~ # ~ # ~ # /opt/etc/init.d/S99zigbee2mqtt start Starting zigbee2mqtt... done. ~ # ~ # cat /opt/var/lib/.z2m/log/2021-08-12.16-50-57/log.txt info 2021-08-12 16:51:09: Logging to console and directory: '/opt/var/lib/.z2m/log/2021-08-12.16-50-57' filename: log.txt info 2021-08-12 16:51:09: Starting Zigbee2MQTT version 1.21.0 (commit #70891ee) info 2021-08-12 16:51:09: Starting zigbee-herdsman (0.13.124) info 2021-08-12 16:51:14: zigbee-herdsman started (resumed) info 2021-08-12 16:51:14: Coordinator firmware version: '{"meta":{"maintrel":3,"majorrel":2,"minorrel":6,"product":0,"revision":20201127,"transportrev":2},"type":"zStack12"}' info 2021-08-12 16:51:14: Currently 0 devices are joined: warn 2021-08-12 16:51:14: `permit_join` set to `true` in configuration.yaml. warn 2021-08-12 16:51:14: Allowing new devices to join. warn 2021-08-12 16:51:14: Set `permit_join` to `false` once you joined all devices. info 2021-08-12 16:51:14: Zigbee: allowing new devices to join. info 2021-08-12 16:51:14: Connecting to MQTT server at mqtt://localhost info 2021-08-12 16:51:18: Connected to MQTT server info 2021-08-12 16:51:18: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online' info 2021-08-12 16:51:18: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"commit":"70891ee","coordinator":{"meta":{"maintrel":3,"majorrel":2,"minorrel":6,"product":0,"revision":20201127,"transportrev":2},"type":"zStack12"},"log_level":"info","network":{"channel":11,"extendedPanID":"0xdddddddddddddddd","panID":6754},"permit_join":true,"version":"1.21.0"}' ~ # ~ # --- после установки ~ # du -sh /opt/lib/node/zigbee2mqtt 36.1M /opt/lib/node/zigbee2mqtt ~ # === + (будет ме-е-е-е-едленно расти) Цитата после установки ~ # du -sh /opt/var/lib/.z2m 68.0K /opt/var/lib/.z2m ~ # Edited August 13, 2021 by TheBB add2 2 Quote Link to comment Share on other sites More sharing options...
YuriV Posted August 12, 2021 Share Posted August 12, 2021 (edited) 8 hours ago, TheBB said: Размер пакета уменьшился более чем в 10 раз (~ 5.5 MB) Reveal hidden contents ~ # opkg install http://bin.entware.net/mipselsf-k3.4/test/node-zigbee2mqtt_1.21.0-1_mipsel-3.4.ipk Downloading http://bin.entware.net/mipselsf-k3.4/test/node-zigbee2mqtt_1.21.0-1_mipsel-3.4.ipk Installing node-zigbee2mqtt (1.21.0-1) to root... Configuring node-zigbee2mqtt. *** Please install zigbee2mqtt dependencies manually *** "npm install -g typescript winston-transport" Do you wish to install them now? [y]: /opt/bin/tsc -> /opt/lib/node_modules/typescript/bin/tsc /opt/bin/tsserver -> /opt/lib/node_modules/typescript/bin/tsserver + typescript@4.3.5 updated 1 package in 27.2s + winston-transport@4.4.0 updated 1 package in 10.241s ~ # ~ # ~ # /opt/etc/init.d/S99zigbee2mqtt start Starting zigbee2mqtt... done. ~ # ~ # cat /opt/var/lib/.z2m/log/2021-08-12.16-50-57/log.txt info 2021-08-12 16:51:09: Logging to console and directory: '/opt/var/lib/.z2m/log/2021-08-12.16-50-57' filename: log.txt info 2021-08-12 16:51:09: Starting Zigbee2MQTT version 1.21.0 (commit #70891ee) info 2021-08-12 16:51:09: Starting zigbee-herdsman (0.13.124) info 2021-08-12 16:51:14: zigbee-herdsman started (resumed) info 2021-08-12 16:51:14: Coordinator firmware version: '{"meta":{"maintrel":3,"majorrel":2,"minorrel":6,"product":0,"revision":20201127,"transportrev":2},"type":"zStack12"}' info 2021-08-12 16:51:14: Currently 0 devices are joined: warn 2021-08-12 16:51:14: `permit_join` set to `true` in configuration.yaml. warn 2021-08-12 16:51:14: Allowing new devices to join. warn 2021-08-12 16:51:14: Set `permit_join` to `false` once you joined all devices. info 2021-08-12 16:51:14: Zigbee: allowing new devices to join. info 2021-08-12 16:51:14: Connecting to MQTT server at mqtt://localhost info 2021-08-12 16:51:18: Connected to MQTT server info 2021-08-12 16:51:18: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online' info 2021-08-12 16:51:18: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"commit":"70891ee","coordinator":{"meta":{"maintrel":3,"majorrel":2,"minorrel":6,"product":0,"revision":20201127,"transportrev":2},"type":"zStack12"},"log_level":"info","network":{"channel":11,"extendedPanID":"0xdddddddddddddddd","panID":6754},"permit_join":true,"version":"1.21.0"}' ~ # ~ # --- после установки ~ # du -sh /opt/lib/node/zigbee2mqtt 36.1M /opt/lib/node/zigbee2mqtt ~ # При установке зависимостей получаю ошибку * extract_archive: Cannot create symlink from ./opt/lib/node_modules/zigbee2mqtt to '../node/zigbee2mqtt': File exists. Spoiler ~ # opkg install http://bin.entware.net/mipselsf-k3.4/test/node-zigbee2mqtt_1.21.0-1_mipsel-3.4.ipk Downloading http://bin.entware.net/mipselsf-k3.4/test/node-zigbee2mqtt_1.21.0-1_mipsel-3.4.ipk Installing node-zigbee2mqtt (1.21.0-1) to root... Configuring node-zigbee2mqtt. *** Please install zigbee2mqtt dependencies manually *** "npm install -g typescript winston-transport" Do you wish to install them now? [y]: /opt/bin/tsc -> /opt/lib/node_modules/typescript/bin/tsc /opt/bin/tsserver -> /opt/lib/node_modules/typescript/bin/tsserver + typescript@4.3.5 added 1 package from 1 contributor in 351.741s + winston-transport@4.4.0 added 10 packages from 5 contributors in 18.576s Collected errors: * extract_archive: Cannot create symlink from ./opt/lib/node_modules/zigbee2mqtt to '../node/zigbee2mqtt': File exists. UPD: несмотря на ошибку всё похоже завелось и работает. Edited August 12, 2021 by YuriV 1 Quote Link to comment Share on other sites More sharing options...
TheBB Posted August 13, 2021 Author Share Posted August 13, 2021 (edited) 4 часа назад, YuriV сказал: При установке зависимостей получаю ошибку Не зависимостей, а самого пакета. Исправлено: добавлено в preinst удаление симлинка. Скрытый текст ~ # opkg install node-zigbee2mqtt_1.21.0-2_mipsel-3.4.ipk Upgrading node-zigbee2mqtt on root from 1.21.0-1 to 1.21.0-2... Configuring node-zigbee2mqtt. *** Please install zigbee2mqtt dependencies manually *** "npm install -g typescript winston-transport" Do you wish to install them now? [y]: n Collected errors: * resolve_conffiles: Existing conffile /opt/var/lib/.z2m/configuration.yaml is different from the conffile in the new package. The new conffile will be placed at /opt/var/lib/.z2m/configuration.yaml-opkg. ~ # ~ # /opt/etc/init.d/S99zigbee2mqtt start Starting zigbee2mqtt... done. ~ # ~ # /opt/etc/init.d/S99zigbee2mqtt status Checking zigbee2mqtt... alive. ~ # ~ # cat /opt/var/lib/.z2m/log/2021-08-13.06-11-11/log.txt info 2021-08-13 06:11:24: Logging to console and directory: '/opt/var/lib/.z2m/log/2021-08-13.06-11-11' filename: log.txt info 2021-08-13 06:11:24: Starting Zigbee2MQTT version 1.21.0 (commit #70891ee) info 2021-08-13 06:11:24: Starting zigbee-herdsman (0.13.124) info 2021-08-13 06:11:30: zigbee-herdsman started (resumed) info 2021-08-13 06:11:30: Coordinator firmware version: '{"meta":{"maintrel":3,"majorrel":2,"minorrel":6,"product":0,"revision":20201127,"transportrev":2},"type":"zStack12"}' info 2021-08-13 06:11:30: Currently 0 devices are joined: warn 2021-08-13 06:11:31: `permit_join` set to `true` in configuration.yaml. warn 2021-08-13 06:11:31: Allowing new devices to join. warn 2021-08-13 06:11:31: Set `permit_join` to `false` once you joined all devices. info 2021-08-13 06:11:31: Zigbee: allowing new devices to join. info 2021-08-13 06:11:31: Connecting to MQTT server at mqtt://localhost info 2021-08-13 06:11:34: Connected to MQTT server info 2021-08-13 06:11:34: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online' info 2021-08-13 06:11:35: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"commit":"70891ee","coordinator":{"meta":{"maintrel":3,"majorrel":2,"minorrel":6,"product":0,"revision":20201127,"transportrev":2},"type":"zStack12"},"log_level":"info","network":{"channel":11,"extendedPanID":"0xdddddddddddddddd","panID":6754},"permit_join":true,"version":"1.21.0"}' ~ # ~ # /opt/etc/init.d/S99zigbee2mqtt status Checking zigbee2mqtt... alive. ~ # ~ # !!! "npm install -g typescript winston-transport" !!! актуально при обновлении с предыдущей версии (1.18.1) или новой установке Edited August 13, 2021 by TheBB ver. 1 Quote Link to comment Share on other sites More sharing options...
skysilver Posted September 3, 2021 Share Posted September 3, 2021 Добрый день! После установки zigbi2mqqt сервис не запускается. Файл лога в /opt/var/lib/.z2m/log/ создается, но он пуст. Подскажите как найти причину остановки сервиса? ~ # clear ~ # node -v v14.17.4 ~ # npm -v 6.14.14 ~ # mc ~ # /opt/etc/init.d/S99zigbee2mqtt start Starting zigbee2mqtt... done. ~ # /opt/etc/init.d/S99zigbee2mqtt status Checking zigbee2mqtt... alive. ~ # /opt/etc/init.d/S99zigbee2mqtt status Checking zigbee2mqtt... alive. ~ # /opt/etc/init.d/S99zigbee2mqtt status Checking zigbee2mqtt... alive. ~ # /opt/etc/init.d/S99zigbee2mqtt status Checking zigbee2mqtt... dead. ~ # cat /opt/var/lib/.z2m/log/2021-09-03. 2021-09-03.07-20-21/ 2021-09-03.08-53-46/ 2021-09-03.10-27-16/ 2021-09-03.12-02-08/ ~ # cat /opt/var/lib/.z2m/log/2021-09-03.12-02-08/log.txt info 2021-09-03 12:02:19: Logging to console and directory: '/opt/var/lib/.z2m/log/2021-09-03.12-02-08' filename: log.txt ~ # Quote Link to comment Share on other sites More sharing options...
TheBB Posted September 3, 2021 Author Share Posted September 3, 2021 (edited) 1 час назад, skysilver сказал: Подскажите как найти причину остановки сервиса? Запустить бинарник руками и смотреть на что жалуется Скрытый текст ~ # ~ # /opt/etc/init.d/S99zigbee2mqtt stop Checking zigbee2mqtt... alive. Shutting down zigbee2mqtt... done. ~ # ~ # ~ # zigbee2mqtt Zigbee2MQTT:info 2021-09-03 13:12:55: Logging to console and directory: '/opt/var/lib/.z2m/log/2021-09-03.13-12-42' filename: log.txt Zigbee2MQTT:info 2021-09-03 13:12:55: Starting Zigbee2MQTT version 1.21.0 (commit #70891ee) Zigbee2MQTT:info 2021-09-03 13:12:55: Starting zigbee-herdsman (0.13.124) Zigbee2MQTT:info 2021-09-03 13:13:00: zigbee-herdsman started (resumed) Zigbee2MQTT:info 2021-09-03 13:13:00: Coordinator firmware version: '{"meta":{"maintrel":3,"majorrel":2,"minorrel":6,"product":0,"revision":20201127,"transportrev":2},"type":"zStack12"}' Zigbee2MQTT:info 2021-09-03 13:13:01: Currently 0 devices are joined: Zigbee2MQTT:warn 2021-09-03 13:13:01: `permit_join` set to `true` in configuration.yaml. Zigbee2MQTT:warn 2021-09-03 13:13:01: Allowing new devices to join. Zigbee2MQTT:warn 2021-09-03 13:13:01: Set `permit_join` to `false` once you joined all devices. Zigbee2MQTT:info 2021-09-03 13:13:01: Zigbee: allowing new devices to join. Zigbee2MQTT:info 2021-09-03 13:13:01: Connecting to MQTT server at mqtt://localhost Zigbee2MQTT:info 2021-09-03 13:13:04: Connected to MQTT server Zigbee2MQTT:info 2021-09-03 13:13:04: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online' Zigbee2MQTT:info 2021-09-03 13:13:05: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"commit":"70891ee","coordinator":{"meta":{"maintrel":3,"majorrel":2,"minorrel":6,"product":0,"revision":20201127,"transportrev":2},"type":"zStack12"},"log_level":"info","network":{"channel":11,"extendedPanID":"0xdddddddddddddddd","panID":6754},"permit_join":true,"version":"1.21.0"}' ^C Zigbee2MQTT:info 2021-09-03 13:15:42: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'offline' Zigbee2MQTT:info 2021-09-03 13:15:42: Disconnecting from MQTT server Zigbee2MQTT:info 2021-09-03 13:15:42: Stopping zigbee-herdsman... Zigbee2MQTT:info 2021-09-03 13:15:43: Stopped zigbee-herdsman Zigbee2MQTT:info 2021-09-03 13:15:43: Stopped Zigbee2MQTT ~ # --- напр., устройство не обнаружено: Скрытый текст ~ # zigbee2mqtt Zigbee2MQTT:info 2021-09-03 13:20:46: Logging to console and directory: '/opt/var/lib/.z2m/log/2021-09-03.13-20-34' filename: log.txt Zigbee2MQTT:info 2021-09-03 13:20:46: Starting Zigbee2MQTT version 1.21.0 (commit #70891ee) Zigbee2MQTT:info 2021-09-03 13:20:46: Starting zigbee-herdsman (0.13.124) Zigbee2MQTT:error 2021-09-03 13:20:49: Error while starting zigbee-herdsman Zigbee2MQTT:error 2021-09-03 13:20:49: Failed to start zigbee Zigbee2MQTT:error 2021-09-03 13:20:49: Check https://www.zigbee2mqtt.io/information/FAQ.html#help-zigbee2mqtt-fails-to-start for possible solutions Zigbee2MQTT:error 2021-09-03 13:20:49: Exiting... Zigbee2MQTT:error 2021-09-03 13:20:50: Error: Error while opening serialport 'Error: Error: No such file or directory, cannot open /dev/ttyACM0' at SerialPort.<anonymous> (/opt/lib/node/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:146:28) at SerialPort._error (/opt/lib/node/zigbee2mqtt/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:198:14) at /opt/lib/node/zigbee2mqtt/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:242:12 ~ # не может подключиться к серверу mosquitto: Скрытый текст ~ # /opt/etc/init.d/S80mosquitto stop Checking mosquitto... alive. Shutting down mosquitto... done. ~ # ~ # zigbee2mqtt Zigbee2MQTT:info 2021-09-03 13:18:00: Logging to console and directory: '/opt/var/lib/.z2m/log/2021-09-03.13-17-48' filename: log.txt Zigbee2MQTT:info 2021-09-03 13:18:00: Starting Zigbee2MQTT version 1.21.0 (commit #70891ee) Zigbee2MQTT:info 2021-09-03 13:18:01: Starting zigbee-herdsman (0.13.124) Zigbee2MQTT:info 2021-09-03 13:18:05: zigbee-herdsman started (resumed) Zigbee2MQTT:info 2021-09-03 13:18:05: Coordinator firmware version: '{"meta":{"maintrel":3,"majorrel":2,"minorrel":6,"product":0,"revision":20201127,"transportrev":2},"type":"zStack12"}' Zigbee2MQTT:info 2021-09-03 13:18:05: Currently 0 devices are joined: Zigbee2MQTT:warn 2021-09-03 13:18:06: `permit_join` set to `true` in configuration.yaml. Zigbee2MQTT:warn 2021-09-03 13:18:06: Allowing new devices to join. Zigbee2MQTT:warn 2021-09-03 13:18:06: Set `permit_join` to `false` once you joined all devices. Zigbee2MQTT:info 2021-09-03 13:18:06: Zigbee: allowing new devices to join. Zigbee2MQTT:info 2021-09-03 13:18:06: Connecting to MQTT server at mqtt://localhost Zigbee2MQTT:error 2021-09-03 13:18:16: Not connected to MQTT server! Zigbee2MQTT:error 2021-09-03 13:18:26: Not connected to MQTT server! Zigbee2MQTT:error 2021-09-03 13:18:36: Not connected to MQTT server! Zigbee2MQTT:error 2021-09-03 13:18:46: Not connected to MQTT server! ^C Zigbee2MQTT:error 2021-09-03 13:18:49: Cannot send message: topic: 'zigbee2mqtt/bridge/state', payload: 'offline Zigbee2MQTT:info 2021-09-03 13:18:49: Disconnecting from MQTT server Zigbee2MQTT:info 2021-09-03 13:18:49: Stopping zigbee-herdsman... Zigbee2MQTT:info 2021-09-03 13:18:50: Stopped zigbee-herdsman Zigbee2MQTT:info 2021-09-03 13:18:50: Stopped Zigbee2MQTT ~ # Edited September 3, 2021 by TheBB add 1 Quote Link to comment Share on other sites More sharing options...
skysilver Posted September 4, 2021 Share Posted September 4, 2021 Спасибо за развернутый ответ! Нашлись причины остановки. Сервис работает, буду тестировать. Quote Link to comment Share on other sites More sharing options...
utya Posted September 6, 2021 Share Posted September 6, 2021 (edited) Добрый день. Подскажите в 55 мб влезет? я так понял бинарний весит 5 мб но потом ещё чёто будет качать? http://bin.entware.net/mipselsf-k3.4/test/node-zigbee2mqtt_1.18.1-1_mipsel-3.4.ipk Edited September 6, 2021 by utya Quote Link to comment Share on other sites More sharing options...
TheBB Posted September 7, 2021 Author Share Posted September 7, 2021 18 часов назад, utya сказал: Добрый день. Подскажите в 55 мб влезет? я так понял бинарний весит 5 мб но потом ещё чёто будет качать? Вряд ли, кроме пакета zigbee2mqtt нужна сама система + node + все зависимости. 1 Quote Link to comment Share on other sites More sharing options...
TheBB Posted October 8, 2021 Author Share Posted October 8, 2021 bump to 1.21.2 1 Quote Link to comment Share on other sites More sharing options...
YuriV Posted November 8, 2021 Share Posted November 8, 2021 @TheBB Когда можно ожидать 1.22? Quote Link to comment Share on other sites More sharing options...
TheBB Posted November 10, 2021 Author Share Posted November 10, 2021 bump to 1.22.0 1 Quote Link to comment Share on other sites More sharing options...
TheBB Posted December 14, 2021 Author Share Posted December 14, 2021 bump to 1.22.1 aarch64 http://bin.entware.net/aarch64-k3.10/test/node-js/ mipsel http://bin.entware.net/mipselsf-k3.4/test/node-js/ 2 Quote Link to comment Share on other sites More sharing options...
OlegOs Posted December 14, 2021 Share Posted December 14, 2021 TheBB, спасибо, всё обновилось удачно ! Quote Link to comment Share on other sites More sharing options...
_Андрей Posted December 16, 2021 Share Posted December 16, 2021 В 14.12.2021 в 11:09, TheBB сказал: bump to 1.22.1 aarch64 http://bin.entware.net/aarch64-k3.10/test/node-js/ mipsel http://bin.entware.net/mipselsf-k3.4/test/node-js/ Здравствуйте, Установка с нуля (не обновление) привело к ошибке Segmentation fault после "npm install -g typescript winston-transport". Предыдущая версия 1.22.0 устанавливалась без проблем. После установки любая команда npm приводит к этой ошибке. Попробовал установить nmp отдельно - устанавливается без проблем, но если после ее загрузки устанавливать пакет, возникает указанная ошибка. Соответственно не установлен и typescript winston-transport. Quote Link to comment Share on other sites More sharing options...
TheBB Posted December 16, 2021 Author Share Posted December 16, 2021 Скрытый текст ~ # ~ # opkg list-installed | grep ^node ~ # ~ # opkg install http://bin.entware.net/mipselsf-k3.4/test/node-js/node-zigbee2mqtt_1.22.1-1_mipsel-3.4.ipk Downloading http://bin.entware.net/mipselsf-k3.4/test/node-js/node-zigbee2mqtt_1.22.1-1_mipsel-3.4.ipk Installing node-zigbee2mqtt (1.22.1-1) to root... Installing node (v14.18.1-1) to root... Downloading http://bin.entware.net/mipselsf-k3.4/node_v14.18.1-1_mipsel-3.4.ipk Installing node-npm (v14.18.1-1) to root... Downloading http://bin.entware.net/mipselsf-k3.4/node-npm_v14.18.1-1_mipsel-3.4.ipk Configuring node. Configuring node-npm. Configuring node-zigbee2mqtt. *** Please install zigbee2mqtt dependencies manually *** "npm install -g typescript winston-transport" Do you wish to install them now? [y]: /opt/bin/tsserver -> /opt/lib/node_modules/typescript/bin/tsserver /opt/bin/tsc -> /opt/lib/node_modules/typescript/bin/tsc + typescript@4.5.4 added 1 package from 1 contributor in 65.036s + winston-transport@4.4.1 added 12 packages from 7 contributors in 19.901s ~ # ~ # opkg list-installed | grep ^node node - v14.18.1-1 node-npm - v14.18.1-1 node-zigbee2mqtt - 1.22.1-1 ~ # ~ # zigbee2mqtt Zigbee2MQTT:info 2021-12-16 17:23:24: Logging to console and directory: '/opt/var/lib/.z2m/log/2021-12-16.17-23-09' filename: log.txt Zigbee2MQTT:info 2021-12-16 17:23:24: Starting Zigbee2MQTT version 1.22.1 (commit #c2b5229) Zigbee2MQTT:info 2021-12-16 17:23:24: Starting zigbee-herdsman (0.13.176) Zigbee2MQTT:info 2021-12-16 17:23:29: zigbee-herdsman started (resumed) Zigbee2MQTT:info 2021-12-16 17:23:29: Coordinator firmware version: '{"meta":{"maintrel":3,"majorrel":2,"minorrel":6,"product":0,"revision":20201127,"transportrev":2},"type":"zStack12"}' Zigbee2MQTT:info 2021-12-16 17:23:29: Currently 0 devices are joined: Zigbee2MQTT:warn 2021-12-16 17:23:29: `permit_join` set to `true` in configuration.yaml. Zigbee2MQTT:warn 2021-12-16 17:23:29: Allowing new devices to join. Zigbee2MQTT:warn 2021-12-16 17:23:29: Set `permit_join` to `false` once you joined all devices. Zigbee2MQTT:info 2021-12-16 17:23:29: Zigbee: allowing new devices to join. Zigbee2MQTT:info 2021-12-16 17:23:29: Connecting to MQTT server at mqtt://localhost Zigbee2MQTT:info 2021-12-16 17:23:33: Connected to MQTT server Zigbee2MQTT:info 2021-12-16 17:23:33: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online' Zigbee2MQTT:warn 2021-12-16 17:23:34: Using experimental new availability feature Zigbee2MQTT:info 2021-12-16 17:23:34: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"commit":"c2b5229","coordinator":{"meta":{"maintrel":3,"majorrel":2,"minorrel":6,"product":0,"revision":20201127,"transportrev":2},"type":"zStack12"},"log_level":"info","network":{"channel":11,"extendedPanID":"0xdddddddddddddddd","panID":6754},"permit_join":true,"version":"1.22.1"}' ^CZigbee2MQTT:info 2021-12-16 17:24:06: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'offline' Zigbee2MQTT:info 2021-12-16 17:24:06: Disconnecting from MQTT server Zigbee2MQTT:info 2021-12-16 17:24:06: Stopping zigbee-herdsman... Zigbee2MQTT:info 2021-12-16 17:24:07: Stopped zigbee-herdsman Zigbee2MQTT:info 2021-12-16 17:24:07: Stopped Zigbee2MQTT ~ # ~ # ^ не подтверждаю, давайте подробней. Скрытый текст как пример работы, установка/удаление "express": ~ # ~ # npm install -g express + express@4.17.1 added 50 packages from 37 contributors in 56.698s ~ # ~ # npm uninstall express npm WARN saveError ENOENT: no such file or directory, open '/opt/root/package.json' npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN enoent ENOENT: no such file or directory, open '/opt/root/package.json' npm WARN root No description npm WARN root No repository field. npm WARN root No README data npm WARN root No license field. up to date in 3.565s found 0 vulnerabilities ~ # Quote Link to comment Share on other sites More sharing options...
YuriV Posted December 16, 2021 Share Posted December 16, 2021 8 hours ago, _Андрей said: Здравствуйте, Установка с нуля (не обновление) привело к ошибке Segmentation fault после "npm install -g typescript winston-transport". Предыдущая версия 1.22.0 устанавливалась без проблем. После установки любая команда npm приводит к этой ошибке. Попробовал установить nmp отдельно - устанавливается без проблем, но если после ее загрузки устанавливать пакет, возникает указанная ошибка. Соответственно не установлен и typescript winston-transport. У меня последняя версия установилась без проблем и работает. Правда я через remove/install обновлялся, зависимости не трогал. Quote Link to comment Share on other sites More sharing options...
_Андрей Posted December 17, 2021 Share Posted December 17, 2021 16 часов назад, TheBB сказал: Скрыть содержимое ~ # ~ # opkg list-installed | grep ^node ~ # ~ # opkg install http://bin.entware.net/mipselsf-k3.4/test/node-js/node-zigbee2mqtt_1.22.1-1_mipsel-3.4.ipk Downloading http://bin.entware.net/mipselsf-k3.4/test/node-js/node-zigbee2mqtt_1.22.1-1_mipsel-3.4.ipk Installing node-zigbee2mqtt (1.22.1-1) to root... Installing node (v14.18.1-1) to root... Downloading http://bin.entware.net/mipselsf-k3.4/node_v14.18.1-1_mipsel-3.4.ipk Installing node-npm (v14.18.1-1) to root... Downloading http://bin.entware.net/mipselsf-k3.4/node-npm_v14.18.1-1_mipsel-3.4.ipk Configuring node. Configuring node-npm. Configuring node-zigbee2mqtt. *** Please install zigbee2mqtt dependencies manually *** "npm install -g typescript winston-transport" Do you wish to install them now? [y]: /opt/bin/tsserver -> /opt/lib/node_modules/typescript/bin/tsserver /opt/bin/tsc -> /opt/lib/node_modules/typescript/bin/tsc + typescript@4.5.4 added 1 package from 1 contributor in 65.036s + winston-transport@4.4.1 added 12 packages from 7 contributors in 19.901s ~ # ~ # opkg list-installed | grep ^node node - v14.18.1-1 node-npm - v14.18.1-1 node-zigbee2mqtt - 1.22.1-1 ~ # ~ # zigbee2mqtt Zigbee2MQTT:info 2021-12-16 17:23:24: Logging to console and directory: '/opt/var/lib/.z2m/log/2021-12-16.17-23-09' filename: log.txt Zigbee2MQTT:info 2021-12-16 17:23:24: Starting Zigbee2MQTT version 1.22.1 (commit #c2b5229) Zigbee2MQTT:info 2021-12-16 17:23:24: Starting zigbee-herdsman (0.13.176) Zigbee2MQTT:info 2021-12-16 17:23:29: zigbee-herdsman started (resumed) Zigbee2MQTT:info 2021-12-16 17:23:29: Coordinator firmware version: '{"meta":{"maintrel":3,"majorrel":2,"minorrel":6,"product":0,"revision":20201127,"transportrev":2},"type":"zStack12"}' Zigbee2MQTT:info 2021-12-16 17:23:29: Currently 0 devices are joined: Zigbee2MQTT:warn 2021-12-16 17:23:29: `permit_join` set to `true` in configuration.yaml. Zigbee2MQTT:warn 2021-12-16 17:23:29: Allowing new devices to join. Zigbee2MQTT:warn 2021-12-16 17:23:29: Set `permit_join` to `false` once you joined all devices. Zigbee2MQTT:info 2021-12-16 17:23:29: Zigbee: allowing new devices to join. Zigbee2MQTT:info 2021-12-16 17:23:29: Connecting to MQTT server at mqtt://localhost Zigbee2MQTT:info 2021-12-16 17:23:33: Connected to MQTT server Zigbee2MQTT:info 2021-12-16 17:23:33: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online' Zigbee2MQTT:warn 2021-12-16 17:23:34: Using experimental new availability feature Zigbee2MQTT:info 2021-12-16 17:23:34: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"commit":"c2b5229","coordinator":{"meta":{"maintrel":3,"majorrel":2,"minorrel":6,"product":0,"revision":20201127,"transportrev":2},"type":"zStack12"},"log_level":"info","network":{"channel":11,"extendedPanID":"0xdddddddddddddddd","panID":6754},"permit_join":true,"version":"1.22.1"}' ^CZigbee2MQTT:info 2021-12-16 17:24:06: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'offline' Zigbee2MQTT:info 2021-12-16 17:24:06: Disconnecting from MQTT server Zigbee2MQTT:info 2021-12-16 17:24:06: Stopping zigbee-herdsman... Zigbee2MQTT:info 2021-12-16 17:24:07: Stopped zigbee-herdsman Zigbee2MQTT:info 2021-12-16 17:24:07: Stopped Zigbee2MQTT ~ # ~ # ^ не подтверждаю, давайте подробней. Скрыть содержимое как пример работы, установка/удаление "express": ~ # ~ # npm install -g express + express@4.17.1 added 50 packages from 37 contributors in 56.698s ~ # ~ # npm uninstall express npm WARN saveError ENOENT: no such file or directory, open '/opt/root/package.json' npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN enoent ENOENT: no such file or directory, open '/opt/root/package.json' npm WARN root No description npm WARN root No repository field. npm WARN root No README data npm WARN root No license field. up to date in 3.565s found 0 vulnerabilities ~ # Подробнее, сегодня ошибка другая ~ # opkg list-installed | grep ^node ~ # opkg install http://bin.entware.net/mipselsf-k3.4/test/node-js/node-zigbee2mqtt_1.22.1-1_mipsel-3.4.ipk Downloading http://bin.entware.net/mipselsf-k3.4/test/node-js/node-zigbee2mqtt_1.22.1-1_mipsel-3.4.ipk Installing node-zigbee2mqtt (1.22.1-1) to root... Installing node (v14.18.1-1) to root... Downloading http://bin.entware.net/mipselsf-k3.4/node_v14.18.1-1_mipsel-3.4.ipk Installing node-npm (v14.18.1-1) to root... Downloading http://bin.entware.net/mipselsf-k3.4/node-npm_v14.18.1-1_mipsel-3.4.ipk Configuring node. Configuring node-npm. Configuring node-zigbee2mqtt. *** Please install zigbee2mqtt dependencies manually *** "npm install -g typescript winston-transport" Do you wish to install them now? [y]: /opt/bin/node: error while loading shared libraries: !: cannot open shared object file: No such file or directory /opt/bin/node: error while loading shared libraries: !: cannot open shared object file: No such file or directory ~ # opkg list-installed | grep ^node node - v14.18.1-1 node-npm - v14.18.1-1 node-zigbee2mqtt - 1.22.1-1 ~ # zigbee2mqtt /opt/bin/node: error while loading shared libraries: !: cannot open shared object file: No such file or directory Quote Link to comment Share on other sites More sharing options...
Александр Рыжов Posted December 17, 2021 Share Posted December 17, 2021 @_Андрей, ставьте Entware с чистого листа. Что-то с локальной копией не так. Quote Link to comment Share on other sites More sharing options...
_Андрей Posted December 17, 2021 Share Posted December 17, 2021 2 часа назад, Александр Рыжов сказал: @_Андрей, ставьте Entware с чистого листа. Что-то с локальной копией не так. Да, на чистую ставится без проблем, что-то коряво у меня, видимо, раньше встало. Может карточка побилась... Спасибо TheBB! Quote Link to comment Share on other sites More sharing options...
OlegOs Posted February 4, 2022 Share Posted February 4, 2022 TheBB, Если не сложно обновите пожалуйста z2m до 1.23.0 - https://github.com/Koenkk/zigbee2mqtt/releases/tag/1.23.0 Quote Link to comment Share on other sites More sharing options...
TheBB Posted February 5, 2022 Author Share Posted February 5, 2022 В 04.02.2022 в 11:14, Олег Осипов сказал: Если не сложно обновите пожалуйста z2m до 1.23.0 - https://github.com/Koenkk/zigbee2mqtt/releases/tag/1.23.0 Пробуйте... Quote Link to comment Share on other sites More sharing options...
YuriV Posted February 5, 2022 Share Posted February 5, 2022 12 hours ago, TheBB said: Пробуйте... ~ # opkg install http://bin.entware.net/mipselsf-k3.4/test/node-js/node-zigbee2mqtt_1.23.0-1_mipsel-3.4.ipk Downloading http://bin.entware.net/mipselsf-k3.4/test/node-js/node-zigbee2mqtt_1.23.0-1_mipsel-3.4.ipk Unknown package 'node-zigbee2mqtt'. Collected errors: * pkg_hash_check_unresolved: cannot find dependency node-bufferutil for node-zigbee2mqtt * pkg_hash_check_unresolved: cannot find dependency node-utf-8-validate for node-zigbee2mqtt * pkg_hash_fetch_best_installation_candidate: Packages for node-zigbee2mqtt found, but incompatible with the architectures configured * opkg_install_cmd: Cannot install package node-zigbee2mqtt. Quote Link to comment Share on other sites More sharing options...
YuriV Posted February 5, 2022 Share Posted February 5, 2022 после установки зависимостей, на которые оно ругалось (node-bufferutil и node-utf-8-validate) вроде установилось Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.