Mosquitto MQTT Broker Connection Issues with OpenHABian 4.1

After successfully running OpenHABian 2.5 for several years, I’m now attempting to set up OpenHABian 4.1 on a Raspberry Pi 3B+. The setup includes TP-Link devices and two ESP8266 devices that provide remote temperature and humidity readings via MQTT. I’ve installed Mosquitto through both the openHABian-config screen and the Addon-Store, using the same configuration settings from my previous setup. However, I’m encountering a ‘Not Authorized’ error when trying to connect the MQTT Broker.

I’ve followed the installation steps carefully, entering the password as prompted. Despite this, the connection attempt fails repeatedly. The logs indicate a communication error with the CONNACK response containing an error code of NOT_AUTHORIZED. I’ve tried restarting the broker and the Raspberry Pi, but the issue persists.

I’m seeking guidance on how to troubleshoot this issue. Specifically, I’d like to understand if there are any changes in OpenHABian 4.1 that might affect MQTT Broker configuration or if there are additional steps required to authorize the connection properly. Any insights or suggestions would be greatly appreciated.