Jump to content

Recommended Posts

Доустановил последовательный интерфейс, роутер увидел модем

z2m валится теперь так
image.thumb.png.845e312c71dfd700c281428ebc925b36.png

12 минуты назад, TheBB сказал:

А стик прошит? Обычно они идут пустые.

заказывал прошитый. Подскажете как проверить?

Link to comment
Share on other sites

 Порт был занят запущенным ранее z2m. Перезапустил, теперь так

Screenshot_20210430-000443_JuiceSSH.thumb.jpg.bc2000f907c27770f4bd62e9d2fed979.jpg

Ещё судя по схеме,нужно mqtt брокер какой то ставить?

2-6w-tvahvt1zxxhk6ivodtyuya.png.189d81f14d125f1333a3d890ff3bed7d.png

 

Link to comment
Share on other sites

6 часов назад, sh2rman сказал:

Ещё судя по схеме,нужно mqtt брокер какой то ставить?

Да, нужно

Link to comment
Share on other sites

17 часов назад, sh2rman сказал:

Подскажете как проверить?

Должно появиться в /dev что-то типа ttyACM

16 часов назад, sh2rman сказал:

Ещё судя по схеме,нужно mqtt брокер какой то ставить?

`opkg install mosquitto-nossl` или `opkg install mosquitto-ssl` , добавить пользователя/группу, создать скрипт запуска для mosquitt`a, отредактировать конфиги...

Link to comment
Share on other sites

установил "ssl", добавил пользователя - все завелось, прописал автозапуск. Спасибо всем за помощь!

Новый вопрос: реально ли получить hass с возможностями 'supervised'?

Edited by sh2rman
Link to comment
Share on other sites

On 4/30/2021 at 5:22 PM, TheBB said:

Должно появиться в /dev что-то типа ttyACM

`opkg install mosquitto-nossl` или `opkg install mosquitto-ssl` , добавить пользователя/группу, создать скрипт запуска для mosquitt`a, отредактировать конфиги...

Добрый день, а можете собрать билд из дев ветки??? Там просто поддерживается внешний свисток.

Link to comment
Share on other sites

On 5/1/2021 at 4:00 PM, sh2rman said:

установил "ssl", добавил пользователя - все завелось, прописал автозапуск. Спасибо всем за помощь!

Новый вопрос: реально ли получить hass с возможностями 'supervised'?

Для вайзера нужен docker. Думаю что это не возможно. Зато есть hacs в нем тоже много чего есть

Link to comment
Share on other sites

  • 3 months later...

Размер пакета уменьшился более чем в 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 by TheBB
add2
  • Thanks 2
Link to comment
Share on other sites

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 by YuriV
  • Thanks 1
Link to comment
Share on other sites

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 by TheBB
ver.
  • Thanks 1
Link to comment
Share on other sites

  • 3 weeks later...

Добрый день!

После установки 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
~ #

Link to comment
Share on other sites

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 by TheBB
add
  • Thanks 1
Link to comment
Share on other sites

Добрый день. Подскажите в 55 мб влезет? я так понял бинарний весит 5 мб но потом ещё чёто будет качать?
 

Edited by utya
Link to comment
Share on other sites

18 часов назад, utya сказал:

Добрый день. Подскажите в 55 мб влезет? я так понял бинарний весит 5 мб но потом ещё чёто будет качать?

Вряд ли, кроме пакета zigbee2mqtt нужна сама система + node + все зависимости.

  • Thanks 1
Link to comment
Share on other sites

  • 1 month later...
  • 5 weeks later...
  • 1 month later...
В 14.12.2021 в 11:09, TheBB сказал:

Здравствуйте,
Установка с нуля (не обновление) привело к ошибке Segmentation fault после "npm install -g typescript winston-transport". Предыдущая версия 1.22.0 устанавливалась без проблем.
После установки любая команда npm приводит к этой ошибке.

Попробовал установить nmp отдельно - устанавливается без проблем, но если после ее загрузки устанавливать пакет, возникает указанная ошибка. Соответственно не установлен и typescript winston-transport.

Link to comment
Share on other sites

Скрытый текст
~ # 
~ # 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

~ # 

 

 

Link to comment
Share on other sites

8 hours ago, _Андрей said:

Здравствуйте,
Установка с нуля (не обновление) привело к ошибке Segmentation fault после "npm install -g typescript winston-transport". Предыдущая версия 1.22.0 устанавливалась без проблем.
После установки любая команда npm приводит к этой ошибке.

Попробовал установить nmp отдельно - устанавливается без проблем, но если после ее загрузки устанавливать пакет, возникает указанная ошибка. Соответственно не установлен и typescript winston-transport.

У меня последняя версия установилась без проблем и работает. Правда я через remove/install обновлялся, зависимости не трогал.

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

2 часа назад, Александр Рыжов сказал:

@_Андрей, ставьте Entware с чистого листа. Что-то с локальной копией не так.

Да, на чистую ставится без проблем, что-то коряво у меня, видимо, раньше встало. Может карточка побилась...
Спасибо TheBB!

Link to comment
Share on other sites

  • 1 month later...
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.

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...