# Dashboard - Evolutions / Bugs / etc

**URL:** <https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150>\
**Category:** Développement\
**Created:** [January 4, 2020, 10:08am UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150 "2020-01-04T10:08:44Z")\
**Posts on this page:** 20\
**Page:** 5

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [January 3, 2022, 8:14am UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/81 "2022-01-03T08:14:29Z")

</div>

@Psoy Bizarre it should normally work the same way as Xiaomi.

Do you confirm that your installation has no particular issues? Does your SD card work fine?

You can check that the aggregation of sensor values works well by going to «&nbsp;Settings&nbsp;» \> «&nbsp;Background Tasks&nbsp;».

You should see a screen like this:

 ![background-tasks-eb0a32b13ffca4994f706b6b922cc26e](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/5/51aeac579b01c4fd18d3a010a846050e0fb22927.jpeg)

If you have no issues on that side, you can eventually check the Gladys logs:

```bash
docker logs gladys

```

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [January 3, 2022, 10:58am UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/82 "2022-01-03T10:58:43Z")

</div>

Hello Pierre Gilles

Indeed, the aggregation of values is failing all the time. See for yourself, because I can’t decipher it:

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/8/88d566dccb580c21c86e92badf4cabf3ce3b1eb0.png). Yet my sensor displays instantly:

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/1/161d70e5913347de84dd4038355a19b049c427cb.png)

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [January 3, 2022, 12:10pm UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/83 "2022-01-03T12:10:27Z")

</div>

Hello @Psoy! Ok, I see the issue, it’s a bug that has already been reported and has already been fixed, it will be fixed in the next release 🙂

I’ll let you read this topic if you want to follow it:

> [@Help! Problème avec l'agrégation?](https://community.gladysassistant.com/t/help-probleme-avec-lagregation/6630/39?u=pierre-gilles):
>
> @lmilcent Je viens de regarder ta base de donnée que tu m’as envoyé, et je suis très surpris de son contenu smiley Tu as des device\_feature\_state dont la value est “NaN” (Not a Number). C’est super étrange que ce se soit inséré d’ailleurs, vu que le champs est un “double precision”, et “NaN” n’est pas un double precision… Forcément, ça fait crasher l’aggrégation qui attend des valeurs numériques, pas un string. Après enquête, ces valeurs proviennent de …

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [January 10, 2022, 4:24pm UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/84 "2022-01-10T16:24:19Z")

</div>

@Psoy Bug fixed in Gladys Assistant v4.7.2! 🙂

> [@Gladys Assistant v4.7.2 est disponible!](https://community.gladysassistant.com/t/gladys-assistant-v4-7-2-est-disponible/6771):
>
> Cette version apporte des correctifs de bugs et des changements mineurs, ainsi que quelques changement de fond qui serviront pour plus tard slight_smile Les nouveautés Correction d’un bug où des valeurs “NaN” était sauvegardée en tant que valeur de capteur, ce qui faisait crasher l’agrégation de valeurs en arrière-plan, corrigée ici : [Fix NaN device state by atrovato · Pull Request #1394 · GladysAssistant/Gladys · GitHub](https://github.com/GladysAssistant/Gladys/pull/1394) Correctif sur l’intégration Zigbee2mqtt au niveau des capteurs qu…

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [January 24, 2022, 6:45pm UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/85 "2022-01-24T18:45:17Z")

</div>

Hello @pierre-gilles

I feel that my Gladys instance is a bit less responsive lately. The graphs take 10 seconds to load the first time, when I open my door in the evening, the light can take several seconds to turn on, etc.

How to investigate on the server side to rule out gladys and involve zigbee2mqtt?

Edit: I tested several browsers.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [January 24, 2022, 6:57pm UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/86 "2022-01-24T18:57:28Z")

</div>

@lmilcent

**Basic things to check**

On your Pi, install htop:

```bash
sudo apt-get install htop

```

Then type `htop`

You should see the running processes with their CPU and RAM usage.

Check that there is no inconsistency on this side (a lack of RAM can cause cascading issues), and look at the processes that are the most CPU-intensive.

Another useful command:

```bash
docker stats

```

Displays the metrics of each container.

**DB Filling**

I think in the past you already had an issue with a very verbose Zigbee2mqtt sensor filling the DB? You can inspect the DB as the last time (I think I gave you a SQL command).

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [January 24, 2022, 8:39pm UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/87 "2022-01-24T20:39:43Z")

</div>

Good evening,

I have the same problem as you, [lmilcent](https://community.gladysassistant.com/u/lmilcent), yet I don’t have zigbee2mqtt yet, but I do have the mosquitto broker and Node red installed on the same Rpi. I reinstalled everything twice, at first it works fine and gradually it slows down and sometimes Gladys reacts quickly.

Pierre Gilles  
I ran your «&nbsp;htop&nbsp;» command (and as I’m lucky enough to have two RPIs, I compare) and on the one that’s slow I noticed that the Swp was significant (I don’t know how to interpret it)  
` Mem[|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||306M/923M]`  
`Swp[|||||||||||||||||||||||||||||||||||||||||||||||||||||||100.0M/100.0M]`

On the other one which only has gladys configured, but without any device or anything else, I have this:

`Mem[|||||||||||||||||||||||||||||||||||||||||||||||||||||||| 202M/923M]`  
`Swp[0K/100.0M]`

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [January 24, 2022, 8:54pm UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/88 "2022-01-24T20:54:03Z")

</div>

Send a screenshot of the command

`docker stats`

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [January 24, 2022, 9:06pm UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/89 "2022-01-24T21:06:51Z")

</div>

![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/8/86207897bef189396cd0332c5626be47d8e814ad.png)

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/5/5d3be268d836044ffe1836bfd582337ec2d348e1.png)  
 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/a/a1f02b2531e534f85a23c2925b87215d342f8f98.png)  
It varies, but there is a moment when I lose all the values. It’s recurring and in this state I can no longer control my devices (is it the access to the SD card?).  
I hope you can read this

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [January 25, 2022, 7:58am UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/90 "2022-01-25T07:58:07Z")

</div>

Regarding resources used, this was the first thing I checked. All seems good so far, except when I open the dashboard, which causes a spike in resources (logically). And of course, when I do a recorded test, it works perfectly!

To be continued, I’ll keep an eye on it. For now, my DB is at 3.5GB.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [January 25, 2022, 9:02am UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/91 "2022-01-25T09:02:15Z")

</div>

> [@lmilcent](#):
>
> We’ll see, I’ll keep an eye on it. For now, my DB is at 3.5GB.

Ok, keep us updated 🙂

> [@Psoy](#):
>
> I ran your «&nbsp;htop&nbsp;» command (and as I’m lucky enough to have two RPIs, I’m comparing) and on the one that’s struggling, I noticed that Swap was significant (I don’t know how to interpret it)

@Psoy Indeed, there’s clearly a resource issue on your end. I think that at certain points in your Pi’s lifecycle, you must have RAM spikes (to see when: it could be when Watchtower does the update? When Gladys does the background data aggregation? On the Node-RED side?), and it swaps heavily, which is very slow on an SD card.

Otherwise, your `docker stats` is really weird. SD card corruption cannot be ruled out either, which could explain these somewhat broken displays.

Maybe try restarting your Pi first? Otherwise, I would really advise you to switch to an SSD 🙂

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [January 25, 2022, 9:26am UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/92 "2022-01-25T09:26:36Z")

</div>

> [@pierre-gilles](#):
>
> Otherwise, your `docker stats` is really weird. SD corruption cannot be ruled out either, it could explain these broken displays

I sometimes get this on remote machines, it’s not what I would worry about on my side.  
Restarting may solve the problem, you should also check that Node Red is not consuming too much. Is it still at 30% CPU?  
I almost crashed my raspberry pi because of a poorly made Node Red program 😅

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [January 25, 2022, 9:32am UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/93 "2022-01-25T09:32:54Z")

</div>

> [@lmilcent](#):
>
> I almost crashed my Raspberry Pi due to a poorly made Node Red program 😅

Yes, indeed, I didn’t mention it, but a Node-RED program that triggers an infinite (or too frequent) loop is not to be excluded

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [January 25, 2022, 10:40am UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/94 "2022-01-25T10:40:10Z")

</div>

> [@pierre-gilles](#):
>
> Maybe try restarting your Pi first? Otherwise, I would really advise you to switch to an SSD

I have restarted the Pi several times and the issue persists. As for the SSD, I have been trying to install it for two weeks. I tried the tutorial by GBoulvin (now I have managed to partition everything. The operation went well all the way through, but when I restart the Pi without the SD card, the Pi does not start and the SSD LED does not even blink). Of course, I tried your tutorial and it did not work either. It does not restart. When I put the SD card back in, the RPI boots fine, the SSD blinks a bit. But I don’t know what it boots from, the SD or the SSD.

> [@pierre-gilles](#):
>
> Yes, indeed, I did not mention it, but a Node-RED program that triggers an infinite loop (or too frequent) cannot be ruled out

For Node-RED, how can we see that?

---

<div class="post-metadata">

**Author:** ![cce66](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/c/8797f3/32.png) [@cce66](https://community.gladysassistant.com/u/cce66)\
**Post date:** [January 25, 2022, 11:18am UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/95 "2022-01-25T11:18:34Z")

</div>

> [@Psoy](#):
>
> How can we see this in Node RED?

I think you should watch @pierre-gilles’ tutorial, he explains well how to display the result of an operation with the «&nbsp;debug&nbsp;» object, so possibly if there is a loop somewhere

# Integrating Node-RED with Gladys Assistant in MQTT

[![](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/c/c9a7666ab602efb9151f7867a98cb81dffa0add5.jpeg "Intégrer Node-RED avec Gladys Assistant en MQTT") ](https://www.youtube.com/watch?v=bpmHzR8_S5g)

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [January 25, 2022, 11:22am UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/96 "2022-01-25T11:22:05Z")

</div>

Thanks for your response,  
No problem on this end then, all my «&nbsp;debug&nbsp;» are smooth

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [January 25, 2022, 12:04pm UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/97 "2022-01-25T12:04:05Z")

</div>

> [@Psoy](#):
>
> I’ve restarted the Pi several times and it persists, and for the SSD, I’ve been trying to install it for two weeks. I tried GBoulvin’s tutorial (now I’ve managed to partition everything. The operation went well all the way through, but when I restart the Pi without the SD card, the Pi doesn’t start and the SSD LED doesn’t even blink). Of course, I tried your tutorial and that didn’t work either. It doesn’t restart. When I put the SD card back in, the RPI boots fine, the SSD blinks a bit. But I don’t know what it boots from, the SD or the SSD

Be careful because I ordered an SSD but it wasn’t recognized on the Pi and it wouldn’t start at boot.  
Does your SSD have a button? That could be the issue if it does.

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [January 25, 2022, 3:09pm UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/98 "2022-01-25T15:09:09Z")

</div>

> [@Tlse-vins](#):
>
> Attention, I had ordered an SSD but it was not recognized on the Pi and it would not start at boot.  
> Does your SSD have a button? That could be the issue if it does.

Bingo, I just reinstalled the SSD, but using a 250GB hard drive and it works.  
Thanks Tlse-vins, for your help, I have the same issue as you, the SSD does not boot, yet it behaves normally on a PC, and it was taking ext4 partitions well, I don’t understand. Well, I can move on to something else. 👍 😀

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [January 25, 2022, 3:38pm UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/99 "2022-01-25T15:38:51Z")

</div>

That’s exactly it, there’s no need for an on/off button, I recycled the SSD for something else.

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [January 25, 2022, 4:12pm UTC](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150/100 "2022-01-25T16:12:11Z")

</div>

I don’t have an on/off button, but when I used Pierre Gilles’ tutorial, it worked right away, whereas with the SSD (it’s an SP A55 128G, right?), it never started

Thanks again

[Previous page](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150.md?page=4)

[Next page](https://community.gladysassistant.com/t/dashboard-evolutions-bugs-etc/5150.md?page=6)
