Installation dépendances : délai trop long

Bonjour,

Impossible à mettre à jour les dépendances du plugin malgré les préconisations de l’autre post similaire sur le sujets.
J’utilise Jeedom sur u nraspberry pi 3B.
Ma version de python est la 3.9.2
A chaque fois que je veux faire une mise à jour des dépdances le log me retourne :
[2023-04-23 09:50:06]ERROR : Attention : l’installation des dépendances a dépassé le temps maximum autorisé : 0min
Les données de santé de mon pi sont toutes OK a part le plugin NOK.
Je suis preneur de toute aide pour corriger ce problème.
Merci par avance

Salut @Saemon84
Essaie de remettre les droits jeedom www-data pour voir si ça change quelque chose

Merci pour le retour.
Pour remettre les droits il s’agit bien de ces commandes ?
sudo chmod 775 -R /var/www/html
sudo chown -R www-data:www-data /var/www/html

Si oui cela ne corrige pas le problème. Je suis preneur d’une autre piste

Log en debug et page santé

Bonjour,

Ce message n’empêche pas nécessairement que l’installation puisse se terminer. Cela veut juste dire que jeedom n’attend plus => donc il faut les logs comme déjà demandé

Au dev du plugin: Si l’installation est longue (sur certaines machines telle que les pi) il faudrait peut-être adapter la config du plugin (info.json) pour préciser le délai max (genre 30min ou 60min) car là on voit que rien n’est configuré (0min) du coup c’est le délai par défaut du core.

Système à jour OK Cron actif OK
Scénario actif OK Démarré OK 2023-04-23 10:09:06
Date système (dernière heure enregistrée) OK 2023-04-23 10:41:06 (2023-04-23 10:18:04) Droits sudo OK
Version Jeedom 4.3.17 Version OS debian 11.6
Version PHP 7.4.33 Apache 12
Version OS Linux raspberrypi 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l GNU/Linux [11.6] Version database 10.5.15-MariaDB-0+deb11u1
Espace disque libre 67 % Connexion active/max/autorisée 11/15/151
Espace disque libre tmp 100 % Mémoire disponible 63 % (Total 922 Mo)
Mémoire suffisante 0 Erreur I/O 0
Swap disponible 100 % (Total 100 Mo) Swapiness 10 %
Charge 1.83 - 1.65 - 1.69 Configuration réseau interne OK
Configuration réseau externe NOK Persistance du cache OK (2023-04-23 10:30:07)
Apache private tmp OK
Plugins 1 NOK

et log en débug:

**********************************
*  Installation des dépendances  *
**********************************
Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
python3 is already the newest version (3.9.2-3).
The following packages were automatically installed and are no longer required:
chromium-codecs-ffmpeg-extra docutils-common libfuse2 mypy pylint
python3-astroid python3-asttokens python3-docutils python3-isort
python3-jedi python3-lazy-object-proxy python3-logilab-common python3-mccabe
python3-mypy python3-mypy-extensions python3-parso python3-pygments
python3-roman python3-send2trash python3-typed-ast python3-typing-extensions
python3-wrapt sgml-base xml-core xsel
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
python3-pip is already the newest version (20.3.4-4+rpt1+deb11u1).
The following packages were automatically installed and are no longer required:
chromium-codecs-ffmpeg-extra docutils-common libfuse2 mypy pylint
python3-astroid python3-asttokens python3-docutils python3-isort
python3-jedi python3-lazy-object-proxy python3-logilab-common python3-mccabe
python3-mypy python3-mypy-extensions python3-parso python3-pygments
python3-roman python3-send2trash python3-typed-ast python3-typing-extensions
python3-wrapt sgml-base xml-core xsel
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: pip in /usr/local/lib/python3.9/dist-packages (23.1.1)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
/usr/local/lib/python3.9/dist-packages/pip/_vendor/pkg_resources/__init__.py:123: PkgResourcesDeprecationWarning: 1.14.0-unknown is an invalid version and will not be supported in a future release
warnings.warn(
WARNING: Skipping serial as it is not installed.
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
Package 'python3-serial' is not installed, so not removed
The following packages were automatically installed and are no longer required:
chromium-codecs-ffmpeg-extra docutils-common libfuse2 mypy pylint
python3-astroid python3-asttokens python3-docutils python3-isort
python3-jedi python3-lazy-object-proxy python3-logilab-common python3-mccabe
python3-mypy python3-mypy-extensions python3-parso python3-pygments
python3-roman python3-send2trash python3-typed-ast python3-typing-extensions
python3-wrapt sgml-base xml-core xsel
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
python3-setuptools is already the newest version (52.0.0-4).
The following packages were automatically installed and are no longer required:
chromium-codecs-ffmpeg-extra docutils-common libfuse2 mypy pylint
python3-astroid python3-asttokens python3-docutils python3-isort
python3-jedi python3-lazy-object-proxy python3-logilab-common python3-mccabe
python3-mypy python3-mypy-extensions python3-parso python3-pygments
python3-roman python3-send2trash python3-typed-ast python3-typing-extensions
python3-wrapt sgml-base xml-core xsel
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
python3-pyudev is already the newest version (0.22.0-2).
python3-requests is already the newest version (2.25.1+dfsg-2).
The following packages were automatically installed and are no longer required:
chromium-codecs-ffmpeg-extra docutils-common libfuse2 mypy pylint
python3-astroid python3-asttokens python3-docutils python3-isort
python3-jedi python3-lazy-object-proxy python3-logilab-common python3-mccabe
python3-mypy python3-mypy-extensions python3-parso python3-pygments
python3-roman python3-send2trash python3-typed-ast python3-typing-extensions
python3-wrapt sgml-base xml-core xsel
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: pyjwt in /usr/lib/python3/dist-packages (1.7.1)
Requirement already satisfied: html5lib in /usr/lib/python3/dist-packages (1.1)
Requirement already satisfied: asyncio in /usr/local/lib/python3.9/dist-packages (3.4.3)
Requirement already satisfied: httpx in /usr/local/lib/python3.9/dist-packages (0.24.0)
Requirement already satisfied: lxml in /usr/lib/python3/dist-packages (4.6.3)
Requirement already satisfied: certifi in /usr/lib/python3/dist-packages (from httpx) (2020.6.20)
Requirement already satisfied: httpcore<0.18.0,>=0.15.0 in /usr/local/lib/python3.9/dist-packages (from httpx) (0.17.0)
Requirement already satisfied: idna in /usr/lib/python3/dist-packages (from httpx) (2.10)
Requirement already satisfied: sniffio in /usr/local/lib/python3.9/dist-packages (from httpx) (1.3.0)
Requirement already satisfied: h11<0.15,>=0.13 in /usr/local/lib/python3.9/dist-packages (from httpcore<0.18.0,>=0.15.0->httpx) (0.14.0)
Requirement already satisfied: anyio<5.0,>=3.0 in /usr/local/lib/python3.9/dist-packages (from httpcore<0.18.0,>=0.15.0->httpx) (3.6.2)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pyserial
Using cached https://www.piwheels.org/simple/pyserial/pyserial-3.5-py2.py3-none-any.whl (90 kB)
Installing collected packages: pyserial
Successfully installed pyserial-3.5
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: six in /usr/lib/python3/dist-packages (1.16.0)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
**********************************
*  Installation des dépendances OK  *
**********************************

Pense à mettre les balises de code pour que ça soit lisible sur le forum.

Et donc les depandances reste non ok?

Car je ne vois pas d’erreur dans tes logs.

Oui c’est ça qui me surprend. Les logs sont OK mais dépendances toujours nok. Quand je lance les mises à jour dépendances il met un temps long à coté de l’avancement. (indique de 50 minutes à 150min!! suivant les fois ou je lance la mise à jour des dépendances). Un rapport avec le délai du fichier Json dont parlais mips?

j’ai poussé une version beta avec la correction de @mips et une autre dans l’installation

Ca peut vraiment dépendre de la machine, un pi3 c’est pas un foudre de guerre et faut voir l’état du stockage, ca peut jouer bcp :slight_smile:

et encore une fois, ca ne gêne pas vraiment l’installation, si ca dur plus longtemps on peut toujours suivre la progression via le log mais au moins ca ne provoquera pas une alerte.

Ceci dit, il y a p-e un autre soucis qui expliquerait pq dans ce cas ci cela prend tant de temps.

Oui quand j’ai changé l’API, j’ai enlevé un paquet python côté installation mais je ne l’ai pas enlevé côté contrôle des dépendances

J’ai poussé une maj ce soir.
Fait la mise a jours et relance

bonjour,
Super la nouvelle version fonctionne ! Merci pour les modifications et les améliorations.
Plus qu’a apprendre comment utiliser tout ça dans jeedom pour piloter mes systèmes les plus consommants. Si vous avez des bons sites de tutos ou exemples je suis preneur.
Encore merci. :+1:

pense à cocher solution


sur le post donnant la solution évidemment :unamused:

=> j’ai corrigé

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