Mon serveur YunoHost
Matériel: VPS acheté en ligne
Version de YunoHost: x.x.x
J’ai accès à mon serveur : En SSH | Par la webadmin
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non
Description du problème
Pour tenter de contourner ce problème, j’ai voulu désinstaller l’application, puis tenter de restaurer la sauvegarde préalablement à la mise à jour de l’application.
La désinstallation est réalisée en ligne de commande sur le serveur, connecté avec l’utilisateur admin
. La désinstallation semble avoir cassé quelque chose
sudo yunohost app remove shaarli
Info: Removing shaarli...
Info: [++..................] > Loading installation settings...
Info: [##+++...............] > Removing app main directory...
Info: [#####++.............] > Removing NGINX web server configuration...
Info: [#######+++..........] > Removing PHP-FPM configuration...
Info: [##########++........] > Removing logrotate configuration...
Info: [############+++.....] > Removing Fail2Ban configuration...
Info: [###############++...] > Removing the dedicated system user...
Success! shaarli removed
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
Info: The operation 'Remove the 'shaarli' app' could not be completed. Please share the full log of this operation using the command 'yunohost log display 20210212-090626-app_remove-shaarli --share' to get help
Error: This action broke dpkg/APT (the system package managers)... You can try to solve this issue by connecting through SSH and running `sudo apt install --fix-broken` and/or `sudo dpkg --configure -a`.
le log de la désinstallation → https://paste.yunohost.org/raw/ocibagemuw
J’ai tenté les commandes proposées, la seconde renvoie de nouvelles erreurs
/var/www/shaarli/data$ sudo apt install --fix-broken
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
/var/www/shaarli/data$ sudo dpkg --configure -a
dpkg: warning: 'ldconfig' not found in PATH or not executable
dpkg: warning: 'start-stop-daemon' not found in PATH or not executable
dpkg: error: 2 expected programs not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
Effectivement, si je passe en root, son PATH ne contient pas ces quelques répertoires
sudo su
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
root@MA_MACHINE:.# pwd
pwd: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
root@MA_MACHINE:.# echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
En gratouillant un peu, l’exécution de sudo dpkg --configure -a
semble casser quelque chose. J’ai suivi cette petite manipulation qui permet de rétablir la situation, mais dès que j’exécute dpkg, c’est à nouveau cassé.
Any help welcome.