# Disk usage by Mosquitto logs

**URL:** <https://community.gladysassistant.com/t/utilisation-du-disque-par-les-logs-mosquitto/7827>\
**Category:** Développement\
**Tags:** zigbee2mqtt\
**Created:** [January 11, 2023, 10:34am UTC](https://community.gladysassistant.com/t/utilisation-du-disque-par-les-logs-mosquitto/7827 "2023-01-11T10:34:56Z")\
**Posts on this page:** 10\
**Page:** 2

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [January 24, 2023, 7:51pm UTC](https://community.gladysassistant.com/t/utilisation-du-disque-par-les-logs-mosquitto/7827/21 "2023-01-24T19:51:15Z")

</div>

> [@pierre-gilles](#):
>
> I suggest this for the smart plug:
> 
> [https://www.domadoo.fr/fr/peripheriques/6165-nous-prise-intelligente-zigbee-30-mesure-de-consommation-5907772033517.html?domid=17](https://www.domadoo.fr/fr/peripheriques/6165-nous-prise-intelligente-zigbee-30-mesure-de-consommation-5907772033517.html?domid=17)
> 
> That way you’ll have power consumption measurement

Yeah awesome, it looks great!

For the sensor, if I’m going to choose, I’d prefer one with a display for the temperature 😃

Like:

[https://www.domadoo.fr/fr/domotique/5789-moes-capteur-de-temperature-humidite-et-luminosite-zigbee.html?domid=17](https://www.domadoo.fr/fr/domotique/5789-moes-capteur-de-temperature-humidite-et-luminosite-zigbee.html?domid=17)

As for the remote, it’s not a bad idea either 😉  
To develop the «&nbsp;at home&nbsp;» / «&nbsp;home locked&nbsp;» mode.

* * *

I’ve gone through the products, we already cover a good portion of the features anyway, we have reason to be proud!

They have some really nice stuff, I fell for this one!  
I’ll fill the list for next Christmas 😃

[https://www.domadoo.fr/fr/peripheriques/5882-heiman-capteur-de-qualite-d-air-co2-temperature-humidite-zigbee-30-alarme-visuelle-et-sonore.html?domid=17](https://www.domadoo.fr/fr/peripheriques/5882-heiman-capteur-de-qualite-d-air-co2-temperature-humidite-zigbee-30-alarme-visuelle-et-sonore.html?domid=17)

* * *

@Tlse-vins thanks for your participation, I’ll get that to you shortly. Thanks thanks \<3

---

<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, 2023, 1:52am UTC](https://community.gladysassistant.com/t/utilisation-du-disque-par-les-logs-mosquitto/7827/22 "2023-01-25T01:52:03Z")

</div>

@AlexTrovato that works for me 🙂 Can you send me your address in a private message?

---

<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 26, 2023, 7:19am UTC](https://community.gladysassistant.com/t/utilisation-du-disque-par-les-logs-mosquitto/7827/23 "2023-01-26T07:19:36Z")

</div>

@AlexTrovato Mrs. Claus Gladys Assistant stopped by 🎄

 ![Screenshot 2023-01-26 at 14.17.50](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/d/dffa0ed36eca054cbd711e4cc841f7230a681a43.jpeg)

---

<div class="post-metadata">

**Author:** ![cicoub13](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/cicoub13/32/4482_2.png) [@cicoub13](https://community.gladysassistant.com/u/cicoub13)\
**Post date:** [January 29, 2023, 7:59pm UTC](https://community.gladysassistant.com/t/utilisation-du-disque-par-les-logs-mosquitto/7827/24 "2023-01-29T19:59:09Z")

</div>

Functional tests OK for me ✅

Here are the update logs during startup

```auto
2023-01-29T20:53:15+0100 <info> checkForContainerUpdates.js:14 (Zigbee2mqttManager.checkForContainerUpdates) Checking for current installed versions and required updates...
2023-01-29T20:53:15+0100 <info> checkForContainerUpdates.js:18 (Zigbee2mqttManager.checkForContainerUpdates) MQTT container: update #2 of the container required...
2023-01-29T20:53:15+0100 <info> checkForContainerUpdates.js:35 (Zigbee2mqttManager.checkForContainerUpdates) MQTT container: update #2 of the container done
2023-01-29T20:53:15+0100 <info> checkForContainerUpdates.js:40 (Zigbee2mqttManager.checkForContainerUpdates) Z2M container: update #2 of the container required...
2023-01-29T20:53:15+0100 <info> checkForContainerUpdates.js:57 (Zigbee2mqttManager.checkForContainerUpdates) Z2M container: update #2 of the container done
2023-01-29T20:53:28+0100 <info> installZ2mContainer.js:31 (Zigbee2mqttManager.installZ2mContainer) Zigbee2mqtt is being installed as Docker container...
2023-01-29T20:53:28+0100 <info> installZ2mContainer.js:32 (Zigbee2mqttManager.installZ2mContainer) Pulling koenkk/zigbee2mqtt:latest image...
2023-01-29T20:53:29+0100 <info> installZ2mContainer.js:35 (Zigbee2mqttManager.installZ2mContainer) Configuration of Device /dev/ttyUSB0
2023-01-29T20:53:29+0100 <info> installZ2mContainer.js:40 (Zigbee2mqttManager.installZ2mContainer) Creation of container...
2023-01-29T20:53:29+0100 <info> installZ2mContainer.js:43 (Zigbee2mqttManager.installZ2mContainer) Zigbee2mqtt successfully installed and configured as Docker container
2023-01-29T20:53:29+0100 <info> installZ2mContainer.js:56 (Zigbee2mqttManager.installZ2mContainer) Preparing Zigbee2mqtt environment...
2023-01-29T20:53:29+0100 <info> installZ2mContainer.js:69 (Zigbee2mqttManager.installZ2mContainer) Zigbee2mqtt container is starting...
2023-01-29T20:53:35+0100 <info> installZ2mContainer.js:75 (Zigbee2mqttManager.installZ2mContainer) Zigbee2mqtt container successfully started

```

And the new docker zigbee2mqtt instance now contains the option (thanks to the [runlike](https://github.com/lavie/runlike) tool):  
`--log-opt max-size=10m`

Nice job 👏

---

<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 31, 2023, 10:16pm UTC](https://community.gladysassistant.com/t/utilisation-du-disque-par-les-logs-mosquitto/7827/25 "2023-01-31T22:16:51Z")

</div>

> [@AlexTrovato](#):
>
> @Tlse-vins thank you for your participation, I’ll get that to you shortly. Thank you thank you \<3

The key was sent this morning, you should receive it before the end of the week.

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [February 4, 2023, 4:19pm UTC](https://community.gladysassistant.com/t/utilisation-du-disque-par-les-logs-mosquitto/7827/26 "2023-02-04T16:19:28Z")

</div>

@Tlse-vins je viens de rentrer chez moi, j’ai bien reçu la clé !!  
Super merci !!!

Je suis en train de tenter de connecter les appareils reçus en même temps, mais je suis un débutant en la matière.  
Je reviendrais vers vous sur un autre topic si je ne m’en sors pas.

Merci encore à tous !!!

---

<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:** [February 4, 2023, 4:40pm UTC](https://community.gladysassistant.com/t/utilisation-du-disque-par-les-logs-mosquitto/7827/27 "2023-02-04T16:40:05Z")

</div>

I haven’t used it in a while.  
You may have to flash it.

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [February 4, 2023, 6:51pm UTC](https://community.gladysassistant.com/t/utilisation-du-disque-par-les-logs-mosquitto/7827/28 "2023-02-04T18:51:29Z")

</div>

Indeed, I had to flash the key, but everything is working perfectly, the devices too.  
Thanks @pierre-gilles and @Tlse-vins  
I’ve got my work cut out for me now 😉

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [February 5, 2023, 10:40am UTC](https://community.gladysassistant.com/t/utilisation-du-disque-par-les-logs-mosquitto/7827/29 "2023-02-05T10:40:34Z")

</div>

@pierre-gilles it would seem that this PR is ready:

> <https://github.com/GladysAssistant/Gladys/pull/1692>
>
> \### Pull Request check-list
> 
> To ensure your Pull Request can be accepted as fa…st as possible, make sure to review and check all of these items:
> 
> \- \[x\] If your changes affects code, did your write the tests?
> \- \[x\] Are tests passing? (\`npm test\` on both front/server)
> \- \[x\] Is the linter passing? (\`npm run eslint\` on both front/server)
> \- \[x\] Did you run prettier? (\`npm run prettier\` on both front/server)
> \- ~~\[\] If you are adding a new features/services, did you run integration comparator? (\`npm run compare-translations\` on front)~~
> \- \[\] Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to \[the community\](https://community.gladysassistant.com/) for testing before merging.
> \- ~~\[\] If your changes modify the API (REST or Node.js), did you modify the API documentation? (Documentation is based on comments in code)~~
> \- ~~\[\] If you are adding a new features/services which needs explanation, did you modify the user documentation? See \[the GitHub repo\]~~(https://github.com/GladysAssistant/v4-website) and the \[website\](https://gladysassistant.com).
> \- ~~\[\] Did you add fake requests data for the demo mode (\`front/src/config/demo.js\`) so that the demo website is working without a backend? (if needed) See \[https://demo.gladysassistant.com\](https://demo.gladysassistant.com).~~
> 
> NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.
> 
> \### Description of change
> 
> Add log limit on Z2M containers.
> I add a new service variable to track the container update.
> Image : \`atrovato/gladys:z2m-log-limit\`
> 
> ⚠️ I am not able to test it on my side due to lack of devices.

I’ve just updated it with master.

---

<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:** [February 6, 2023, 5:15am UTC](https://community.gladysassistant.com/t/utilisation-du-disque-par-les-logs-mosquitto/7827/30 "2023-02-06T05:15:41Z")

</div>

> [@AlexTrovato](#):
>
> Indeed, I had to flash the key, but everything works perfectly, the devices as well.  
> Thanks @pierre-gilles and @Tlse-vins

Great 🕶 Keep us posted!

> [@AlexTrovato](#):
>
> @pierre-gilles it would therefore seem that this PR is ready:

Yes, I was waiting for you to come back from vacation to merge, it’s fine with me then if it has been functionally tested.

I’ve just merged!

Thanks @cicoub13 for the tests 🙂

[Previous page](https://community.gladysassistant.com/t/utilisation-du-disque-par-les-logs-mosquitto/7827.md?page=1)
