Z2mqtt stuck on loading screen on frontend

Hi, I am stuck on configuring Zigbee2mqtt. It is stuck on the loading screen. (fresh HA installation with supervisor)

I have a zigbee adapter connected to my Pi4 ModelB 4GB.

Here are the logs:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] socat.sh: executing... 
[14:45:05] INFO: Socat not enabled, marking service as down
[cont-init.d] socat.sh: exited 0.
[cont-init.d] zigbee2mqtt.sh: executing... 
[14:45:06] INFO: MQTT available, fetching server detail ...
[14:45:06] INFO: MQTT server settings not configured, trying to auto-discovering ...
[14:45:07] INFO: Configuring 'mqtt://core-mosquitto:1883' mqtt server
[14:45:07] INFO: MQTT credentials not configured, trying to auto-discovering ...
[14:45:07] INFO: Configuring'addons' mqtt user
[14:45:07] INFO: Previous config file found, checking backup
[14:45:07] INFO: Creating backup config in '/config/zigbee2mqtt/.configuration.yaml.bk'
[14:45:07] INFO: Adjusting Zigbee2mqtt core yaml config with add-on quirks ...
[cont-init.d] zigbee2mqtt.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[14:45:09] INFO: Handing over control to Zigbee2mqtt Core ...
> [email protected] start
> node index.js
Zigbee2MQTT:warn  2021-12-20 14:45:16: `permit_join` set to  `true` in configuration.yaml.
Zigbee2MQTT:warn  2021-12-20 14:45:16: Allowing new devices to join.
Zigbee2MQTT:warn  2021-12-20 14:45:16: Set `permit_join` to `false` once you joined all devices.
Zigbee2MQTT:warn  2021-12-20 14:45:16: Using experimental new availability feature
Zigbee2MQTT:error 2021-12-20 14:58:31: Adapter disconnected, stopping
Zigbee2MQTT:error 2021-12-20 14:58:31: Failed to stop Zigbee2MQTT
[14:58:32] INFO: Handing over control to Zigbee2mqtt Core ...
> [email protected] start
> node index.js
Zigbee2MQTT:error 2021-12-20 14:58:38: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-12-20 14:58:38: Failed to start zigbee
Zigbee2MQTT:error 2021-12-20 14:58:38: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2021-12-20 14:58:38: Exiting...
Zigbee2MQTT:error 2021-12-20 14:58:38: Error: Error while opening serialport 'Error: Error: No such file or directory, cannot open /dev/ttyACM0'
    at SerialPort.<anonymous> (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:146:28)
    at SerialPort._error (/app/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:198:14)
    at /app/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:242:12
[14:58:38] INFO: Handing over control to Zigbee2mqtt Core ...
> [email protected] start
> node index.js
Zigbee2MQTT:error 2021-12-20 14:58:45: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-12-20 14:58:45: Failed to start zigbee
Zigbee2MQTT:error 2021-12-20 14:58:45: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2021-12-20 14:58:45: Exiting...
Zigbee2MQTT:error 2021-12-20 14:58:45: Error: Error while opening serialport 'Error: Error: No such file or directory, cannot open /dev/ttyACM0'
    at SerialPort.<anonymous> (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:146:28)
    at SerialPort._error (/app/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:198:14)
    at /app/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:242:12
[14:58:45] INFO: Handing over control to Zigbee2mqtt Core ...
> [email protected] start
> node index.js
Zigbee2MQTT:warn  2021-12-20 14:58:54: `permit_join` set to  `true` in configuration.yaml.
Zigbee2MQTT:warn  2021-12-20 14:58:54: Allowing new devices to join.
Zigbee2MQTT:warn  2021-12-20 14:58:54: Set `permit_join` to `false` once you joined all devices.
Zigbee2MQTT:warn  2021-12-20 14:58:54: Using experimental new availability feature
[15:06:37] INFO: Handing over control to Zigbee2mqtt Core ...
> [email protected] start
> node index.js
Zigbee2MQTT:warn  2021-12-20 15:06:44: `permit_join` set to  `true` in configuration.yaml.
Zigbee2MQTT:warn  2021-12-20 15:06:44: Allowing new devices to join.
Zigbee2MQTT:warn  2021-12-20 15:06:44: Set `permit_join` to `false` once you joined all devices.
Zigbee2MQTT:warn  2021-12-20 15:06:44: Using experimental new availability feature

Is your Zigbee stick connected to /dev/ttyACM0 ?

I mean, i guess. What is the command to see this again?

ls -l /dev/serial/by-id

Did you try

serial:
  port: >-
    /dev/serial/by-id/usb-Texas_Instruments_TI_CC2531_USB_CDC___0X00124B0001CDCB6E9-if00

Just did, 502 Bad gateway.
Here’s the log:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] socat.sh: executing... 
[17:37:24] INFO: Socat not enabled, marking service as down
[cont-init.d] socat.sh: exited 0.
[cont-init.d] zigbee2mqtt.sh: executing... 
[17:37:25] INFO: MQTT available, fetching server detail ...
[17:37:25] INFO: MQTT server settings not configured, trying to auto-discovering ...
[17:37:26] INFO: Configuring 'mqtt://core-mosquitto:1883' mqtt server
[17:37:26] INFO: MQTT credentials not configured, trying to auto-discovering ...
[17:37:26] INFO: Configuring'addons' mqtt user
[17:37:26] INFO: Previous config file found, checking backup
[17:37:26] INFO: Creating backup config in '/config/zigbee2mqtt/.configuration.yaml.bk'
[17:37:26] INFO: Adjusting Zigbee2mqtt core yaml config with add-on quirks ...
[cont-init.d] zigbee2mqtt.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[17:37:27] INFO: Handing over control to Zigbee2mqtt Core ...
> [email protected] start
> node index.js
Zigbee2MQTT:error 2021-12-20 17:37:34: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-12-20 17:37:34: Failed to start zigbee
Zigbee2MQTT:error 2021-12-20 17:37:34: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2021-12-20 17:37:34: Exiting...
Zigbee2MQTT:error 2021-12-20 17:37:34: Error: Error while opening serialport 'Error: Error: No such file or directory, cannot open /dev/serial/by-id/usb-Texas_Instruments_TI_CC2531_USB_CDC___0X00124B0001CDCB6E9-if00'
    at SerialPort.<anonymous> (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:146:28)
    at SerialPort._error (/app/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:198:14)
    at /app/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:242:12
[17:37:35] INFO: Handing over control to Zigbee2mqtt Core ...
> [email protected] start
> node index.js
Zigbee2MQTT:error 2021-12-20 17:37:41: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-12-20 17:37:41: Failed to start zigbee
Zigbee2MQTT:error 2021-12-20 17:37:41: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2021-12-20 17:37:41: Exiting...
Zigbee2MQTT:error 2021-12-20 17:37:41: Error: Error while opening serialport 'Error: Error: No such file or directory, cannot open /dev/serial/by-id/usb-Texas_Instruments_TI_CC2531_USB_CDC___0X00124B0001CDCB6E9-if00'
    at SerialPort.<anonymous> (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:146:28)
    at SerialPort._error (/app/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:198:14)
    at /app/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:242:12
[17:37:42] INFO: Handing over control to Zigbee2mqtt Core ...

BTW thats the config after I inserted what you have sent:

data_path: /config/zigbee2mqtt
external_converters: []
devices: devices.yaml
groups: groups.yaml
homeassistant: true
permit_join: true
mqtt:
  base_topic: zigbee2mqtt
serial:
  port: >-
    /dev/serial/by-id/usb-Texas_Instruments_TI_CC2531_USB_CDC___0X00124B0001CDCB6E9-if00
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

Thank you very much in advance.

Don’t just paste it. I tried to type it over from your screenshot, but I’m not 100% sure I got it right.

I just typed it over myself. Still 502 Bad Gateway

Maybe restart your computer… Something might be using the serial port.

Just restarted, stil 502 bad gateway

You don’t have ZHA or modemmanager installed ?

No, I don’t. But can I use ZHA instead zigbee2mqtt? Does it work the same?