English version
Hi,
After an automatic update of Yunohost to 2.4 (with sudo yunohost tools upgrade
), I can’t access to any of my accounts. So I can’t access my server through ssh, I have to connect in root directly from the computer.
When I try to connect to the admin API, there is
Unable to reach LDAP server
With ldapsearch -LLL -D cn=admin,dc=yunohost,dc=org -W -b dc=yunohost,dc=org uid=<my account>
I have
ldap_sasl_bind(SIMPLE): Can’t contact LDAP server (-1)
And with systemctl status slapd -l
, there is
● slapd.service - LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol)
Loaded: loaded (/etc/init.d/slapd)
Active: failed (Result: exit-code) since sam. 2016-05-21 11:54:07 CEST; 30s ago
Process: 696 ExecStart=/etc/init.d/slapd start (code=exited, status=1/FAILURE)
mai 21 11:54:06 Host-003 slapd[779]: @(#) $OpenLDAP: slapd (Jan 16 2016 23:00:08) $
root@chimera:/tmp/buildd/openldap-2.4.40+dfsg/debian/build/servers/slapd
mai 21 11:54:07 Host-003 slapd[779]: ldif_read_file: Permission denied for “/etc/ldap/slapd.d/cn=config.ldif”
mai 21 11:54:07 Host-003 slapd[779]: DIGEST-MD5 common mech free
mai 21 11:54:07 Host-003 slapd[779]: slapd stopped.
mai 21 11:54:07 Host-003 slapd[779]: connections_destroy: nothing to destroy.
mai 21 11:54:07 Host-003 slapd[696]: Starting OpenLDAP: slapd failed!
mai 21 11:54:07 Host-003 systemd[1]: slapd.service: control process exited, code=exited status=1
mai 21 11:54:07 Host-003 systemd[1]: Failed to start LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol).
mai 21 11:54:07 Host-003 systemd[1]: Unit slapd.service entered failed state.
The command yunohost service regen-conf slapd --verbose
always fail
Traceback (most recent call last):
File “usr/bin/yunohost”, line 206, in
password=opts.password, parser_kwargs={‘top_parser’: parser}
[…]
Key Error: ‘getpwnam(): name not found: admin’
What can I do?
Version française :
Bonjour,
Après une mise à jour automatique de Yunohost vers la version 2.4 (avec sudo yunohost tools upgrade
), je n’ai plus accès à aucun de mes comptes. Je ne peux plus me connecter en ssh et le seul moyen que j’ai est donc de me connecter en root directement sur l’ordinateur.
Quand j’essaie de me connecter à l’interface admin, il y a :
Unable to reach LDAP server
Avec la commande ldapsearch -LLL -D cn=admin,dc=yunohost,dc=org -W -b dc=yunohost,dc=org uid=<mon compte>
j’ai :
ldap_sasl_bind(SIMPLE): Can’t contact LDAP server (-1)
Et la commande systemctl status slapd -l
, me renvoie
● slapd.service - LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol)
Loaded: loaded (/etc/init.d/slapd)
Active: failed (Result: exit-code) since sam. 2016-05-21 11:54:07 CEST; 30s ago
Process: 696 ExecStart=/etc/init.d/slapd start (code=exited, status=1/FAILURE)
mai 21 11:54:06 Host-003 slapd[779]: @(#) $OpenLDAP: slapd (Jan 16 2016 23:00:08) $
root@chimera:/tmp/buildd/openldap-2.4.40+dfsg/debian/build/servers/slapd
mai 21 11:54:07 Host-003 slapd[779]: ldif_read_file: Permission denied for “/etc/ldap/slapd.d/cn=config.ldif”
mai 21 11:54:07 Host-003 slapd[779]: DIGEST-MD5 common mech free
mai 21 11:54:07 Host-003 slapd[779]: slapd stopped.
mai 21 11:54:07 Host-003 slapd[779]: connections_destroy: nothing to destroy.
mai 21 11:54:07 Host-003 slapd[696]: Starting OpenLDAP: slapd failed!
mai 21 11:54:07 Host-003 systemd[1]: slapd.service: control process exited, code=exited status=1
mai 21 11:54:07 Host-003 systemd[1]: Failed to start LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol).
mai 21 11:54:07 Host-003 systemd[1]: Unit slapd.service entered failed state.
La commande yunohost service regen-conf slapd --verbose
échoue à chaque fois
Traceback (most recent call last):
File “usr/bin/yunohost”, line 206, in
password=opts.password, parser_kwargs={‘top_parser’: parser}
[…]
Key Error: ‘getpwnam(): name not found: admin’
Que puis-je faire ?