Hardware: computer YunoHost version: 11.1.20 (stable) I have access to my server : Through SSH | through the webadmin | direct access via keyboard / screen Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : yes, I did stuff to pip that I think now I shouldn’t have done.
Description of my issue
When I try to update my system, I have error messages for every apps installed :
The log is exactly the same for every app (only the displayed version changes)
Found existing installation: packaging 23.1
Uninstalling packaging-23.1:
Would remove:
/usr/local/lib/python3.9/dist-packages/packaging-23.1.dist-info/*
/usr/local/lib/python3.9/dist-packages/packaging/*
Proceed (Y/n)? Y
Successfully uninstalled packaging-23.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
But same error after that when trying to upgrade apps (I was able to update php)
It is not happy now : sudo journalctl -u yunohost-api
juin 09 16:15:59 myserver.fr systemd[1]: Stopping YunoHost API Server...
juin 09 16:15:59 myserver.fr systemd[1]: yunohost-api.service: Succeeded.
juin 09 16:15:59 myserver.fr systemd[1]: Stopped YunoHost API Server.
juin 09 16:15:59 myserver.fr systemd[1]: yunohost-api.service: Consumed 11min 16.225s CPU time.
juin 09 16:15:59 myserver.fr systemd[1]: Started YunoHost API Server.
juin 09 16:16:06 myserver.fr yunohost-api[337531]: Traceback (most recent call last):
juin 09 16:16:06 myserver.fr yunohost-api[337531]: File "/usr/local/lib/python3.9/dist-packages/bottle.py", line 876, in _handle
juin 09 16:16:06 myserver.fr yunohost-api[337531]: return route.call(**args)
juin 09 16:16:06 myserver.fr yunohost-api[337531]: File "/usr/local/lib/python3.9/dist-packages/bottle.py", line 1759, in wrapper
juin 09 16:16:06 myserver.fr yunohost-api[337531]: rv = callback(*a, **ka)
juin 09 16:16:06 myserver.fr yunohost-api[337531]: File "/usr/lib/python3/dist-packages/moulinette/interfaces/api.py", line 63, in wrapper
juin 09 16:16:06 myserver.fr yunohost-api[337531]: return callback(*args, **kwargs)
juin 09 16:16:06 myserver.fr yunohost-api[337531]: File "/usr/lib/python3/dist-packages/moulinette/interfaces/api.py", line 736, in wrapper
juin 09 16:16:06 myserver.fr yunohost-api[337531]: return callback(*args, **kwargs)
juin 09 16:16:06 myserver.fr yunohost-api[337531]: File "/usr/lib/python3/dist-packages/moulinette/interfaces/api.py", line 748, in wrapper
juin 09 16:16:06 myserver.fr yunohost-api[337531]: return callback(*args, **kwargs)
juin 09 16:16:06 myserver.fr yunohost-api[337531]: File "/usr/lib/python3/dist-packages/moulinette/interfaces/api.py", line 412, in messages
juin 09 16:16:06 myserver.fr yunohost-api[337531]: s_id = authenticator.get_session_cookie()["id"]
juin 09 16:16:06 myserver.fr yunohost-api[337531]: File "/usr/lib/python3/dist-packages/yunohost/authenticators/ldap_admin.py", line 162, in get_session_cookie
juin 09 16:16:06 myserver.fr yunohost-api[337531]: raise YunohostAuthenticationError("unable_authenticate")
juin 09 16:16:06 myserver.fr yunohost-api[337531]: yunohost.utils.error.YunohostAuthenticationError: Unable to authenticate
juin 09 16:16:09 myserver.fr yunohost-api[337531]: Traceback (most recent call last):
juin 09 16:16:09 myserver.fr yunohost-api[337531]: File "/usr/lib/python3/dist-packages/moulinette/actionsmap.py", line 545, in process
juin 09 16:16:09 myserver.fr yunohost-api[337531]: mod = __import__(
juin 09 16:16:09 myserver.fr yunohost-api[337531]: File "/usr/lib/python3/dist-packages/yunohost/tools.py", line 24, in <module>
juin 09 16:16:09 myserver.fr yunohost-api[337531]: from packaging import version
juin 09 16:16:09 myserver.fr yunohost-api[337531]: ModuleNotFoundError: No module named 'packaging'
juin 09 16:16:09 myserver.fr yunohost-api[337531]: Traceback (most recent call last):
juin 09 16:16:09 myserver.fr yunohost-api[337531]: File "/usr/lib/python3/dist-packages/moulinette/actionsmap.py", line 545, in process
juin 09 16:16:09 myserver.fr yunohost-api[337531]: mod = __import__(
juin 09 16:16:09 myserver.fr yunohost-api[337531]: File "/usr/lib/python3/dist-packages/yunohost/tools.py", line 24, in <module>
juin 09 16:16:09 myserver.fr yunohost-api[337531]: from packaging import version
juin 09 16:16:09 myserver.fr yunohost-api[337531]: ModuleNotFoundError: No module named 'packaging'
juin 09 16:16:15 myserver.fr yunohost-api[337531]: Traceback (most recent call last):
juin 09 16:16:15 myserver.fr yunohost-api[337531]: File "/usr/lib/python3/dist-packages/moulinette/actionsmap.py", line 545, in process
juin 09 16:16:15 myserver.fr yunohost-api[337531]: mod = __import__(
juin 09 16:16:15 myserver.fr yunohost-api[337531]: File "/usr/lib/python3/dist-packages/yunohost/tools.py", line 24, in <module>
juin 09 16:16:15 myserver.fr yunohost-api[337531]: from packaging import version
juin 09 16:16:15 myserver.fr yunohost-api[337531]: ModuleNotFoundError: No module named 'packaging'