Debian 11 - demon ne démarre pas

Bonjour, depuis le passage en debian 11 le demon du plugin emporia pro ne redémarre pas. N’ayant pas le temps de cherche je viens ici poster les logs si quelqu’un a une idée merci pour votre aide.

+ echo '*******************Begin of package installation******************'
*******************Begin of package installation******************
+ touch /tmp/jeedom_install_in_progress_emporiapro
+ echo 1
+ echo 2
+ sudo killall apt apt-get unattended-upgr
apt: no process found
apt-get: no process found
unattended-upgr: no process found
+ sudo rm /var/lib/apt/lists/lock
+ sudo rm /var/cache/apt/archives/lock
+ sudo rm /var/lib/dpkg/lock /var/lib/dpkg/lock-frontend
+ sudo sudo dpkg --configure -a --force-confdef
+ sudo apt update
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:3 https://download.docker.com/linux/debian bullseye InRelease
Hit:4 https://deb.nodesource.com/node_20.x nodistro InRelease
Reading package lists...
Building dependency tree...
Reading state information...
1 package can be upgraded. Run 'apt list --upgradable' to see it.
+ echo 3
+ sudo apt install -o Dpkg::Options::=--force-confdef -y python3
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
python3 is already the newest version (3.9.2-3).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
+ echo 4
+ sudo apt install -o Dpkg::Options::=--force-confdef -y python3-pip
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
python3-pip is already the newest version (20.3.4-4+rpt1+deb11u1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
+ echo 5
++ awk '$1 <= 4'
++ cut -f 2-
++ find /usr/local/lib/python2.7/dist-packages/ /usr/local/lib/python3.9/dist-packages/ -mindepth 1 -maxdepth 1 -type d -exec du -ks '{}' +
+ RESULTTODELETE=
++ echo ''
++ sed 's, ,\ ,g'
+ RESULTTODELETE2=
+ echo ''
+ xargs rm -rf
+ echo 6
+ sudo pip3 cache purge
Files removed: 138
+ echo 7
+ 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 8
+ sudo python3 -m pip install --force-reinstall --upgrade pyudev
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pyudev
Downloading https://www.piwheels.org/simple/pyudev/pyudev-0.24.3-py3-none-any.whl (62 kB)
WARNING: Error parsing dependencies of gpg: Invalid version: '1.14.0-unknown'
Installing collected packages: pyudev
Attempting uninstall: pyudev
Found existing installation: pyudev 0.24.3
Uninstalling pyudev-0.24.3:
Successfully uninstalled pyudev-0.24.3
Successfully installed pyudev-0.24.3
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 9
+ sudo python3 -m pip install --force-reinstall --upgrade pyserial
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pyserial
Downloading https://www.piwheels.org/simple/pyserial/pyserial-3.5-py2.py3-none-any.whl (90 kB)
WARNING: Error parsing dependencies of gpg: Invalid version: '1.14.0-unknown'
Installing collected packages: pyserial
Attempting uninstall: pyserial
Found existing installation: pyserial 3.5
Uninstalling pyserial-3.5:
Successfully uninstalled pyserial-3.5
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, 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 10
+ sudo python3 -m pip install --force-reinstall --upgrade pyemvue
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pyemvue
Downloading https://www.piwheels.org/simple/pyemvue/pyemvue-0.18.6-py3-none-any.whl (17 kB)
Collecting pycognito>=2024.2.0 (from pyemvue)
Downloading https://www.piwheels.org/simple/pycognito/pycognito-2024.5.1-py3-none-any.whl (26 kB)
Collecting python-dateutil>=2.8.2 (from pyemvue)
Downloading https://www.piwheels.org/simple/python-dateutil/python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
Collecting requests>=2.26.0 (from pyemvue)
Downloading https://www.piwheels.org/simple/requests/requests-2.32.3-py3-none-any.whl (64 kB)
Collecting typing-extensions>=4.0.1 (from pyemvue)
Downloading https://www.piwheels.org/simple/typing-extensions/typing_extensions-4.12.2-py3-none-any.whl (37 kB)
Collecting boto3>=1.10.49 (from pycognito>=2024.2.0->pyemvue)
Downloading boto3-1.35.66-py3-none-any.whl.metadata (6.7 kB)
Collecting envs>=1.3 (from pycognito>=2024.2.0->pyemvue)
Downloading https://www.piwheels.org/simple/envs/envs-1.4-py3-none-any.whl (10 kB)
Collecting pyjwt>=2.8.0 (from pyjwt[crypto]>=2.8.0->pycognito>=2024.2.0->pyemvue)
Downloading https://www.piwheels.org/simple/pyjwt/PyJWT-2.10.0-py3-none-any.whl (23 kB)
Collecting six>=1.5 (from python-dateutil>=2.8.2->pyemvue)
Downloading https://www.piwheels.org/simple/six/six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting charset-normalizer<4,>=2 (from requests>=2.26.0->pyemvue)
Downloading https://www.piwheels.org/simple/charset-normalizer/charset_normalizer-3.4.0-py3-none-any.whl (49 kB)
Collecting idna<4,>=2.5 (from requests>=2.26.0->pyemvue)
Downloading https://www.piwheels.org/simple/idna/idna-3.10-py3-none-any.whl (70 kB)
Collecting urllib3<3,>=1.21.1 (from requests>=2.26.0->pyemvue)
Downloading https://www.piwheels.org/simple/urllib3/urllib3-2.2.3-py3-none-any.whl (126 kB)
Collecting certifi>=2017.4.17 (from requests>=2.26.0->pyemvue)
Downloading https://www.piwheels.org/simple/certifi/certifi-2024.8.30-py3-none-any.whl (167 kB)
Collecting botocore<1.36.0,>=1.35.66 (from boto3>=1.10.49->pycognito>=2024.2.0->pyemvue)
Downloading botocore-1.35.66-py3-none-any.whl.metadata (5.7 kB)
Collecting jmespath<2.0.0,>=0.7.1 (from boto3>=1.10.49->pycognito>=2024.2.0->pyemvue)
Downloading https://www.piwheels.org/simple/jmespath/jmespath-1.0.1-py3-none-any.whl (20 kB)
Collecting s3transfer<0.11.0,>=0.10.0 (from boto3>=1.10.49->pycognito>=2024.2.0->pyemvue)
Downloading s3transfer-0.10.4-py3-none-any.whl.metadata (1.7 kB)
Collecting cryptography>=3.4.0 (from pyjwt[crypto]>=2.8.0->pycognito>=2024.2.0->pyemvue)
Downloading https://www.piwheels.org/simple/cryptography/cryptography-43.0.3-cp37-abi3-linux_armv7l.whl (1.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 6.9 MB/s eta 0:00:00
Collecting urllib3<3,>=1.21.1 (from requests>=2.26.0->pyemvue)
Downloading https://www.piwheels.org/simple/urllib3/urllib3-1.26.20-py2.py3-none-any.whl (144 kB)
Collecting cffi>=1.12 (from cryptography>=3.4.0->pyjwt[crypto]>=2.8.0->pycognito>=2024.2.0->pyemvue)
Downloading https://www.piwheels.org/simple/cffi/cffi-1.17.1-cp39-cp39-linux_armv7l.whl (368 kB)
Collecting pycparser (from cffi>=1.12->cryptography>=3.4.0->pyjwt[crypto]>=2.8.0->pycognito>=2024.2.0->pyemvue)
Downloading https://www.piwheels.org/simple/pycparser/pycparser-2.22-py3-none-any.whl (117 kB)
Downloading boto3-1.35.66-py3-none-any.whl (139 kB)
Downloading botocore-1.35.66-py3-none-any.whl (12.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.9/12.9 MB 9.8 MB/s eta 0:00:00
Downloading s3transfer-0.10.4-py3-none-any.whl (83 kB)
WARNING: Error parsing dependencies of gpg: Invalid version: '1.14.0-unknown'
Installing collected packages: urllib3, typing-extensions, six, pyjwt, pycparser, jmespath, idna, envs, charset-normalizer, certifi, requests, python-dateutil, cffi, cryptography, botocore, s3transfer, boto3, pycognito, pyemvue
Attempting uninstall: urllib3
Found existing installation: urllib3 1.26.20
Uninstalling urllib3-1.26.20:
Successfully uninstalled urllib3-1.26.20
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: six
Found existing installation: six 1.16.0
Uninstalling six-1.16.0:
Successfully uninstalled six-1.16.0
Attempting uninstall: pyjwt
Found existing installation: PyJWT 2.10.0
Uninstalling PyJWT-2.10.0:
Successfully uninstalled PyJWT-2.10.0
Attempting uninstall: pycparser
Found existing installation: pycparser 2.22
Uninstalling pycparser-2.22:
Successfully uninstalled pycparser-2.22
Attempting uninstall: jmespath
Found existing installation: jmespath 1.0.1
Uninstalling jmespath-1.0.1:
Successfully uninstalled jmespath-1.0.1
Attempting uninstall: idna
Found existing installation: idna 3.10
Uninstalling idna-3.10:
Successfully uninstalled idna-3.10
Attempting uninstall: envs
Found existing installation: envs 1.4
Uninstalling envs-1.4:
Successfully uninstalled envs-1.4
Attempting uninstall: charset-normalizer
Found existing installation: charset-normalizer 3.4.0
Uninstalling charset-normalizer-3.4.0:
Successfully uninstalled charset-normalizer-3.4.0
Attempting uninstall: certifi
Found existing installation: certifi 2024.8.30
Uninstalling certifi-2024.8.30:
Successfully uninstalled certifi-2024.8.30
Attempting uninstall: requests
Found existing installation: requests 2.32.3
Uninstalling requests-2.32.3:
Successfully uninstalled requests-2.32.3
Attempting uninstall: python-dateutil
Found existing installation: python-dateutil 2.9.0.post0
Uninstalling python-dateutil-2.9.0.post0:
Successfully uninstalled python-dateutil-2.9.0.post0
Attempting uninstall: cffi
Found existing installation: cffi 1.17.1
Uninstalling cffi-1.17.1:
Successfully uninstalled cffi-1.17.1
Attempting uninstall: cryptography
Found existing installation: cryptography 43.0.3
Uninstalling cryptography-43.0.3:
Successfully uninstalled cryptography-43.0.3
Attempting uninstall: botocore
Found existing installation: botocore 1.35.66
Uninstalling botocore-1.35.66:
Successfully uninstalled botocore-1.35.66
Attempting uninstall: s3transfer
Found existing installation: s3transfer 0.10.4
Uninstalling s3transfer-0.10.4:
Successfully uninstalled s3transfer-0.10.4
Attempting uninstall: boto3
Found existing installation: boto3 1.35.66
Uninstalling boto3-1.35.66:
Successfully uninstalled boto3-1.35.66
Attempting uninstall: pycognito
Found existing installation: pycognito 2024.5.1
Uninstalling pycognito-2024.5.1:
Successfully uninstalled pycognito-2024.5.1
Attempting uninstall: pyemvue
Found existing installation: pyemvue 0.18.6
Uninstalling pyemvue-0.18.6:
Successfully uninstalled pyemvue-0.18.6
Successfully installed boto3-1.35.66 botocore-1.35.66 certifi-2024.8.30 cffi-1.17.1 charset-normalizer-3.4.0 cryptography-43.0.3 envs-1.4 idna-3.10 jmespath-1.0.1 pycognito-2024.5.1 pycparser-2.22 pyemvue-0.18.6 pyjwt-2.10.0 python-dateutil-2.9.0.post0 requests-2.32.3 s3transfer-0.10.4 six-1.16.0 typing-extensions-4.12.2 urllib3-1.26.20
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 11
+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end emporiapro
+ echo 12
+ rm /tmp/jeedom_install_in_progress_emporiapro
+ echo '*******************End of package installation******************'
*******************End of package installation******************
[2024-11-20 23:03:14] ERROR  : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
Traceback (most recent call last):
File "/var/www/html/plugins/emporiapro/resources/emporiaprod/emporiaprod.py", line 31, in <module>
from components import emporia
File "/var/www/html/plugins/emporiapro/resources/emporiaprod/components/emporia/__init__.py", line 23, in <module>
from pyemvue import PyEmVue
File "/usr/local/lib/python3.9/dist-packages/pyemvue/__init__.py", line 2, in <module>
from pyemvue.pyemvue import PyEmVue
File "/usr/local/lib/python3.9/dist-packages/pyemvue/pyemvue.py", line 9, in <module>
from pyemvue.auth import Auth, SimulatedAuth
File "/usr/local/lib/python3.9/dist-packages/pyemvue/auth.py", line 4, in <module>
import jwt
File "/usr/local/lib/python3.9/dist-packages/jwt/__init__.py", line 1, in <module>
from .api_jwk import PyJWK, PyJWKSet
File "/usr/local/lib/python3.9/dist-packages/jwt/api_jwk.py", line 7, in <module>
from .algorithms import get_default_algorithms, has_crypto, requires_cryptography
File "/usr/local/lib/python3.9/dist-packages/jwt/algorithms.py", line 11, in <module>
from .utils import (
File "/usr/local/lib/python3.9/dist-packages/jwt/utils.py", line 7, in <module>
from cryptography.hazmat.primitives.asymmetric.ec import EllipticCurve
File "/usr/local/lib/python3.9/dist-packages/cryptography/hazmat/primitives/asymmetric/ec.py", line 11, in <module>
from cryptography.exceptions import UnsupportedAlgorithm, _Reasons
File "/usr/local/lib/python3.9/dist-packages/cryptography/exceptions.py", line 9, in <module>
from cryptography.hazmat.bindings._rust import exceptions as rust_exceptions
ImportError: libssl.so.3: cannot open shared object file: No such file or directory
[2024-11-20 23:03:44] ERROR  : Impossible de démarrer le démon EmporiaPro, vérifiez les logs
[2024-11-20 23:05:04] ERROR  : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
Traceback (most recent call last):
File "/var/www/html/plugins/emporiapro/resources/emporiaprod/emporiaprod.py", line 31, in <module>
from components import emporia
File "/var/www/html/plugins/emporiapro/resources/emporiaprod/components/emporia/__init__.py", line 23, in <module>
from pyemvue import PyEmVue
File "/usr/local/lib/python3.9/dist-packages/pyemvue/__init__.py", line 2, in <module>
from pyemvue.pyemvue import PyEmVue
File "/usr/local/lib/python3.9/dist-packages/pyemvue/pyemvue.py", line 9, in <module>
from pyemvue.auth import Auth, SimulatedAuth
File "/usr/local/lib/python3.9/dist-packages/pyemvue/auth.py", line 4, in <module>
import jwt
File "/usr/local/lib/python3.9/dist-packages/jwt/__init__.py", line 1, in <module>
from .api_jwk import PyJWK, PyJWKSet
File "/usr/local/lib/python3.9/dist-packages/jwt/api_jwk.py", line 7, in <module>
from .algorithms import get_default_algorithms, has_crypto, requires_cryptography
File "/usr/local/lib/python3.9/dist-packages/jwt/algorithms.py", line 11, in <module>
from .utils import (
File "/usr/local/lib/python3.9/dist-packages/jwt/utils.py", line 7, in <module>
from cryptography.hazmat.primitives.asymmetric.ec import EllipticCurve
File "/usr/local/lib/python3.9/dist-packages/cryptography/hazmat/primitives/asymmetric/ec.py", line 11, in <module>
from cryptography.exceptions import UnsupportedAlgorithm, _Reasons
File "/usr/local/lib/python3.9/dist-packages/cryptography/exceptions.py", line 9, in <module>
from cryptography.hazmat.bindings._rust import exceptions as rust_exceptions
ImportError: libssl.so.3: cannot open shared object file: No such file or directory
[2024-11-20 23:05:34] ERROR  : Impossible de démarrer le démon EmporiaPro, vérifiez les logs

Bonsoir.

Votre Debian 11 il est bien en 64 bits ?

Voici ma page santé :

Dalut

Ne serait-ce pas un plugin qui utilise python 2 ?

Antoine

Bonjour,

Exécutez cette commande en ssh

sudo python3 -m pip install cryptography~≈42.0.0

Et dites-nous si le démon démarre

Ps: notes pour d’autres qui seraient tentés, il faut vérifier votre page santé et le log d’installation avant afin de vérifier les versions actuelles avant.

Salut MIPS,

merci pour ton aide à nouveau.
Voici le résultat :

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: cryptography==42.0.0 in /usr/local/lib/python3.9/dist-packages (42.0.0)
Requirement already satisfied: cffi>=1.12 in /usr/local/lib/python3.9/dist-packages (from cryptography==42.0.0) (1.17.1)
Requirement already satisfied: pycparser in /usr/local/lib/python3.9/dist-packages (from cffi>=1.12->cryptography==42.0.0) (2.22)
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.

Vous avez fait autre chose entre les deux car le message précédent c’était le version 43 qui était installée et à présent il est indiqué que la version 42 est déjà installée.
Ou alors vous avez exécuté la commande deux fois et c’est le log de la deuxième.

Bref, avec ça le démon démarre ou pas?
On peut voir le nouveau log du démon?

Oui effectivement j’ai lancé la commande deux fois.

Le demon est ok mais j’avais cette nouvelle erreur :

[2024-11-22 20:39:46] ERROR  : Could not authenticate with Emporia API (err= get_customer_details() takes 1 positional argument but 2 were given)`Texte préformaté`

En cherchant sur le forum, je suis passer à la version beta. Mon soucis est réglé emporia est à nouveau opérationnel.

Merci pour ton support.

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