Problème de restauration sauvegarde / Restore backup issue

English below

Bonjour,

Bon, ça y est, j’ai tout cassé mon Yunohost. Heureusement j’avais des backup “complets” fait via l’interface web.

J’ai tenté de désinstaller/réinstaller yunohost, mais je n’arrive pas à restaurer mon backup :

root@chaton:~# yunohost backup restore 20180523-131823.tar.gz
Erreur : Impossible d’atteindre le serveur LDAP
Exception AttributeError: “‘Authenticator’ object has no attribute ‘con’” in <bound method Authenticator.del of <moulinette.authenticators.ldap.Authenticator object at 0x7f34b697d4d0>> ignored

Apparemment il y a un soucis avec LDAP. Ma Debian 8 est à jour.


Hello,

Well, I completely broke my yunohost. Hopefully, I had some backup, but a can’t restore them :

root@chaton:~# yunohost backup restore 20180523-131823.tar.gz
Erreur : Impossible d’atteindre le serveur LDAP
Exception AttributeError: “‘Authenticator’ object has no attribute ‘con’” in <bound method Authenticator.del of <moulinette.authenticators.ldap.Authenticator object at 0x7f34b697d4d0>> ignored

I already tried to uninstall/reinstall yunohost, but it was unsuccessful.
It seems there is an issue with LDAP. My debian 8 is up to date.

Hm, can you look into systemctl status slapd ?

Hello,

Here it is :

root@chaton:~# systemctl status slapd
● slapd.service - LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol)
Loaded: loaded (/etc/init.d/slapd)
Active: active (exited) since mar. 2018-06-05 17:25:27 CEST; 24min ago

juin 05 17:25:27 chaton.noho.st systemd[1]: Started LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol).
juin 05 17:35:06 chaton.noho.st systemd[1]: Started LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol).

Eeeeet du coup, comment est-ce que tu as installé YunoHost avant ça ? (ouaip je reswitch sur du français :stuck_out_tongue: )

En suivant bêtement le tuto : https://yunohost.org/#/install_manually_fr

Hm ben je sais pas trop du coup :confused:

Naivement, je te dirais de tenter de réinitialiser la postinstallation avec script qui devrait notamment réinitialiser la base LDAP : https://raw.githubusercontent.com/YunoHost/yunoScripts/master/resetPostinstall.sh

Tu peux l’executer en faisant :

wget https://raw.githubusercontent.com/YunoHost/yunoScripts/master/resetPostinstall.sh
bash resetPostinstall.sh

Voilà le résultat après une postinstall échouée (nom de domaine déjà pris)

[…]

config file testing succeeded
Job for nginx.service failed. See ‘systemctl status nginx.service’ and ‘journalctl -xn’ for details.
dpkg: erreur de traitement du paquet yunohost (–configure) :
le sous-processus script post-installation installé a retourné une erreur de sortie d’état 1
dpkg: des problèmes de dépendances empêchent la configuration de yunohost-admin :
yunohost-admin dépend de yunohost (>= 2.7.6) ; cependant :
Le paquet yunohost n’est pas encore configuré.

dpkg: erreur de traitement du paquet yunohost-admin (–configure) :
problèmes de dépendances - laissé non configuré
Traitement des actions différées (« triggers ») pour systemd (215-17+deb8u7) …
Traitement des actions différées (« triggers ») pour libc-bin (2.19-18+deb8u10) …
Des erreurs ont été rencontrées pendant l’exécution :
yunohost
yunohost-admin
E: Sub-process /usr/bin/dpkg returned an error code (1)
/usr/sbin/dpkg-reconfigure: yunohost est cassé ou partiellement installé

Du coup devrais-je demander la suppression de mon nom de domaine ([something].noho.st) pour faire une réinstallation propre pouis restaurer le backup ?

Laissez savoir :smiley: