Le démon ne démarre plus depuis la dernière mise à jour

Bonjour,

Depuis la mise à jour 2024-01-21 01:12:28, le démon ne démarre plus et j’ai un message d’erreur dans son log.

Voici le log :

[2024-01-21 18:36:03]INFO : |D| Shutdown
[2024-01-21 18:36:03]INFO : |D|| Success - Shutdown & Close socket
[2024-01-21 18:36:03]INFO : |D|| Success - Remove PID file /tmp/jeedom/TaHomaLocal/deamon.pid
[2024-01-21 18:36:03]INFO : |D| Exit 0
[2024-01-21 18:40:10]INFO : |D| -----------------------------------------------------------------------------------------------
[2024-01-21 18:40:10]INFO : |D| Start TaHomaLocald
[2024-01-21 18:40:10]INFO : |D| Message			: Daemon stop confirmed
[2024-01-21 18:40:10]INFO : |D| Log level			: debug
[2024-01-21 18:40:10]INFO : |D| Socket port		: 55078
[2024-01-21 18:40:10]INFO : |D| Socket host		: localhost
[2024-01-21 18:40:10]INFO : |D| PID file			: /tmp/jeedom/TaHomaLocal/deamon.pid
[2024-01-21 18:40:10]INFO : |D| Cycle (sec)		: 0.3
[2024-01-21 18:40:10]INFO : |D| Apikey			: N11RfOxfJGIJVXeRrwwOlTEkRFPcAmCcLEHyplYRi9r0CreOR5TFrdL5OyysgGZy
[2024-01-21 18:40:10]INFO : |D| Device			: auto
[2024-01-21 18:40:10]INFO : |D| Loop duration (sec)	: 0.4
[2024-01-21 18:40:10]DEBUG : |D|| Writing PID 20234 to /tmp/jeedom/TaHomaLocal/deamon.pid
[2024-01-21 18:40:10]DEBUG : |D|| Init request module v2.31.0
[2024-01-21 18:40:10]DEBUG : Starting new HTTP connection (1): 127.0.0.1:80
[2024-01-21 18:40:10]DEBUG : http://127.0.0.1:80 "GET /plugins/TaHomaLocal/core/php/jeeTaHomaLocal.php?apikey=N11RfOxfJGIJVXeRrwwOlTEkRFPcAmCcLEHyplYRi9r0CreOR5TFrdL5OyysgGZy HTTP/1.1" 200 0
[2024-01-21 18:40:10]DEBUG : |D|| Socket interface started
[2024-01-21 18:40:10]DEBUG : |D|| LoopNetServer Thread started
[2024-01-21 18:40:10]DEBUG : |D|| Listening on: [localhost:55078]
[2024-01-21 18:40:10]DEBUG : Using selector: EpollSelector
[2024-01-21 18:40:10]INFO : |D| Loop 1 - script_response = None
[2024-01-21 18:40:11]INFO : |D| Loop 2 - script_response = None
[2024-01-21 18:40:11]INFO : |D| Loop 3 - script_response = None
[2024-01-21 18:40:12]INFO : |D| Loop 4 - script_response = None
[2024-01-21 18:40:12]INFO : |D| Loop 5 - script_response = None
[2024-01-21 18:40:12]INFO : |D| Loop 6 - script_response = None
[2024-01-21 18:40:13]ERROR : |D| Fatal error: local variable 'json_script_response' referenced before assignment
--- Logging error ---
Traceback (most recent call last):
File "/var/www/html/plugins/TaHomaLocal/resources/TaHomaLocald/TaHomaLocald.py", line 208, in <module>
asyncio.run(listen(_loop_duration))
File "/usr/lib/python3.7/asyncio/runners.py", line 43, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
return future.result()
File "/var/www/html/plugins/TaHomaLocal/resources/TaHomaLocald/TaHomaLocald.py", line 126, in listen
fetchEvent(_listenerId, _execId, _loop_number)
File "/var/www/html/plugins/TaHomaLocal/resources/TaHomaLocald/TaHomaLocald.py", line 86, in fetchEvent
if _loop_number <= 6 or len(json_script_response) != 0:
UnboundLocalError: local variable 'json_script_response' referenced before assignment
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.7/logging/__init__.py", line 1034, in emit
msg = self.format(record)
File "/usr/lib/python3.7/logging/__init__.py", line 880, in format
return fmt.format(record)
File "/usr/lib/python3.7/logging/__init__.py", line 619, in format
record.message = record.getMessage()
File "/usr/lib/python3.7/logging/__init__.py", line 380, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "/var/www/html/plugins/TaHomaLocal/resources/TaHomaLocald/TaHomaLocald.py", line 211, in <module>
logging.error('|D| ', traceback.format_exc())
Message: '|D| '
Arguments: ('Traceback (most recent call last):
File "/var/www/html/plugins/TaHomaLocal/resources/TaHomaLocald/TaHomaLocald.py", line 208, in <module>
asyncio.run(listen(_loop_duration))
File "/usr/lib/python3.7/asyncio/runners.py", line 43, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
return future.result()
File "/var/www/html/plugins/TaHomaLocal/resources/TaHomaLocald/TaHomaLocald.py", line 126, in listen
fetchEvent(_listenerId, _execId, _loop_number)
File "/var/www/html/plugins/TaHomaLocal/resources/TaHomaLocald/TaHomaLocald.py", line 86, in fetchEvent
if _loop_number <= 6 or len(json_script_response) != 0:
UnboundLocalError: local variable \'json_script_response\' referenced before assignment
',)
[2024-01-21 18:40:13]INFO : |D| Shutdown
[2024-01-21 18:40:13]INFO : |D|| Success - Shutdown & Close socket
[2024-01-21 18:40:13]INFO : |D|| Success - Remove PID file /tmp/jeedom/TaHomaLocal/deamon.pid
[2024-01-21 18:40:13]INFO : |D| Exit 0

Que dois-je faire ?
Merci d’avance.

Bonjour,
Il s’agit d’un bug qui s’est glissé dans cette version.
Je vous invite à télécharger la version corrigée mise en ligne aujourd’hui.

Et encore désolé pour le désagrément rencontré.

Bonjour,

Problème réglé avec la mise à jour, merci !

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.