Failed to connect to service HostServiceInfo: log énorme

Salut @TiTidom

J’ai récemment migré ma prod en debian12/jeedom 4.5.3 et j’ai switché du plugin-googlecast au plugin-ttscast (dernière version)
Tout marche très bien mais le deamon remplit ma log en permanence avec des messages d’erreur sur mes devices en veille, certains bizarrement plus que d’autres:
MiBox4, TvBox, TV LG, Google NestHub (Cuisine - le seul qui ne n’est jamais) cf plus bas

Je sais que je ne suis pas le 1er à te le signaler mais c’est très pénible et ca charge le serveur inutilement. J’ai identifié la source dans la lib pychromecast/socket_client.py
Pourrais-tu catcher ces exceptions et les transformer en WARNING pour qu’on puisse choisir de les ignorer?

D’avance merci :wink:

0057|[2026-06-14 08:34:25] ERROR  : [MIBOX4(192.168.1.17):8009] Failed to connect to service HostServiceInfo(host=‹ 192.168.1.17 ›, port=8009), retrying in 5.0s`
`0058|[2026-06-14 09:46:25] ERROR  : [MIBOX4(192.168.1.17):8009] Failed to connect to service HostServiceInfo(host=‹ 192.168.1.17 ›, port=8009), retrying in 5.0s`
`0059|[2026-06-14 13:22:31] ERROR  : [MIBOX4(192.168.1.17):8009] Failed to connect to service HostServiceInfo(host=‹ 192.168.1.17 ›, port=8009), retrying in 5.0s`
`0060|[2026-06-14 13:54:21] ERROR  : [MIBOX4(192.168.1.17):8009] Failed to connect to service HostServiceInfo(host=‹ 192.168.1.17 ›, port=8009), retrying in 5.0s`
`0061|[2026-06-14 14:54:19] ERROR  : [MIBOX4(192.168.1.17):8009] Failed to connect to service HostServiceInfo(host=‹ 192.168.1.17 ›, port=8009), retrying in 5.0s`
`0062|[2026-06-14 16:14:23] ERROR  : [MIBOX4(192.168.1.17):8009] Failed to connect to service HostServiceInfo(host=‹ 192.168.1.17 ›, port=8009), retrying in 5.0s`
`0063|[2026-06-14 19:06:19] ERROR  : [MIBOX4(192.168.1.17):8009] Failed to connect to service HostServiceInfo(host=‹ 192.168.1.17 ›, port=8009), retrying in 5.0s`
`0064|[2026-06-14 21:06:30] ERROR  : [MIBOX4(192.168.1.17):8009] Failed to connect to service HostServiceInfo(host=‹ 192.168.1.17 ›, port=8009), retrying in 5.0s`
`0065|[2026-06-14 21:10:18] ERROR  : [MIBOX4(192.168.1.17):8009] Failed to connect to service HostServiceInfo(host=‹ 192.168.1.17 ›, port=8009), retrying in 5.0s`
`0066|[2026-06-14 22:53:32] ERROR  : [TV box RDC(192.168.1.195):8009] Failed to connect to service HostServiceInfo(host=‹ 192.168.1.195 ›, port=8009), retrying in 5.0s`
`0067|[2026-06-14 23:06:31] ERROR  : [MIBOX4(192.168.1.17):8009] Failed to connect to service HostServiceInfo(host=‹ 192.168.1.17 ›, port=8009), retrying in 5.0s`
`0068|[2026-06-14 23:45:59] ERROR  : [[LG] webOS TV OLED42C54LA(192.168.1.20):8009] Failed to connect to service MDNSServiceInfo(name=‹ OLED42C54LA.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx._googlecast._tcp.local. ›), retrying in 5.0s`
`0069|[2026-06-15 01:07:03] ERROR  : [MIBOX4(192.168.1.17):8009] Failed to connect to service HostServiceInfo(host=‹ 192.168.1.17 ›, port=8009), retrying in 5.0s`
`0070|[2026-06-15 01:50:31] ERROR  : [MIBOX4(192.168.1.17):8009] Failed to connect to service HostServiceInfo(host=‹ 192.168.1.17 ›, port=8009), retrying in 5.0s`
`0071|[2026-06-15 01:54:20] ERROR  : [MIBOX4(192.168.1.17):8009] Failed to connect to service HostServiceInfo(host=‹ 192.168.1.17 ›, port=8009), retrying in 5.0s`
`0072|[2026-06-15 03:36:57] ERROR  : [Cuisine(192.168.1.141):8009] Failed to connect to service HostServiceInfo(host=‹ 192.168.1.141 ›, port=8009), retrying in 5.0s`
`0073|[2026-06-15 04:06:56] ERROR  : [[LG] webOS TV OLED42C54LA(192.168.1.20):8009] Failed to connect to service MDNSServiceInfo(name=‹ OLED42C54LA.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx._googlecast._tcp.local. ›), retrying in 5.0s`
`0074|[2026-06-15 09:26:41] ERROR  : [MIBOX4(192.168.1.17):8009] Failed to connect to service HostServiceInfo(host=‹ 192.168.1.17 ›, port=8009), retrying in 5.0s`
`0075|[2026-06-15 11:58:26] ERROR  : [MIBOX4(192.168.1.17):8009] Failed to connect to service HostServiceInfo(host=‹ 192.168.1.17 ›, port=8009), retrying in 5.0s`
`0076|[2026-06-15 21:10:33] ERROR  : [MIBOX4(192.168.1.17):8009] Failed to connect to service HostServiceInfo(host=‹ 192.168.1.17 ›, port=8009), retrying in 5.0s`
`0077|[2026-06-15 21:43:10] ERROR  : [TV box RDC(192.168.1.195):8009] Failed to connect to service HostServiceInfo(host=‹ 192.168.1.195 ›, port=8009), retrying in 5.0s`
`0078|[2026-06-15 22:30:23] ERROR  : [MIBOX4(192.168.1.17):8009] Failed to connect to service HostServiceInfo(host=‹ 192.168.1.17 ›, port=8009), retrying in 5.0s`
`0079|[2026-06-15 23:27:23] ERROR  : [TV box RDC(192.168.1.195):8009] Failed to connect to service HostServiceInfo(host=‹ 192.168.1.195 ›, port=8009), retrying in 5.0s`
`0080|[2026-06-15 23:32:44] ERROR  : [[LG] webOS TV OLED42C54LA(192.168.1.20):8009] Failed to connect to service MDNSServiceInfo(name=‹ OLED42C54LA.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx._googlecast._tcp.local. ›), retrying in 5.0s`
`0081|[2026-06-16 00:54:26] ERROR  : [MIBOX4(192.168.1.17):8009] Failed to connect to service HostServiceInfo(host=‹ 192.168.1.17 ›, port=8009), retrying in 5.0s`
`0082|[2026-06-16 02:10:21] ERROR  : [MIBOX4(192.168.1.17):8009] Failed to connect to service HostServiceInfo(host=‹ 192.168.1.17 ›, port=8009), retrying in 5.0s`
`0083|[2026-06-16 02:42:31] ERROR  : [MIBOX4(192.168.1.17):8009] Failed to connect to service HostServiceInfo(host=‹ 192.168.1.17 ›, port=8009), retrying in 5.0s`
`0084|[2026-06-16 02:46:19] ERROR  : [MIBOX4(192.168.1.17):8009] Failed to connect to service HostServiceInfo(host=‹ 192.168.1.17 ›, port=8009), retrying in 5.0s`
`0085|[2026-06-16 03:42:29] ERROR  : [MIBOX4(192.168.1.17):8009] Failed to connect to service HostServiceInfo(host=‹ 192.168.1.17 ›, port=8009), retrying in 5.0s`
`0086|[2026-06-16 04:22:24] ERROR  : [MIBOX4(192.168.1.17):8009] Failed to connect to service HostServiceInfo(host=‹ 192.168.1.17 ›, port=8009), retrying in 5.0s`
`0087|[2026-06-16 04:29:55] ERROR  : [Cuisine(192.168.1.141):8009] Failed to connect to service HostServiceInfo(host=‹ 192.168.1.141 ›, port=8009), retrying in 5.0s`
`0088|[2026-06-16 06:42:30] ERROR  : [MIBOX4(192.168.1.17):8009] Failed to connect to service HostServiceInfo(host=‹ 192.168.1.17 ›, port=8009), retrying in 5.0s`
`0089|[2026-06-16 07:54:30] ERROR  : [MIBOX4(192.168.1.17):8009] Failed to connect to service HostServiceInfo(host=‹ 192.168.1.17 ›, port=8009), retrying in 5.0

Salut @rootard,

Oui, ces périphériques qui passent en veille génèrent toutes ces erreurs :confused:

Pour diminuer le nombre de logs, tu peux déjà (si pas déjà fait) commencer par passer le niveau de log “Chromecast” sur Warning (c’est ce que j’ai chez moi, car mon niveau de log par défaut est INFO) dans la page de configuration du plugin :

image

Ca en enlève pas mal, mais pas celle-ci, sauf si tu passes le niveau en “Critical”, mais dans ce cas, tu vas passer à côté d’éventuelles autres “vraies” erreurs :frowning:

Je me note de regarder ce qu’il serait possible de faire pour intercepter ces logs ERROR de “non connexion” à un équipement, avec sans doute une option dans la config du plugin pour ne pas les afficher.

Je regarde ca ASAP :wink:

Bonne soirée,
TiTidom.

1 « J'aime »

Top merci à toi :wink:

Bonsoir,

Voici ce qui sera dans la prochaine version (encore des tests croisés à faire pour valider que cela fonctionne bien comme je le souhaite :slight_smile: ) :

Une page “modale” dédiée dans la configuration du plugin, sous forme de tableau permettant d’ajouter des “pattern” de message de logs qui seront filtrés (c’est une chaine reconnaissable à recopier à partir des logs, comme par exemple `Failed to connect to service`) et de définir le “nouveau” niveau de logs souhaité (les “- - -” c’est pour supprimer le message de log, dis autrement, il ne sera pas loggé du tout)

Comme ca au moins : C’est totalement personnalisable :rofl: chacun pourra totalement refondre ses logs du plugin s’il le souhaite.

EDIT (18/06/2026) : Ce sera dans la version v1.10.0 BETA de demain matin :+1:

Bonne soirée,
TiTidom.

1 « J'aime »

Salut,

Tu as eu l’occasion de tester (avant que je passe la version en stable) ?

Bon week-end,

TiTidom.

Salut @TiTidom

Merci pour ton fix

Je ne suis pas chez moi je n’ai pas pu tester.

J’ai passé le chromecast et le plugin en critical, il reste quelques messages par jour mais ça a considérablement réduit