Problème install dépendances version stable du 13 juin

Bonjour.
Je viens de faire la mise à jour du plugin (version stable du 13/06) ce qui provoque la réinstall des dépendances. Je vous mets la log :

s======================================================================
== 13/06/2022 13:25:02 == Dependencies installation for jMQTT
======================================================================

== Should install Mosquitto: 0
[  5% ] : Synchronize the package index...
======================================================================
== 13/06/2022 13:25:03 == Dependencies installation for jMQTT
======================================================================

== Should install Mosquitto: 0
[  5% ] : Synchronize the package index...
[ 19% ] : Synchronize the package index : [ERROR]
[ 20% ] : Install Composer...
[ 24% ] : Install Composer : [  OK  ]
[ 25% ] : Install Ratchet PHP library...
[ 19% ] : Synchronize the package index : [  OK  ]
[ 20% ] : Install Composer...
[ 24% ] : Install Composer : [  OK  ]
[ 25% ] : Install Ratchet PHP library...
[ 29% ] : Install Ratchet PHP library : [  OK  ]
[ 30% ] : Temporary fix of Ratchet PHP library (https://github.com/ratchetphp/RFC6455/pull/65)...
[ 34% ] : Temporary fix of Ratchet PHP library (https://github.com/ratchetphp/RFC6455/pull/65) : [  OK  ]
[ 35% ] : Install JsonPath-PHP library...
[ 29% ] : Install Ratchet PHP library : [  OK  ]
[ 30% ] : Temporary fix of Ratchet PHP library (https://github.com/ratchetphp/RFC6455/pull/65)...
[ 34% ] : Temporary fix of Ratchet PHP library (https://github.com/ratchetphp/RFC6455/pull/65) : [  OK  ]
[ 35% ] : Install JsonPath-PHP library...
[ 39% ] : Install JsonPath-PHP library : [  OK  ]
[ 40% ] : Remove Composer...
[ 49% ] : Remove Composer : [  OK  ]
[ 50% ] : Install python3 venv and pip debian packages...
[ 39% ] : Install JsonPath-PHP library : [ERROR]
[ 40% ] : Remove Composer...
[ 49% ] : Remove Composer : [  OK  ]
[ 50% ] : Install python3 venv and pip debian packages...
[ 59% ] : Install python3 venv and pip debian packages : [ERROR]
[ 60% ] : Create a python3 Virtual Environment...
[ 69% ] : Create a python3 Virtual Environment : [ERROR]
[ 70% ] : Install required python3 libraries in venv...
[ 89% ] : Install required python3 libraries in venv : [ERROR]
[ 90% ] : Run post_dependancy_install function...
[ 99% ] : Run post_dependancy_install function : [  OK  ]
[100% ] : Finished !

======================================================================
== KO == Installation Error 
======================================================================
== ANALYSING ERRORS...
== NO KNOWN ERROR DETECTED
== Error in step : Install JsonPath-PHP library
== Line 53
== Command `sudo -u www-data php ./composer.phar update --working-dir=./JsonPath-PHP' have an issue
== Return code is 255
== Error message :
Loading composer repositories with package information
https://repo.packagist.org could not be fully loaded (include(phar:///var/www/html/plugins/jMQTT/resources/composer.phar/vendor/composer/../react/promise/src/RejectedPromise.php): failed to open stream: phar error: Cannot open phar archive "/var/www/html/plugins/jMQTT/resources/composer.phar" for reading), package information was loaded from the local cache and may be out of date

PHP Fatal error:  Uncaught ErrorException: include(phar:///var/www/html/plugins/jMQTT/resources/composer.phar/vendor/composer/../symfony/string/UnicodeString.php): failed to open stream: phar error: Cannot open phar archive "/var/www/html/plugins/jMQTT/resources/composer.phar" for reading in phar:///var/www/html/plugins/jMQTT/resources/composer.phar/vendor/composer/ClassLoader.php:571
Stack trace:
#0 phar:///var/www/html/plugins/jMQTT/resources/composer.phar/vendor/composer/ClassLoader.php(571): Composer\UtilerrorHandler::handle(2, 'include(phar://...', 'phar:///var/www...', 571, Array)
#1 phar:///var/www/html/plugins/jMQTT/resources/composer.phar/vendor/composer/ClassLoader.php(571): include()
#2 phar:///var/www/html/plugins/jMQTT/resources/composer.phar/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile('phar:///var/www...')
#3 [internal function]: Composer\Autoload\ClassLoader->loadClass('Symfony\Compone...')
#4 phar:///var/www/html/plugins/jMQTT/resources/composer.phar/vendor/symfony/console/Helper/Helpe in phar:///var/www/html/plugins/jMQTT/resources/composer.phar/vendor/composer/ClassLoader.php on line 571

Fatal error: Uncaught ErrorException: include(phar:///var/www/html/plugins/jMQTT/resources/composer.phar/vendor/composer/../symfony/string/UnicodeString.php): failed to open stream: phar error: Cannot open phar archive "/var/www/html/plugins/jMQTT/resources/composer.phar" for reading in phar:///var/www/html/plugins/jMQTT/resources/composer.phar/vendor/composer/ClassLoader.php:571
Stack trace:
#0 phar:///var/www/html/plugins/jMQTT/resources/composer.phar/vendor/composer/ClassLoader.php(571): Composer\UtilerrorHandler::handle(2, 'include(phar://...', 'phar:///var/www...', 571, Array)
#1 phar:///var/www/html/plugins/jMQTT/resources/composer.phar/vendor/composer/ClassLoader.php(571): include()
#2 phar:///var/www/html/plugins/jMQTT/resources/composer.phar/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile('phar:///var/www...')
#3 [internal function]: Composer\Autoload\ClassLoader->loadClass('Symfony\Compone...')
#4 phar:///var/www/html/plugins/jMQTT/resources/composer.phar/vendor/symfony/console/Helper/Helpe in phar:///var/www/html/plugins/jMQTT/resources/composer.phar/vendor/composer/ClassLoader.php on line 571

======================================================================
== Error in step : Install python3 venv and pip debian packages
== Line 59
== Command `sudo DEBIAN_FRONTEND=noninteractive apt-get install -y python3-venv python3-pip' have an issue
== Return code is 100
== Error message :
E: Impossible d'obtenir le verrou /var/lib/dpkg/lock-frontend - open (11: Ressource temporairement non disponible)
E: Impossible d'obtenir le verrou de dpkg (/var/lib/dpkg/lock-frontend). Il est possible qu'un autre processus l'utilise.

======================================================================
== Error in step : Create a python3 Virtual Environment
== Line 62
== Command `sudo -u www-data python3 -m venv /var/www/html/plugins/jMQTT/resources/jmqttd/venv' have an issue
== Return code is 1
== Error message :
The virtual environment was not created successfully because ensurepip is not
available.  On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.

    apt-get install python3-venv

You may need to use sudo with that command.  After installing the python3-venv
package, recreate your virtual environment.

Failing command: ['/var/www/html/plugins/jMQTT/resources/jmqttd/venv/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']

======================================================================
== Error in step : Install required python3 libraries in venv
== Line 65
== Command `sudo -u www-data /var/www/html/plugins/jMQTT/resources/jmqttd/venv/bin/pip3 install -r /var/www/html/plugins/jMQTT/resources/python-requirements/requirements.txt' have an issue
== Return code is 1
== Error message :
sudo: /var/www/html/plugins/jMQTT/resources/jmqttd/venv/bin/pip3 : commande introuvable

======================================================================
[ 59% ] : Install python3 venv and pip debian packages : [  OK  ]
[ 60% ] : Create a python3 Virtual Environment...
[ 69% ] : Create a python3 Virtual Environment : [  OK  ]
[ 70% ] : Install required python3 libraries in venv...
[ 89% ] : Install required python3 libraries in venv : [  OK  ]
[ 90% ] : Run post_dependancy_install function...
[ 99% ] : Run post_dependancy_install function : [  OK  ]
[100% ] : Finished !

======================================================================
== KO == Installation Error 
======================================================================
== ANALYSING ERRORS...
== NO KNOWN ERROR DETECTED
== Error in step : Synchronize the package index
== Line 21
== Command `sudo apt-get update' have an issue
== Return code is 100
== Error message :
Reading package lists...
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/

======================================================================

Malgré les erreurs, le statut des dépendances est OK avec une date de dernière relance datée du 13/06. Idem pour la statut du daemon que j’ai relancé.
La box est un nuc i3, debian buster, jeedom stable v4.2.18.
Que dois-je faire pour que l’install des dépendances aille au bout normalement.
Merci.

Bonjour,

Même chose chez moi. Ca boucle sur l’installation des dépendances, malgré que le résultat soit OK dans les logs. Je suis en dernière version de Jeedom, sur un RPI.

Dans la log jMQTT j’ai le message suivant :

0731|[2022-06-13 14:30:11]INFO : Installation des dépendances, voir log dédié (jMQTT_dep)
0732|[2022-06-13 14:30:15]DEBUG : dependancy_info : python3 required library is missing in venv
0733|[2022-06-13 14:30:20]DEBUG : dependancy_info : python3 required library is missing in venv

Installation des dépendances :

0000|======================================================================
0001|== 13/06/2022 14:35:14 == Dependencies installation for jMQTT
0002|======================================================================
0003|== Should install Mosquitto: 0
0004|[  5% ] : Synchronize the package index...
0005|[ 19% ] : Synchronize the package index : [  OK  ]
0006|[ 20% ] : Install Composer...
0007|[ 24% ] : Install Composer : [  OK  ]
0008|[ 25% ] : Install Ratchet PHP library...
0009|[ 29% ] : Install Ratchet PHP library : [  OK  ]
0010|[ 30% ] : Temporary fix of Ratchet PHP library (https://github.com/ratchetphp/RFC6455/pull/65)...
0011|[ 34% ] : Temporary fix of Ratchet PHP library (https://github.com/ratchetphp/RFC6455/pull/65) : [  OK  ]
0012|[ 35% ] : Install JsonPath-PHP library...
0013|[ 39% ] : Install JsonPath-PHP library : [  OK  ]
0014|[ 40% ] : Remove Composer...
0015|[ 49% ] : Remove Composer : [  OK  ]
0016|[ 50% ] : Install python3 venv and pip debian packages...
0017|[ 59% ] : Install python3 venv and pip debian packages : [  OK  ]
0018|[ 60% ] : Create a python3 Virtual Environment...
0019|[ 69% ] : Create a python3 Virtual Environment : [  OK  ]
0020|[ 70% ] : Install required python3 libraries in venv...
0021|[ 89% ] : Install required python3 libraries in venv : [  OK  ]
0022|[ 90% ] : Run post_dependancy_install function...
0023|[ 99% ] : Run post_dependancy_install function : [  OK  ]
0024|[100% ] : Finished !
0025|======================================================================
0026|== OK == Installation Successful
0027|======================================================================

Bonjour à tous,

Je viens de faire la mise à jour et j’ai le même soucis mes dépendances s’installent (voir log) mais l’installation reste en NOK et du coup impossible de relancer le démon.

======================================================================
== 13/06/2022 17:20:39 == Dependencies installation for jMQTT
======================================================================
== Should install Mosquitto: 1
[  5% ] : Synchronize the package index...
[  9% ] : Synchronize the package index : [  OK  ]
[ 10% ] : Install Mosquitto...
[ 19% ] : Install Mosquitto : [  OK  ]
[ 20% ] : Install Composer...
[ 24% ] : Install Composer : [  OK  ]
[ 25% ] : Install Ratchet PHP library...
[ 29% ] : Install Ratchet PHP library : [  OK  ]
[ 30% ] : Temporary fix of Ratchet PHP library (https://github.com/ratchetphp/RFC6455/pull/65)...
[ 34% ] : Temporary fix of Ratchet PHP library (https://github.com/ratchetphp/RFC6455/pull/65) : [  OK  ]
[ 35% ] : Install JsonPath-PHP library...
[ 39% ] : Install JsonPath-PHP library : [  OK  ]
[ 40% ] : Remove Composer...
[ 49% ] : Remove Composer : [  OK  ]
[ 50% ] : Install python3 venv and pip debian packages...
[ 59% ] : Install python3 venv and pip debian packages : [  OK  ]
[ 60% ] : Create a python3 Virtual Environment...
[ 69% ] : Create a python3 Virtual Environment : [  OK  ]
[ 70% ] : Install required python3 libraries in venv...
[ 89% ] : Install required python3 libraries in venv : [  OK  ]
[ 90% ] : Run post_dependancy_install function...
[ 99% ] : Run post_dependancy_install function : [  OK  ]
[100% ] : Finished !
======================================================================
== OK == Installation Successful
======================================================================

Merci de votre aide !!

Hello je regarde tout ça tout de suite !

Lo,

Petite info de passage, debian 11 à jour, jeedom v4 dernière stable à jour,
Mise à jour du plugin JMQTT aujourd’hui (branche stable),
Tout est OK de mon côté,

Au plaisir, bonne soirée,

Hello,

Tu confirmes que tu n’arrives pas à lancer du tout le daemon jMQTT ?

J’imagine que tu as relancé les dépendances ?

De ce que je vois, Composer s’est probablement mal chargé :

Pas de problème avec ton lien internet ?
Tu n’étais pas en train de faire d’autres mises à jour en même temps ?

Mais il y a aussi un verrou qui n’est pas levé sur dpg :

Est ce que tu as fais des modifs sur le système (linux) ou d’autres choses qui tournent sur la machine à part Jeedom ?

Peux-tu faire un apt-get update (pas forcement un upgrade) ?

C’st assez étrange tout ça en même temps.

Bad

Bonsoir,
Si ça peux t’aider les beta sont passées sans problème.
La stable aussi mais j’avais fait une mise à jour de la RPI il y à trois jours.

Merci @Toms et @PanoLyon, c’est quand même rassurant :smiley:
Vous imaginez bien que j’ai fait des tests d’install sur différentes plateformes et en fresh install avant de pousser en stable…

@dmoal, @turriert, @blablatus pouvez-vous me donner une capture de votre page Santé svp ?

Puis essayer de désactiver le plugin jMQTT et le réactiver 1 minute plus tard ?

1 « J'aime »

De rien.
Merci pour ton boulot. :wink:

1 « J'aime »

Je viens de faire le test de désactiver le plugin pendant plus d’1min. Toujours pareil, au moment de la ré activation, l’installation des dépendances se lance et reste KO sur la synthèse du plugin, avec toute la log OK.

Et voici la page de Santé.

Ok merci, tu peux aussi me donner la Santé de Jeedom stp ?

As-tu la possibilité de redémarrer Jeedom si ce n’est pas déjà fait ?

Sinon tu es à l’aise en ligne de commande (ssh) ?
J’aurai des commandes à te faire passer ?

Tu confirmes que tu n’arrives pas à lancer du tout le daemon jMQTT ?

Malgré les erreurs présentes dans la log, le daemon a redémarré normalement et mes équipements jmqtt sont parfaitement fonctionnels :upside_down_face:

Tu n’étais pas en train de faire d’autres mises à jour en même temps ?

Bin non, une simple mise à jour du plugin, rien d’autre.

Est ce que tu as fais des modifs sur le système (linux) ou d’autres choses qui tournent sur la machine à part Jeedom ?

Absolument pas.

Peux-tu faire un apt-get update (pas forcement un upgrade ) ?

C’est ce que j’ai fait, et pas de souci à remonter : la lecture de la liste des paquets s’est déroulée normalement, sans erreur.

J’imagine que tu as relancé les dépendances ?

Oui, je viens de le faire à l’instant et cette fois-ci c’est allé au bout normalement.

Voilà. Bref tout est fonctionnel chez moi.

Ok, tant mieux ! Merci pour les éléments :+1:

Pour en avoir discuté avec un autre dev, il est possible que les dépendances se soient lancées 2 fois simultanément. Ravi que tout soit rentré dans l’ordre.

Laisse encore ouvert le fil de discussion le temps que je regarde les 2 autres pb stp :grin:

Bonjour,

J’ai redémarré, et j’ai toujours le même comportement et les mêmes messages. En complément, j’avais commencé par fait une mise à jour système quand j’ai vu le soucis.

Voici la santé de Jeedom. Et aucun soucis pour moi pour envoyer des commandes en SSH.

Bonjour,

J’ai également un souci. Mise à jour ce matin, installation des dépendances KO alors qu’il y a dans les logs que des OK. Du coup démon qui ne démarre pas.
Je suis en debian 11 - Jeedom 4 à jour stable le tout sous Proxmox.

J’ai tenté le redémarrage sans succès de la machine mais cela n’a rien changé.

Log dépendances :

======================================================================
== 14/06/2022 10:11:43 == Dependencies installation for jMQTT
======================================================================
== Should install Mosquitto: 0
[  5% ] : Synchronize the package index...
[ 19% ] : Synchronize the package index : [  OK  ]
[ 20% ] : Install Composer...
[ 24% ] : Install Composer : [  OK  ]
[ 25% ] : Install Ratchet PHP library...
[ 29% ] : Install Ratchet PHP library : [  OK  ]
[ 30% ] : Temporary fix of Ratchet PHP library (https://github.com/ratchetphp/RFC6455/pull/65)...
[ 34% ] : Temporary fix of Ratchet PHP library (https://github.com/ratchetphp/RFC6455/pull/65) : [  OK  ]
[ 35% ] : Install JsonPath-PHP library...
[ 39% ] : Install JsonPath-PHP library : [  OK  ]
[ 40% ] : Remove Composer...
[ 49% ] : Remove Composer : [  OK  ]
[ 50% ] : Install python3 venv and pip debian packages...
[ 59% ] : Install python3 venv and pip debian packages : [  OK  ]
[ 60% ] : Create a python3 Virtual Environment...
[ 69% ] : Create a python3 Virtual Environment : [  OK  ]
[ 70% ] : Install required python3 libraries in venv...
[ 89% ] : Install required python3 libraries in venv : [  OK  ]
[ 90% ] : Run post_dependancy_install function...
[ 99% ] : Run post_dependancy_install function : [  OK  ]
[100% ] : Finished !
======================================================================
== OK == Installation Successful
======================================================================

Log démon :

[2022-06-14 10:11:27][DEBUG] : install.php: jMQTT_update()
[2022-06-14 10:11:42][INFO] : Forced Dependancies check/install, daemon will start at next retry
[2022-06-14 10:11:42][DEBUG] : dependancy_info : python venv has not yet been created
[2022-06-14 10:11:42][DEBUG] : dependancy_info : python venv has not yet been created
[2022-06-14 10:11:42][INFO] : Installation des dépendances, voir log dédié (jMQTT_dep)
[2022-06-14 10:11:43][DEBUG] : dependancy_info : python venv has not yet been created
[2022-06-14 10:11:44][DEBUG] : dependancy_info : python venv has not yet been created
[2022-06-14 10:11:49][DEBUG] : dependancy_info : python venv has not yet been created
[2022-06-14 10:11:49][DEBUG] : dependancy_info : python venv has not yet been created
[2022-06-14 10:11:55][DEBUG] : dependancy_info : python3 required library is missing in venv
[2022-06-14 10:11:56][DEBUG] : dependancy_info : python3 required library is missing in venv

J’ai désactivé cette portion de code pour que le plugin refonctionne dans plugin-jMQTT/core/class/jMQTT.class.php :

		elseif (exec(dirname(__FILE__) . '/../../resources/jmqttd/venv/bin/pip3 freeze --no-color -r '.dirname(__FILE__) . '/../../resources/python-requirements/requirements.txt 2>&1 >/dev/null | wc -l') > 0) {
			log::add(__CLASS__, 'debug', 'dependancy_info : python3 required library is missing in venv');
			$return['state'] = 'nok';
		}

Hello @Micka41,

Merci pour ces infos, peux-tu stp lancer les commandes (dans le rep de jMQTT) :

resources/jmqttd/venv/bin/pip3 freeze --no-color -r resources/python-requirements/requirements.txt 2>&1 >/dev/null

Et

resources/jmqttd/venv/bin/pip3 freeze --no-color -r resources/python-requirements/requirements.txt

L’idée est de savoir quelle dépendance manque.

Même soucis de dépendances.
Voici le résultat de la commande :

root@raspberry:/var/www/jeedom/plugins/jMQTT# resources/jmqttd/venv/bin/pip3 freeze --no-color -r resources/python-requirements/requirements.txt
paho-mqtt==1.6.1
requests==2.27.1
websocket-client==1.3.2
## The following requirements were added by pip freeze:
certifi==2022.5.18.1
charset-normalizer==2.0.12
idna==3.3
urllib3==1.26.9

Il s’agit de la même commande dont voici le résultat :

paho-mqtt==1.6.1
requests==2.27.1
websocket-client==1.3.2
## The following requirements were added by pip freeze:
certifi==2022.5.18.1
charset-normalizer==2.0.12
idna==3.3
urllib3==1.26.9

Ce que j’ai d’installé :

Package            Version
------------------ -----------
certifi            2022.5.18.1
charset-normalizer 2.0.12
idna               3.3
paho-mqtt          1.6.1
pip                20.3.4
pkg-resources      0.0.0
requests           2.27.1
setuptools         44.1.1
urllib3            1.26.9
websocket-client   1.3.2

Hello, merci pour ce retour.
Sur la première commande il y a 2>&1 >/dev/null à la fin. C’est pour voir ce que la vérification des dépendances croît qu’il manque dans le venv.

J’ai exprès limité les dépendances à ce qui est réellement utilisé, mais visiblement il manque un truc.

La commande avec /dev/null ne renvoie rien