Salut à tous, spécialement @cicoub13 et @pierre-gilles,
J’ai eu une alerte sur mon instance Gladys (mini-pc), car l’espace disque était faible.
En investiguant, c’est causé par un conteneur.
Ce conteneur correspond à eclipse-mosquitto
, utilisé par le service Zigbee2MQTT ou par MQTT, je ne suis pas certain.
Cela est confirmé par le fichier d’info à la source de ce dossier :
En grattant un peu plus loin, un redémarrage du conteneur n’a rien changé. En fait, c’est un fichier unique qui utilise toute la place :
/var/lib/docker/containers/9991e6bed47295b41c61b190cfb4168c0a2fe282b561e4afa950ceb8a2dbf781/9991e6bed47295b41c61b190cfb4168c0a2fe282b561e4afa950ceb8a2dbf781-json.log
Ce fichier de log utilise 24 Go !
Voici un extrait :
{"log":"1668743198: Sending PUBLISH to mqttjs_85adae46 (d0, q0, r0, m0, 'zigbee2mqtt/capteurQualitéDeLair', ... (35 bytes))\n","stream":"stderr","time":"2022-11-18T03:46:38.13707785Z"}
{"log":"1668743198: Received PUBLISH from mqttjs_85adae46 (d0, q0, r0, m0, 'zigbee2mqtt/bridge/logging', ... (283 bytes))\n","stream":"stderr","time":"2022-11-18T03:46:38.650861947Z"}
{"log":"1668743198: Sending PUBLISH to gladys-main-instance-362751 (d0, q0, r0, m0, 'zigbee2mqtt/bridge/logging', ... (283 bytes))\n","stream":"stderr","time":"2022-11-18T03:46:38.650892565Z"}
{"log":"1668743198: Sending PUBLISH to gladys-main-instance-372063 (d0, q0, r0, m0, 'zigbee2mqtt/bridge/logging', ... (283 bytes))\n","stream":"stderr","time":"2022-11-18T03:46:38.650919128Z"}
{"log":"1668743198: Sending PUBLISH to NodeRed-6dda341ee7a029cb (d0, q0, r0, m0, 'zigbee2mqtt/bridge/logging', ... (283 bytes))\n","stream":"stderr","time":"2022-11-18T03:46:38.650951475Z"}
{"log":"1668743198: Sending PUBLISH to mqttjs_85adae46 (d0, q0, r0, m0, 'zigbee2mqtt/bridge/logging', ... (283 bytes))\n","stream":"stderr","time":"2022-11-18T03:46:38.651049516Z"}
{"log":"1668743198: Received PUBLISH from mqttjs_85adae46 (d0, q0, r0, m0, 'zigbee2mqtt/bridge/logging', ... (135 bytes))\n","stream":"stderr","time":"2022-11-18T03:46:38.651070441Z"}
{"log":"1668743198: Sending PUBLISH to gladys-main-instance-362751 (d0, q0, r0, m0, 'zigbee2mqtt/bridge/logging', ... (135 bytes))\n","stream":"stderr","time":"2022-11-18T03:46:38.651075885Z"}
{"log":"1668743198: Sending PUBLISH to gladys-main-instance-372063 (d0, q0, r0, m0, 'zigbee2mqtt/bridge/logging', ... (135 bytes))\n","stream":"stderr","time":"2022-11-18T03:46:38.651112656Z"}
{"log":"1668743198: Sending PUBLISH to NodeRed-6dda341ee7a029cb (d0, q0, r0, m0, 'zigbee2mqtt/bridge/logging', ... (135 bytes))\n","stream":"stderr","time":"2022-11-18T03:46:38.651137601Z"}
{"log":"1668743198: Sending PUBLISH to mqttjs_85adae46 (d0, q0, r0, m0, 'zigbee2mqtt/bridge/logging', ... (135 bytes))\n","stream":"stderr","time":"2022-11-18T03:46:38.651298518Z"}
{"log":"1668743198: Received PUBLISH from mqttjs_85adae46 (d0, q0, r1, m0, 'zigbee2mqtt/capteurQualitéDeLair', ... (35 bytes))\n","stream":"stderr","time":"2022-11-18T03:46:38.651313521Z"}
{"log":"1668743198: Sending PUBLISH to gladys-main-instance-362751 (d0, q0, r0, m0, 'zigbee2mqtt/capteurQualitéDeLair', ... (35 bytes))\n","stream":"stderr","time":"2022-11-18T03:46:38.651318495Z"}
{"log":"1668743198: Sending PUBLISH to gladys-main-instance-372063 (d0, q0, r0, m0, 'zigbee2mqtt/capteurQualitéDeLair', ... (35 bytes))\n","stream":"stderr","time":"2022-11-18T03:46:38.651322586Z"}
{"log":"1668743198: Sending PUBLISH to NodeRed-6dda341ee7a029cb (d0, q0, r0, m0, 'zigbee2mqtt/capteurQualitéDeLair', ... (35 bytes))\n","stream":"stderr","time":"2022-11-18T03:46:38.651328966Z"}
{"log":"1668743198: Sending PUBLISH to mqttjs_85adae46 (d0, q0, r0, m0, 'zigbee2mqtt/capteurQualitéDeLair', ... (35 bytes))\n","stream":"stderr","time":"2022-11-18T03:46:38.651354167Z"}
{"log":"1668743198: Received PUBLISH from mqttjs_85adae46 (d0, q0, r0, m0, 'zigbee2mqtt/bridge/logging', ... (283 bytes))\n","stream":"stderr","time":"2022-11-18T03:46:38.693765258Z"}
{"log":"1668743198: Sending PUBLISH to gladys-main-instance-362751 (d0, q0, r0, m0, 'zigbee2mqtt/bridge/logging', ... (283 bytes))\n","stream":"stderr","time":"2022-11-18T03:46:38.693813636Z"}
{"log":"1668743198: Sending PUBLISH to gladys-main-instance-372063 (d0, q0, r0, m0, 'zigbee2mqtt/bridge/logging', ... (283 bytes))\n","stream":"stderr","time":"2022-11-18T03:46:38.693829505Z"}
{"log":"1668743198: Sending PUBLISH to NodeRed-6dda341ee7a029cb (d0, q0, r0, m0, 'zigbee2mqtt/bridge/logging', ... (283 bytes))\n","stream":"stderr","time":"2022-11-18T03:46:38.69383429Z"}
{"log":"1668743198: Sending PUBLISH to mqttjs_85adae46 (d0, q0, r0, m0, 'zigbee2mqtt/bridge/logging', ... (283 bytes))\n","stream":"stderr","time":"2022-11-18T03:46:38.693881662Z"}
{"log":"1668743198: Received PUBLISH from mqttjs_85adae46 (d0, q0, r0, m0, 'zigbee2mqtt/bridge/logging', ... (127 bytes))\n","stream":"stderr","time":"2022-11-18T03:46:38.693935993Z"}
{"log":"1668743198: Sending PUBLISH to gladys-main-instance-362751 (d0, q0, r0, m0, 'zigbee2mqtt/bridge/logging', ... (127 bytes))\n","stream":"stderr","time":"2022-11-18T03:46:38.693942686Z"}
{"log":"1668743198: Sending PUBLISH to gladys-main-instance-372063 (d0, q0, r0, m0, 'zigbee2mqtt/bridge/logging', ... (127 bytes))\n","stream":"stderr","time":"2022-11-18T03:46:38.693996451Z"}
{"log":"1668743198: Sending PUBLISH to NodeRed-6dda341ee7a029cb (d0, q0, r0, m0, 'zigbee2mqtt/bridge/logging', ... (127 bytes))\n","stream":"stderr","time":"2022-11-18T03:46:38.694010852Z"}
{"log":"1668743198: Sending PUBLISH to mqttjs_85adae46 (d0, q0, r0, m0, 'zigbee2mqtt/bridge/logging', ... (127 bytes))\n","stream":"stderr","time":"2022-11-18T03:46:38.694042749Z"}
{"log":"1668743198: Received PUBLISH from mqttjs_85adae46 (d0, q0, r1, m0, 'zigbee2mqtt/capteurQualitéDeLair', ... (27 bytes))\n","stream":"stderr","time":"2022-11-18T03:46:38.694107082Z"}
{"log":"1668743198: Sending PUBLISH to gladys-main-instance-362751 (d0, q0, r0, m0, 'zigbee2mqtt/capteurQualitéDeLair', ... (27 bytes))\n","stream":"stderr","time":"2022-11-18T03:46:38.694133106Z"}
Correction à prévoir ?
S’agissant probablement d’un « bug », il faudrait forcer la « vidange » de ce fichier tous les jours pendant la sauvegarde de Gladus par exemple.