La tâche plugin::cron30 n'arrive pas à finir à cause du plugin : SomfyHomeAlarm

Bonjour,

J’ai périodiquement cette erreur (2 fois ce matin):
2021-11-19 07:59:03 core La tâche plugin::cron30 n’arrive pas à finir à cause du plugin : SomfyHomeAlarm nous vous conseillons de désactiver le plugin et de contacter l’auteur

Cette erreur entraîne apparemment une baisse de performance de ma machine et cela va jusqu’à perturber son accès réseau et la rend injoignable. J’ai donc pour l’instant désactivé le plugin.

Les derniers logs que j’ai eu :

[2021-11-19 05:30:09.340][ERROR] : Error in the websocket connection: ping/pong timed out
[2021-11-19 05:30:10.619][ERROR] : error from callback <function SomfyWebsocketClient.__init__.<locals>.<lambda> at 0x7ff688d91598>: <lambda>() takes 1 positional argument but 3 were given
[2021-11-19 05:30:10.619][ERROR] : Error in the websocket connection: <lambda>() takes 1 positional argument but 3 were given
[2021-11-19 05:30:30.644][ERROR] : Error in the websocket connection: [Errno -2] Name or service not known
[2021-11-19 05:30:30.645][ERROR] : error from callback <function SomfyWebsocketClient.__init__.<locals>.<lambda> at 0x7ff6882e6d90>: <lambda>() takes 1 positional argument but 3 were given
[2021-11-19 05:30:30.645][ERROR] : Error in the websocket connection: <lambda>() takes 1 positional argument but 3 were given
/usr/lib/python3/dist-packages/urllib3/connectionpool.py:849: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
[2021-11-19 07:55:10.264][ERROR] : error from callback <function SomfyWebsocketClient.__init__.<locals>.<lambda> at 0x7fa88c483e18>: <lambda>() takes 1 positional argument but 3 were given
[2021-11-19 07:55:10.265][ERROR] : Error in the websocket connection: <lambda>() takes 1 positional argument but 3 were given
/usr/lib/python3/dist-packages/urllib3/connectionpool.py:849: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/usr/lib/python3/dist-packages/urllib3/connectionpool.py:849: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/usr/lib/python3/dist-packages/urllib3/connectionpool.py:849: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
[2021-11-19 07:59:57.499][ERROR] : error from callback <function SomfyWebsocketClient.__init__.<locals>.<lambda> at 0x7fb1238766a8>: <lambda>() takes 1 positional argument but 3 were given

Merci de voir ce qui peut provoquer ce blocage.

Salut,

aurais-tu les logs du fichier « cron » du moment où ca a planté? C’est la première fois qu’on me remonte un soucis au niveau du cron, et comme je n’ai moi même pas de soucis, je n’ai aucune idée d’où ça peut venir.
Pour l’erreur qui apparaît dans les logs du plugin sur la lambda, ça m’a tout l’air d’un problème de version… Peux-tu me donner plus de détail sur ton installation (les infos de la page santé devraient déjà aider).

Voilà les informations sur mon installation :
Version Jeedom 4.1.27
Apache 11
Version database 10.3.31-MariaDB-0+deb10u1
Version PHP 7.3.31-1~deb10u1
Linux Domo 4.19.0-18-amd64 #1 SMP Debian 4.19.208-1 (2021-09-29) x86_64 GNU/Linux [10.11]
Plugin SomfyHomeAlarm : 2021-09-02 01:16:26

Coté cron je n’ai pas logs.

Les seules traces que j’ai mais qui apparaissent même en dehors du pb de cron sont les suivantes :

[2021-11-19 07:55:10.264][ERROR] : error from callback <function SomfyWebsocketClient.__init__.<locals>.<lambda> at 0x7fa88c483e18>: <lambda>() takes 1 positional argument but 3 were given
[2021-11-19 07:55:10.265][ERROR] : Error in the websocket connection: <lambda>() takes 1 positional argument but 3 were given
/usr/lib/python3/dist-packages/urllib3/connectionpool.py:849: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/usr/lib/python3/dist-packages/urllib3/connectionpool.py:849: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/usr/lib/python3/dist-packages/urllib3/connectionpool.py:849: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
[2021-11-19 07:59:57.499][ERROR] : error from callback <function SomfyWebsocketClient.__init__.<locals>.<lambda> at 0x7fb1238766a8>: <lambda>() takes 1 positional argument but 3 were given

L’erreur sur la callback m’a tout l’air d’être un soucis de version de la librairie utilisée par le plugin, peut être un conflit avec un autre plugin existant. Je teste une solution, et j’essaye de pousser ça d’ici la fin de la semaine.

Pour le soucis de cron, espérons que ce soit lié, je ne vois vraiment pas d’où ça peut venir…

1 « J'aime »

Très bien, merci pour la prise en compte.
Dès que ta correction sera disponible je testerais.