#Can't get Zigbee2Mqtt to start (Docker compose)

1 messages ยท Page 1 of 1 (latest)

gray anchor
#

I keep getting the following error when trying to get Z2M up and running. I see that it isn't connecting to my HA instance but I don't understand why the webgui won't start up either.

whole jetty
#

Please share the log as text - not images

gray anchor
#

Docker compose: ``` GNU nano 5.4 docker-compose.yml
services:
zigbee2mqtt:
container_name: zigbee2mqtt
image: koenkk/zigbee2mqtt
restart: unless-stopped
volumes:
- ./data:/app/data
- /run/udev:/run/udev:ro
ports:
# Frontend port
- 8080:8080
environment:
- TZ=America/Denver
devices:
# Make sure this matched your adapter location
- /dev/ttyUSB1:/dev/ttyACM0

#

Config file: ``` GNU nano 5.4 data/configuration.yaml
homeassistant: true
permit_join: true
mqtt:
base_topic: zigbee2mqtt
server: mqtt://10.10.2.10:1883
serial:
port: /dev/ttyACM0
advanced:
frontend: true
homeassistant_legacy_entity_attributes: false
legacy_api: false
legacy_availability_payload: false
device_options:
legacy: false

#

@whole jetty

whole jetty
#

I'm here, no need to ping me ๐Ÿ˜‰

#
zigbee2mqtt  | [2024-10-29 09:51:47] info:      z2m: Connecting to MQTT server at mqtt://10.10.2.10:1883
zigbee2mqtt  | [2024-10-29 09:52:17] error:     z2m: MQTT error: connack timeout
#

That's the problem

gray anchor
#

Sorry! I dont get notifications unless I am pinged so it's habbit lol

whole jetty
#

You can change that ๐Ÿ˜‰

gray anchor
#

I know, I just keep forgetting too lol

#

So it won't start at all until it connects to the MQTT server on HA?

whole jetty
#

Yes

gray anchor
#

Hmmm okay. Maybe it's a FW rule not letting it connect

#

Ah okay! it was a FW rule. but now I am getting: ```zigbee2mqtt | [2024-10-29 10:02:41] error: z2m: MQTT error: Connection refused: Not authorized

#

I don't see where I can add auth in their docs.

whole jetty
gray anchor
#

Thank you!

#

I still am unable to connect to the webgui though

#

But I do have a connection to HA

whole jetty
#

Probably firewall again ๐Ÿ˜›

#

Check the Z2M log to see that it starts the frontend

gray anchor
#

Totally segmented with no internet access but still lol

whole jetty
#

Looks like you made up the lines in that config file

#

Have you read the Z2M frontend docs?

gray anchor
#

I just pulled their config file and changed the fronted to true and added my server IP and creds

#

From what their docs say that's all you should need to do

whole jetty
#

Nope

gray anchor
#

What am I missing? Everything in advanced says Optional

whole jetty
#

Where there does it say that the frontend settings live under advanced:?

gray anchor
#

Ah I see. I didn't catch that.