Everything mqtt gone

All my switches and mqtt data disappeared overnight. No changes, No Updates. running Hassio 84.6 and mosquitto 2.0.
Does anybody now what’s going on?

mosquitto log

[INFO] Setup mosquitto configuration
[INFO] No local user available
[INFO] Initialize Hass.io Add-on services
[ERROR] Can’t setup Hass.io service mqtt
[INFO] Initialize Home Assistant discovery
[ERROR] Can’t setup Home Assistant discovery mqtt
[INFO] Start Mosquitto daemon
1546570768: mosquitto version 1.4.15 (build date 2018-03-04 15:35:59+0000) starting
1546570768: Config loaded from /etc/mosquitto.conf.
1546570768: *** auth-plug: startup
1546570768: ** Configured order: http
1546570768: Opening ipv4 listen socket on port 1883.
1546570768: Opening ipv6 listen socket on port 1883.
1546570768: Opening websockets listen socket on port 1884.
1546570768: Opening ipv4 listen socket on port 8883.
1546570768: Opening ipv6 listen socket on port 8883.
1546570768: Opening websockets listen socket on port 8884.
1546570769: Warning: Mosquitto should not be run as root/administrator.
1546570769: New connection from 192.168.50.138 on port 1883.
[ERROR] Auth error with cove
1546570769: Socket error on client , disconnecting.
1546570773: New connection from 192.168.50.138 on port 1883.
[ERROR] Auth error with cove
1546570773: Socket error on client , disconnecting.
1546570773: New connection from 192.168.50.212 on port 1883.
[ERROR] Auth error with cove
1546570774: Socket error on client , disconnecting.

config:

{
“plain”: true,
“plain_websockets”: false,
“ssl”: true,
“ssl_websockets”: false,
“anonymous”: true,
“logins”: ,
“customize”: {
“active”: false,
“folder”: “mosquitto”
},
“certfile”: “fullchain.pem”,
“keyfile”: “privkey.pem”
}

.yaml

mqtt:
  broker: 192.168.50.44
  port: 1883
  username: !secret mqtt_username
  password: !secret mqtt_pass
  birth_message:
    topic: "tele/hass1/LWT"
    payload: "Online"
    qos: 1
    retain: true
  will_message:
    topic: "tele/hass1/LWT"
    payload: "Offline"
    qos: 1
    retain: true

No I don’t know what is going on. This is the second report I’ve seen in as many days and I had to restart my mosquitto server yesterday to get it to start responding again too.

1 Like

Tried alot of things, no go, reinstalling everything
:cry:

Edit: everythings almost back to normal. Ive setup a automation to backup every night. Even tho that was accessible through gui it didn’t work. That backup was then backed up by Windows scheduler to a raid 10 setup.

Long story short guys don’t just do a snapshot and think you can go back.

??

Seems this error is telling.

It’s not telling me nothing

but it says it’s an AUTH error?

https://en.m.wikipedia.org/wiki/Auth ?

AUTHENTICATION is what Auth refers to here.

1 Like

Ok, like passwords, usernames, addresses, and ports… All have not changed. Just woke up one day and I think I noticed a light off that should have been on or something restart hassio and found all my mqtt items unable to connect to server. I uninstalled server reinstalled, did restore snapshot still can’t get it working. I had to pull sd card out and reinstall hassio.

You don’t need to have the mqtt yaml file anymore so remove it or hash it out.

Add your username and password into the add on then restart HA. Once it is back up go into configuration/integrations and enable it there

1 Like

What does adding it to integrations do?

Look here

HOME ASSISTANT CONFIGURATION

To use the Mosquitto as broker, go to the integration page and install the configuration with one click. If you have old MQTT settings available, remove this old integration and restart Home Assistant to see the new one.

This is what I have running currently. When I click into the mqtt section of integrations should I be seeing a devices, mine is blank.

That is normal - mine is also blank.

Does MQTT work for you now?

Yes.

I’m still trying to figure out why or what is crashing mqtt after running for a while. Usually a restart fixes it but right now restarting everything isn’t even working. On my front end it shows all the devices as online but can’t control it.

Hello,

Just wanted to add a review on this, I am using home assistant on raspbian, everytime the ha restart it lost it’s connection to my tasmota mqtt device.

Homeassistant restart every night to rotate it’s log, even with autodiscover mqtt were not bring back in ha, on my side I had to restart these devices.

So it might be your issue.