Zigbee2MQTT container won't start with Sonoff 3.0 USB controller. Cannot open dev/ttyUSB0

I want to use Sonoff 3.0 USB Dongle Plus E to connect devices to my Home Assistant container install on Synology NAS (DSM 7.2).

Zigbee2MQTT container stops with error logs focused on failure to use /dev/ttyUSB

Situation:
Home Assistant, Mosquitto, Zigbee2MQTT containers
MQTT integration
USB driver installed using Synology DSM 7.2 - Adding USB Devices / Dongles (SkyConnect / Z-Wave)

I think this worked (once I got a shielded USB extension lead). Dongle is discovered in HA with option to add ZHA integration. I deleted this and clicked ‘ignore’ when it re-appeared.

$ lsusb: gives |__usb1 1d6b:0002:0404 09 2.00 480MBit/s 0mA 1IF (Linux 4.4.302+ xhci-hcd xHCI Host Controller 0000:00:15.0) hub
|__1-2 10c4:ea60:0100 00 2.00 12MBit/s 100mA 1IF (ITead Sonoff Zigbee 3.0 USB Dongle Plus b82580eaa5dbed11a9b9ef2d62c613ac)
|__1-4 f400:f400:0100 00 2.00 480MBit/s 200mA 1IF (Synology DiskStation 650041BE1881C614)
|__usb2 1d6b:0003:0404 09 3.00 5000MBit/s 0mA 1IF (Linux 4.4.302+ xhci-hcd xHCI Host Controller 0000:00:15.0) hub

So I guess something can see what is plugged into the USB port.

I feel like I’ve completed the internet searching for a solution! Although similar, I haven’t found answer in: Can’t start Zigbee2MQTT - Sonoff ZigBee dongle plus 3.0 with Synology NAS - Configuration - Home Assistant Community

or Can’t connect Sonoff Zigbee 3.0 plus dongle to Home assistant - Configuration / Zigbee - Home Assistant Community

A few threads talked about permissions (I am inexperienced in SSH and failed to get anywhere with this). I don’t know if this of use:

ls -l /dev/ttyUSB0
crwxrwxrwx 1 root root 188, 0 Nov 16 23:46 /dev/ttyUSB0

ls -l /dev/serial/by-id/
ls: cannot access ‘/dev/serial/by-id/’: No such file or directory

$ ls -l /dev/tty* shows ttyUSB0 but no mention of ttyACM0 (which has been tried in config.yaml as well as
/dev/ttyUSB0:/dev/ttyUSB0
/dev/ttyUSB0:/dev/ttyACM0
/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_b82580eaa5dbed11a9b9ef2d62c613ac:/dev/ttyUSB0

This is the container log once it stops:

|2024/11/17 09:50:04|stdout|[2024-11-17 09:50:04] e[31merrore[39m: z2m: Error: Error: No such file or directory, cannot open /dev/ttyUSB0|
|2024/11/17 09:50:04|stdout|[2024-11-17 09:50:04] e[31merrore[39m: z2m: Exiting…|
|2024/11/17 09:50:04|stdout|[2024-11-17 09:50:04] e[31merrore[39m: z2m: Check Zigbee2MQTT fails to start | Zigbee2MQTT for possible solutions|
|2024/11/17 09:50:04|stdout|[2024-11-17 09:50:04] e[31merrore[39m: z2m: Failed to start zigbee|
|2024/11/17 09:50:04|stdout|[2024-11-17 09:50:04] e[31merrore[39m: z2m: Error while starting zigbee-herdsman|
|2024/11/17 09:50:04|stdout|[2024-11-17 09:50:04] e[32minfoe[39m: zh:zstack:znp: Opening SerialPort with {path:/dev/ttyUSB0,baudRate:115200,rtscts:false,autoOpen:false}|
|2024/11/17 09:50:04|stdout|[2024-11-17 09:50:04] e[31merrore[39m: zh:zstack:znp: Failed to determine if path is valid: ‘Error: ENOENT: no such file or directory, lstat ‘/dev/ttyUSB0’’|
|2024/11/17 09:50:03|stdout|[2024-11-17 09:50:03] e[32minfoe[39m: z2m: Starting zigbee-herdsman (2.1.7)|
|2024/11/17 09:50:03|stdout|[2024-11-17 09:50:03] e[32minfoe[39m: z2m: Starting Zigbee2MQTT version 1.41.0 (commit #cc31cea)|
|2024/11/17 09:50:03|stdout|[2024-11-17 09:50:03] e[32minfoe[39m: z2m: Logging to console, file (filename: log.log)|
|2024/11/17 09:50:01|stdout|Starting Zigbee2MQTT without watchdog.|
|2024/11/17 09:50:01|stdout|Using ‘/app/data’ as data directory|

I’m going in circles, not really understanding the problem. I thought I’d be ready to play with zigbee once I installed the driver with a USB extension… any guidance would be appreciated.

Still cannot run Zigbee2MQTT container. I re-installed HA, Mosquitto, Zigbee2MQTT containers from scratch, using guidance to install DSM 7.2 USB drivers.

Here: robertklep/dsm7-usb-serial-drivers: Synology DSM 7 USB serial drivers

and here: Docker | Zigbee2MQTT

In compose.yaml and confiuration.yaml, I replaced any reference to dev/ttyACM0 with dev/ttyUSB0 as this is what shows with $: ls /dev/tty*.

Added following to Zigbee docker compose:
group_add:
- dialout
user: 1026:100

I tried using:
devices:
- /dev/ttyUSB0:/dev/ttyUSB0

Build and starts container, then stops “error while starting zigbee herdsman” and “error: no path provided and failed to auto-detect”.
or
- /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_b82580eaa5dbed11a9b9ef2d62c613ac-if00-port0:/dev/ttyUSB0 # tried -if00-port0, if00, neither

Stops immediately “error gathering device information while adding custom device “…ac”: no such device or directory.”

Can anyone help with how to pass USB through to container?

Hey !!! What about a solution to this issue ?
I have flashed the Sonoff via my PC with the latest FW,
I have installed Mosquitto on the NAS via Docker, then I have installed the USB drivers on the NAS to recognize the Sonoff,
I can see a ttyUSB0 on ​​the NAS in /Dev/ via ls,
Then I have installed Z2M on the NAS via Docker
But when I launch it, it launches Mosquitto (because the links is set into the conf) but Z2M stops
I’m at the office right now so not in front of the machine to have logs
but these are the symptoms I have noticed
I wonder if it was a good idea to get an USB dongle vs an Ethernet one, but when I took the plunge 8 days ago, I didn’t know that Ethernet dongles was existing :scream: :face_with_peeking_eye: