502: Bad Gateway for Zigbee2mqtt

502: Bad Gateway

Hi All, anyone an idee why I get the following error. I am already trying to fix for 2 days without success.

Want to connect with Zigbee2mqtt

502: Bad Gateway

Configuration

data_path: /config/zigbee2mqtt

external_converters:

devices: devices.yaml

groups: groups.yaml

homeassistant: true

permit_join: true

mqtt:

base_topic: zigbee2mqtt

server: mqtt://core-mosquitto

user: mqtt_user

password: mqtt_password

serial:

port: /dev/ttyUSB0

advanced:

log_level: warn

pan_id: 6754

channel: 11

network_key:

  • 1

  • 3

  • 5

  • 7

  • 9

  • 11

  • 13

  • 15

  • 0

  • 2

  • 4

  • 6

  • 8

  • 10

  • 12

  • 13

availability_blocklist:

availability_passlist:

device_options: {}

blocklist:

passlist:

queue: {}

frontend:

port: 8099

experimental: {}

availability: false

socat:

enabled: false

master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777

slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5

options: ‘-d -d’

log: false

Log:

[email protected] start > node index.js Zigbee2MQTT:error 2022-03-13 16:46:23: Error while starting zigbee-herdsman Zigbee2MQTT:error 2022-03-13 16:46:23: Failed to start zigbee Zigbee2MQTT:error 2022-03-13 16:46:23: Check Zigbee2MQTT fails to start | Zigbee2MQTT for possible solutions Zigbee2MQTT:error 2022-03-13 16:46:23: Exiting… Zigbee2MQTT:error 2022-03-13 16:46:24: TypeError: Cannot read property ‘length’ of null at AdapterNvMemory.init (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/adapter-nv-memory.ts:28:42) at ZnpAdapterManager.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/manager.ts:60:9) at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:123:29) at Zigbee.start (/app/lib/zigbee.ts:58:27) at Controller.start (/app/lib/controller.ts:100:27) at start (/app/index.js:101:5) [16:46:24] INFO: Handing over control to Zigbee2mqtt Core … > [email protected] start > node index.js

00

Comments

Share

Save

You’ll want to read the sticky post on how to use code markup for config and logs.

The problem is that Z2M isn’t starting, because of a problem with your Zigbee coordinator.

What coordinator are you using?

Thanks a a lot for you reply. I have been reading the configs and logs for quit some hours. Unfortunately couldn’t find the right settings. I have the CC2652RB

Two things you can do:

  1. Flash the stick with current firmware, in case the problem is that the stick doesn’t have any firmware installed
  2. Try using the /dev/serial/by-id/ path instead of /dev/ttyUSB0
1 Like