Connection refused: Not authorized

Hi all,
Since 4 days all my device on Zigbee2MQTT doesn’t work anymore… Since I made the update to last version 2.1.1-1
the log of Zigbee2MQTT are the following :

[2025-02-23 17:42:05] info: z2m: Connecting to MQTT server at mqtt://core-mosquitto:1883
[2025-02-23 17:42:06] error: z2m: MQTT failed to connect, exiting… (Connection refused: Not authorized)
[2025-02-23 17:42:06] info: z2m: Stopping zigbee-herdsman…
[2025-02-23 17:42:06] info: zh:controller: Wrote coordinator backup to ‘/config/zigbee2mqtt/coordinator_backup.json’
[2025-02-23 17:42:06] info: z2m: Stopped zigbee-herdsman

And my config is the following :
mqtt :
base_topic: zigbee2mqtt
server: mqtt://core-mosquitto:1883
serial :
serial :
port: >-
/dev/serial/by-id/usb-Itead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_V2_089c257aa43aef11963d301455516304-if00-port0
adapter: ezsp

Anyone has any idea to resolve the issue ?
Many thanks

I have the same problem. Started 2 days ago.

1 Like

I find the answer if it still useful for you : I tried everything and I was facing several issues:
First, you need to flash your Zigbee usb (dongle-e Sonoff for me) to move to ember ==> Many tutorial are available online depending on your Zibgee usb key you’re using.
Then, the issue was still on because you need to first start Mosquito broker and wait before starting the Zigbee2MQTT.
I also erased all the content in Zigbee2MQTT config in the “MQTT:” part
Hope it helps.

MQTT failed to connect, exiting… (Connection refused: Not authorized)

You need to provide user credentials in the MQTT part of the configuration.

Thanks for the feedback. It works well now without user credentials. I read that user credentials are only to secure connection to MQTT.
I was just trying again and again to restart Zigbee2MQTT before the mosquito broker…

are there default credentials? trying to set up a new system

I’m not sure if there are. Mosquitto requires you to set credentials during installation, but I think it very much depends on the installation method that you use.