Erreurs smart_life dans les logs

Posez ici vos questions d'utilisation, de configuration de DomoticZ, de bugs, de conseils sur le logiciel lui même dans son utilisation et son paramétrage.
Des forums spécifiques sont ouverts ci-dessous pour regrouper les différents sujets.
Moulins58
Messages : 134
Inscription : 17 févr. 2019, 20:41

Erreurs smart_life dans les logs

Message par Moulins58 »

J'ai fais l'acquisition de deux relais TUYA, ils sont bien incorporés à domoticz. Et ils remplissent bien leur fonction. Mais j'ai de nombreux messages d'erreurs dans les logs.

Code : Tout sélectionner

2025-02-08 09:35:30.265 Error: smart_life: handleThread: HTTPSConnectionPool(host='px1.tuyaeu.com', port=443): Max retries exceeded with url: /homeassistant/skill (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x6455a690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')) line 185
2025-02-08 09:35:30.268 Error: smart_life: handleThread: HTTPSConnectionPool(host='px1.tuyaeu.com', port=443): Max retries exceeded with url: /homeassistant/skill (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x6460a4b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')) line 185
2025-02-08 09:35:30.955 Error: smart_life: Call to function 'onCommand' failed, exception details:
2025-02-08 09:35:30.962 Error: smart_life: Traceback (most recent call last):
2025-02-08 09:35:30.962 Error: smart_life: File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 162, in _new_conn
2025-02-08 09:35:30.962 Error: smart_life: (self._dns_host, self.port), self.timeout, **extra_kw)
2025-02-08 09:35:30.962 Error: smart_life: File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
2025-02-08 09:35:30.962 Error: smart_life: for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
2025-02-08 09:35:30.962 Error: smart_life: File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
2025-02-08 09:35:30.962 Error: smart_life: for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
2025-02-08 09:35:30.962 Error: smart_life: socket.gaierror: [Errno -3] Temporary failure in name resolution
2025-02-08 09:35:30.962 Error: smart_life:
2025-02-08 09:35:30.962 Error: smart_life: During handling of the above exception, another exception occurred:
2025-02-08 09:35:30.962 Error: smart_life:
2025-02-08 09:35:30.962 Error: smart_life: Traceback (most recent call last):
2025-02-08 09:35:30.962 Error: smart_life: File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
2025-02-08 09:35:30.962 Error: smart_life: chunked=chunked)
2025-02-08 09:35:30.962 Error: smart_life: File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 344, in _make_request
2025-02-08 09:35:30.962 Error: smart_life: self._validate_conn(conn)
2025-02-08 09:35:30.962 Error: smart_life: File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 846, in _validate_conn
2025-02-08 09:35:30.962 Error: smart_life: conn.connect()
2025-02-08 09:35:30.962 Error: smart_life: File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 315, in connect
2025-02-08 09:35:30.962 Error: smart_life: conn = self._new_conn()
2025-02-08 09:35:30.962 Error: smart_life: File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 171, in _new_conn
2025-02-08 09:35:30.962 Error: smart_life: self, "Failed to establish a new connection: %s" % e)
2025-02-08 09:35:30.962 Error: smart_life: urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x6455bdf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution
2025-02-08 09:35:30.963 Error: smart_life:
2025-02-08 09:35:30.963 Error: smart_life: During handling of the above exception, another exception occurred:
2025-02-08 09:35:30.963 Error: smart_life:
2025-02-08 09:35:30.963 Error: smart_life: Traceback (most recent call last):
2025-02-08 09:35:30.963 Error: smart_life: File "/usr/local/lib/python3.7/dist-packages/requests/adapters.py", line 449, in send
2025-02-08 09:35:30.963 Error: smart_life: timeout=timeout
2025-02-08 09:35:30.963 Error: smart_life: File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
2025-02-08 09:35:30.963 Error: smart_life: _stacktrace=sys.exc_info()[2])
2025-02-08 09:35:30.963 Error: smart_life: File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 399, in increment
2025-02-08 09:35:30.963 Error: smart_life: raise MaxRetryError(_pool, url, error or ResponseError(cause))
2025-02-08 09:35:30.963 Error: smart_life: urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='px1.tuyaeu.com', port=443): Max retries exceeded with url: /homeassistant/skill (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x6455bdf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
2025-02-08 09:35:30.963 Error: smart_life:
2025-02-08 09:35:30.963 Error: smart_life: During handling of the above exception, another exception occurred:
2025-02-08 09:35:30.963 Error: smart_life:
2025-02-08 09:35:30.963 Error: smart_life: Traceback (most recent call last):
2025-02-08 09:35:30.963 Error: smart_life: File "/home/pi/domoticz/plugins/tuyaha/plugin.py", line 250, in onCommand
2025-02-08 09:35:30.963 Error: smart_life: _plugin.onCommand(Unit, Command, Level, Hue)
2025-02-08 09:35:30.963 Error: smart_life: File "/home/pi/domoticz/plugins/tuyaha/plugin.py", line 126, in onCommand
2025-02-08 09:35:30.963 Error: smart_life: dev.turn_on()
2025-02-08 09:35:30.963 Error: smart_life: File "/home/pi/domoticz/plugins/tuyaha/tuyaha/devices/switch.py", line 14, in turn_on
2025-02-08 09:35:30.963 Error: smart_life: self.api.device_control(self.obj_id, "turnOnOff", {"value": "1"})
2025-02-08 09:35:30.963 Error: smart_life: File "/home/pi/domoticz/plugins/tuyaha/tuyaha/tuyaapi.py", line 148, in device_control
2025-02-08 09:35:30.963 Error: smart_life: response = self._request(action, namespace, devId, param)
2025-02-08 09:35:30.963 Error: smart_life: File "/home/pi/domoticz/plugins/tuyaha/tuyaha/tuyaapi.py", line 162, in _request
2025-02-08 09:35:30.963 Error: smart_life: (TUYACLOUDURL + "/homeassistant/skill").format(SESSION.region), json=data
2025-02-08 09:35:30.963 Error: smart_life: File "/usr/local/lib/python3.7/dist-packages/requests/api.py", line 119, in post
2025-02-08 09:35:30.963 Error: smart_life: return request('post', url, data=data, json=json, **kwargs)
2025-02-08 09:35:30.964 Error: smart_life: File "/usr/local/lib/python3.7/dist-packages/requests/api.py", line 61, in request
2025-02-08 09:35:30.964 Error: smart_life: return session.request(method=method, url=url, **kwargs)
2025-02-08 09:35:30.964 Error: smart_life: File "/usr/local/lib/python3.7/dist-packages/requests/sessions.py", line 530, in request
2025-02-08 09:35:30.964 Error: smart_life: resp = self.send(prep, **send_kwargs)
2025-02-08 09:35:30.964 Error: smart_life: File "/usr/local/lib/python3.7/dist-packages/requests/sessions.py", line 643, in send
2025-02-08 09:35:30.964 Error: smart_life: r = adapter.send(request, **kwargs)
2025-02-08 09:35:30.964 Error: smart_life: File "/usr/local/lib/python3.7/dist-packages/requests/adapters.py", line 516, in send
2025-02-08 09:35:30.964 Error: smart_life: raise ConnectionError(e, request=request)
2025-02-08 09:35:30.964 Error: smart_life: requests.exceptions.ConnectionError: HTTPSConnectionPool(host='px1.tuyaeu.com', port=443): Max retries exceeded with url: /homeassistant/skill (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x6455bdf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
©
Là! je suis dépassé et c'est très énervant. Cela se reproduit aléatoirement deux ou troiss fois par jour.
Si quelqu'un avait une solution, d'avance merci.
Dernière modification par Keros le 08 févr. 2025, 13:03, modifié 1 fois.
Raison : Correction affichage des log
Flying Domotic
Messages : 772
Inscription : 10 mars 2020, 15:26

Re: Erreurs smart_life dans les logs

Message par Flying Domotic »

Il semble que le système de conversion de nom vers IP (DNS) ait quelques hoquets.

Les raisons peuvent être multiples, la plus courante étant une liaison Internet instable. Il arrive également qu'un des serveurs DNS d'un pool de serveur parte en vrille, mais c'est moins courant.

1) Est-ce que la connexion Internet est stable ?

2) Comment le client DNS est-il configuré sur le RPi (les commandes sont différentes selon la version d'OS) ?
Répondre