# After the update Homeassistant & MQTT broker integration broken

**URL:** https://dietpi.com/forum/t/after-the-update-homeassistant-mqtt-broker-integration-broken/14719
**Category:** Troubleshooting
**Created:** [24 October 2022 16:24 UTC](https://dietpi.com/forum/t/after-the-update-homeassistant-mqtt-broker-integration-broken/14719 "2022-10-24T16:24:39Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![mail2rst](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/ee59a6/32.png) [@mail2rst](https://dietpi.com/forum/u/mail2rst)
#### Post date: [24 October 2022 16:24 UTC](https://dietpi.com/forum/t/after-the-update-homeassistant-mqtt-broker-integration-broken/14719/1 "2022-10-24T16:24:39Z")

</div>

Yesterday I have update home assistant & mqtt broker via dietpi pi provided upgrade methods on my raspberry B2. after these up-gradation my homeassitant & mqtt broker integration broke. & the logs show me something like this.  
[https://dpaste.org/jGF7C](https://dpaste.org/jGF7C)

mqtt broker & zigbee2mqtt leg working fine. but home assistant & mqtt broker leg broken. this may be caused by some new up gradation in homeassistant side as now instead of cli they are going toward GUI. but which ever the reason my system is struck after these upgrades. please help me to figure out the problem & help me make my system workable.

---

<div class="post-metadata">

### Author: ![mail2rst](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/ee59a6/32.png) [@mail2rst](https://dietpi.com/forum/u/mail2rst)
#### Post date: [24 October 2022 16:48 UTC](https://dietpi.com/forum/t/after-the-update-homeassistant-mqtt-broker-integration-broken/14719/2 "2022-10-24T16:48:52Z")

</div>

root@DietPi:~# mosquitto -h  
mosquitto version 2.0.13

mosquitto is an MQTT v5.0/v3.1.1/v3.1 broker.

Usage: mosquitto [-c config\_file] [-d] [-h] [-p port]

-c : specify the broker config file.  
-d : put the broker into the background after starting.  
-h : display this help.  
-p : start the broker listening on the specified port.  
Not recommended in conjunction with the -c option.  
-v : verbose mode - enable all logging types. This overrides  
any logging options given in the config file.

See [https://mosquitto.org/](https://mosquitto.org/) for more information.

---

<div class="post-metadata">

### Author: ![mail2rst](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/ee59a6/32.png) [@mail2rst](https://dietpi.com/forum/u/mail2rst)
#### Post date: [24 October 2022 17:03 UTC](https://dietpi.com/forum/t/after-the-update-homeassistant-mqtt-broker-integration-broken/14719/3 "2022-10-24T17:03:49Z")

</div>

Installed Home-assistant information:  
Home Assistant 2022.10.5  
Frontend 20221010.0 - latest

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [24 October 2022 17:33 UTC](https://dietpi.com/forum/t/after-the-update-homeassistant-mqtt-broker-integration-broken/14719/4 "2022-10-24T17:33:24Z")

</div>

Did you tried to restart the HA service to trigger build of missing module?

---

<div class="post-metadata">

### Author: ![mail2rst](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/ee59a6/32.png) [@mail2rst](https://dietpi.com/forum/u/mail2rst)
#### Post date: [24 October 2022 17:35 UTC](https://dietpi.com/forum/t/after-the-update-homeassistant-mqtt-broker-integration-broken/14719/5 "2022-10-24T17:35:18Z")

</div>

I have restarted homeassistant, mqtt beroker many times, even reboot many time. but still integration is broken, in GUI it shows like  
 ![image](https://dietpi.com/forum/uploads/default/original/2X/3/3ac9c9d99d2803b2960a1e56f5791553b758bd3c.png)

i am not able to remove this integration in GUI. and in logs it is showing somthing related to  
` \* The Python version is: Python3.9 from “/home/homeassistant/.pyenv/versions/3.9.15/bin/python3.9”

- The NumPy version is: “1.23.2”  
`  
or

`

- Original error was: libcblas.so.3: cannot open shared object file: No such file or directory  
`  
and when i tried to add new mqtt ingratiation in GUI, this pop up window pop  
 ![image](https://dietpi.com/forum/uploads/default/original/2X/6/6f94f0355b3ebef9034b0e0e215852f84a9be3ca.png)

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [24 October 2022 21:03 UTC](https://dietpi.com/forum/t/after-the-update-homeassistant-mqtt-broker-integration-broken/14719/6 "2022-10-24T21:03:27Z")

</div>

> [@mail2rst](#):
>
> i am not able to remove this integration in GUI.

theoretically you could do this from CLI

```auto
nano /mnt/dietpi_userdata/homeassistant/.storage/core.config_entries
systemctl restart home-assistant.service

```

remove the whole section for `mqtt`

---

<div class="post-metadata">

### Author: ![mail2rst](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/ee59a6/32.png) [@mail2rst](https://dietpi.com/forum/u/mail2rst)
#### Post date: [24 October 2022 21:18 UTC](https://dietpi.com/forum/t/after-the-update-homeassistant-mqtt-broker-integration-broken/14719/7 "2022-10-24T21:18:35Z")

</div>

do you suggest i will remove these things from that file

```auto
      {
        "entry_id": "81e49cc616e511ebb99727d7b8c3dbfa",
        "version": 1,
        "domain": "mqtt",
        "title": "configuration.yaml",
        "data": {
          "birth_message": {
            "topic": "hass/status",
            "payload": "online",
            "qos": 0,
            "retain": false
          },
          "broker": "127.0.0.1",
          "discovery": true,
          "will_message": {
            "topic": "hass/status",
            "payload": "offline",
            "qos": 0,
            "retain": false
          },
          "port": 1883
        },
        "options": {},
        "pref_disable_new_entities": false,
        "pref_disable_polling": false,
        "source": "import",
        "unique_id": null,
        "disabled_by": null
      },

```

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [24 October 2022 21:21 UTC](https://dietpi.com/forum/t/after-the-update-homeassistant-mqtt-broker-integration-broken/14719/8 "2022-10-24T21:21:55Z")

</div>

> [@mail2rst](#):
>
> do you suggest i will remove these things from that file

yes. to be save, you can create a copy of that file before. Or even better you would have created a backup of your entire system before doing the update/upgrade of HA

```auto
cp -p /mnt/dietpi_userdata/homeassistant/.storage/core.config_entries /mnt/dietpi_userdata/homeassistant/.storage/core.config_entries.backup

```

---

<div class="post-metadata">

### Author: ![mail2rst](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/ee59a6/32.png) [@mail2rst](https://dietpi.com/forum/u/mail2rst)
#### Post date: [24 October 2022 21:25 UTC](https://dietpi.com/forum/t/after-the-update-homeassistant-mqtt-broker-integration-broken/14719/9 "2022-10-24T21:25:06Z")

</div>

after doing that homeassistant fail to start, i have ssh via root user so when i saved that file i think come into root user permission. so now home assistant not start

```auto
Oct 24 15:20:54 DietPi systemd[1]: Stopping Home Assistant (DietPi)...
Oct 24 15:20:56 DietPi systemd[1]: home-assistant.service: Succeeded.
Oct 24 15:20:56 DietPi systemd[1]: Stopped Home Assistant (DietPi).
Oct 24 15:20:56 DietPi systemd[1]: home-assistant.service: Consumed 3min 26.994s CPU time.
Oct 24 15:20:56 DietPi systemd[1]: Started Home Assistant (DietPi).
Oct 24 15:21:07 DietPi Home Assistant[17637]: 2022-10-24 15:21:07.781 ERROR (SyncWorker_0) [homeassistant.util.json] Could not parse JSON content: /mnt/dietpi_userdata/homeassistant/.storage/core.config_entries
Oct 24 15:21:07 DietPi Home Assistant[17637]: Traceback (most recent call last):
Oct 24 15:21:07 DietPi Home Assistant[17637]: File "/home/homeassistant/.pyenv/versions/3.9.15/lib/python3.9/site-packages/homeassistant/util/json.py", line 39, in load_json
Oct 24 15:21:07 DietPi Home Assistant[17637]: return orjson.loads(fdesc.read()) # type: ignore[no-any-return]
Oct 24 15:21:07 DietPi Home Assistant[17637]: orjson.JSONDecodeError: unexpected content after document: line 2 column 12 (char 12)
Oct 24 15:21:08 DietPi systemd[1]: home-assistant.service: Main process exited, code=exited, status=1/FAILURE
Oct 24 15:21:08 DietPi systemd[1]: home-assistant.service: Failed with result 'exit-code'.
Oct 24 15:21:08 DietPi systemd[1]: home-assistant.service: Consumed 11.928s CPU time.

```

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [24 October 2022 21:45 UTC](https://dietpi.com/forum/t/after-the-update-homeassistant-mqtt-broker-integration-broken/14719/10 "2022-10-24T21:45:37Z")

</div>

> [@mail2rst](#):
>
> homeassistant fail to start

> [@mail2rst](#):
>
> ```auto
> Could not parse JSON content: /mnt/dietpi_userdata/homeassistant/.storage/core.config_entries
> 
> ```

can you share following

```auto
cat /mnt/dietpi_userdata/homeassistant/.storage/core.config_entries

```

---

<div class="post-metadata">

### Author: ![mail2rst](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/ee59a6/32.png) [@mail2rst](https://dietpi.com/forum/u/mail2rst)
#### Post date: [24 October 2022 21:50 UTC](https://dietpi.com/forum/t/after-the-update-homeassistant-mqtt-broker-integration-broken/14719/11 "2022-10-24T21:50:43Z")

</div>

I have recovered my file again from backup. as i do not want to mess up with home assistant internal work-ability. so mqtt section is in my `core.config_entries`e

---

<div class="post-metadata">

### Author: ![mail2rst](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/ee59a6/32.png) [@mail2rst](https://dietpi.com/forum/u/mail2rst)
#### Post date: [24 October 2022 21:54 UTC](https://dietpi.com/forum/t/after-the-update-homeassistant-mqtt-broker-integration-broken/14719/12 "2022-10-24T21:54:21Z")

</div>

please check on your side with every thing updated mqtt broker communicate with homeasssitant. as the base of issue is some dependency missing

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [24 October 2022 21:57 UTC](https://dietpi.com/forum/t/after-the-update-homeassistant-mqtt-broker-integration-broken/14719/13 "2022-10-24T21:57:51Z")

</div>

> [@mail2rst](#):
>
> as i do not want to mess up with home assistant internal work-ability. so mqtt section is in my `core.config_entries`e

I tested it without issues and MQTT was removed as integration. You could have shared `core.config_entries`

> [@mail2rst](#):
>
> please check on your side with every thing updated mqtt broker communicate with homeasssitant.

I did a test install on my R5S without issue. HA and Mosquitto could be configured together.

---

<div class="post-metadata">

### Author: ![mail2rst](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/ee59a6/32.png) [@mail2rst](https://dietpi.com/forum/u/mail2rst)
#### Post date: [24 October 2022 22:07 UTC](https://dietpi.com/forum/t/after-the-update-homeassistant-mqtt-broker-integration-broken/14719/14 "2022-10-24T22:07:44Z")

</div>

[https://dpaste.org/0LA5e](https://dpaste.org/0LA5e)

have you checked this page [Troubleshooting ImportError — NumPy v1.24.dev0 Manual](https://numpy.org/devdocs/user/troubleshooting-importerror.html) . may be i am using raspberry pi & this page shows some missing files in raspberry pi

" libf77blas.so.3: cannot open shared object file: No such file or directory "

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [25 October 2022 08:44 UTC](https://dietpi.com/forum/t/after-the-update-homeassistant-mqtt-broker-integration-broken/14719/15 "2022-10-25T08:44:41Z")

</div>

> [@mail2rst](#):
>
> libf77blas.so.3: cannot open shared object file: No such file or directory "

Is this an error message you actually have? If yes, where you have seen it?

As well try to remove mqtt configuration part again from your settings file and restart HA. Usually it should work. If it is failing again, post latest HA logs and the content of your confirmation file.

---

<div class="post-metadata">

### Author: ![mail2rst](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/ee59a6/32.png) [@mail2rst](https://dietpi.com/forum/u/mail2rst)
#### Post date: [25 October 2022 14:10 UTC](https://dietpi.com/forum/t/after-the-update-homeassistant-mqtt-broker-integration-broken/14719/16 "2022-10-25T14:10:48Z")

</div>

> [@mail2rst](#):
>
> [https://dpaste.org/jGF7C](https://dpaste.org/jGF7C)

the first log file i shared [https://dpaste.org/jGF7C](https://dpaste.org/jGF7C) , please check line no 27. which mentioned about failure regarding “libf77blas.so.3”

I have edited our file " core.config\_entries" & remove mqtt section and restart my homeassistant. now in gui mqtt section gone. after that i try to add mqtt section again (in gui). i recieved folowwing error in gui.  
 ![image](https://dietpi.com/forum/uploads/default/original/2X/b/b34dc19cf19cab4e20adbf5979d25c1c18418d09.png)

---

<div class="post-metadata">

### Author: ![mail2rst](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/ee59a6/32.png) [@mail2rst](https://dietpi.com/forum/u/mail2rst)
#### Post date: [25 October 2022 14:27 UTC](https://dietpi.com/forum/t/after-the-update-homeassistant-mqtt-broker-integration-broken/14719/17 "2022-10-25T14:27:48Z")

</div>

if i want to give these three commands based on guideline mentioned at "[Troubleshooting ImportError — NumPy v1.24.dev0 Manual](https://numpy.org/devdocs/user/troubleshooting-importerror.html) "

1. sudo apt-get install libatlas-base-dev
2. pip3 uninstall numpy
3. apt install python3-numpy

as per dietpi o/s arrangement please translate them in to dietpi environment.

```auto
Oct 25 08:37:27 DietPi Home Assistant[23916]: We have compiled some common reasons and troubleshooting tips at:
Oct 25 08:37:27 DietPi Home Assistant[23916]: https://numpy.org/devdocs/user/troubleshooting-importerror.html
Oct 25 08:37:27 DietPi Home Assistant[23916]: Please note and check the following:
Oct 25 08:37:27 DietPi Home Assistant[23916]: * The Python version is: Python3.9 from "/home/homeassistant/.pyenv/versions/3.9.15/bin/python3.9"
Oct 25 08:37:27 DietPi Home Assistant[23916]: * The NumPy version is: "1.23.2"
Oct 25 08:37:27 DietPi Home Assistant[23916]: and make sure that they are the versions you expect.
Oct 25 08:37:27 DietPi Home Assistant[23916]: Please carefully study the documentation linked above for further help.
Oct 25 08:37:27 DietPi Home Assistant[23916]: Original error was: libcblas.so.3: cannot open shared object file: No such file or directory

```

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [25 October 2022 14:45 UTC](https://dietpi.com/forum/t/after-the-update-homeassistant-mqtt-broker-integration-broken/14719/18 "2022-10-25T14:45:06Z")

</div>

as per our [online docs](https://dietpi.com/docs/software/home_automation/#home-assistant)

1. login as user `root`

```auto
apt install libatlas-base-dev

```

1. switch to user `homeassistant`

```auto
sudo -u homeassistant bash
. /home/homeassistant/pyenv-activate.sh
pip3 uninstall numpy

```

1. exit and switch back to user `root`

```auto
apt install python3-numpy

```

---

<div class="post-metadata">

### Author: ![mail2rst](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/ee59a6/32.png) [@mail2rst](https://dietpi.com/forum/u/mail2rst)
#### Post date: [25 October 2022 15:07 UTC](https://dietpi.com/forum/t/after-the-update-homeassistant-mqtt-broker-integration-broken/14719/19 "2022-10-25T15:07:07Z")

</div>

Thanks @Joulinar, after giving your given commands in order, my system able to contact with mqtt broker by adding mqtt broker via GUI. thanks my all sensors now online. so i think in raspberry pi homeassistant & mqtt broker these commands needed for make system workable. thanks

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [27 October 2022 19:00 UTC](https://dietpi.com/forum/t/after-the-update-homeassistant-mqtt-broker-integration-broken/14719/20 "2022-10-27T19:00:22Z")

</div>

@mail2rst  
you are running 32bit system, right?

[Next page](https://dietpi.com/forum/t/after-the-update-homeassistant-mqtt-broker-integration-broken/14719.md?page=2)
