Gladys devient injoignable après quelques heures de fonctionnement

Bonjour,

J’aurais besoin de vos conseils avisés pour trouver l’origine d’une panne sur mon système Gladys.

Pour le décrire :

  • depuis environ 2-3 semaines, Gladys devient injoignable après un certain temps de fonctionnement normal, au point que je suis obligé de provoquer un redémarrage du container (docker container restart gladys)
  • ce blocage se produit après une durée variable, mais en gros entre 10h et 30h. Les blocages n’ont pas lieu à une heure fixe. C’est parfois la nuit, parfois en pleine journée…
  • les symptômes du blocage sont assez variables: parfois le dashboard par défaut se charge, mais si j’essaie de changer de dashboard une roue de chargement tourne sans fin; parfois le dashboard ne s’affiche même pas
  • la connexion par Gladys Plus m’indique que mon instance n’est pas lancée, logique je pense puisque le serveur gladys ‹ patine ›
  • le rpi sur lequel tourne gladys n’est pas saturé pour autant mais je détecte une hausse d’usage cpu : entre 5% et 30% habituellement et hausse à 40% quand il y a ces blocages
  • quand Gladys est bloqué, je peux me connecter en ssh sans souci, et lancer des commandes. C’est comme ça que je fais un redémarrage du container pour remettre les choses dans l’ordre.

Gladys fonctionne sur un RPi 4, avec un disque ssd qui est occupé à 45% environ.

J’ai pas mal de matériel connecté à Gladys (environ 50 appareils zigbee par exemple) et un bon nombre de scènes (env. 250). Mais je ne me rappelle pas avoir fait de changement particulier avant l’apparition de ces blocages.

Quelles commandes pensez-vous que je doive lancer au prochain blocage pour faire remonter des logs pertinents ?

Merci par avance pour votre aide !

La commande docker stats te permet de voir quel container consomme beaucoup de ressources et donc de confirmer (ou infirmer) que c’est bien Gladys le fautif.

Tu peux aussi chercher des mots clés dans les logs
docker logs gladys | grep SQLITE_BUSY
docker logs gladys | grep error

Merci @cicoub13 pour les pistes.
Et sans attendre un nouveau blocage, j’ai lancé les deux recherches dans les 10 dernières minutes de logs, et elles remontent déjà pas mal de choses :

« … grep SQLITE_BUSY » renvoie:

pi@domotique:~ $ docker logs gladys --since 10m | grep SQLITE_BUSY
2024-06-23T21:32:03+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2024-06-23T21:32:12+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:32:21+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:32:31+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:32:40+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:32:50+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:32:59+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:33:03+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2024-06-23T21:33:09+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:33:18+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:33:28+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:33:37+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:33:47+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:33:56+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:34:02+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2024-06-23T21:34:06+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:34:15+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:34:25+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:34:34+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:34:44+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:34:53+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:35:03+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2024-06-23T21:35:03+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:35:12+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:35:22+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:35:31+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:35:41+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:35:50+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:35:50+0200 <warn> scene.executeActions.js:37 (executeAction) SyntaxError: Value expected (char 1)
    at createSyntaxError (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1623:17)
    at parseEnd (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1590:13)
    at parseParentheses (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1577:12)
    at parseNumber (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1550:12)
    at parseObject (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1534:12)
    at parseMatrix (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1466:12)
    at parseSingleQuotesString (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1382:12)
    at parseDoubleQuotesString (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1338:12)
    at parseSymbol (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1237:12)
    at parseCustomNodes (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1210:12)
    at parseLeftHandOperators (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1134:12)
    at parsePow (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1116:12)
    at parseUnary (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1105:12)
    at parsePercentage (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1065:12)
    at parseRule2 (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1016:16)
    at parseImplicitMultiplication (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:988:12)
    at parseMultiplyDivide (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:958:12)
    at parseAddSubtract (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:931:12)
    at parseRange (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:893:14)
    at parseConversion (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:858:12)
    at parseShift (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:835:12)
    at parseRelational (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:797:19)
    at parseBitwiseAnd (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:783:16)
    at parseBitwiseXor (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:768:16)
    at parseBitwiseOr (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:753:16)
    at parseLogicalAnd (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:738:16)
    at parseLogicalXor (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:723:16)
    at parseLogicalOr (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:708:16)
    at parseConditional (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:679:16)
    at parseAssignment (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:632:16)
    at parseBlock (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:580:14)
    at parseStart (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:551:16)
    at string (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:75:14)
    at parse (/src/server/node_modules/typed-function/lib/esm/typed-function.mjs:1790:20)
    at string (/src/server/node_modules/mathjs/lib/cjs/expression/function/evaluate.js:50:14)
    at evaluate (/src/server/node_modules/typed-function/lib/esm/typed-function.mjs:1790:20)
    at /src/server/lib/scene/scene.actions.js:264:17
    at Array.forEach (<anonymous>)
    at Object.condition.only-continue-if (/src/server/lib/scene/scene.actions.js:261:23)
    at executeAction (/src/server/lib/scene/scene.executeActions.js:32:35)
    at /src/server/lib/scene/scene.executeActions.js:66:13
    at tryCatcher (/src/server/node_modules/bluebird/js/release/util.js:16:23)
    at MappingPromiseArray._promiseFulfilled (/src/server/node_modules/bluebird/js/release/map.js:68:38)
    at MappingPromiseArray.PromiseArray._iterate (/src/server/node_modules/bluebird/js/release/promise_array.js:115:31)
    at MappingPromiseArray.init (/src/server/node_modules/bluebird/js/release/promise_array.js:79:10)
    at MappingPromiseArray._asyncInit (/src/server/node_modules/bluebird/js/release/map.js:37:10)
    at _drainQueueStep (/src/server/node_modules/bluebird/js/release/async.js:97:12)
    at _drainQueue (/src/server/node_modules/bluebird/js/release/async.js:86:9)
    at Async._drainQueues (/src/server/node_modules/bluebird/js/release/async.js:102:5)
    at Immediate.Async.drainQueues (/src/server/node_modules/bluebird/js/release/async.js:15:14)
    at processImmediate (node:internal/timers:476:21) {
  char: 1
}
2024-06-23T21:35:51+0200 <warn> scene.executeActions.js:37 (executeAction) Error: Undefined symbol Clouds
    at Function.onUndefinedSymbol (/src/server/node_modules/mathjs/lib/cjs/expression/node/SymbolNode.js:222:15)
    at /src/server/node_modules/mathjs/lib/cjs/expression/node/SymbolNode.js:96:99
    at Object.evaluate (/src/server/node_modules/mathjs/lib/cjs/expression/node/Node.js:77:18)
    at string (/src/server/node_modules/mathjs/lib/cjs/expression/function/evaluate.js:50:36)
    at evaluate (/src/server/node_modules/typed-function/lib/esm/typed-function.mjs:1790:20)
    at Object.device.set-value (/src/server/lib/scene/scene.actions.js:57:15)
    at executeAction (/src/server/lib/scene/scene.executeActions.js:32:35)
    at /src/server/lib/scene/scene.executeActions.js:66:13
    at tryCatcher (/src/server/node_modules/bluebird/js/release/util.js:16:23)
    at MappingPromiseArray._promiseFulfilled (/src/server/node_modules/bluebird/js/release/map.js:68:38)
    at MappingPromiseArray.PromiseArray._iterate (/src/server/node_modules/bluebird/js/release/promise_array.js:115:31)
    at MappingPromiseArray.init (/src/server/node_modules/bluebird/js/release/promise_array.js:79:10)
    at MappingPromiseArray._asyncInit (/src/server/node_modules/bluebird/js/release/map.js:37:10)
    at _drainQueueStep (/src/server/node_modules/bluebird/js/release/async.js:97:12)
    at _drainQueue (/src/server/node_modules/bluebird/js/release/async.js:86:9)
    at Async._drainQueues (/src/server/node_modules/bluebird/js/release/async.js:102:5)
    at Immediate.Async.drainQueues (/src/server/node_modules/bluebird/js/release/async.js:15:14)
    at processImmediate (node:internal/timers:476:21)
2024-06-23T21:36:00+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:36:03+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2024-06-23T21:36:09+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:36:19+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:36:28+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:36:38+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:36:47+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:36:57+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:37:03+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2024-06-23T21:37:06+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:37:16+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:37:25+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:37:35+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:37:44+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:37:54+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:38:03+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2024-06-23T21:38:03+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:38:12+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:38:22+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:38:32+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:38:41+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:38:51+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:39:00+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:39:03+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2024-06-23T21:39:10+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:39:19+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:39:29+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:39:38+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:39:48+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:39:57+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:40:03+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2024-06-23T21:40:07+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:40:16+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:40:26+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:40:35+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:40:45+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:40:50+0200 <warn> scene.executeActions.js:37 (executeAction) SyntaxError: Value expected (char 1)
    at createSyntaxError (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1623:17)
    at parseEnd (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1590:13)
    at parseParentheses (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1577:12)
    at parseNumber (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1550:12)
    at parseObject (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1534:12)
    at parseMatrix (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1466:12)
    at parseSingleQuotesString (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1382:12)
    at parseDoubleQuotesString (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1338:12)
    at parseSymbol (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1237:12)
    at parseCustomNodes (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1210:12)
    at parseLeftHandOperators (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1134:12)
    at parsePow (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1116:12)
    at parseUnary (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1105:12)
    at parsePercentage (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1065:12)
    at parseRule2 (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1016:16)
    at parseImplicitMultiplication (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:988:12)
    at parseMultiplyDivide (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:958:12)
    at parseAddSubtract (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:931:12)
    at parseRange (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:893:14)
    at parseConversion (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:858:12)
    at parseShift (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:835:12)
    at parseRelational (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:797:19)
    at parseBitwiseAnd (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:783:16)
    at parseBitwiseXor (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:768:16)
    at parseBitwiseOr (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:753:16)
    at parseLogicalAnd (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:738:16)
    at parseLogicalXor (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:723:16)
    at parseLogicalOr (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:708:16)
    at parseConditional (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:679:16)
    at parseAssignment (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:632:16)
    at parseBlock (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:580:14)
    at parseStart (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:551:16)
    at string (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:75:14)
    at parse (/src/server/node_modules/typed-function/lib/esm/typed-function.mjs:1790:20)
    at string (/src/server/node_modules/mathjs/lib/cjs/expression/function/evaluate.js:50:14)
    at evaluate (/src/server/node_modules/typed-function/lib/esm/typed-function.mjs:1790:20)
    at /src/server/lib/scene/scene.actions.js:264:17
    at Array.forEach (<anonymous>)
    at Object.condition.only-continue-if (/src/server/lib/scene/scene.actions.js:261:23)
    at executeAction (/src/server/lib/scene/scene.executeActions.js:32:35)
    at /src/server/lib/scene/scene.executeActions.js:66:13
    at tryCatcher (/src/server/node_modules/bluebird/js/release/util.js:16:23)
    at MappingPromiseArray._promiseFulfilled (/src/server/node_modules/bluebird/js/release/map.js:68:38)
    at MappingPromiseArray.PromiseArray._iterate (/src/server/node_modules/bluebird/js/release/promise_array.js:115:31)
    at MappingPromiseArray.init (/src/server/node_modules/bluebird/js/release/promise_array.js:79:10)
    at MappingPromiseArray._asyncInit (/src/server/node_modules/bluebird/js/release/map.js:37:10)
    at _drainQueueStep (/src/server/node_modules/bluebird/js/release/async.js:97:12)
    at _drainQueue (/src/server/node_modules/bluebird/js/release/async.js:86:9)
    at Async._drainQueues (/src/server/node_modules/bluebird/js/release/async.js:102:5)
    at Immediate.Async.drainQueues (/src/server/node_modules/bluebird/js/release/async.js:15:14)
    at processImmediate (node:internal/timers:476:21) {
  char: 1
}
2024-06-23T21:40:51+0200 <warn> scene.executeActions.js:37 (executeAction) Error: Undefined symbol Clouds
    at Function.onUndefinedSymbol (/src/server/node_modules/mathjs/lib/cjs/expression/node/SymbolNode.js:222:15)
    at /src/server/node_modules/mathjs/lib/cjs/expression/node/SymbolNode.js:96:99
    at Object.evaluate (/src/server/node_modules/mathjs/lib/cjs/expression/node/Node.js:77:18)
    at string (/src/server/node_modules/mathjs/lib/cjs/expression/function/evaluate.js:50:36)
    at evaluate (/src/server/node_modules/typed-function/lib/esm/typed-function.mjs:1790:20)
    at Object.device.set-value (/src/server/lib/scene/scene.actions.js:57:15)
    at executeAction (/src/server/lib/scene/scene.executeActions.js:32:35)
    at /src/server/lib/scene/scene.executeActions.js:66:13
    at tryCatcher (/src/server/node_modules/bluebird/js/release/util.js:16:23)
    at MappingPromiseArray._promiseFulfilled (/src/server/node_modules/bluebird/js/release/map.js:68:38)
    at MappingPromiseArray.PromiseArray._iterate (/src/server/node_modules/bluebird/js/release/promise_array.js:115:31)
    at MappingPromiseArray.init (/src/server/node_modules/bluebird/js/release/promise_array.js:79:10)
    at MappingPromiseArray._asyncInit (/src/server/node_modules/bluebird/js/release/map.js:37:10)
    at _drainQueueStep (/src/server/node_modules/bluebird/js/release/async.js:97:12)
    at _drainQueue (/src/server/node_modules/bluebird/js/release/async.js:86:9)
    at Async._drainQueues (/src/server/node_modules/bluebird/js/release/async.js:102:5)
    at Immediate.Async.drainQueues (/src/server/node_modules/bluebird/js/release/async.js:15:14)
    at processImmediate (node:internal/timers:476:21)
2024-06-23T21:40:54+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:41:03+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2024-06-23T21:41:04+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:41:13+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:41:22+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:41:32+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:41:41+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:41:51+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:42:00+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:42:02+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
pi@domotique:~ $ docker logs gladys --since 10m | grep SQLITE_BUSY

et « … grep error » renvoie:

pi@domotique:~ $ docker logs gladys --since 10m | grep error
2024-06-23T21:34:34+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:34:44+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:34:53+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:35:03+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2024-06-23T21:35:03+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:35:12+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:35:22+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:35:31+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:35:41+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:35:50+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:35:50+0200 <warn> scene.executeActions.js:37 (executeAction) SyntaxError: Value expected (char 1)
    at createSyntaxError (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1623:17)
    at parseEnd (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1590:13)
    at parseParentheses (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1577:12)
    at parseNumber (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1550:12)
    at parseObject (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1534:12)
    at parseMatrix (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1466:12)
    at parseSingleQuotesString (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1382:12)
    at parseDoubleQuotesString (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1338:12)
    at parseSymbol (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1237:12)
    at parseCustomNodes (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1210:12)
    at parseLeftHandOperators (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1134:12)
    at parsePow (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1116:12)
    at parseUnary (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1105:12)
    at parsePercentage (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1065:12)
    at parseRule2 (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1016:16)
    at parseImplicitMultiplication (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:988:12)
    at parseMultiplyDivide (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:958:12)
    at parseAddSubtract (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:931:12)
    at parseRange (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:893:14)
    at parseConversion (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:858:12)
    at parseShift (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:835:12)
    at parseRelational (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:797:19)
    at parseBitwiseAnd (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:783:16)
    at parseBitwiseXor (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:768:16)
    at parseBitwiseOr (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:753:16)
    at parseLogicalAnd (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:738:16)
    at parseLogicalXor (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:723:16)
    at parseLogicalOr (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:708:16)
    at parseConditional (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:679:16)
    at parseAssignment (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:632:16)
    at parseBlock (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:580:14)
    at parseStart (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:551:16)
    at string (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:75:14)
    at parse (/src/server/node_modules/typed-function/lib/esm/typed-function.mjs:1790:20)
    at string (/src/server/node_modules/mathjs/lib/cjs/expression/function/evaluate.js:50:14)
    at evaluate (/src/server/node_modules/typed-function/lib/esm/typed-function.mjs:1790:20)
    at /src/server/lib/scene/scene.actions.js:264:17
    at Array.forEach (<anonymous>)
    at Object.condition.only-continue-if (/src/server/lib/scene/scene.actions.js:261:23)
    at executeAction (/src/server/lib/scene/scene.executeActions.js:32:35)
    at /src/server/lib/scene/scene.executeActions.js:66:13
    at tryCatcher (/src/server/node_modules/bluebird/js/release/util.js:16:23)
    at MappingPromiseArray._promiseFulfilled (/src/server/node_modules/bluebird/js/release/map.js:68:38)
    at MappingPromiseArray.PromiseArray._iterate (/src/server/node_modules/bluebird/js/release/promise_array.js:115:31)
    at MappingPromiseArray.init (/src/server/node_modules/bluebird/js/release/promise_array.js:79:10)
    at MappingPromiseArray._asyncInit (/src/server/node_modules/bluebird/js/release/map.js:37:10)
    at _drainQueueStep (/src/server/node_modules/bluebird/js/release/async.js:97:12)
    at _drainQueue (/src/server/node_modules/bluebird/js/release/async.js:86:9)
    at Async._drainQueues (/src/server/node_modules/bluebird/js/release/async.js:102:5)
    at Immediate.Async.drainQueues (/src/server/node_modules/bluebird/js/release/async.js:15:14)
    at processImmediate (node:internal/timers:476:21) {
  char: 1
}
2024-06-23T21:35:51+0200 <warn> scene.executeActions.js:37 (executeAction) Error: Undefined symbol Clouds
    at Function.onUndefinedSymbol (/src/server/node_modules/mathjs/lib/cjs/expression/node/SymbolNode.js:222:15)
    at /src/server/node_modules/mathjs/lib/cjs/expression/node/SymbolNode.js:96:99
    at Object.evaluate (/src/server/node_modules/mathjs/lib/cjs/expression/node/Node.js:77:18)
    at string (/src/server/node_modules/mathjs/lib/cjs/expression/function/evaluate.js:50:36)
    at evaluate (/src/server/node_modules/typed-function/lib/esm/typed-function.mjs:1790:20)
    at Object.device.set-value (/src/server/lib/scene/scene.actions.js:57:15)
    at executeAction (/src/server/lib/scene/scene.executeActions.js:32:35)
    at /src/server/lib/scene/scene.executeActions.js:66:13
    at tryCatcher (/src/server/node_modules/bluebird/js/release/util.js:16:23)
    at MappingPromiseArray._promiseFulfilled (/src/server/node_modules/bluebird/js/release/map.js:68:38)
    at MappingPromiseArray.PromiseArray._iterate (/src/server/node_modules/bluebird/js/release/promise_array.js:115:31)
    at MappingPromiseArray.init (/src/server/node_modules/bluebird/js/release/promise_array.js:79:10)
    at MappingPromiseArray._asyncInit (/src/server/node_modules/bluebird/js/release/map.js:37:10)
    at _drainQueueStep (/src/server/node_modules/bluebird/js/release/async.js:97:12)
    at _drainQueue (/src/server/node_modules/bluebird/js/release/async.js:86:9)
    at Async._drainQueues (/src/server/node_modules/bluebird/js/release/async.js:102:5)
    at Immediate.Async.drainQueues (/src/server/node_modules/bluebird/js/release/async.js:15:14)
    at processImmediate (node:internal/timers:476:21)
2024-06-23T21:36:00+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:36:03+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2024-06-23T21:36:09+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:36:19+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:36:28+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:36:38+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:36:47+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:36:57+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:37:03+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2024-06-23T21:37:06+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:37:16+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:37:25+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:37:35+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:37:44+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:37:54+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:38:03+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2024-06-23T21:38:03+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:38:12+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:38:22+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:38:32+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:38:41+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:38:51+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:39:00+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:39:03+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2024-06-23T21:39:10+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:39:19+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:39:29+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:39:38+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:39:48+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:39:57+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:40:03+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2024-06-23T21:40:07+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:40:16+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:40:26+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:40:35+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:40:45+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:40:50+0200 <warn> scene.executeActions.js:37 (executeAction) SyntaxError: Value expected (char 1)
    at createSyntaxError (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1623:17)
    at parseEnd (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1590:13)
    at parseParentheses (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1577:12)
    at parseNumber (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1550:12)
    at parseObject (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1534:12)
    at parseMatrix (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1466:12)
    at parseSingleQuotesString (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1382:12)
    at parseDoubleQuotesString (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1338:12)
    at parseSymbol (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1237:12)
    at parseCustomNodes (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1210:12)
    at parseLeftHandOperators (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1134:12)
    at parsePow (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1116:12)
    at parseUnary (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1105:12)
    at parsePercentage (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1065:12)
    at parseRule2 (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:1016:16)
    at parseImplicitMultiplication (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:988:12)
    at parseMultiplyDivide (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:958:12)
    at parseAddSubtract (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:931:12)
    at parseRange (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:893:14)
    at parseConversion (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:858:12)
    at parseShift (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:835:12)
    at parseRelational (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:797:19)
    at parseBitwiseAnd (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:783:16)
    at parseBitwiseXor (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:768:16)
    at parseBitwiseOr (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:753:16)
    at parseLogicalAnd (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:738:16)
    at parseLogicalXor (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:723:16)
    at parseLogicalOr (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:708:16)
    at parseConditional (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:679:16)
    at parseAssignment (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:632:16)
    at parseBlock (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:580:14)
    at parseStart (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:551:16)
    at string (/src/server/node_modules/mathjs/lib/cjs/expression/parse.js:75:14)
    at parse (/src/server/node_modules/typed-function/lib/esm/typed-function.mjs:1790:20)
    at string (/src/server/node_modules/mathjs/lib/cjs/expression/function/evaluate.js:50:14)
    at evaluate (/src/server/node_modules/typed-function/lib/esm/typed-function.mjs:1790:20)
    at /src/server/lib/scene/scene.actions.js:264:17
    at Array.forEach (<anonymous>)
    at Object.condition.only-continue-if (/src/server/lib/scene/scene.actions.js:261:23)
    at executeAction (/src/server/lib/scene/scene.executeActions.js:32:35)
    at /src/server/lib/scene/scene.executeActions.js:66:13
    at tryCatcher (/src/server/node_modules/bluebird/js/release/util.js:16:23)
    at MappingPromiseArray._promiseFulfilled (/src/server/node_modules/bluebird/js/release/map.js:68:38)
    at MappingPromiseArray.PromiseArray._iterate (/src/server/node_modules/bluebird/js/release/promise_array.js:115:31)
    at MappingPromiseArray.init (/src/server/node_modules/bluebird/js/release/promise_array.js:79:10)
    at MappingPromiseArray._asyncInit (/src/server/node_modules/bluebird/js/release/map.js:37:10)
    at _drainQueueStep (/src/server/node_modules/bluebird/js/release/async.js:97:12)
    at _drainQueue (/src/server/node_modules/bluebird/js/release/async.js:86:9)
    at Async._drainQueues (/src/server/node_modules/bluebird/js/release/async.js:102:5)
    at Immediate.Async.drainQueues (/src/server/node_modules/bluebird/js/release/async.js:15:14)
    at processImmediate (node:internal/timers:476:21) {
  char: 1
}
2024-06-23T21:40:51+0200 <warn> scene.executeActions.js:37 (executeAction) Error: Undefined symbol Clouds
    at Function.onUndefinedSymbol (/src/server/node_modules/mathjs/lib/cjs/expression/node/SymbolNode.js:222:15)
    at /src/server/node_modules/mathjs/lib/cjs/expression/node/SymbolNode.js:96:99
    at Object.evaluate (/src/server/node_modules/mathjs/lib/cjs/expression/node/Node.js:77:18)
    at string (/src/server/node_modules/mathjs/lib/cjs/expression/function/evaluate.js:50:36)
    at evaluate (/src/server/node_modules/typed-function/lib/esm/typed-function.mjs:1790:20)
    at Object.device.set-value (/src/server/lib/scene/scene.actions.js:57:15)
    at executeAction (/src/server/lib/scene/scene.executeActions.js:32:35)
    at /src/server/lib/scene/scene.executeActions.js:66:13
    at tryCatcher (/src/server/node_modules/bluebird/js/release/util.js:16:23)
    at MappingPromiseArray._promiseFulfilled (/src/server/node_modules/bluebird/js/release/map.js:68:38)
    at MappingPromiseArray.PromiseArray._iterate (/src/server/node_modules/bluebird/js/release/promise_array.js:115:31)
    at MappingPromiseArray.init (/src/server/node_modules/bluebird/js/release/promise_array.js:79:10)
    at MappingPromiseArray._asyncInit (/src/server/node_modules/bluebird/js/release/map.js:37:10)
    at _drainQueueStep (/src/server/node_modules/bluebird/js/release/async.js:97:12)
    at _drainQueue (/src/server/node_modules/bluebird/js/release/async.js:86:9)
    at Async._drainQueues (/src/server/node_modules/bluebird/js/release/async.js:102:5)
    at Immediate.Async.drainQueues (/src/server/node_modules/bluebird/js/release/async.js:15:14)
    at processImmediate (node:internal/timers:476:21)
2024-06-23T21:40:54+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:41:03+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2024-06-23T21:41:04+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:41:13+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:41:22+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:41:32+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:41:41+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:41:51+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:42:00+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:42:02+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2024-06-23T21:42:10+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:42:19+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:42:29+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:42:38+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:42:48+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:42:57+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:43:03+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2024-06-23T21:43:07+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:43:16+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:43:26+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:43:35+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:43:45+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:43:54+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:44:03+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2024-06-23T21:44:04+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:44:13+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:44:23+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
2024-06-23T21:44:32+0200 <warn> message.connect.js:19 (TelegramBot.<anonymous>) Telegram polling error, code = ETELEGRAM, message = ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
pi@domotique:~ $

Si je me trompe pas, contenu très similaire, avec donc 4 types d’erreurs:

  • Telegram polling error, toutes les 10 secondes
  • Unable to poll camera, toutes les minutes
  • SyntaxError: Value expected (char 1), dans une scène, toutes les 5 minutes
  • Error: Undefined symbol Clouds, dans une scène, toutes les 5 minutes

Pour la caméra, j’en ai effectivement une qui a changé d’IP il y a quelques jours, donc je vais corriger ça…

Pour le Telegram, est-ce que ça peut venir du fait que j’ai configuré le même bot dans gladys et dans node-red ? Je trouve pratique que les deux outils m’écrivent dans le même bot… Mais si c’est pas recommandé, je pourrai les dissocier…

Pour les deux scènes, comment je peux savoir desquelles il s’agit ? Et que peuvent désigner ces erreurs ?

Salut @StephaneB ,

A tout hasard, as-tu vérifié tes backups Gladys Plus ? Si tu n’as rien d’autre dessus, et que tu as 45% d’espace disque d’occupé, Gladys a besoin de la meme quantité au moins pour realiser le backup.

Je sais que tu dis que ca ne se produit pas forcement au meme moment mais sait on jamais ^^
Combien fait ta DB ?

Salut @StephaneB :slight_smile:

Effectivement c’est fâcheux si Gladys se bloque, on va trouver

Effectivement, pour cela il faut 2 clé d’API. Je ne sais pas si il est possible de créer 2 clés d’API pour un même bot, mais en tout cas tu ne peux pas avoir 2 connexions en même temps, c’est une limitation côté API Telegram.

Visiblement c’est une scène avec un « continuer seulement si » avec un calcul, ça te dit quelque chose ?

Cela provient d’une scène avec un « Contrôler un appareil » avec une valeur calculée, ça te parle ?

Autre question, est-ce que ce blocage intervient à partir d’une heure pile ? Toutes les heures, Gladys calcule les valeurs agrégées de capteurs, ça pourrait être ça qui sature ta bande passante disque et qui empêche le reste de Gladys de tourner

PS: Dès que tu trouves les scènes coupables, si c’est bien ça qui provoque le blocage, je veux bien que tu documentes ici ce que tu as trouvé dans ces scènes pour qu’on puisse corriger dans Gladys ce qui provoque ces blocages :slight_smile:

Merci pour la piste, @Terdious. Mais pas de soucis de mes sauvegardes, elles se font correctement. Et la taille de la sauvegarde est d’environ 5Go.

Merci @pierre-gilles pour ces pistes. Je vais m’occuper de corriger ma config avec Telegram.

Et pour les scènes, ce qui est compliqué c’est que j’ai des tas de scènes qui correspondent aux critères que tu as donné. Est-ce qu’il y a une trace de chaque déclenchement de scène avec le nom de la scène, et je recouperai avec l’heure de l’erreur ?

Mais sinon je vais les ouvrir une à une est déjà vérifier lesquelles se lancent toutes les 5 minutes, et parmi elles celles qui correspondent à tes critères.

Et je ne sais pas trop si les blocages interviennent à heure pile, car je les détecte à un moment où j’ai besoin de gladys et que ça ne répond pas, et ce sont des moments assez aléatoires…

Non actuellement ça n’existe pas !

Si jamais tu veux qu’on s’appelle un soir ou ce weekend pour débugger ça ensemble, je suis toujours disponible pour aider :slight_smile:

1 Like

Merci @pierre-gilles pour ta proposition d’aide. Mais c’est de mon côté que je manque de temps pour me poser et t’appeler. J’essaie dès que possible…

1 Like

@pierre-gilles, J’ai eu 3 plantages ces derniers jours :

  • 1ère fois : après un peu plus de 47h de fonctionnement, vers 6h30
  • 2ème fois : après un peu plus de 9h de fonctionnement, vers 19h
  • 3ème fois : après un peu plus de 2h de fonctionnement, vers 2h30
  • et là ça fonctionne depuis 12h…

Dans les logs docker, j’ai toujours les deux mêmes erreurs déjà décrites plus haut… Donc j’ai commencé à relire une a une mes scènes pour retrouver celles qui se déclenchent toutes les 5 minutes et contiennent les actions que tu m’as citées… Je vais finir par trouver :wink:

Mais j’ai repéré un autre truc dans la page ‹ tâches en arrière plan › dans Gladys : l’erreur suivante est affichée chaque heure avec l’agrégation mensuelle :

Error: 
<--- Last few GCs --->
rt of marking 1752 ms) (average mu = 0.672, current mu = 0.238[110976:0x7fb3c20040]  1698423 ms: Mark-sweep (reduce) 919.1 (936.1) -> 919.1 (936.1) MB, 1709.2 / 0.0 ms  (+ 10.0 ms in 3 steps since start of marking, biggest step 3.5 ms, walltime since start of marking 1728 ms) (average mu = 0.532, current mu = 0.214)[110976:0x7fb3c20040]  1700597 ms: Mark-sweep (reduce) 938.5 (955.5) -> 938.3 (955.5) MB, 2126.9 / 0.0 ms  (average mu = 0.339, current mu = 0.022) allocation failure; scavenge might not succeed


<--- JS stacktrace --->

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

Et cette erreur est aussi logiquement dans les logs docker…

Sais-tu ce que je dois faire pour éliminer cette erreur d’agrégation ?

L’agrégation se prend les pieds dans le tapis pour une histoire d’usage RAM, la « Heap memory » de Node.js est pleine, plusieurs causes possibles :

  • soit ton Pi n’a plus de RAM dispo au moment où l’agrégation passe (dans ton message d’erreur, l’agrégation utilisait 950Mo de RAM)
    Tu es comment niveau usage RAM ?
  • soit la limite de la Heap Memory est atteinte. Par curiosité tu es sur un système 32 bits ou 64 bits ?

De manière générale, plus tu n’as pas eu d’agrégation depuis longtemps, et plus c’est compliqué car il y a de plus en plus d’états à « traiter » et donc ça devient de plus en plus compliqué ^^

Lissage RAM oscille entre 5% et 30%, selon ce schéma :

Et le pic à 55% correspond au dernier plantage :wink:

Et je dirais que c’est un 64 bits, mais je ne sais plus comment vérifier :wink:

Attention, on te parle de RAM, mémoire vive, pas de la charge sur le CPU…

A la connection en SSH, première ligne


Aarch64, 64 bit

Oups… Effectivement, je n’ai pas été assez attentif pour répondre.

En terme de RAM, j’ai ça que me donne l’appli piHelper sur mon smartphone :

Avec les commandes uname -march tu obtiendra ta version

Merci. Et donc c’est ‹ aarch64 ›

1 Like

ça nous aide pas trop, c’est un chiffre relatif à un instant t, j’aimerais bien savoir comment de RAM tu as de dispo et combien est occupé en général

Sur ton Pi, en ligne de commande tu peux faire :

docker stats

Ou :

htop

Fais nous des captures d’écrans des deux commandes :slight_smile: