Zigbee2mqtt MQTT Authentication Issue

Hi everyone, I’m encountering an issue while setting up zigbee2mqtt on my Raspberry Pi 3B with OpenHABian. I’ve successfully installed Mosquitto via openhabian-config (version 2.4) and set up a password. The MQTT binding is online and connected to the broker, and I can establish a connection using MQTT.fx with the provided username and password. However, when I try to run zigbee2mqtt, I’m facing an authentication error.

Here’s what I’ve done so far:

  1. Installed Mosquitto and set up the MQTT binding.
  2. Verified MQTT connectivity using MQTT.fx.
  3. Configured zigbee2mqtt with the correct MQTT URL, port, username, and password.
  4. Started zigbee2mqtt with npm start, but it throws an error: Error: Connection refused: Not authorized.

I suspect the issue lies with the MQTT server configuration or the zigbee2mqtt setup. Could there be a misconfiguration in Mosquitto that’s preventing zigbee2mqtt from authenticating properly? Any guidance would be greatly appreciated! Thanks in advance for your help.