Impossible de lancer le démon suite à une suppression et ajout d'activités/dispositifs

Hello,

Je suis avec la nouvelle version du plugin HarmonyHub en bêta donc. L’installation initiale de la nouvelle version, les dispositifs ont bien été créés et tout était fonctionnel.

Hier j’ai ajouté un nouveau dispositif dans l’application, supprimé un autre et supprimé et ajouté des activités. Ne voyant pas les changements dans Jeedom, j’ai relancé le daemon mais celui-ci ne redémarre pas. Les logs sont en debug, mais je ne vois pas la cause:

[2024-11-14 15:25:05][INFO] : Lancement démon
[2024-11-14 15:25:06][DEBUG] : test from daemon
[2024-11-14 15:25:15][ERROR] : Impossible de lancer le démon

[2024-11-14 15:25:06][INFO] : Starting daemon with log level: debug
[2024-11-14 15:25:06][DEBUG] : Writing PID 888930 to /tmp/jeedom/harmonyhub/daemon.pid
[2024-11-14 15:25:06][INFO] : Listening on 127.0.0.1:24123
[2024-11-14 15:25:06][DEBUG] : Connecting 192.160.1.114
[2024-11-14 15:25:06][DEBUG] : 192.160.1.114: Initialize
[2024-11-14 15:25:06][DEBUG] : 192.160.1.114: Initialize HUB
[2024-11-14 15:25:06][DEBUG] : 192.160.1.114: Registering handler Activity_Changed with UUID f38e8cc2-1726-4641-b2ee-2e782ba3064e
[2024-11-14 15:25:06][DEBUG] : 192.160.1.114: Registering handler Activity_Starting with UUID 984765af-9de7-431f-abf7-7725f466b081
[2024-11-14 15:25:06][DEBUG] : 192.160.1.114: Registering handler Activity_Stopping with UUID 3091151a-10eb-4bda-824a-d1503ae40892
[2024-11-14 15:25:06][DEBUG] : 192.160.1.114: Registering handler Notification_Received with UUID 367e2d36-a966-408c-ab05-3258401133e8
[2024-11-14 15:25:06][DEBUG] : 192.160.1.114: Callback handler started
[2024-11-14 15:25:06][DEBUG] : 192.160.1.114: XMPP is enabled
[2024-11-14 15:25:06][DEBUG] : 192.160.1.114: Using XMPP
[2024-11-14 15:25:06][DEBUG] : 192.160.1.114: Registering internal handlers.
[2024-11-14 15:25:06][DEBUG] : 192.160.1.114: Exception occurred during disconnection.
[2024-11-14 15:25:06][WARNING] : Exception occurred when calling on_start_cb: __enter__
[2024-11-14 15:25:06][INFO] : Listening cancelled
[2024-11-14 15:25:06][DEBUG] : 192.160.1.114: Received STOP for callback handler
[2024-11-14 15:25:06][DEBUG] : 192.160.1.114: Callback handler stopped.
[2024-11-14 15:25:06][INFO] : Shutdown
[2024-11-14 15:25:06][DEBUG] : Removing PID file /tmp/jeedom/harmonyhub/daemon.pid
[2024-11-14 15:25:06][DEBUG] : Exit 0

Infos version :

OS : debian 11.11
Jeedom : 4.4.19
Harmony Hub (harmonyhub) beta : 2024-09-24 01:15:46

Salut,

Je peux avoir le log des dépendances également?

A priori c’est qu’il y a eu un timeout pour se connecter au hub, donc le démon n’a pas réussi à s’y connecter.

Le voici :

+ echo '*******************Begin of package installation******************'
*******************Begin of package installation******************
+ touch /tmp/jeedom_install_in_progress_harmonyhub
+ echo 1
+ echo 2
++ find /usr/local/lib/python3.9/dist-packages/ -mindepth 1 -maxdepth 1 -type d -exec du -ks '{}' +
++ awk '$1 <= 4'
++ cut -f 2-
+ RESULTTODELETE=
++ echo ''
++ sed 's, ,\ ,g'
+ RESULTTODELETE2=
+ echo ''
+ xargs rm -rf
+ echo 3
+ sudo pip3 cache purge
Files removed: 499
+ echo 4
+ sudo pip3 install --upgrade pip
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: pip in /usr/local/lib/python3.9/dist-packages (24.3.1)
WARNING: Error parsing dependencies of gpg: Invalid version: '1.14.0-unknown'
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable.It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
+ echo 5
+ sudo python3 -m pip install --force-reinstall --upgrade jeedomdaemon
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting jeedomdaemon
  Downloading https://www.piwheels.org/simple/jeedomdaemon/jeedomdaemon-1.0.2-py3-none-any.whl (13 kB)
Collecting aiohttp (from jeedomdaemon)
  Downloading aiohttp-3.11.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (7.7 kB)
Collecting aiohappyeyeballs>=2.3.0 (from aiohttp->jeedomdaemon)
  Downloading https://www.piwheels.org/simple/aiohappyeyeballs/aiohappyeyeballs-2.4.3-py3-none-any.whl (14 kB)
Collecting aiosignal>=1.1.2 (from aiohttp->jeedomdaemon)
  Downloading https://www.piwheels.org/simple/aiosignal/aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
Collecting attrs>=17.3.0 (from aiohttp->jeedomdaemon)
  Downloading https://www.piwheels.org/simple/attrs/attrs-24.2.0-py3-none-any.whl (63 kB)
Collecting frozenlist>=1.1.1 (from aiohttp->jeedomdaemon)
  Downloading frozenlist-1.5.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (13 kB)
Collecting multidict<7.0,>=4.5 (from aiohttp->jeedomdaemon)
  Downloading multidict-6.1.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (5.0 kB)
Collecting propcache>=0.2.0 (from aiohttp->jeedomdaemon)
  Downloading propcache-0.2.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (7.7 kB)
Collecting yarl<2.0,>=1.17.0 (from aiohttp->jeedomdaemon)
  Downloading yarl-1.17.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (64 kB)
Collecting async-timeout<6.0,>=4.0 (from aiohttp->jeedomdaemon)
  Downloading https://www.piwheels.org/simple/async-timeout/async_timeout-5.0.1-py3-none-any.whl (6.2 kB)
Collecting typing-extensions>=4.1.0 (from multidict<7.0,>=4.5->aiohttp->jeedomdaemon)
  Downloading https://www.piwheels.org/simple/typing-extensions/typing_extensions-4.12.2-py3-none-any.whl (37 kB)
Collecting idna>=2.0 (from yarl<2.0,>=1.17.0->aiohttp->jeedomdaemon)
  Downloading https://www.piwheels.org/simple/idna/idna-3.10-py3-none-any.whl (70 kB)
Downloading aiohttp-3.11.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.6 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 MB 9.7 MB/s eta 0:00:00
Downloading frozenlist-1.5.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (241 kB)
Downloading multidict-6.1.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (126 kB)
Downloading propcache-0.2.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (211 kB)
Downloading yarl-1.17.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (316 kB)
WARNING: Error parsing dependencies of gpg: Invalid version: '1.14.0-unknown'
Installing collected packages: typing-extensions, propcache, idna, frozenlist, attrs, async-timeout, aiohappyeyeballs, multidict, aiosignal, yarl, aiohttp, jeedomdaemon
  Attempting uninstall: typing-extensions
    Found existing installation: typing_extensions 4.12.2
    Uninstalling typing_extensions-4.12.2:
      Successfully uninstalled typing_extensions-4.12.2
  Attempting uninstall: propcache
    Found existing installation: propcache 0.2.0
    Uninstalling propcache-0.2.0:
      Successfully uninstalled propcache-0.2.0
  Attempting uninstall: idna
    Found existing installation: idna 3.10
    Uninstalling idna-3.10:
      Successfully uninstalled idna-3.10
  Attempting uninstall: frozenlist
    Found existing installation: frozenlist 1.5.0
    Uninstalling frozenlist-1.5.0:
      Successfully uninstalled frozenlist-1.5.0
  Attempting uninstall: attrs
    Found existing installation: attrs 24.2.0
    Uninstalling attrs-24.2.0:
      Successfully uninstalled attrs-24.2.0
  Attempting uninstall: async-timeout
    Found existing installation: async-timeout 5.0.0
    Uninstalling async-timeout-5.0.0:
      Successfully uninstalled async-timeout-5.0.0
  Attempting uninstall: aiohappyeyeballs
    Found existing installation: aiohappyeyeballs 2.4.3
    Uninstalling aiohappyeyeballs-2.4.3:
      Successfully uninstalled aiohappyeyeballs-2.4.3
  Attempting uninstall: multidict
    Found existing installation: multidict 6.1.0
    Uninstalling multidict-6.1.0:
      Successfully uninstalled multidict-6.1.0
  Attempting uninstall: aiosignal
    Found existing installation: aiosignal 1.3.1
    Uninstalling aiosignal-1.3.1:
      Successfully uninstalled aiosignal-1.3.1
  Attempting uninstall: yarl
    Found existing installation: yarl 1.17.1
    Uninstalling yarl-1.17.1:
      Successfully uninstalled yarl-1.17.1
  Attempting uninstall: aiohttp
    Found existing installation: aiohttp 3.10.10
    Uninstalling aiohttp-3.10.10:
      Successfully uninstalled aiohttp-3.10.10
  Attempting uninstall: jeedomdaemon
    Found existing installation: jeedomdaemon 1.0.2
    Uninstalling jeedomdaemon-1.0.2:
      Successfully uninstalled jeedomdaemon-1.0.2
Successfully installed aiohappyeyeballs-2.4.3 aiohttp-3.11.0 aiosignal-1.3.1 async-timeout-5.0.1 attrs-24.2.0 frozenlist-1.5.0 idna-3.10 jeedomdaemon-1.0.2 multidict-6.1.0 propcache-0.2.0 typing-extensions-4.12.2 yarl-1.17.1
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable.It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
+ echo 6
+ sudo python3 -m pip install --force-reinstall --upgrade aioharmony
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting aioharmony
  Downloading https://www.piwheels.org/simple/aioharmony/aioharmony-0.2.10-py3-none-any.whl (36 kB)
Collecting aiohttp (from aioharmony)
  Using cached aiohttp-3.11.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (7.7 kB)
Collecting async-timeout (from aioharmony)
  Using cached https://www.piwheels.org/simple/async-timeout/async_timeout-5.0.1-py3-none-any.whl (6.2 kB)
Collecting slixmpp (from aioharmony)
  Downloading https://www.piwheels.org/simple/slixmpp/slixmpp-1.8.5-py3-none-any.whl (511 kB)
Collecting aiohappyeyeballs>=2.3.0 (from aiohttp->aioharmony)
  Using cached https://www.piwheels.org/simple/aiohappyeyeballs/aiohappyeyeballs-2.4.3-py3-none-any.whl (14 kB)
Collecting aiosignal>=1.1.2 (from aiohttp->aioharmony)
  Using cached https://www.piwheels.org/simple/aiosignal/aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
Collecting attrs>=17.3.0 (from aiohttp->aioharmony)
  Using cached https://www.piwheels.org/simple/attrs/attrs-24.2.0-py3-none-any.whl (63 kB)
Collecting frozenlist>=1.1.1 (from aiohttp->aioharmony)
  Using cached frozenlist-1.5.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (13 kB)
Collecting multidict<7.0,>=4.5 (from aiohttp->aioharmony)
  Using cached multidict-6.1.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (5.0 kB)
Collecting propcache>=0.2.0 (from aiohttp->aioharmony)
  Using cached propcache-0.2.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (7.7 kB)
Collecting yarl<2.0,>=1.17.0 (from aiohttp->aioharmony)
  Using cached yarl-1.17.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (64 kB)
Collecting aiodns>=1.0 (from slixmpp->aioharmony)
  Downloading https://www.piwheels.org/simple/aiodns/aiodns-3.2.0-py3-none-any.whl (5.7 kB)
Collecting pyasn1 (from slixmpp->aioharmony)
  Downloading https://www.piwheels.org/simple/pyasn1/pyasn1-0.6.1-py3-none-any.whl (83 kB)
Collecting pyasn1-modules (from slixmpp->aioharmony)
  Downloading https://www.piwheels.org/simple/pyasn1-modules/pyasn1_modules-0.4.1-py3-none-any.whl (181 kB)
Collecting pycares>=4.0.0 (from aiodns>=1.0->slixmpp->aioharmony)
  Downloading pycares-4.4.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (4.1 kB)
Collecting typing-extensions>=4.1.0 (from multidict<7.0,>=4.5->aiohttp->aioharmony)
  Using cached https://www.piwheels.org/simple/typing-extensions/typing_extensions-4.12.2-py3-none-any.whl (37 kB)
Collecting idna>=2.0 (from yarl<2.0,>=1.17.0->aiohttp->aioharmony)
  Using cached https://www.piwheels.org/simple/idna/idna-3.10-py3-none-any.whl (70 kB)
Collecting cffi>=1.5.0 (from pycares>=4.0.0->aiodns>=1.0->slixmpp->aioharmony)
  Downloading cffi-1.17.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (1.5 kB)
Collecting pycparser (from cffi>=1.5.0->pycares>=4.0.0->aiodns>=1.0->slixmpp->aioharmony)
  Downloading https://www.piwheels.org/simple/pycparser/pycparser-2.22-py3-none-any.whl (117 kB)
Using cached aiohttp-3.11.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.6 MB)
Using cached frozenlist-1.5.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (241 kB)
Using cached multidict-6.1.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (126 kB)
Using cached propcache-0.2.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (211 kB)
Using cached yarl-1.17.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (316 kB)
Downloading pycares-4.4.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (289 kB)
Downloading cffi-1.17.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (447 kB)
WARNING: Error parsing dependencies of gpg: Invalid version: '1.14.0-unknown'
Installing collected packages: typing-extensions, pycparser, pyasn1, propcache, idna, frozenlist, attrs, async-timeout, aiohappyeyeballs, pyasn1-modules, multidict, cffi, aiosignal, yarl, pycares, aiohttp, aiodns, slixmpp, aioharmony
  Attempting uninstall: typing-extensions
    Found existing installation: typing_extensions 4.12.2
    Uninstalling typing_extensions-4.12.2:
      Successfully uninstalled typing_extensions-4.12.2
  Attempting uninstall: pycparser
    Found existing installation: pycparser 2.22
    Uninstalling pycparser-2.22:
      Successfully uninstalled pycparser-2.22
  Attempting uninstall: pyasn1
    Found existing installation: pyasn1 0.6.1
    Uninstalling pyasn1-0.6.1:
      Successfully uninstalled pyasn1-0.6.1
  Attempting uninstall: propcache
    Found existing installation: propcache 0.2.0
    Uninstalling propcache-0.2.0:
      Successfully uninstalled propcache-0.2.0
  Attempting uninstall: idna
    Found existing installation: idna 3.10
    Uninstalling idna-3.10:
      Successfully uninstalled idna-3.10
  Attempting uninstall: frozenlist
    Found existing installation: frozenlist 1.5.0
    Uninstalling frozenlist-1.5.0:
      Successfully uninstalled frozenlist-1.5.0
  Attempting uninstall: attrs
    Found existing installation: attrs 24.2.0
    Uninstalling attrs-24.2.0:
      Successfully uninstalled attrs-24.2.0
  Attempting uninstall: async-timeout
    Found existing installation: async-timeout 5.0.1
    Uninstalling async-timeout-5.0.1:
      Successfully uninstalled async-timeout-5.0.1
  Attempting uninstall: aiohappyeyeballs
    Found existing installation: aiohappyeyeballs 2.4.3
    Uninstalling aiohappyeyeballs-2.4.3:
      Successfully uninstalled aiohappyeyeballs-2.4.3
  Attempting uninstall: pyasn1-modules
    Found existing installation: pyasn1_modules 0.4.1
    Uninstalling pyasn1_modules-0.4.1:
      Successfully uninstalled pyasn1_modules-0.4.1
  Attempting uninstall: multidict
    Found existing installation: multidict 6.1.0
    Uninstalling multidict-6.1.0:
      Successfully uninstalled multidict-6.1.0
  Attempting uninstall: cffi
    Found existing installation: cffi 1.17.1
    Uninstalling cffi-1.17.1:
      Successfully uninstalled cffi-1.17.1
  Attempting uninstall: aiosignal
    Found existing installation: aiosignal 1.3.1
    Uninstalling aiosignal-1.3.1:
      Successfully uninstalled aiosignal-1.3.1
  Attempting uninstall: yarl
    Found existing installation: yarl 1.17.1
    Uninstalling yarl-1.17.1:
      Successfully uninstalled yarl-1.17.1
  Attempting uninstall: pycares
    Found existing installation: pycares 4.4.0
    Uninstalling pycares-4.4.0:
      Successfully uninstalled pycares-4.4.0
  Attempting uninstall: aiohttp
    Found existing installation: aiohttp 3.11.0
    Uninstalling aiohttp-3.11.0:
      Successfully uninstalled aiohttp-3.11.0
  Attempting uninstall: aiodns
    Found existing installation: aiodns 3.2.0
    Uninstalling aiodns-3.2.0:
      Successfully uninstalled aiodns-3.2.0
  Attempting uninstall: slixmpp
    Found existing installation: slixmpp 1.8.5
    Uninstalling slixmpp-1.8.5:
      Successfully uninstalled slixmpp-1.8.5
  Attempting uninstall: aioharmony
    Found existing installation: aioharmony 0.2.10
    Uninstalling aioharmony-0.2.10:
      Successfully uninstalled aioharmony-0.2.10
Successfully installed aiodns-3.2.0 aiohappyeyeballs-2.4.3 aioharmony-0.2.10 aiohttp-3.11.0 aiosignal-1.3.1 async-timeout-5.0.1 attrs-24.2.0 cffi-1.17.1 frozenlist-1.5.0 idna-3.10 multidict-6.1.0 propcache-0.2.0 pyasn1-0.6.1 pyasn1-modules-0.4.1 pycares-4.4.0 pycparser-2.22 slixmpp-1.8.5 typing-extensions-4.12.2 yarl-1.17.1
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable.It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
+ echo 7
+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end harmonyhub
+ echo 8
+ rm /tmp/jeedom_install_in_progress_harmonyhub
+ echo '*******************End of package installation******************'
*******************End of package installation******************

Sinon pas de souci de ping de mon hub à priori (retesté après avoir vérifier le ping) :
Screenshot 2024-11-15 at 13-52-53 Dashboard - Jeedom

ca m’étonnerait pas que le ping passe mais que la connexion au service soit ko malgré tout.
Avant de creuser plus, déjà essayé de redémarrer le hub? débrancher / brancher le courant

Non ça ne change rien

2 messages ont été scindés en un nouveau sujet : ‹ Timeout › object does not support the context manager protocol

J’ai fixé un autre cas de timeout, à voir demain en beta.
mais je n’arrive toujours à reproduire donc c’est compliqué sans message d’erreur clair.