Hassio-supervisor error starting

Could someone help point me in the right direction? First time setting up homeassistant/supervisor and now trying to get the USB device working. I’ve updated the config as suggested, e.g. user name, password, also updated the server and its device ID, confirmed permission. Still cannot get this to start…the FAQ suggested enabling zibgee-herdsman debugging (DEBUG=zigbee-herdsman* npm start) however could not find what config to include this in. Thank you ahead of time.

Log from supervisor:
zigbee2mqtt:info 2020-05-03 14:54:30: Starting zigbee2mqtt version 1.13.0 (commit #unknown)
zigbee2mqtt:info 2020-05-03 14:54:30: Starting zigbee-herdsman…
zigbee2mqtt:debug 2020-05-03 14:54:30: Using zigbee-herdsman with settings: ‘{“network”:{“panID”:6754,“extendedPanID”:[221,221,221,221,221,221,221,221],“channelList”:[11],“networkKey”:“HIDDEN”},“databasePath”:"/share/zigbee2mqtt/database.db",“databaseBackupPath”:"/share/zigbee2mqtt/database.db.backup",“backupPath”:"/share/zigbee2mqtt/coordinator_backup.json",“serialPort”:{“baudRate”:115200,“rtscts”:true,“path”:"/dev/ttyUSB1"},“adapter”:{“concurrent”:null}}’
zigbee2mqtt:error 2020-05-03 14:54:37: Error while starting zigbee-herdsman
zigbee2mqtt:error 2020-05-03 14:54:37: Failed to start zigbee
zigbee2mqtt:error 2020-05-03 14:54:37: Exiting…
zigbee2mqtt:error 2020-05-03 14:54:37: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
at ZStackAdapter. (/zigbee2mqtt-1.13.0/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:71:23)
at Generator.throw ()
at rejected (/zigbee2mqtt-1.13.0/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:6:65)
npm
ERR! code ELIFECYCLE
npm ERR!
errno 1
npm
ERR! zigbee2mqtt@1.13.0 start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zigbee2mqtt@1.13.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm
ERR! /root/.npm/_logs/2020-05-03T18_54_37_337Z-debug.log

Debug log file:
bash-5.0# cat 2020-05-03T18_44_17_550Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli ‘/usr/bin/node’,
1 verbose cli ‘/usr/lib/node_modules/pm2/lib/ProcessContainerFork.js’,
1 verbose cli ‘start’
1 verbose cli ]
2 info using npm@6.13.4
3 info using node@v12.15.0
4 verbose run-script [ ‘prestart’, ‘start’, ‘poststart’ ]
5 info lifecycle zigbee2mqtt@1.13.0~prestart: zigbee2mqtt@1.13.0
6 info lifecycle zigbee2mqtt@1.13.0~start: zigbee2mqtt@1.13.0
7 verbose lifecycle zigbee2mqtt@1.13.0~start: unsafe-perm in lifecycle true
8 verbose lifecycle zigbee2mqtt@1.13.0~start: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/zigbee2mqtt-1.13.0/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
9 verbose lifecycle zigbee2mqtt@1.13.0~start: CWD: /zigbee2mqtt-1.13.0
10 silly lifecycle zigbee2mqtt@1.13.0~start: Args: [ ‘-c’, ‘node index.js’ ]
11 silly lifecycle zigbee2mqtt@1.13.0~start: Returned: code: 1 signal: null
12 info lifecycle zigbee2mqtt@1.13.0~start: Failed to exec start script
13 verbose stack Error: zigbee2mqtt@1.13.0 start: node index.js
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:223:5)
13 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:223:5)
13 verbose stack at maybeClose (internal/child_process.js:1021:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
14 verbose pkgid zigbee2mqtt@1.13.0
15 verbose cwd /zigbee2mqtt-1.13.0
16 verbose Linux 4.15.0-96-generic
17 verbose argv “/usr/bin/node” “/usr/lib/node_modules/pm2/lib/ProcessContainerFork.js” “start”
18 verbose node v12.15.0
19 verbose npm v6.13.4
20 error code ELIFECYCLE
21 error errno 1
22 error zigbee2mqtt@1.13.0 start: node index.js
22 error Exit status 1
23 error Failed at the zigbee2mqtt@1.13.0 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

Configuration:
data_path: /share/zigbee2mqtt
devices: devices.yaml
groups: groups.yaml
homeassistant: true
permit_join: true
mqtt:
base_topic: zigbee2mqtt
server: ‘mqtt://localhost’
user:
password:
serial:
port: /dev/ttyUSB1
advanced:
log_level: debug
pan_id: 6754
channel: 11
network_key:
- 1
- 3
- 5
- 7
- 9
- 11
- 13
- 15
- 0
- 2
- 4
- 6
- 8
- 10
- 12
- 13
availability_blacklist: []
ban: []
whitelist: []
queue: {}
socat:
enabled: false
master: ‘pty,raw,echo=0,link=/dev/ttyZ2M,mode=777’
slave: ‘tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5’
restartdelay: 1
initialdelay: 1
options: ‘-d -d’
log: false

Try to ping your USB sniffer by using test -w /dev/ttyUSB1 && echo success || echo failure

If it failures find out what port your sniffer use. Mostly /dev/ttyACM0.

If you use HA on Pi go to Supervisor -> System -> Hardware.

Check also your config file of Zigbee2MQTT because your server, username and password are blank.

1 Like

Thank you for the suggestions. I removed the username/password from this posting purposely. The default configuration showed a server that wasn’t reachable/resolvable from the container so I changed it to localhost – should it be something else?

Pinging the USB sniffer succeeds from the ubuntu host & supervisor/homeassistant/zigbee2mqtt container (see output below). However I don’t see it present in the mosquito container – dont know if it should be.

ls -l /dev/serial/by-id
total 0
lrwxrwxrwx 1 root root 13 May 3 11:00 usb-Silicon_Labs_HubZ_Smart_Home_Controller_61200A46-if00-port0 -> …/…/ttyUSB0
lrwxrwxrwx 1 root root 13 May 3 11:00 usb-Silicon_Labs_HubZ_Smart_Home_Controller_61200A46-if01-port0 -> …/…/ttyUSB1

for i in 4e5af4f275d9 3fbf92cdab94 3953fcf9cdbc 1e5563845b66;do docker ps -a --no-trunc --filter id=$i;docker exec $i /bin/bash -c ‘ls -l /dev/ttyUSB1 && test -w /dev/ttyUSB1 && echo “Success on: ‘$i’”|| echo “Failure on: ‘$i’”’; done
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
4e5af4f275d94610f6467594158a29afeee8e9bcfc84fbb640931bb03d5211e9 homeassistant/qemux86-64-homeassistant:0.109.4 “/init” 27 minutes ago Up 27 minutes homeassistant
crw-rw---- 1 root dialout 188, 1 May 5 18:14 /dev/ttyUSB1
Success on: 4e5af4f275d9
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3fbf92cdab943b4240704daf7825e8a760df2410b75e09919f9c5cbf7e1d334d dwelch2101/zigbee2mqtt-amd64:1.13.0 “/init ./run.sh” 25 hours ago Up 25 hours 0.0.0.0:8485->8485/tcp addon_7ad98f9c_zigbee2mqtt
crw-rw---- 1 root dialout 188, 1 May 5 18:41 /dev/ttyUSB1
Success on: 3fbf92cdab94
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3953fcf9cdbca61e24e67edd0267ee33d65b66cd4a85853c4d6045e62f05c338 homeassistant/amd64-addon-mosquitto:5.1 “/run.sh” 26 hours ago Up 26 hours 0.0.0.0:1883-1884->1883-1884/tcp, 0.0.0.0:8883-8884->8883-8884/tcp addon_core_mosquitto
ls: /dev/ttyUSB1: No such file or directory
Failure on: 3953fcf9cdbc
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
1e5563845b66da0cfc755c8e21a034364548febfcf2973ce4fe899bdf4a06ac9 homeassistant/amd64-hassio-supervisor “/init” 2 days ago Up 26 hours hassio_supervisor
crw-rw---- 1 root dialout 188, 1 May 5 22:14 /dev/ttyUSB1
Success on: 1e5563845b66

What zigbee stick are you using ?

The nortek husbzb-1 - this is what dmesg showed upon connecting it:

[ 6.628826] usbcore: registered new interface driver usbserial_generic
[ 6.628835] usbserial: USB Serial support registered for generic
[ 6.641090] usbcore: registered new interface driver cp210x
[ 6.641100] usbserial: USB Serial support registered for cp210x
[ 6.654515] usb 2-2: cp210x converter now attached to ttyUSB0
[ 6.666415] usb 2-2: cp210x converter now attached to ttyUSB1

The husbzb-1 is not on the list of supported adapters for zigbee2mqtt

Ahh, just saw this https://www.zigbee2mqtt.io/information/supported_adapters.html – thank you. Will start a return and get one of that list, thanks :slight_smile: