Erreur Démon

Bonjour,

J’ai une erreur lors du lancement de démon.

0177|[2025-07-26 21:56:43] ERROR : Fatal error: HTTPSConnectionPool(host='192.168.1.41', port=8443): Max retries exceeded with url: /enduser-mobile-web/1/enduserAPI/setup/gateways (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92c3caf0>: Failed to establish a new connection: [Errno 111] Connection refused')

Quelqu’un aurait une idée pour me dépanner ?

Merci d’avance.


Informations Jeedom

Core : 4.4.19 (master)
DNS Jeedom : non

Plugin : tahomalocalapi
Version : 2025-04-05 22:25:57 (beta)
Statut Démon : Stoppé - (2025-07-26 21:28:17)

Bonjour

Déjà commencez par donner la lage santé jeedom.
Et les logs:

saisissez ou collez du code ici

0689|[2025-07-26 22:20:09] DEBUG  : Shutdown
0690|[2025-07-26 22:20:09] DEBUG  : Removing PID file /tmp/jeedom/tahomalocalapi/tahomalocalapid.pid
0691|[2025-07-26 22:20:10] INFO  : LoopNetServer Thread stopped
0692|[2025-07-26 22:20:10] DEBUG  : Exit 0
0693|[2025-07-26 22:25:08] INFO  : *-------------------------------------------------------------------------*
0694|[2025-07-26 22:25:08] INFO  : Start demond
0695|[2025-07-26 22:25:08] INFO  : Log level: debug
0696|[2025-07-26 22:25:08] INFO  : Socket port: 56789
0697|[2025-07-26 22:25:08] INFO  : Socket host: localhost
0698|[2025-07-26 22:25:08] INFO  : PID file: /tmp/jeedom/tahomalocalapi/tahomalocalapid.pid
0699|[2025-07-26 22:25:08] INFO  : Device: auto
0700|[2025-07-26 22:25:08] INFO  : User: ********@gmail.com
0701|[2025-07-26 22:25:08] INFO  : Pin ocde: ***********
0702|[2025-07-26 22:25:08] INFO  : Box IP: https://192.168.1.41:8443
0703|[2025-07-26 22:25:08] INFO  : Tahoma token: ***********
0704|[2025-07-26 22:25:08] INFO  : Plugin uuid: 77635489-c55e-4030-8bf0-7f657e5529ea
0705|[2025-07-26 22:25:08] INFO  : *-------------------------------------------------------------------------*
0706|[2025-07-26 22:25:08] INFO  : Writing PID 20055 to /tmp/jeedom/tahomalocalapi/tahomalocalapid.pid
0707|[2025-07-26 22:25:08] INFO  : Start changes async thread
0708|[2025-07-26 22:25:08] INFO  : Init request module v2.32.4
0709|[2025-07-26 22:25:08] DEBUG  : Starting new HTTP connection (1): 127.0.0.1:80
0710|[2025-07-26 22:25:08] DEBUG  : http://127.0.0.1:80 "GET /plugins/tahomalocalapi/core/php/jeeTahomalocalapi.php?apikey=lEksJM89gNtg9C8II8b8sHrQgN5R6GW5ErL4lPZ7xYG1AY19TOLlchx813hHfdpM HTTP/1.1" 200 0
0711|[2025-07-26 22:25:08] DEBUG  : Listen socket jeedom
0712|[2025-07-26 22:25:08] INFO  : Socket interface started
0713|[2025-07-26 22:25:08] INFO  : LoopNetServer Thread started
0714|[2025-07-26 22:25:08] INFO  : Listening on: [localhost:56789]
0715|[2025-07-26 22:25:08] DEBUG  :  * Retrieve gateways list
0716|[2025-07-26 22:25:08] ERROR  : Fatal error: HTTPSConnectionPool(host='192.168.1.41', port=8443): Max retries exceeded with url: /enduser-mobile-web/1/enduserAPI/setup/gateways (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadec4a60>: Failed to establish a new connection: [Errno 111] Connection refused'))
0717|[2025-07-26 22:25:08] INFO  : Traceback (most recent call last):
0718|File "/usr/local/lib/python3.9/dist-packages/urllib3/connection.py", line 198, in _new_conn
0719|sock = connection.create_connection(
0720|File "/usr/local/lib/python3.9/dist-packages/urllib3/util/connection.py", line 85, in create_connection
0721|raise err
0722|File "/usr/local/lib/python3.9/dist-packages/urllib3/util/connection.py", line 73, in create_connection
0723|sock.connect(sa)
0724|ConnectionRefusedError: [Errno 111] Connection refused
0725|The above exception was the direct cause of the following exception:
0726|Traceback (most recent call last):
0727|File "/usr/local/lib/python3.9/dist-packages/urllib3/connectionpool.py", line 787, in urlopen
0728|response = self._make_request(
0729|File "/usr/local/lib/python3.9/dist-packages/urllib3/connectionpool.py", line 488, in _make_request
0730|raise new_e
0731|File "/usr/local/lib/python3.9/dist-packages/urllib3/connectionpool.py", line 464, in _make_request
0732|self._validate_conn(conn)
0733|File "/usr/local/lib/python3.9/dist-packages/urllib3/connectionpool.py", line 1093, in _validate_conn
0734|conn.connect()
0735|File "/usr/local/lib/python3.9/dist-packages/urllib3/connection.py", line 753, in connect
0736|self.sock = sock = self._new_conn()
0737|File "/usr/local/lib/python3.9/dist-packages/urllib3/connection.py", line 213, in _new_conn
0738|raise NewConnectionError(
0739|urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fadec4a60>: Failed to establish a new connection: [Errno 111] Connection refused
0740|The above exception was the direct cause of the following exception:
0741|Traceback (most recent call last):
0742|File "/usr/local/lib/python3.9/dist-packages/requests/adapters.py", line 667, in send
0743|resp = conn.urlopen(
0744|File "/usr/local/lib/python3.9/dist-packages/urllib3/connectionpool.py", line 841, in urlopen
0745|retries = retries.increment(
0746|File "/usr/local/lib/python3.9/dist-packages/urllib3/util/retry.py", line 519, in increment
0747|raise MaxRetryError(_pool, url, reason) from reason  # type: ignore[arg-type]
0748|urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='192.168.1.41', port=8443): Max retries exceeded with url: /enduser-mobile-web/1/enduserAPI/setup/gateways (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadec4a60>: Failed to establish a new connection: [Errno 111] Connection refused'))
0749|During handling of the above exception, another exception occurred:
0750|Traceback (most recent call last):
0751|File "/var/www/html/plugins/tahomalocalapi/resources/tahomalocalapid/tahomalocalapid.py", line 690, in <module>
0752|listen()
0753|File "/var/www/html/plugins/tahomalocalapi/resources/tahomalocalapid/tahomalocalapid.py", line 83, in listen
0754|getGateways()
0755|File "/var/www/html/plugins/tahomalocalapi/resources/tahomalocalapid/tahomalocalapid.py", line 289, in getGateways
0756|response = requests.request("GET", url, verify=False, headers=headers)
0757|File "/usr/local/lib/python3.9/dist-packages/requests/api.py", line 59, in request
0758|return session.request(method=method, url=url, **kwargs)
0759|File "/usr/local/lib/python3.9/dist-packages/requests/sessions.py", line 589, in request
0760|resp = self.send(prep, **send_kwargs)
0761|File "/usr/local/lib/python3.9/dist-packages/requests/sessions.py", line 703, in send
0762|r = adapter.send(request, **kwargs)
0763|File "/usr/local/lib/python3.9/dist-packages/requests/adapters.py", line 700, in send
0764|raise ConnectionError(e, request=request)
0765|requests.exceptions.ConnectionError: HTTPSConnectionPool(host='192.168.1.41', port=8443): Max retries exceeded with url: /enduser-mobile-web/1/enduserAPI/setup/gateways (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadec4a60>: Failed to establish a new connection: [Errno 111] Connection refused'))
0766|[2025-07-26 22:25:08] DEBUG  : Shutdown
0767|[2025-07-26 22:25:08] DEBUG  : Removing PID file /tmp/jeedom/tahomalocalapi/tahomalocalapid.pid
0768|[2025-07-26 22:25:09] INFO  : LoopNetServer Thread stopped
0769|[2025-07-26 22:25:09] DEBUG  : Exit 0

Bonjour
Le daemon a t il déjà fonctionne ou c’est la première fois que le plugin est utilisé ?
Au vu du message il faut désactiver le plugin pendant une petite erreur, vider toutes les logs et réactiver le plugin et fournir les logs.

Bonjour,

Merci de te pencher sur mon souci.
En redémarrant le Tahoma tout est rentré dans l’ordre
Par contre, j’ai cherché pour comprendre et j’ai peut-être trouvé.

J’ai eu une coupure de courant sur la ligne où se situe ma box et ma tahoma (et mon rasp), d’après le problème décrit dans le lien, la tahoma ferme le port de l’API si elle ne trouve pas d’IP valide sur le réseau… ce qui fut mon cas, car la box n’avait pas encore démarré. (si j’ai bien compris l’issue)

Je ne sais pas si cette info peut aider pour le futur.

https://github.com/Somfy-Developer/Somfy-TaHoma-Developer-Mode/issues/149

Pour répondre à la question :slight_smile:

Oui

1 « J'aime »