Freeze regulier de Jeedom

Bonjour à tous.
Rencontrant pas mal de soucis dans mon instal domotique et ayant un niveau très débutant j’aimerais vous solliciter pour m’aider à orienter mes recherches de problèmes.

Je suis sur rpi4b, 4.4.19 (pas de maj depuis plusieurs mois, normal ?) debian 11

Les symptômes: Jeedom freeze très régulièrement, de façon temporaire (quelques dizaines de secondes au maximum) ce qui rend l’accès à l’interface impossible, bloque totalement les commandes via GSH, et retarde voire empêche l’exécution de mes deux scenarios (allumage de lumière dans un placard avec ouverture de la porte pour le premier, fermeture d’un volet au couché du soleil pour le second.) Aucun redémarrage n’est nécessaire, tout revient toujours à la normale

C’es simple: mon raspberry est comme en"sommeil" quelques longues secondes, plusieurs dizaines de fois par jour.

En parcourant le forum, j’ai surveillé les principaux signes vitaux comme le swap, et à priori tout vas bien.
Voici l’état de santé, j’ai redémarré le rpi hier mais cela n’a rien changé.


Voici un aperçu des logs:
image




Étant extrêmement peu expérimenté, je ne sais pas ou ailleurs chercher le problème.

Merci de m’avoir lu, au plaisir de vous lire
Raphaël

Bonjour,

En l’état, vos Logs sont complètement inexploitables.
Cependant, dans le 1er screenshot, je vois que la Swap est déjà utilisée à 15% avec moins de 12 heures d’utilisation :thinking:
De plus, il semble y avoir un problème sur un scénario. De quel scénario s’agit-il et quel est son déclencheur ?

Bonjour, merci pour votre réponse.

Le scenario en question est celui-ci:


cette erreur apparait dans le log lorsque j’ouvre et ferme la porte plusieurs fois pendant que jeedom est « freeze » quand il reprend ses esprit, c’est le message qui apparait.

Concernant le swap, celui-ci reste stable, lors du reboot le rpi avait plusieurs semaines depuis le dernier boot, le swap était à un niveau similaire. Je vais surveiller ce point bien que le problème se produise que soit soit 1 minute ou 1 mois après le boot.

Au plaisir de vous lire
Raphaël

Une version avec le bon formatage ?
image

Pardonnez-moi, mais je ne comprend même pas ce que vous entendez par ici ?
Raphaël

[2025-03-14 09:15:47][ERROR] : Trop d'appels simultanés du scénario, il ne peut-être exécuté une nouvelle fois. Il est conseillé de réduire les appels au scénario "Lumière placard".
[2025-03-14 09:16:03][ERROR] : La dernière exécution du scénario ne s'est pas lancée. Vérifiez le log scenario_execution, ainsi que le log du scénario "Lumière placard".
[2025-03-14 09:16:24][ERROR] : La dernière exécution du scénario ne s'est pas lancée. Vérifiez le log scenario_execution, ainsi que le log du scénario "Lumière placard".
[2025-03-14 15:05:22][ERROR] : La dernière exécution du scénario ne s'est pas lancée. Vérifiez le log scenario_execution, ainsi que le log du scénario "Lumière placard".
[2025-03-14 15:05:39][ERROR] : Trop d'appels simultanés du scénario, il ne peut-être exécuté une nouvelle fois. Il est conseillé de réduire les appels au scénario "Lumière placard".

Ce format est-il correct ?
Bien à vous

2 « J'aime »

Quels logs seraient utiles ?
Dois-je en mettre certains en mode « debug » ?

Bonjour,

Vous utilisez quoi comme support de stockage ?
Une carte µSD, une clé USB, un disque SSD ?
Ces freezes me font penser à des accès disque qui ont du mal, symptôme classique d’un disque qui va bientôt devenir HS…

D’autre part, vu le peu d’équipements, de plugins et de scénarios, il me semble aussi que la charge système reste assez conséquente, et c’est plutôt anormal avec un RPi4…

Oui, les équipes Jeedom sont focalisées depuis quelques temps sur la prochaine version majeure 4.5 à venir prochainement…

Bonjour Daniel, il s’agit d’un SSD msata.
Comment puis-je vérifier ce qui charge mon système, et l’intégrité de mon SSD ?

Au plaisir de vous lire
Raphaël

Peut être un capteur défaillant qui envoie des déclenchements en rafale ?
Dans ce cas il sature le RPI par des demandes de lancement du scenario.

Pour la charge, la suggestion d’@Yves19 est tout à fait pertinente. A voir d’abord…
Côté Linux et si vous êtes un peu à l’aise avec les lignes de commande, vous pouvez essayer d’identifier la tâche qui peut poser problème.
Ouvrez une session SSH sur un PC distant, et en ligne de commande, taper la commande htop. Ca ouvrira cette fenêtre :

Le process le plus gourmand apparaîtra au début pour peu que vous ayez cliqué sur CPU%. Ici, c’est le process Mariabd qui accapare le plus (relativement…) mon RPi5…

Pour l’intégrité du SSD, il existe des outils pour le vérifier, comme smartmontool par exemple. Voir ici pour l’installer.
Ensuite, en tapant une commande de type sudo smartctl -s on -a /dev/nvme0n1, on peut avoir un état de santé global du disque (pour le disque nvme0n1 dans ce cas) :

En particulier, il ne devrait pas y avoir d’erreur dans la partie === START OF SMART DATA SECTION === .

Les logs en temps réel donnent ceici:



[2025-03-18 17:30:25][INFO] : Evènement sur la commande [Appart Amblard][Rpi4][Swap Utilisé (Pourcent)] valeur : 15.2%
[2025-03-18 17:30:25][INFO] : Evènement sur la commande [Appart Amblard][Rpi4][Swap Utilisé] valeur : 310.8Mo
[2025-03-18 17:30:25][INFO] : Evènement sur la commande [Appart Amblard][Rpi4][Swap Libre] valeur : 1737.2Mo
[2025-03-18 17:30:25][INFO] : Evènement sur la commande [Appart Amblard][Rpi4][Réseau (TX-RX)] valeur : TX : 34.31 Mo - RX : 13.08 Mo
[2025-03-18 17:30:25][INFO] : Evènement sur la commande [Appart Amblard][Rpi4][Réseau (TX)] valeur : 34.31Mo
[2025-03-18 17:30:25][INFO] : Evènement sur la commande [Appart Amblard][Rpi4][Réseau (RX)] valeur : 13.08Mo
[2025-03-18 17:30:29][INFO] : Evènement sur la commande [Appart Amblard][Rpi4][Température CPU] valeur : 45.3°C
[2025-03-18 17:30:30][INFO] : Evènement sur la commande [Appart Amblard][Rpi4][Perso1] valeur : 
[2025-03-18 17:30:30][INFO] : Evènement sur la commande [Appart Amblard][Rpi4][Perso2] valeur : 
[2025-03-18 17:30:40][INFO] : Evènement sur la commande [Appart Amblard][Lumière dressing][Courant] valeur : 0.3A
[2025-03-18 17:30:40][INFO] : Evènement sur la commande [Appart Amblard][Lumière dressing][Dernière communication] valeur : 2025-03-18 17:30:30
[2025-03-18 17:30:40][INFO] : Evènement sur la commande [Appart Amblard][Lumière dressing][Puissance] valeur : 60W
[2025-03-18 17:30:54][INFO] : Evènement sur la commande [Appart Amblard][Ruban led Cuisine][Dernière communication] valeur : 2025-03-18 17:30:43
[2025-03-18 17:31:00][INFO] : Evènement sur la commande [Appart Amblard][Lumière dressing][Dernière communication] valeur : 2025-03-18 17:30:44
[2025-03-18 17:31:13][INFO] : Evènement sur la commande [Appart Amblard][Ruban led Cuisine][Qualité connexion] valeur : 43lqi
[2025-03-18 17:31:17][INFO] : Evènement sur la commande [Appart Amblard][Thermomètre Salon][Dernière communication] valeur : 2025-03-18 17:31:15
[2025-03-18 17:31:18][INFO] : Evènement sur la commande [Appart Amblard][Thermomètre Salon][Qualité connexion] valeur : 72lqi
[2025-03-18 17:31:26][INFO] : Evènement sur la commande [Appart Amblard][Volet Salon][Dernière communication] valeur : 2025-03-18 17:31:26
[2025-03-18 17:31:26][INFO] : Evènement sur la commande [Appart Amblard][Volet Salon][Qualité connexion] valeur : 76lqi
[2025-03-18 17:31:36][INFO] : Evènement sur la commande [Appart Amblard][Thermomètre Salon][Dernière communication] valeur : 2025-03-18 17:31:36
[2025-03-18 17:31:37][INFO] : Evènement sur la commande [Appart Amblard][Thermomètre Salon][Qualité connexion] valeur : 76lqi
[2025-03-18 17:31:43][INFO] : Evènement sur la commande [Appart Amblard][Volet Baie Vitrée][Dernière communication] valeur : 2025-03-18 17:31:43
[2025-03-18 17:31:47][INFO] : Evènement sur la commande [Appart Amblard][Ruban led Cuisine][Dernière communication] valeur : 2025-03-18 17:31:47
[2025-03-18 17:31:49][INFO] : Evènement sur la commande [Appart Amblard][Lumière dressing][Dernière communication] valeur : 2025-03-18 17:31:49
[2025-03-18 17:31:49][INFO] : Evènement sur la commande [Appart Amblard][Lumière dressing][Qualité connexion] valeur : 61lqi
[2025-03-18 17:31:49][INFO] : Evènement sur la commande [Appart Amblard][Lumière dressing][Puissance] valeur : 59W

Aucun soucis avec le ssh je maitrise, la commande htop donne ceci, la plupart du temps jeedom est en haut, mais j’ai fait le screen lorsque ces processus passent devant à intervales refguliers:

Pour le SSD, j’obtiens une page assez différente de la votre @DanielJ



Edit: j’ai run deux self test (short & long)
test

Je ne vois rien qui me choque… Visiblement pas de saturation en tout cas (mes propres logs sont autrement plus fournis).

Pareil, rien de remarquable… :thinking:
Pourtant, la charge moyenne est quand même relativement élevée me semble-t-il (+ de 1.6).

Et pour le SSD, RAS non plus (de plus, il est neuf…).

A priori ce n’est donc pas de ce côté qu’il y a un souci…

Ton pi est dédié à jeedom?

C’est déjà ça, merci pour vos précieux retours !

Absolument, jeedom uniquement.
J’ai peut-être quelque-chose, dans cette page, on me propose de mettre à jour des packages, mais la mise à jour échoue systématiquement. Ce n’est peut être rien…

+ echo '*******************Begin of package upgrade type pip3******************'
*******************Begin of package upgrade type pip3******************
+ sudo python3 -m pip install --force-reinstall --upgrade picamera2
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting picamera2
  Using cached https://www.piwheels.org/simple/picamera2/picamera2-0.3.25-py3-none-any.whl (114 kB)
Collecting numpy (from picamera2)
  Using cached numpy-2.0.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (62 kB)
Collecting PiDNG (from picamera2)
  Using cached pidng-4.0.9.tar.gz (21 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting piexif (from picamera2)
  Using cached https://www.piwheels.org/simple/piexif/piexif-1.1.3-py2.py3-none-any.whl (20 kB)
Collecting pillow (from picamera2)
  Using cached pillow-11.1.0-cp39-cp39-manylinux_2_28_aarch64.whl.metadata (9.1 kB)
Collecting simplejpeg (from picamera2)
  Using cached simplejpeg-1.8.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (32 kB)
Collecting v4l2-python3 (from picamera2)
  Using cached https://www.piwheels.org/simple/v4l2-python3/v4l2_python3-0.3.5-py3-none-any.whl (22 kB)
Collecting python-prctl (from picamera2)
  Using cached python-prctl-1.8.1.tar.gz (28 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'error'
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      You need to install libcap development headers to build this module
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
+ sudo python3 -m pip install --force-reinstall --upgrade PyBluez
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting PyBluez
  Using cached PyBluez-0.23.tar.gz (97 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'error'
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error in PyBluez setup command: use_2to3 is invalid.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
+ sudo python3 -m pip install --force-reinstall --upgrade pycups
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pycups
  Using cached pycups-2.0.4.tar.gz (65 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Building wheels for collected packages: pycups
  Building wheel for pycups (setup.py): started
  Building wheel for pycups (setup.py): finished with status 'error'
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      In file included from cupsconnection.c:22:
      cupsconnection.h:26:10: fatal error: cups/http.h: No such file or directory
         26 | #include <cups/http.h>
            |          ^~~~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pycups
  Running setup.py clean for pycups
Failed to build pycups
ERROR: Failed to build installable wheels for some pyproject.toml based projects (pycups)
+ sudo python3 -m pip install --force-reinstall --upgrade pysmbc
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pysmbc
  Using cached pysmbc-1.0.25.1.tar.gz (33 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'error'
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [20 lines of output]
      Package smbclient was not found in the pkg-config search path.
      Perhaps you should add the directory containing `smbclient.pc'
      to the PKG_CONFIG_PATH environment variable
      No package 'smbclient' found
      Package smbclient was not found in the pkg-config search path.
      Perhaps you should add the directory containing `smbclient.pc'
      to the PKG_CONFIG_PATH environment variable
      No package 'smbclient' found
      Package smbclient was not found in the pkg-config search path.
      Perhaps you should add the directory containing `smbclient.pc'
      to the PKG_CONFIG_PATH environment variable
      No package 'smbclient' found
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-h60urovk/pysmbc_9cc78a4655de47ad9aa2a47c06d769f9/setup.py", line 120, in <module>
          define_macros=pkgconfig_Dversion("smbclient"),
        File "/tmp/pip-install-h60urovk/pysmbc_9cc78a4655de47ad9aa2a47c06d769f9/setup.py", line 85, in pkgconfig_Dversion
          ver = str(int(vers[0]))
      ValueError: invalid literal for int() with base 10: ''
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
+ sudo python3 -m pip install --force-reinstall --upgrade python-prctl
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting python-prctl
  Using cached python-prctl-1.8.1.tar.gz (28 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'error'
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      You need to install libcap development headers to build this module
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
+ sudo python3 -m pip install --force-reinstall --upgrade RPi.GPIO
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting RPi.GPIO
  Using cached RPi.GPIO-0.7.1-cp39-cp39-linux_aarch64.whl
WARNING: Error parsing dependencies of gpg: Invalid version: '1.14.0-unknown'
Installing collected packages: RPi.GPIO
  Attempting uninstall: RPi.GPIO
    Found existing installation: RPi.GPIO 0.7.0
error: uninstall-distutils-installed-package

× Cannot uninstall RPi.GPIO 0.7.0
╰─> It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
+ sudo python3 -m pip install --force-reinstall --upgrade systemd-python
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting systemd-python
  Using cached systemd-python-235.tar.gz (61 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'error'
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [12 lines of output]
      Cannot find libsystemd or libsystemd-journal:
      
      Package libsystemd was not found in the pkg-config search path.
      Perhaps you should add the directory containing `libsystemd.pc'
      to the PKG_CONFIG_PATH environment variable
      No package 'libsystemd' found
      
      Package libsystemd-journal was not found in the pkg-config search path.
      Perhaps you should add the directory containing `libsystemd-journal.pc'
      to the PKG_CONFIG_PATH environment variable
      No package 'libsystemd-journal' found
      
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
+ echo '*******************End of package installation******************'
*******************End of package installation******************

Si le problème persiste je ne voit pas d’autres solution que de tout remettre à zéro.

Ne pas toucher à cette page. Si tu veux mettre à jour passe par apt en ssh.

1 « J'aime »

Bonjour à tous.
Je continue mes recherches, j’ai notement désactivé mon plugin jeezigbee sans effet sur les freeze, en revenche l’effet sur la charge système est spectaculaire… J’ai aussi pas mal d’erreurs notement sur le log mqtt2d:

[2025-03-18 16:53:54][ERROR] : Reconnection to mqtt server
[2025-03-18 16:53:55][ERROR] : Error on connection to mqtt server : Error: connect ECONNREFUSED 127.0.0.1:8883
[2025-03-18 17:47:52][ERROR] : Error on send to jeedom : {"message":"connect ECONNREFUSED 127.0.0.1:80","name":"Error","stack":"Error: connect ECONNREFUSED 127.0.0.1:80
    at AxiosError.from (/var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/axios/dist/node/axios.cjs:873:14)
    at RedirectableRequest.handleRequestError (/var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/axios/dist/node/axios.cjs:3152:25)
    at RedirectableRequest.emit (node:events:524:28)
    at eventHandlers.<computed> (/var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/follow-redirects/index.js:38:24)
    at ClientRequest.emit (node:events:524:28)
    at emitErrorEvent (node:_http_client:101:11)
    at Socket.socketErrorListener (node:_http_client:504:5)
    at Socket.emit (node:events:524:28)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at Axios.request (/var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/axios/dist/node/axios.cjs:4262:41)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","config":{"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"adapter":["xhr","http","fetch"],"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"env":{},"headers":{"Accept":"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded","User-Agent":"axios/1.7.3","Content-Length":"56","Accept-Encoding":"gzip, compress, deflate, br"},"httpAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"protocol":"http:","options":{"keepAlive":false,"noDelay":true,"path":null},"requests":{},"sockets":{"127.0.0.1:80:":[{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_closeAfterHandlingError":false,"_events":{"close":[null,null]},"_readableState":{"highWaterMark":16384,"buffer":[],"bufferIndex":0,"length":0,"pipes":[],"awaitDrainWriters":null},"_writableState":{"highWaterMark":16384,"length":0,"corked":0,"writelen":0,"bufferedIndex":0,"pendingcb":1},"allowHalfOpen":false,"_eventsCount":7,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null,"parser":null,"_httpMessage":{"_events":{},"_eventsCount":7,"outputData":[],"outputSize":0,"writable":true,"destroyed":false,"_last":true,"chunkedEncoding":false,"shouldKeepAlive":false,"maxRequestsOnConnectionReached":false,"_defaultKeepAlive":true,"useChunkedEncodingByDefault":true,"sendDate":false,"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"strictContentLength":false,"_contentLength":"30","_hasBody":true,"_trailer":"","finished":true,"_headerSent":true,"_closed":false,"_header":"POST /plugins/mqtt2/core/php/jeeMqtt2.php?apikey=CNIIHuW6N1KAqoZ9vGJRC4kTKVdQZ5hax5z1ArTeREgKDiPCyzFehCSdbQ1Tgpnn HTTP/1.1
Accept: application/json, text/plain, */*
Content-Type: application/x-www-form-urlencoded
User-Agent: axios/1.7.3
Content-Length: 30
Accept-Encoding: gzip, compress, deflate, br
Host: 127.0.0.1
Connection: close

","_keepAliveTimeout":0,"method":"POST","path":"/plugins/mqtt2/core/php/jeeMqtt2.php?apikey=CNIIHuW6N1KAqoZ9vGJRC4kTKVdQZ5hax5z1ArTeREgKDiPCyzFehCSdbQ1Tgpnn","_ended":true,"res":{"_events":{"end":[null,null]},"_readableState":{"highWaterMark":16384,"buffer":[],"bufferIndex":0,"length":0,"pipes":[],"awaitDrainWriters":null},"httpVersionMajor":1,"httpVersionMinor":1,"httpVersion":"1.1","complete":true,"rawHeaders":["Date","Tue, 18 Mar 2025 17:47:51 GMT","Server","Apache","X-Content-Type-Options","nosniff","X-Frame-Options","sameorigin","X-XSS-Protection","1; mode=block","Referrer-Policy","strict-origin-when-cross-origin","Permissions-Policy","accelerometer=(),battery=(),fullscreen=(self),geolocation=(),camera=(),ambient-light-sensor=(self),autoplay=(self)","Content-Security-Policy","default-src 'self' file: data: blob: filesystem:;script-src-attr 'self' 'unsafe-inline' 'unsafe-eval' *.google.com *.google.fr *.googleapis.com;script-src 'self' 'unsafe-inline' 'unsafe-eval' *.google.com *.google.fr;script-src-elem 'self' 'unsafe-inline' 'unsafe-eval' *.google.com *.google.fr;img-src 'self' * data:;style-src 'self' 'unsafe-inline';style-src-attr 'self' 'unsafe-inline';worker-src blob:;frame-src 'self' *.jeedom.com *.google.com *.google.fr *.googleapis.com data:;","Access-Control-Allow-Origin","*","Access-Control-Allow-Credentials","true","Access-Control-Allow-Headers","origin, x-requested-with, content-type","Access-Control-Allow-Methods","PUT, GET, POST, DELETE, OPTIONS","Content-Length","0","Connection","close","Content-Type","text/html; charset=UTF-8"],"rawTrailers":[],"aborted":false,"upgrade":false,"url":"","method":null,"statusCode":200,"statusMessage":"OK","_consuming":false,"_dumped":false,"_eventsCount":4,"responseUrl":"http://127.0.0.1/plugins/mqtt2/core/php/jeeMqtt2.php?apikey=CNIIHuW6N1KAqoZ9vGJRC4kTKVdQZ5hax5z1ArTeREgKDiPCyzFehCSdbQ1Tgpnn","redirects":[]},"aborted":false,"timeoutCb":null,"upgradeOrConnect":false,"parser":null,"maxHeadersCount":null,"reusedSocket":false,"host":"127.0.0.1","protocol":"http:","_redirectable":{"_events":{},"_writableState":{"highWaterMark":16384,"length":0,"corked":0,"writelen":0,"bufferedIndex":0,"pendingcb":0},"_options":{"maxRedirects":21,"maxBodyLength":null,"protocol":"http:","path":"/plugins/mqtt2/core/php/jeeMqtt2.php?apikey=CNIIHuW6N1KAqoZ9vGJRC4kTKVdQZ5hax5z1ArTeREgKDiPCyzFehCSdbQ1Tgpnn","method":"POST","headers":{"Accept":"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded","User-Agent":"axios/1.7.3","Content-Length":"30","Accept-Encoding":"gzip, compress, deflate, br"},"agents":{},"beforeRedirects":{},"hostname":"127.0.0.1","port":"","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"maxHeaderSize":16384,"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"protocol":"http:","options":{"keepAlive":true,"scheduling":"lifo","timeout":5000,"noDelay":true,"path":null},"requests":{},"sockets":{},"freeSockets":{},"keepAliveMsecs":1000,"keepAlive":true,"maxSockets":null,"maxFreeSockets":256,"scheduling":"lifo","maxTotalSockets":null,"totalSocketCount":0}},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":443,"protocol":"https:","options":{"keepAlive":true,"scheduling":"lifo","timeout":5000,"noDelay":true,"path":null},"requests":{},"sockets":{},"freeSockets":{},"keepAliveMsecs":1000,"keepAlive":true,"maxSockets":null,"maxFreeSockets":256,"scheduling":"lifo","maxTotalSockets":null,"totalSocketCount":0,"maxCachedSessions":100,"_sessionCache":{"map":{},"list":[]}}}},"pathname":"/plugins/mqtt2/core/php/jeeMqtt2.php","search":"?apikey=CNIIHuW6N1KAqoZ9vGJRC4kTKVdQZ5hax5z1ArTeREgKDiPCyzFehCSdbQ1Tgpnn"},"_ended":true,"_ending":true,"_redirectCount":0,"_redirects":[],"_requestBodyLength":30,"_requestBodyBuffers":[],"_eventsCount":3,"_currentUrl":"http://127.0.0.1/plugins/mqtt2/core/php/jeeMqtt2.php?apikey=CNIIHuW6N1KAqoZ9vGJRC4kTKVdQZ5hax5z1ArTeREgKDiPCyzFehCSdbQ1Tgpnn"}}},{"connecting":false,"_hadError":true,"_parent":null,"_host":null,"_closeAfterHandlingError":false,"_events":{"close":[null,null,null],"connect":[null,null,null]},"_readableState":{"highWaterMark":16384,"buffer":[],"bufferIndex":0,"length":0,"pipes":[],"awaitDrainWriters":null},"_writableState":{"highWaterMark":16384,"length":401,"corked":0,"writelen":401,"bufferedIndex":0,"pendingcb":1},"allowHalfOpen":false,"_eventsCount":8,"_sockname":null,"_pendingData":[{"chunk":"POST /plugins/mqtt2/core/php/jeeMqtt2.php?apikey=CNIIHuW6N1KAqoZ9vGJRC4kTKVdQZ5hax5z1ArTeREgKDiPCyzFehCSdbQ1Tgpnn HTTP/1.1
Accept: application/json, text/plain, */*
Content-Type: application/x-www-form-urlencoded
User-Agent: axios/1.7.3
Content-Length: 56
Accept-Encoding: gzip, compress, deflate, br
Host: 127.0.0.1
Connection: close

","encoding":"latin1"},{"chunk":{"type":"Buffer","data":[123,34,122,105,103,98,101,101,50,109,113,116,116,34,58,123,34,98,114,105,100,103,101,34,58,123,34,115,116,97,116,101,34,58,123,34,115,116,97,116,101,34,58,34,111,102,102,108,105,110,101,34,125,125,125,125]},"encoding":"buffer"}],"_pendingEncoding":"","server":null,"_server":null,"parser":null,"_httpMessage":{"_events":{},"_eventsCount":7,"outputData":[],"outputSize":0,"writable":true,"destroyed":false,"_last":true,"chunkedEncoding":false,"shouldKeepAlive":false,"maxRequestsOnConnectionReached":false,"_defaultKeepAlive":true,"useChunkedEncodingByDefault":true,"sendDate":false,"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"strictContentLength":false,"_contentLength":"56","_hasBody":true,"_trailer":"","finished":false,"_headerSent":true,"_closed":false,"_header":"POST /plugins/mqtt2/core/php/jeeMqtt2.php?apikey=CNIIHuW6N1KAqoZ9vGJRC4kTKVdQZ5hax5z1ArTeREgKDiPCyzFehCSdbQ1Tgpnn HTTP/1.1
Accept: application/json, text/plain, */*
Content-Type: application/x-www-form-urlencoded
User-Agent: axios/1.7.3
Content-Length: 56
Accept-Encoding: gzip, compress, deflate, br
Host: 127.0.0.1
Connection: close

","_keepAliveTimeout":0,"method":"POST","path":"/plugins/mqtt2/core/php/jeeMqtt2.php?apikey=CNIIHuW6N1KAqoZ9vGJRC4kTKVdQZ5hax5z1ArTeREgKDiPCyzFehCSdbQ1Tgpnn","_ended":false,"res":null,"aborted":false,"timeoutCb":null,"upgradeOrConnect":false,"parser":null,"maxHeadersCount":null,"reusedSocket":false,"host":"127.0.0.1","protocol":"http:","_redirectable":{"_events":{},"_writableState":{"highWaterMark":16384,"length":0,"corked":0,"writelen":0,"bufferedIndex":0,"pendingcb":0},"_options":{"maxRedirects":21,"maxBodyLength":null,"protocol":"http:","path":"/plugins/mqtt2/core/php/jeeMqtt2.php?apikey=CNIIHuW6N1KAqoZ9vGJRC4kTKVdQZ5hax5z1ArTeREgKDiPCyzFehCSdbQ1Tgpnn","method":"POST","headers":{"Accept":"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded","User-Agent":"axios/1.7.3","Content-Length":"56","Accept-Encoding":"gzip, compress, deflate, br"},"agents":{},"beforeRedirects":{},"hostname":"127.0.0.1","port":"","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"maxHeaderSize":16384,"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"protocol":"http:","options":{"keepAlive":true,"scheduling":"lifo","timeout":5000,"noDelay":true,"path":null},"requests":{},"sockets":{},"freeSockets":{},"keepAliveMsecs":1000,"keepAlive":true,"maxSockets":null,"maxFreeSockets":256,"scheduling":"lifo","maxTotalSockets":null,"totalSocketCount":0}},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":443,"protocol":"https:","options":{"keepAlive":true,"scheduling":"lifo","timeout":5000,"noDelay":true,"path":null},"requests":{},"sockets":{},"freeSockets":{},"keepAliveMsecs":1000,"keepAlive":true,"maxSockets":null,"maxFreeSockets":256,"scheduling":"lifo","maxTotalSockets":null,"totalSocketCount":0,"maxCachedSessions":100,"_sessionCache":{"map":{},"list":[]}}}},"pathname":"/plugins/mqtt2/core/php/jeeMqtt2.php","search":"?apikey=CNIIHuW6N1KAqoZ9vGJRC4kTKVdQZ5hax5z1ArTeREgKDiPCyzFehCSdbQ1Tgpnn"},"_ended":false,"_ending":true,"_redirectCount":0,"_redirects":[],"_requestBodyLength":56,"_requestBodyBuffers":[{"data":{"type":"Buffer","data":[123,34,122,105,103,98,101,101,50,109,113,116,116,34,58,123,34,98,114,105,100,103,101,34,58,123,34,115,116,97,116,101,34,58,123,34,115,116,97,116,101,34,58,34,111,102,102,108,105,110,101,34,125,125,125,125]}}],"_eventsCount":3,"_currentUrl":"http://127.0.0.1/plugins/mqtt2/core/php/jeeMqtt2.php?apikey=CNIIHuW6N1KAqoZ9vGJRC4kTKVdQZ5hax5z1ArTeREgKDiPCyzFehCSdbQ1Tgpnn"}}}]},"freeSockets":{},"keepAliveMsecs":1000,"keepAlive":false,"maxSockets":null,"maxFreeSockets":256,"scheduling":"lifo","maxTotalSockets":null,"totalSocketCount":2},"method":"post","url":"http://127.0.0.1:80/plugins/mqtt2/core/php/jeeMqtt2.php?apikey=CNIIHuW6N1KAqoZ9vGJRC4kTKVdQZ5hax5z1ArTeREgKDiPCyzFehCSdbQ1Tgpnn","data":"{\"zigbee2mqtt\":{\"bridge\":{\"state\":{\"state\":\"offline\"}}}}"},"code":"ECONNREFUSED","status":null}
[2025-03-18 17:47:52][ERROR] : Reconnection to mqtt server
[2025-03-18 17:47:53][ERROR] : Error on connection to mqtt server : Error: connect ECONNREFUSED 127.0.0.1:8883
[2025-03-19 10:01:50][ERROR] : Reconnection to mqtt server

Bonjour.

Avez vu et appliqué ce qui est indiqué dans ce fil de @jpty :

1 « J'aime »

Bonjour,

Je n’en ai jamais entendu parler, je suis en train de refaire toute mon instal, cela devenait impossible. Je vais ajouter ce tuto à ma liste de choses à optimiser après installation, merci !