[Résolu] Perte d'accès suite à mise à jour

Bonjour

Je viens de faire une mise à jour de : moulinette ssowat yunohost yunohost-admin, et l’installation du nouveau paquet python-toml (installation requise), et ça s’est mal passé :

    Preparing to unpack .../yunohost_3.6.4_all.deb ...
    Unpacking yunohost (3.6.4) over (3.5.2.2) ...
    Setting up yunohost (3.6.4) ...
    Installing new version of config file /etc/bash_completion.d/yunohost ...
    Regenerating configuration, this might take a while...
    Success! The configuration has been updated for category 'nginx'
    Success! The configuration has been updated for category 'postfix'
    Success! The configuration has been updated for category 'dnsmasq'
    Success! The configuration has been updated for category 'slapd'
    Warning: Job for slapd.service failed because the control process exited with error code.
    Warning: See "systemctl status slapd.service" and "journalctl -xe" for details.
    Error: Script execution failed: /usr/share/yunohost/hooks/conf_regen/06-slapd
    Warning: sudo: ldap_sasl_bind_s(): Can't contact LDAP server
    Warning: sudo: ldap_sasl_bind_s(): Can't contact LDAP server
    Warning: sudo: ldap_sasl_bind_s(): Can't contact LDAP server
    Warning: Exception AttributeError: "'Authenticator' object has no attribute 'con'" in <bound method Authenticator.__del__ of <moulinette.authenticators.ldap.Authenticator object at 0x7ff9f2534c90>> ignored
    Error: Script execution failed: /usr/share/yunohost/hooks/conf_regen/12-metronome
    Warning: sudo: ldap_sasl_bind_s(): Can't contact LDAP server
    Warning: Exception AttributeError: "'Authenticator' object has no attribute 'con'" in <bound method Authenticator.__del__ of <moulinette.authenticators.ldap.Authenticator object at 0x7f243ac72c90>> ignored
    Error: Script execution failed: /usr/share/yunohost/hooks/conf_regen/15-nginx
    Warning: sudo: ldap_sasl_bind_s(): Can't contact LDAP server
    Warning: sudo: ldap_sasl_bind_s(): Can't contact LDAP server
    Warning: sudo: ldap_sasl_bind_s(): Can't contact LDAP server
    Warning: sudo: ldap_sasl_bind_s(): Can't contact LDAP server
    Warning: sudo: ldap_sasl_bind_s(): Can't contact LDAP server
    Warning: sudo: ldap_sasl_bind_s(): Can't contact LDAP server
    Warning: sudo: ldap_sasl_bind_s(): Can't contact LDAP server
    Warning: sudo: ldap_sasl_bind_s(): Can't contact LDAP server
    Warning: sudo: ldap_sasl_bind_s(): Can't contact LDAP server
    Warning: sudo: ldap_sasl_bind_s(): Can't contact LDAP server
    Warning: sudo: ldap_sasl_bind_s(): Can't contact LDAP server
    Warning: Exception AttributeError: "'Authenticator' object has no attribute 'con'" in <bound method Authenticator.__del__ of <moulinette.authenticators.ldap.Authenticator object at 0x7fd457815c90>> ignored
    Error: Script execution failed: /usr/share/yunohost/hooks/conf_regen/31-rspamd
    Warning: sudo: ldap_sasl_bind_s(): Can't contact LDAP server
    Launching migrations..
    Info: Running migration 9 decouple_regenconf_from_services…
    Warning: This migration already happened somehow ? Skipping.
    Success! Successfully ran migration 9 decouple_regenconf_from_services!
    Info: Running migration 10 migrate_to_apps_json…
    Success! The application list yunohost has been removed
    Success! The application list yunohost has been fetched
    Success! Successfully ran migration 10 migrate_to_apps_json!

Je n’ai plus accès au serveur :

admin@xxx.xxx.xxx.xxx's password: 
Authentication failed.

(d’habitude j’ai un accès par clé ssh sans mot de passe, d’ailleurs)

J’ai encore un login actif, mais je ne suis plus reconnu :

sudo: unknown uid 1007: who are you?

Comment je fais, si je n’ai plus accès à sudo ?

Yunohost installé sur VPS
Unpacking yunohost (3.6.4) over (3.5.2.2) …

Help please !

Merci pour vos éventuelles pistes…

Hello,

Peut tu essayer la commande suivante:

systemctl restart slapd
systemctl restart slapd
Could not watch jobs: Operation not permitted
sudo systemctl restart slapd
sudo: unknown uid 1007: who are you?

Si la commande de @Josue ne fonctionne pas, est-ce que tu peux faire tail -n 1000 debug | grep slapd

Uh mais du coup tu es connecté sous quel utilisateur ? Eventuellement tu peux faire su pour devenir root

Dans quel dossier ?

$ su
su: Cannot determine your user name.

Ah oui pardon :

tail -n 1000 /var/log/debug | grep slapd

(depuis n’importe quel dossier du coup - mais il te faudra les droits root)

Droits que je n’ai plus (je suis connecté en “admin”)

Tu peux faire su pour devenir root (en donnant le mot de passe)

Bin non ! (cf ci-dessus)

Marf … Est-ce que tu es sur le reseau local de la machine ? :confused: Si oui, tu devrais pouvoir te connecter directement en root (via SSH).

Non, c’est un VPS, mais je dois pouvoir rebooter en mode failsafe, je vais tenter.
Je suis le seul pour qui la mise à jour a foiré ?

Pour le moment oui :confused:

C’est bon je suis en root

Je n’ai rien avec la commande

tail -n 1000 /var/log/debug | grep slapd

et

systemctl start slapd
Failed to start slapd.service: Unit slapd.service failed to load: No such file or directory.

Peut-être parce que je suis en mode rescue

Peut tu essayer:

sudo -u openldap slapd

Pour voir si slapd démarre

# sudo -u openldap slapd
sudo: unknown user: openldap
sudo: unable to initialize policy plugin

Et su -c slapd openldap

# su -c slapd openldap
No passwd entry for user 'openldap'

Et tout simplement slapd ?