Z2M fails to start under Proxmox with SkyConnect

Hi guys, I’m new to Proxmox, HA, and all of these good stuff. I followed this guide to set up my Z2M container: https://smarthomescene.com/guides/how-to-separate-zigbee2mqtt-from-home-assistant-in-proxmox/. Recently I ran into the above mentioned problem. Here is the log and the configuration file what I have:

root@zigbee2mqtt:~# cd /opt/zigbee2mqtt && npm start

> [email protected] start
> node index.js

Zigbee2MQTT:info  2023-12-01 18:23:17: Logging to console and directory: '/opt/zigbee2mqtt/data/log/2023-12-01.18-23-17' filename: log.txt
Zigbee2MQTT:info  2023-12-01 18:23:17: Starting Zigbee2MQTT version 1.33.2-dev (commit #4e128e26)
Zigbee2MQTT:info  2023-12-01 18:23:17: Starting zigbee-herdsman (0.23.0)
Zigbee2MQTT:error 2023-12-01 18:23:37: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2023-12-01 18:23:37: Failed to start zigbee
Zigbee2MQTT:error 2023-12-01 18:23:37: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2023-12-01 18:23:37: Exiting...
Zigbee2MQTT:error 2023-12-01 18:23:37: Error: Connection not initialized
    at Ezsp.execCommand (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:551:19)
    at Ezsp.version (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:349:35)
    at Driver.startup (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:140:25)
    at EZSPAdapter.start (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/ezsp/adapter/ezspAdapter.ts:172:16)
    at Controller.start (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/controller/controller.ts:132:29)
    at Zigbee.start (/opt/zigbee2mqtt/lib/zigbee.ts:60:27)
    at Controller.start (/opt/zigbee2mqtt/lib/controller.ts:101:27)
    at start (/opt/zigbee2mqtt/index.js:107:5)
root@zigbee2mqtt:/opt/zigbee2mqtt#
frontend:
  port: 8080
homeassistant: true
permit_join: false
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://192.168.0.215:18083
  user: user
  password: password
  keepalive: 60
  reject_unauthorized: true
  version: 4
serial:
  port: /dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_10705708687ded118905ec764fc49859-if00-port0
  adapter: ezsp
advanced:
  pan_id: 60310
  network_key:
    - 70
    - 35
    - 232
    - 159
    - 138
    - 171
    - 242
    - 224
    - 193
    - 36
    - 65
    - 159
    - 9
    - 203
    - 52
    - 236
  channel: 20

What am I doing wrong?

Welcome!

While the scripts you are using in Proxmox are nice, they are a bit of a ‘black box’.

Your MQTT port is bit odd, but I’m not sure that is your issue.

You might run a ‘docker inspect’ on your container ID and see what it shows. The output is a bit overwhelmng.

I use the following docker command to start my zigbee2mqtt. My MQTT broker is running in a different VM in Proxmox in docker, so I am just letting the standard port mapping go thru as ‘native’ for MQTT.

Good hunting!

docker run -i -t -d    \
  --name="production-zigbee2mqtt-1.33.1"    \
  -v /home/user/zigbee2mqtt/zigbee2mqtt-data:/app/data    \
  -v /run/udev:/run/udev:ro    \
  --device=/dev/serial/by-id/usb-1a86_TubesZB_971207DO-if00-port0    \
  --user 1000:1000    \
  --group-add dialout    \
  --net=host    \
  -e TZ=America/Los_Angeles    \
  koenkk/zigbee2mqtt:1.33.1


1 Like

Your server port number is most likely wrong.
You added 18083, which should be 1883 by default.

Thanks. For some reason I don’t know MQTT didn’t want to work for me, so I installed EMQX instead. Could that be the problem why I get this error message?

Glad to see you are making progress!

FYI, I find using this tool to look at my MQTT messages very helpful. First link is the standalone version, 2nd link is a docker container version that I use often, as it is available in web browser from any machine I’m on.

Good hunting!

https://hub.docker.com/r/smeagolworms4/mqtt-explorer