Mosquitto Broker Add-on errors

Hi,

I changed the HArdwarte, and restore the snapshot, all ok, bit the MQTT, with add-on Mosquitto Broker not work!.

Version of HA is 0.111.2

In the log of Mosquitto broker appear this:

1592161851: Socket error on client , disconnecting.
1592161862: New connection from 192.168.50.109 on port 1883.
[WARN] Not found mqtt on local database
1592161862: Socket error on client , disconnecting.
1592161873: New connection from 192.168.50.109 on port 1883.
1592161873: Socket error on client , disconnecting.
1592161883: New connection from 192.168.5.92 on port 1883.

Config of Mosquito Broker:

logins:
  - username: user
    password: pass
anonymous: false
customize:
  active: false
  folder: mosquitto
certfile: fullchain.pem
keyfile: privkey.pem
require_certificate: false

I create a user in the HA.

Any idea whtas happen?

Copy your addon config to a text file.
Delete the addon.
Reinstall the addon.
Paste the config back and start the addon.
Go to Configuration / Integrations and set up mqtt.

I have deleted and reinstalled the addon several times and with the same problem
in the configuration.yaml is this lines, is correct:

mqtt:
  broker: 192.168.50.30
  discovery: true
  username: user
  password: password
  discovery_prefix: homeassistant

in the log of HA appear this error:

Failed to connect to MQTT server due to exception: [Errno 111] Connection refused

No it isn’t. Delete it. Restart, and then set up mqtt in the Configuration / Integrations menu

YAML has not been used to set up the mosquitto addon for quite a while. See the addon documentation in the addon: