Proxmox: Zigbee2mqtt ls: cannot access '/dev/serial/by-id': No such file or directory

Trying to use your zigbee2mqtt script to setup an LXC on proxmox.

Ran steps 1 and 2 to create the LXC and allow USB passthrough. Reboot LXC. Installed usbutils and ran the lsusb command and I do see the USB device there. Bus 002 Device 071: ID 1cf1:0030 Dresden Elektronik ZigBee gateway [ConBee II]

However when I run ls -l /dev/serial/by-id

It returns ls: cannot access '/dev/serial/by-id': No such file or directory

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 19 (10 by maintainers)

Most upvoted comments

BTW, I just went ahead and added

lxc.cgroup2.devices.allow: c 188:* rwm
lxc.cgroup2.devices.allow: c 189:* rwm
lxc.mount.entry: /dev/serial/by-id  dev/serial/by-id  none bind,optional,create=dir
lxc.mount.entry: /dev/ttyUSB0       dev/ttyUSB0       none bind,optional,create=file
lxc.mount.entry: /dev/ttyACM0       dev/ttyACM0       none bind,optional,create=file

to the .conf file during the installation. Should make it a more pleasant setup process.

Got it 😃 A little digging through the z2m issue reports and I found this gem.

“Faced the same issue. I tried to run npm start from the project folder. But got an error. This happens due to already executed zigbee2mqtt.service via systemctl.”

Sure enough, navigating to http://192.168.XX.XXX:9442 and it was already running!!

Thanks for all the help with this one