Can't get z2m to run (proxmox)
[solved]
So turns out it was a firmware issue. I reflashed the stick and it works... better...
Still some proxmox-specific bugs I'm better asking that sub about
Thanks for everyone's help though
[Original Post for Info]
Possibly the wrong sub. I can't get Z2M (1.42.0) working on proxmox (8.3), and am struggling with how to debug further
I setup HAOS, MQTT and Z2M last night. All using the recommended setup scripts for LXCs and following the relevant post-setup processes.
HA and MQTT work fine.
Unfortunately Z2M isn't starting, and I can't see the frontend. I get the following error:
# cd /opt/zigbee2mqtt && npm start
> [email protected] start
> node index.js
Starting Zigbee2MQTT without watchdog.
[2024-12-23 10:12:44] info: z2m: Logging to console, file (filename: log.log)
[2024-12-23 10:12:44] info: z2m: Starting Zigbee2MQTT version 1.42.0 (commit #bc6eccf)
[2024-12-23 10:12:44] info: z2m: Starting zigbee-herdsman (2.1.9)
[2024-12-23 10:12:45] info: zh:zstack:znp: Opening SerialPort with {"path":"/dev/ttyACM0","baudRate":115200,"rtscts":false,"autoOpen":false}
[2024-12-23 10:12:45] error: z2m: Error while starting zigbee-herdsman
[2024-12-23 10:12:45] error: z2m: Failed to start zigbee
[2024-12-23 10:12:45] error: z2m: Check for possible solutions
[2024-12-23 10:12:45] error: z2m: Exiting...
[2024-12-23 10:12:45] error: z2m: Error: Error Resource temporarily unavailable Cannot lock porthttps://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html
I made sure the user has permissions and the adapter is correct (as per the z2m debugging instructions).
I've tried using both the port /dev/ttyACM0
and the long adaptor address - both give errors.
My config is the recommended one (user and pass replaced):
# cat /opt/zigbee2mqtt/data/configuration.yaml
frontend:
port: 9442
homeassistant: true
permit_join: false
mqtt:
base_topic: zigbee2mqtt
server: 'mqtt://192.168.1.9:1883'
user: MyUSR
password: MyPASS
keepalive: 60
reject_unauthorized: true
version: 4
serial:
#port: usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20221201161034-if00
port: /dev/ttyACM0
advanced:
pan_id: 54445
network_key:
- 153
- 211
- 142
- 37
- 199
- 33
- 111
- 100
- 129
- 185
- 68
- 80
- 123
- 201
- 110
- 191
channel: 20
I'm at a loss with what to try next?