Bad gateway 502 on zigbee2mqtt. Can't find my coordinator

Hello everyone. So I’m pretty new to home assistant but I really like to try difficult stuff without looking into it first. Well, it caught on to me. I’ve been trying to get zigbee2mqtt to work for two days now and I don’t know what to do anymore. I followed the instructions to the letter and searched for similar cases to mine but nothing seems to work. Can someone help me please?

I’m running the OS version on an raspberry pi4 and for the zigbee coordinator I bought the Sky Connect. Here is my last log and some screenshots:

[23:16:53] INFO: Preparing to start...
[23:16:53] INFO: Socat not enabled
[23:16:55] INFO: Starting Zigbee2MQTT... Zigbee2MQTT:info  2024-02-25 23:17:01: Logging to console and directory: '/config/zigbee2mqtt/log/2024-02-25.23 17-01' filename: log.txt
Zigbee2MQTT:info  2024-02-25 23:17:01: Starting Zigbee2MQTT version 1.35.3 (commit #unknown)
Zigbee2MQTT:info  2024-02-25 23:17:01: Starting zigbee-herdsman (0.33.8)
Zigbee2MQTT:error 2024-02-25 23:17:02: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2024-02-25 23:17:02: Failed to start zigbee
Zigbee2MQTT:error 2024-02-25 23:17:02: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2024-02-25 23:17:02: Exiting...
Zigbee2MQTT:error 2024-02-25 23:17:02: Error: Error while opening serialport 'Error: Error: No such file or directory, cannot open /dev/ttyUBS0'
    at SerialPort.<anonymous> (/app/node_modules/zigbee-herdsman/src/adapter/serialPort.ts:28:28)
    at SerialPort._error (/app/node_modules/@serialport/stream/dist/index.js:82:22)
    at /app/node_modules/@serialport/stream/dist/index.js:118:18 

My config:


data_path: /config/zigbee2mqtt
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
mqtt: {}
serial:
  port: /dev/ttyUBS0
zigbee_herdsman_debug: false 

I can’t really see where the problem is, but it seems to me that the program is trying to access the port I provided but can’t find it? Even though I know that it is the correct port as shown on the screenshot. Maybe it’s the sky connect dongle, or maybe I need to change ports, idk.

I have almost the same problem. Skyconnect dongle, HA on a single raspberry pi, just the basics. zigbee2mqtt will not start, gives the dreaded “502: bad gateway” error message.
It looks like another process has locked the USB port. Connecting the Skyconnect to another USB port has no effect. Rebooting HA has no effect, neither has power down and up of the raspberry. Uninstalling Mosquitto and zigbee2mqtt has no effect.
Flashing the firmware of the skyconnect appeared to have effect for a short while, until the next HA restart.

I have no more ideas, I try to avoid the final experiment, clear out the entire system and build up from scratch.

Help? Please?

Configuration / device Details:
SKYCONNECT data as presented by Settings/Hardware/all hardware - TTYUSB1

Subsystem: tty
Device path: /dev/ttyUSB1
ID: /dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_ceeb1b2cbe96ed11ac98c098a7669f5d-if00-port0

Attributes:
DEVLINKS: >-
  /dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_ceeb1b2cbe96ed11ac98c098a7669f5d-if00-port0
  /dev/serial/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.1:1.0-port0
  /dev/serial/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usbv2-0:1.1:1.0-port0
DEVNAME: /dev/ttyUSB1
DEVPATH: >-
  /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.0/ttyUSB1/tty/ttyUSB1
ID_BUS: usb
ID_MODEL: SkyConnect_v1.0
ID_MODEL_ENC: SkyConnect\x20v1.0
ID_MODEL_ID: ea60
ID_PATH: platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.1:1.0
ID_PATH_TAG: platform-fd500000_pcie-pci-0000_01_00_0-usb-0_1_1_1_0
ID_PATH_WITH_USB_REVISION: platform-fd500000.pcie-pci-0000:01:00.0-usbv2-0:1.1:1.0
ID_REVISION: '0100'
ID_SERIAL: Nabu_Casa_SkyConnect_v1.0_ceeb1b2cbe96ed11ac98c098a7669f5d
ID_SERIAL_SHORT: ceeb1b2cbe96ed11ac98c098a7669f5d
ID_TYPE: generic
ID_USB_DRIVER: cp210x
ID_USB_INTERFACES: ':ff0000:'
ID_USB_INTERFACE_NUM: '00'
ID_USB_MODEL: SkyConnect_v1.0
ID_USB_MODEL_ENC: SkyConnect\x20v1.0
ID_USB_MODEL_ID: ea60
ID_USB_REVISION: '0100'
ID_USB_SERIAL: Nabu_Casa_SkyConnect_v1.0_ceeb1b2cbe96ed11ac98c098a7669f5d
ID_USB_SERIAL_SHORT: ceeb1b2cbe96ed11ac98c098a7669f5d
ID_USB_TYPE: generic
ID_USB_VENDOR: Nabu_Casa
ID_USB_VENDOR_ENC: Nabu\x20Casa
ID_USB_VENDOR_ID: 10c4
ID_VENDOR: Nabu_Casa
ID_VENDOR_ENC: Nabu\x20Casa
ID_VENDOR_ID: 10c4
MAJOR: '188'
MINOR: '1'
SUBSYSTEM: tty
TAGS: ':systemd:'
USEC_INITIALIZED: '1027314591'

==========================

Zigbee2mqtt configuration.yaml (partly)

mqtt:
  server: mqtt://core-mosquitto:1883
  user: addons
  password: fiosee8cheing3geeVu6efai3Nooc0quangaideish2gahjienee7SeiSu1zuowa
frontend:
  port: 8099
serial:
  port: >-
    /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20240219104144-if00
  adapter: ezsp
device_options:
  legacy: false
permit_join: true

Zigbee2MQTT start up log

[12:06:40] INFO: Preparing to start...
[12:06:40] INFO: Socat not enabled
[12:06:42] ERROR: Got unexpected response from the API: Service not enabled
[12:06:42] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-10-23 12:06:49] error: 	zh:ezsp:ezsp: Connection attempt 1 error: Error: Error: No such file or directory, cannot open /dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_ceeb1b2cbe96ed11ac98c098a7669f5d-if00-port0
[2024-10-23 12:06:54] error: 	zh:ezsp:ezsp: Connection attempt 2 error: Error: Error: No such file or directory, cannot open /dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_ceeb1b2cbe96ed11ac98c098a7669f5d-if00-port0
[2024-10-23 12:07:04] error: 	zh:ezsp:ezsp: Connection attempt 3 error: Error: Error: No such file or directory, cannot open /dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_ceeb1b2cbe96ed11ac98c098a7669f5d-if00-port0
[2024-10-23 12:07:19] error: 	zh:ezsp:ezsp: Connection attempt 4 error: Error: Error: No such file or directory, cannot open /dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_ceeb1b2cbe96ed11ac98c098a7669f5d-if00-port0
[2024-10-23 12:07:19] error: 	z2m: Error while starting zigbee-herdsman
[2024-10-23 12:07:19] error: 	z2m: Failed to start zigbee
[2024-10-23 12:07:19] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-10-23 12:07:19] error: 	z2m: Exiting...
[2024-10-23 12:07:19] error: 	z2m: Error: Failure to connect
    at Ezsp.connect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:364:19)
    at Driver.startup (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:186:13)
    at EZSPAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/adapter/ezspAdapter.ts:152:16)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:137:29)
    at Zigbee.start (/app/lib/zigbee.ts:69:27)
    at Controller.start (/app/lib/controller.ts:161:27)
    at start (/app/index.js:154:5)

================================================

*** Settings/Hardware - configure Skyconnect gives an error:
The radio firmware on your Home Assistant SkyConnect could not be determined. Make sure that no other integration or addon is currently trying to communicate with the device.

================================================