Cant get Zigbee2MQTT to run container (Docker Synology) *SOLVED

I am trying to install Zigbee2MQTT on my HA. I am running it on my Synology NAS in Docker with a SkyConnect. I have installed the USB driver (ttyUSB0) And ZHA is working fine. However some of my devices are unsupported so I need to use MQTT.
I have been following many different tutoruals but to no avail. the docker container keeps crashing. Here is the log. Any help is greatly appreciated!

date	stream	content
2024/05/13 15:08:32	stdout	    at read (/app/lib/util/settings.ts:335:20)
2024/05/13 15:08:32	stdout	    at Object.read (/app/lib/util/yaml.ts:7:29)
2024/05/13 15:08:32	stdout	    at Object.load (/app/node_modules/js-yaml/lib/loader.js:1714:19)
2024/05/13 15:08:32	stdout	    at loadDocuments (/app/node_modules/js-yaml/lib/loader.js:1688:5)
2024/05/13 15:08:32	stdout	    at readDocument (/app/node_modules/js-yaml/lib/loader.js:1625:3)
2024/05/13 15:08:32	stdout	    at composeNode (/app/node_modules/js-yaml/lib/loader.js:1441:12)
2024/05/13 15:08:32	stdout	    at readBlockMapping (/app/node_modules/js-yaml/lib/loader.js:1173:9)
2024/05/13 15:08:32	stdout	    at storeMappingPair (/app/node_modules/js-yaml/lib/loader.js:358:7)
2024/05/13 15:08:32	stdout	    at throwError (/app/node_modules/js-yaml/lib/loader.js:187:9)
2024/05/13 15:08:32	stdout	    at generateError (/app/node_modules/js-yaml/lib/loader.js:183:10)
2024/05/13 15:08:32	stdout	 12 |   port: 8081
2024/05/13 15:08:32	stdout	 11 |   # Optional, default 8080 or y ...
2024/05/13 15:08:32	stdout	------^
2024/05/13 15:08:32	stdout	 10 | frontend:
2024/05/13 15:08:32	stdout	  9 | 
2024/05/13 15:08:32	stdout	  8 |   adapter: ezsp
2024/05/13 15:08:32	stdout	  7 |   port: /dev/ttyUSB0
2024/05/13 15:08:32	stdout	
2024/05/13 15:08:32	stdout	YAMLException: duplicated mapping key (10:1)
2024/05/13 15:08:32	stdout	         ^

And here is my config;

homeassistant: true
mqtt:
  base_topic: zigbee2mqtt
  server: 'mqtt://192.168.2.21:1883'
serial:
  port: /dev/ttyUSB0
  adapter: ezsp

frontend: true
  # Optional, default 8080 or you can use your own as well.
  port: 8081
  # IP address of the device running Zigbee2MQTT
  host: 192.168.2.21

advanced:
  network_key:
    - 232
    - 186
    - 200
    - 27
    - 37
    - 227
    - 93
    - 67
    - 5
    - 82
    - 102
    - 111
    - 148
    - 44
    - 240
    - 3
  pan_id: 27185
  ext_pan_id:
    - 103
    - 216
    - 156
    - 29
    - 126
    - 181
    - 13
    - 201

You have frontend: specified twice. Once on line 2 and then again on line 10.

This will also not work with property keys. Remove : true as it’s already true because you have property keys specified.

I noticed I had that in a previous config. Appereantly I sent an old log I think. Sorry for the confusion. As seen in my config. I have specified it only once here. This is the latest log;

date	stream	content
2024/05/13 17:33:57	stdout	    at getInternalSettings (/app/lib/util/settings.ts:440:21)
2024/05/13 17:33:57	stdout	    at read (/app/lib/util/settings.ts:335:20)
2024/05/13 17:33:57	stdout	    at Object.read (/app/lib/util/yaml.ts:7:29)
2024/05/13 17:33:57	stdout	    at Object.load (/app/node_modules/js-yaml/lib/loader.js:1714:19)
2024/05/13 17:33:57	stdout	    at loadDocuments (/app/node_modules/js-yaml/lib/loader.js:1688:5)
2024/05/13 17:33:57	stdout	    at readDocument (/app/node_modules/js-yaml/lib/loader.js:1625:3)
2024/05/13 17:33:57	stdout	    at composeNode (/app/node_modules/js-yaml/lib/loader.js:1441:12)
2024/05/13 17:33:57	stdout	    at readBlockMapping (/app/node_modules/js-yaml/lib/loader.js:1182:7)
2024/05/13 17:33:57	stdout	    at throwError (/app/node_modules/js-yaml/lib/loader.js:187:9)
2024/05/13 17:33:57	stdout	    at generateError (/app/node_modules/js-yaml/lib/loader.js:183:10)
2024/05/13 17:33:57	stdout	 13 |   host: 192.168.2.21
2024/05/13 17:33:57	stdout	 12 |   # IP address of the device runn ...
2024/05/13 17:33:57	stdout	--------^
2024/05/13 17:33:57	stdout	 11 |   port: 8081
2024/05/13 17:33:57	stdout	 10 |   # Optional, default 8080 or you ...
2024/05/13 17:33:57	stdout	  9 | frontend: true
2024/05/13 17:33:57	stdout	  8 | 
2024/05/13 17:33:57	stdout	
2024/05/13 17:33:57	stdout	YAMLException: bad indentation of a mapping entry (11:3)
2024/05/13 17:33:57	stdout	         ^
2024/05/13 17:33:57	stdout	  return new YAMLException(message, mark);
2024/05/13 17:33:57	stdout	/app/node_modules/js-yaml/lib/loader.js:183
2024/05/13 17:33:57	stdout	
2024/05/13 17:33:57	stdout	Using '/app/data' as data directory
2024/05/13 17:33:36	stdout	    at getInternalSettings (/app/lib/util/settings.ts:440:21)
2024/05/13 17:33:36	stdout	    at read (/app/lib/util/settings.ts:335:20)
2024/05/13 17:33:36	stdout	    at Object.read (/app/lib/util/yaml.ts:7:29)
2024/05/13 17:33:36	stdout	    at Object.load (/app/node_modules/js-yaml/lib/loader.js:1714:19)
2024/05/13 17:33:36	stdout	    at loadDocuments (/app/node_modules/js-yaml/lib/loader.js:1688:5)
2024/05/13 17:33:36	stdout	    at readDocument (/app/node_modules/js-yaml/lib/loader.js:1625:3)
2024/05/13 17:33:36	stdout	    at composeNode (/app/node_modules/js-yaml/lib/loader.js:1441:12)
2024/05/13 17:33:36	stdout	    at readBlockMapping (/app/node_modules/js-yaml/lib/loader.js:1182:7)
2024/05/13 17:33:36	stdout	    at throwError (/app/node_modules/js-yaml/lib/loader.js:187:9)
2024/05/13 17:33:36	stdout	    at generateError (/app/node_modules/js-yaml/lib/loader.js:183:10)
2024/05/13 17:33:36	stdout	 13 |   host: 192.168.2.21
2024/05/13 17:33:36	stdout	 12 |   # IP address of the device runn ...
2024/05/13 17:33:36	stdout	--------^
2024/05/13 17:33:36	stdout	 11 |   port: 8081
2024/05/13 17:33:36	stdout	 10 |   # Optional, default 8080 or you ...
2024/05/13 17:33:36	stdout	  9 | frontend: true
2024/05/13 17:33:36	stdout	  8 | 
2024/05/13 17:33:36	stdout	
2024/05/13 17:33:36	stdout	YAMLException: bad indentation of a mapping entry (11:3)
2024/05/13 17:33:36	stdout	         ^
2024/05/13 17:33:36	stdout	  return new YAMLException(message, mark);
2024/05/13 17:33:36	stdout	/app/node_modules/js-yaml/lib/loader.js:183
2024/05/13 17:33:36	stdout	
2024/05/13 17:33:36	stdout	Using '/app/data' as data directory
2024/05/13 17:33:02	stdout	    at getInternalSettings (/app/lib/util/settings.ts:440:21)
2024/05/13 17:33:02	stdout	    at read (/app/lib/util/settings.ts:335:20)
2024/05/13 17:33:02	stdout	    at Object.read (/app/lib/util/yaml.ts:7:29)
2024/05/13 17:33:02	stdout	    at Object.load (/app/node_modules/js-yaml/lib/loader.js:1714:19)
2024/05/13 17:33:02	stdout	    at loadDocuments (/app/node_modules/js-yaml/lib/loader.js:1688:5)
2024/05/13 17:33:02	stdout	    at readDocument (/app/node_modules/js-yaml/lib/loader.js:1625:3)
2024/05/13 17:33:02	stdout	    at composeNode (/app/node_modules/js-yaml/lib/loader.js:1441:12)
2024/05/13 17:33:02	stdout	    at readBlockMapping (/app/node_modules/js-yaml/lib/loader.js:1182:7)
2024/05/13 17:33:02	stdout	    at throwError (/app/node_modules/js-yaml/lib/loader.js:187:9)
2024/05/13 17:33:02	stdout	    at generateError (/app/node_modules/js-yaml/lib/loader.js:183:10)
2024/05/13 17:33:02	stdout	 13 |   host: 192.168.2.21
2024/05/13 17:33:02	stdout	 12 |   # IP address of the device runn ...
2024/05/13 17:33:02	stdout	--------^
2024/05/13 17:33:02	stdout	 11 |   port: 8081
2024/05/13 17:33:02	stdout	 10 |   # Optional, default 8080 or you ...
2024/05/13 17:33:02	stdout	  9 | frontend: true
2024/05/13 17:33:02	stdout	  8 | 
2024/05/13 17:33:02	stdout	
2024/05/13 17:33:02	stdout	YAMLException: bad indentation of a mapping entry (11:3)
2024/05/13 17:33:02	stdout	         ^
2024/05/13 17:33:02	stdout	  return new YAMLException(message, mark);
2024/05/13 17:33:02	stdout	/app/node_modules/js-yaml/lib/loader.js:183
2024/05/13 17:33:02	stdout	
2024/05/13 17:33:01	stdout	Using '/app/data' as data directory

Thank again for looking into this!

No problem. So, for that one, change it to this:

frontend:
  port: 8081

You don’t need host. Also, make sure your indents are proper (2 spaces in front of port: and none in front of frontend:).

Thanks. I am still new to coding.
I now have made it simply like this;

frontend: true

I still cant connect to the frontend (in this case with the default :8080.)
Here’s the new log;


date	stream	content
2024/05/13 18:22:31	stdout	    at start (/app/index.js:107:5)
2024/05/13 18:22:31	stdout	    at Controller.start (/app/lib/controller.ts:104:16)
2024/05/13 18:22:31	stdout	    at Logger.info (/app/lib/util/logger.ts:169:21)
2024/05/13 18:22:31	stdout	    at DerivedLogger.<computed> [as info] (/app/node_modules/winston/lib/winston/create-logger.js:95:19)
2024/05/13 18:22:31	stdout	    at DerivedLogger.log (/app/node_modules/winston/lib/winston/logger.js:252:14)
2024/05/13 18:22:31	stdout	    at DerivedLogger.Writable.write (/app/node_modules/winston/node_modules/readable-stream/lib/_stream_writable.js:300:21)
2024/05/13 18:22:31	stdout	    at writeAfterEnd (/app/node_modules/winston/node_modules/readable-stream/lib/_stream_writable.js:264:12)
2024/05/13 18:22:31	stdout	Error: write after end
2024/05/13 18:22:31	stdout	           ^
2024/05/13 18:22:31	stdout	  var er = new ERR_STREAM_WRITE_AFTER_END();
2024/05/13 18:22:31	stdout	/app/node_modules/winston/node_modules/readable-stream/lib/_stream_writable.js:264
2024/05/13 18:22:31	stdout	
2024/05/13 18:22:31	stdout	[2024-05-13 18:22:31] e[31merrore[39m:  z2m: Failed to stop Zigbee2MQTT
2024/05/13 18:22:31	stdout	[2024-05-13 18:22:31] e[32minfoe[39m:  z2m: Stopping zigbee-herdsman...
2024/05/13 18:22:31	stdout	[2024-05-13 18:22:31] e[32minfoe[39m:  z2m: Disconnecting from MQTT server
2024/05/13 18:22:31	stdout	[2024-05-13 18:22:31] e[31merrore[39m:  z2m: Cannot send message: topic: 'zigbee2mqtt/bridge/state', payload: 'offline
2024/05/13 18:22:31	stdout	[2024-05-13 18:22:31] e[31merrore[39m:  z2m: Not connected to MQTT server!
2024/05/13 18:22:31	stdout	    at process.handleQuit (/app/index.js:117:9))
2024/05/13 18:22:31	stdout	    at stop (/app/index.js:111:5)
2024/05/13 18:22:31	stdout	    at Controller.stop (/app/lib/controller.ts:209:9)
2024/05/13 18:22:31	stdout	    at Controller.callExtensions (/app/lib/controller.ts:337:42)
2024/05/13 18:22:31	stdout	    at OnEvent.stop (/app/lib/extension/onEvent.ts:37:42)
2024/05/13 18:22:31	stdout	    at Zigbee.devices (/app/lib/zigbee.ts:329:30)
2024/05/13 18:22:31	stdout	[2024-05-13 18:22:31] e[31merrore[39m:  z2m: Failed to call 'OnEvent' 'stop' (TypeError: Cannot read properties of undefined (reading 'getDevices')
2024/05/13 18:22:31	stdout	[2024-05-13 18:22:31] e[32minfoe[39m:  z2m: Logging to console, file (filename: log.log)
2024/05/13 18:22:29	stdout	Using '/app/data' as data directory
2024/05/13 18:22:10	stdout	    at start (/app/index.js:107:5)
2024/05/13 18:22:10	stdout	    at Controller.start (/app/lib/controller.ts:109:27)
2024/05/13 18:22:10	stdout	    at Zigbee.start (/app/lib/zigbee.ts:62:27)
2024/05/13 18:22:10	stdout	    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:124:29)
2024/05/13 18:22:10	stdout	    at Driver.startup (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:173:9)
2024/05/13 18:22:10	stdout	    at Ezsp.version (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:466:24)
2024/05/13 18:22:10	stdout	    at Queue.execute (/app/node_modules/zigbee-herdsman/src/utils/queue.ts:35:20)
2024/05/13 18:22:10	stdout	    at /app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:686:23
2024/05/13 18:22:10	stdout	[2024-05-13 18:22:10] e[31merrore[39m:  z2m: Error: Failure send version:{"type":"Buffer","data":[0,0,0,4]}
2024/05/13 18:22:10	stdout	[2024-05-13 18:22:10] e[31merrore[39m:  z2m: Exiting...
2024/05/13 18:22:10	stdout	[2024-05-13 18:22:10] e[31merrore[39m:  z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
2024/05/13 18:22:10	stdout	[2024-05-13 18:22:10] e[31merrore[39m:  z2m: Failed to start zigbee
2024/05/13 18:22:10	stdout	[2024-05-13 18:22:10] e[31merrore[39m:  z2m: Error while starting zigbee-herdsman
2024/05/13 18:22:10	stdout	[2024-05-13 18:22:10] e[31merrore[39m:  zh:ezsp:uart: Can't resend DATA frame (0,0,1): 00000004
2024/05/13 18:22:10	stdout	[2024-05-13 18:22:10] e[31merrore[39m:  zh:ezsp:uart: -!- break rewaiting (1)
2024/05/13 18:22:10	stdout	[2024-05-13 18:22:10] e[31merrore[39m:  zh:ezsp:uart: --> Error: Error: {"sequence":1} after 4000ms
2024/05/13 18:22:06	stdout	[2024-05-13 18:22:06] e[31merrore[39m:  zh:ezsp:uart: Can't send DATA frame (0,0,0): 00000004
2024/05/13 18:22:06	stdout	[2024-05-13 18:22:06] e[31merrore[39m:  zh:ezsp:uart: -!- break waiting (1)
2024/05/13 18:22:06	stdout	[2024-05-13 18:22:06] e[31merrore[39m:  zh:ezsp:uart: --> Error: Error: {"sequence":1} after 4000ms
2024/05/13 18:21:49	stdout	    at Zigbee.start (/app/lib/zigbee.ts:62:27)
2024/05/13 18:21:49	stdout	    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:124:29)
2024/05/13 18:21:49	stdout	    at Driver.startup (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:164:13)
2024/05/13 18:21:49	stdout	    at Ezsp.connect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:353:17)
2024/05/13 18:21:49	stdout	    at SerialDriver.connect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:63:13)
2024/05/13 18:21:49	stdout	    at SerialDriver.openSerialPort (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:108:13)
2024/05/13 18:21:49	stdout	    at Queue.execute (/app/node_modules/zigbee-herdsman/src/utils/queue.ts:35:20)
2024/05/13 18:21:49	stdout	    at /app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:348:22
2024/05/13 18:21:49	stdout	    at SerialDriver.emit (node:events:517:28)
2024/05/13 18:21:49	stdout	    at SerialDriver.resetForReconnect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:347:19)
2024/05/13 18:21:49	stdout	[2024-05-13 18:21:49] e[31merrore[39m:  zh:ezsp:ezsp: Connection attempt 2 error: Error: Failure to connect
2024/05/13 18:21:49	stdout	[2024-05-13 18:21:49] e[31merrore[39m:  zh:ezsp:uart: --> Error: Error: {"sequence":-1} after 10000ms
2024/05/13 18:21:34	stdout	    at Zigbee.start (/app/lib/zigbee.ts:62:27)
2024/05/13 18:21:34	stdout	    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:124:29)
2024/05/13 18:21:34	stdout	    at Driver.startup (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:164:13)
2024/05/13 18:21:34	stdout	    at Ezsp.connect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:353:17)
2024/05/13 18:21:34	stdout	    at SerialDriver.connect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:63:13)
2024/05/13 18:21:34	stdout	    at SerialDriver.openSerialPort (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:108:13)
2024/05/13 18:21:34	stdout	    at Queue.execute (/app/node_modules/zigbee-herdsman/src/utils/queue.ts:35:20)
2024/05/13 18:21:34	stdout	    at /app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:348:22
2024/05/13 18:21:34	stdout	    at SerialDriver.emit (node:events:517:28)
2024/05/13 18:21:34	stdout	    at SerialDriver.resetForReconnect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:347:19)
2024/05/13 18:21:34	stdout	[2024-05-13 18:21:34] e[31merrore[39m:  zh:ezsp:ezsp: Connection attempt 1 error: Error: Failure to connect
2024/05/13 18:21:34	stdout	[2024-05-13 18:21:34] e[31merrore[39m:  zh:ezsp:uart: --> Error: Error: {"sequence":-1} after 10000ms
2024/05/13 18:21:24	stdout	[2024-05-13 18:21:24] e[33mwarninge[39m:  zh:ezsp: Deprecated driver 'ezsp' currently in use, 'ember' will become the officially supported EmberZNet driver in next release. If using Zigbee2MQTT see https://github.com/Koenkk/zigbee2mqtt/discussions/21462
2024/05/13 18:21:23	stdout	[2024-05-13 18:21:23] e[32minfoe[39m:  z2m: Starting zigbee-herdsman (0.46.6)
2024/05/13 18:21:23	stdout	[2024-05-13 18:21:23] e[32minfoe[39m:  z2m: Starting Zigbee2MQTT version 1.37.1 (commit #ea39d86)
2024/05/13 18:21:23	stdout	[2024-05-13 18:21:23] e[32minfoe[39m:  z2m: Logging to console, file (filename: log.log)
2024/05/13 18:21:21	stdout	Using '/app/data' as data directory
2024/05/13 18:20:48	stdout	    at start (/app/index.js:107:5)
2024/05/13 18:20:48	stdout	    at Controller.start (/app/lib/controller.ts:109:27)
2024/05/13 18:20:48	stdout	    at Zigbee.start (/app/lib/zigbee.ts:62:27)
2024/05/13 18:20:48	stdout	    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:124:29)
2024/05/13 18:20:48	stdout	    at Driver.startup (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:173:9)
2024/05/13 18:20:48	stdout	    at Ezsp.version (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:466:24)
2024/05/13 18:20:48	stdout	    at Queue.execute (/app/node_modules/zigbee-herdsman/src/utils/queue.ts:35:20)
2024/05/13 18:20:48	stdout	    at /app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:686:23
2024/05/13 18:20:48	stdout	[2024-05-13 18:20:48] e[31merrore[39m:  z2m: Error: Failure send version:{"type":"Buffer","data":[0,0,1,0,0,9]}
2024/05/13 18:20:48	stdout	[2024-05-13 18:20:48] e[31merrore[39m:  z2m: Exiting...
2024/05/13 18:20:48	stdout	[2024-05-13 18:20:48] e[31merrore[39m:  z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
2024/05/13 18:20:48	stdout	[2024-05-13 18:20:48] e[31merrore[39m:  z2m: Failed to start zigbee
2024/05/13 18:20:48	stdout	[2024-05-13 18:20:48] e[31merrore[39m:  z2m: Error while starting zigbee-herdsman
2024/05/13 18:20:48	stdout	[2024-05-13 18:20:48] e[31merrore[39m:  zh:ezsp:uart: Can't resend DATA frame (0,0,1): 000001000009
2024/05/13 18:20:48	stdout	[2024-05-13 18:20:48] e[31merrore[39m:  zh:ezsp:uart: -!- break rewaiting (1)
2024/05/13 18:20:48	stdout	[2024-05-13 18:20:48] e[31merrore[39m:  zh:ezsp:uart: --> Error: Error: {"sequence":1} after 4000ms
2024/05/13 18:20:44	stdout	[2024-05-13 18:20:44] e[31merrore[39m:  zh:ezsp:uart: Can't send DATA frame (0,0,0): 000001000009
2024/05/13 18:20:44	stdout	[2024-05-13 18:20:44] e[31merrore[39m:  zh:ezsp:uart: -!- break waiting (1)
2024/05/13 18:20:44	stdout	[2024-05-13 18:20:44] e[31merrore[39m:  zh:ezsp:uart: --> Error: Error: {"sequence":1} after 4000ms
2024/05/13 18:20:27	stdout	    at Zigbee.start (/app/lib/zigbee.ts:62:27)
2024/05/13 18:20:27	stdout	    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:124:29)
2024/05/13 18:20:27	stdout	    at Driver.startup (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:164:13)
2024/05/13 18:20:27	stdout	    at Ezsp.connect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:353:17)
2024/05/13 18:20:27	stdout	    at SerialDriver.connect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:63:13)
2024/05/13 18:20:27	stdout	    at SerialDriver.openSerialPort (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:108:13)
2024/05/13 18:20:27	stdout	    at Queue.execute (/app/node_modules/zigbee-herdsman/src/utils/queue.ts:35:20)
2024/05/13 18:20:27	stdout	    at /app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:348:22
2024/05/13 18:20:27	stdout	    at SerialDriver.emit (node:events:517:28)
2024/05/13 18:20:27	stdout	    at SerialDriver.resetForReconnect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:347:19)
2024/05/13 18:20:27	stdout	[2024-05-13 18:20:27] e[31merrore[39m:  zh:ezsp:ezsp: Connection attempt 2 error: Error: Failure to connect
2024/05/13 18:20:27	stdout	[2024-05-13 18:20:27] e[31merrore[39m:  zh:ezsp:uart: --> Error: Error: {"sequence":-1} after 10000ms
2024/05/13 18:20:12	stdout	    at Zigbee.start (/app/lib/zigbee.ts:62:27)
2024/05/13 18:20:12	stdout	    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:124:29)
2024/05/13 18:20:12	stdout	    at Driver.startup (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:164:13)
2024/05/13 18:20:12	stdout	    at Ezsp.connect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:353:17)
2024/05/13 18:20:12	stdout	    at SerialDriver.connect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:63:13)
2024/05/13 18:20:12	stdout	    at SerialDriver.openSerialPort (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:108:13)
2024/05/13 18:20:12	stdout	    at Queue.execute (/app/node_modules/zigbee-herdsman/src/utils/queue.ts:35:20)
2024/05/13 18:20:12	stdout	    at /app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:348:22
2024/05/13 18:20:12	stdout	    at SerialDriver.emit (node:events:517:28)
2024/05/13 18:20:12	stdout	    at SerialDriver.resetForReconnect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:347:19)
2024/05/13 18:20:12	stdout	[2024-05-13 18:20:12] e[31merrore[39m:  zh:ezsp:ezsp: Connection attempt 1 error: Error: Failure to connect
2024/05/13 18:20:12	stdout	[2024-05-13 18:20:12] e[31merrore[39m:  zh:ezsp:uart: --> Error: Error: {"sequence":-1} after 10000ms
2024/05/13 18:20:02	stdout	[2024-05-13 18:20:02] e[33mwarninge[39m:  zh:ezsp: Deprecated driver 'ezsp' currently in use, 'ember' will become the officially supported EmberZNet driver in next release. If using Zigbee2MQTT see https://github.com/Koenkk/zigbee2mqtt/discussions/21462
2024/05/13 18:20:02	stdout	[2024-05-13 18:20:02] e[32minfoe[39m:  z2m: Starting zigbee-herdsman (0.46.6)
2024/05/13 18:20:02	stdout	[2024-05-13 18:20:02] e[32minfoe[39m:  z2m: Starting Zigbee2MQTT version 1.37.1 (commit #ea39d86)
2024/05/13 18:20:02	stdout	[2024-05-13 18:20:02] e[32minfoe[39m:  z2m: Logging to console, file (filename: log.log)
2024/05/13 18:20:00	stdout	Using '/app/data' as data directory
2024/05/13 18:19:56	stdout	[2024-05-13 18:19:56] e[31merrore[39m:  z2m: Failed to stop Zigbee2MQTT
2024/05/13 18:19:55	stdout	[2024-05-13 18:19:55] e[31merrore[39m:  zh:controller: Failed to disable join on stop: TypeError: Cannot read properties of undefined (reading 'permitJoin')
2024/05/13 18:19:55	stdout	[2024-05-13 18:19:55] e[32minfoe[39m:  z2m: Stopping zigbee-herdsman...
2024/05/13 18:19:55	stdout	[2024-05-13 18:19:55] e[32minfoe[39m:  z2m: Disconnecting from MQTT server
2024/05/13 18:19:55	stdout	[2024-05-13 18:19:55] e[31merrore[39m:  z2m: Cannot send message: topic: 'zigbee2mqtt/bridge/state', payload: 'offline
2024/05/13 18:19:55	stdout	[2024-05-13 18:19:55] e[31merrore[39m:  z2m: Not connected to MQTT server!
2024/05/13 18:19:47	stdout	    at Zigbee.start (/app/lib/zigbee.ts:62:27)
2024/05/13 18:19:47	stdout	    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:124:29)
2024/05/13 18:19:47	stdout	    at Driver.startup (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:164:13)
2024/05/13 18:19:47	stdout	    at Ezsp.connect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:353:17)
2024/05/13 18:19:47	stdout	    at SerialDriver.connect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:63:13)
2024/05/13 18:19:47	stdout	    at SerialDriver.openSerialPort (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:108:13)
2024/05/13 18:19:47	stdout	    at Queue.execute (/app/node_modules/zigbee-herdsman/src/utils/queue.ts:35:20)
2024/05/13 18:19:47	stdout	    at /app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:348:22
2024/05/13 18:19:47	stdout	    at SerialDriver.emit (node:events:517:28)
2024/05/13 18:19:47	stdout	    at SerialDriver.resetForReconnect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:347:19)
2024/05/13 18:19:47	stdout	[2024-05-13 18:19:47] e[31merrore[39m:  zh:ezsp:ezsp: Connection attempt 2 error: Error: Failure to connect
2024/05/13 18:19:47	stdout	[2024-05-13 18:19:47] e[31merrore[39m:  zh:ezsp:uart: --> Error: Error: {"sequence":-1} after 10000ms
2024/05/13 18:19:32	stdout	    at Zigbee.start (/app/lib/zigbee.ts:62:27)
2024/05/13 18:19:32	stdout	    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:124:29)
2024/05/13 18:19:32	stdout	    at Driver.startup (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:164:13)
2024/05/13 18:19:32	stdout	    at Ezsp.connect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:353:17)
2024/05/13 18:19:32	stdout	    at SerialDriver.connect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:63:13)
2024/05/13 18:19:32	stdout	    at SerialDriver.openSerialPort (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:108:13)
2024/05/13 18:19:32	stdout	    at Queue.execute (/app/node_modules/zigbee-herdsman/src/utils/queue.ts:35:20)
2024/05/13 18:19:32	stdout	    at /app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:348:22
2024/05/13 18:19:32	stdout	    at SerialDriver.emit (node:events:517:28)
2024/05/13 18:19:32	stdout	    at SerialDriver.resetForReconnect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:347:19)
2024/05/13 18:19:32	stdout	[2024-05-13 18:19:32] e[31merrore[39m:  zh:ezsp:ezsp: Connection attempt 1 error: Error: Failure to connect
2024/05/13 18:19:32	stdout	[2024-05-13 18:19:32] e[31merrore[39m:  zh:ezsp:uart: --> Error: Error: {"sequence":-1} after 10000ms
2024/05/13 18:19:22	stdout	[2024-05-13 18:19:22] e[33mwarninge[39m:  zh:ezsp: Deprecated driver 'ezsp' currently in use, 'ember' will become the officially supported EmberZNet driver in next release. If using Zigbee2MQTT see https://github.com/Koenkk/zigbee2mqtt/discussions/21462
2024/05/13 18:19:22	stdout	[2024-05-13 18:19:22] e[32minfoe[39m:  z2m: Starting zigbee-herdsman (0.46.6)
2024/05/13 18:19:22	stdout	[2024-05-13 18:19:22] e[32minfoe[39m:  z2m: Starting Zigbee2MQTT version 1.37.1 (commit #ea39d86)
2024/05/13 18:19:22	stdout	[2024-05-13 18:19:22] e[32minfoe[39m:  z2m: Logging to console, file (filename: log.log)
2024/05/13 18:19:20	stdout	Using '/app/data' as data directory

All I can take from this is that it fails to connect to MQTT but the MQTT container is running and I can see it with MQTT Explorer.

Maybe? Let me get some more details on your setup so I understand.

  1. Is Z2M is running in a docker container or as an addon in HA?
  2. Is MQTT is running in a docker container or as an addon in HA?

What it looks like is that it both cannot connect to MQTT and it’s also having issues with the adapter.

Since I am running HA in a docker I cannot use addons (if I understand correctly)
It is not running HomeassitantOS and can therefore not use addons right?
Therefore both MQTT and Z2M are containers running in a docker.

My MQTT config is very plain I have to admit. Am I missing something here?

# Place your local configuration in /mosquitto/confing/

allow_anonymous true
listener 1883
persistence true
persistence_location /mosquitto/data/
log_dest file /mosquitto/log/mosquitto.log

Ahhhh completely missed that you’re running Container. Sorry about that!

Can you post the docker compose file for MQTT and Z2M? I wonder if the adapter is being passed through properly. Everything after this [39m: z2m: Error: Failure send version:{"type":"Buffer","data":[0,0,0,4]} leads me to think that the adapter isn’t being detected.

I have not used docker compose. (I do it all in Synology DSM.) But I will try to get it and send it. Thanks a million already! :slight_smile:

1 Like

Not a problem! Happy to help!

hmm I’ve been digging around a bit but I cant figure out how to get the compose file just yet. How can I get this file? I have only been using GUI Docker and not Docker Compose.

Ummmm… you can’t. But, can you screen cap the settings in your NAS? Specifically for Z2M. Since you can get into MQTT with MQTT Explorer, I doubt that’s the issue.

These are the settings that in shows in the Docker UI.
Sorry if this is not what you meant. I am still new to this stuff.
The z2m config.yaml I already sent previously.

I opened the Z2MQTT Log file and it seems to be more telling than the log in the dockerUI somehow. Heres what it says;

[2024-05-13 18:20:02] info: 	z2m: Logging to console, file (filename: log.log)
[2024-05-13 18:20:02] info: 	z2m: Starting Zigbee2MQTT version 1.37.1 (commit #ea39d86)
[2024-05-13 18:20:02] info: 	z2m: Starting zigbee-herdsman (0.46.6)
[2024-05-13 18:20:02] warning: 	zh:ezsp: Deprecated driver 'ezsp' currently in use, 'ember' will become the officially supported EmberZNet driver in next release. If using Zigbee2MQTT see https://github.com/Koenkk/zigbee2mqtt/discussions/21462
[2024-05-13 18:20:12] error: 	zh:ezsp:uart: --> Error: Error: {"sequence":-1} after 10000ms
[2024-05-13 18:20:12] error: 	zh:ezsp:ezsp: Connection attempt 1 error: Error: Failure to connect
    at SerialDriver.resetForReconnect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:347:19)
    at SerialDriver.emit (node:events:517:28)
    at /app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:348:22
    at Queue.execute (/app/node_modules/zigbee-herdsman/src/utils/queue.ts:35:20)
    at SerialDriver.openSerialPort (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:108:13)
    at SerialDriver.connect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:63:13)
    at Ezsp.connect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:353:17)
    at Driver.startup (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:164:13)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:124:29)
    at Zigbee.start (/app/lib/zigbee.ts:62:27)
[2024-05-13 18:20:27] error: 	zh:ezsp:uart: --> Error: Error: {"sequence":-1} after 10000ms
[2024-05-13 18:20:27] error: 	zh:ezsp:ezsp: Connection attempt 2 error: Error: Failure to connect
    at SerialDriver.resetForReconnect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:347:19)
    at SerialDriver.emit (node:events:517:28)
    at /app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:348:22
    at Queue.execute (/app/node_modules/zigbee-herdsman/src/utils/queue.ts:35:20)
    at SerialDriver.openSerialPort (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:108:13)
    at SerialDriver.connect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:63:13)
    at Ezsp.connect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:353:17)
    at Driver.startup (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:164:13)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:124:29)
    at Zigbee.start (/app/lib/zigbee.ts:62:27)
[2024-05-13 18:20:44] error: 	zh:ezsp:uart: --> Error: Error: {"sequence":1} after 4000ms
[2024-05-13 18:20:44] error: 	zh:ezsp:uart: -!- break waiting (1)
[2024-05-13 18:20:44] error: 	zh:ezsp:uart: Can't send DATA frame (0,0,0): 000001000009
[2024-05-13 18:20:48] error: 	zh:ezsp:uart: --> Error: Error: {"sequence":1} after 4000ms
[2024-05-13 18:20:48] error: 	zh:ezsp:uart: -!- break rewaiting (1)
[2024-05-13 18:20:48] error: 	zh:ezsp:uart: Can't resend DATA frame (0,0,1): 000001000009
[2024-05-13 18:20:48] error: 	z2m: Error while starting zigbee-herdsman
[2024-05-13 18:20:48] error: 	z2m: Failed to start zigbee
[2024-05-13 18:20:48] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-05-13 18:20:48] error: 	z2m: Exiting...
[2024-05-13 18:20:48] error: 	z2m: Error: Failure send version:{"type":"Buffer","data":[0,0,1,0,0,9]}
    at /app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:686:23
    at Queue.execute (/app/node_modules/zigbee-herdsman/src/utils/queue.ts:35:20)
    at Ezsp.version (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:466:24)
    at Driver.startup (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:173:9)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:124:29)
    at Zigbee.start (/app/lib/zigbee.ts:62:27)
    at Controller.start (/app/lib/controller.ts:109:27)
    at start (/app/index.js:107:5)

It looks like trouble with the USB device to me indeed. (from my limited understanding that is haha.)

1 Like

Yup. Ok, so I don’t see where it’s passing in the USB stick to /dev/usbTTY0. Typically, in a docker compose (which I don’t think you can use), you need to pass in the USB stick (using /dev/<something>).

Yup. That’s exactly what it is. I’ll see if I can dig up something to how to pass in the USB stick. I don’t have that NAS, so a little hard for me to troubleshoot it.

Yup. Ok, so I don’t see where it’s passing in the USB stick to /dev/usbTTY0. Typically, in a docker compose (which I don’t think you can use), you need to pass in the USB stick.

So, I found this: Synology Docker USB Passthru for Zigbee :frowning:

I’m not sure that’s the best news.

Awesome we got the culprit atleast…
Yes I changed that (in the Comfig.yaml) to;

serial:
  port: /dev/ttyUSB0
  adapter: ezsp

As that is my USB SkyConnect.

I already manually installed the USB driver for that one to get my skyconnect working at all in HA with ZHA.
(I followed this tutorial for that: https://www.youtube.com/watch?v=GjZI4Mw0a4c )

So, wait… you were able to get it to passthrough???

(annoying reply timer…)
Yes the SkyCOnnect USB works fine in HomeAssist using ZHA.
When i SSH the ‘ls’ command I dont see the ttyACM0 that everyone mentions in the Zigbee2mqtt install tutorials. So I changed those references to my ttyUSB0. (for which I installed the drivers.)