Error creating user from command line

my setup :

Debian 8 Jessie
moulinette: 2.2.1.1
moulinette-yunohost: 2.2.3
yunohost-admin: 2.2.1

When I do “yunohost user create rui” from the moulinette
it seems the first steps do work fine : it ask me for the name, email etc…
then when i finish to confirm the password, i get this python error message :

    Confirm password: 
Traceback (most recent call last):
  File "/usr/bin/yunohost", line 160, in <module>
    print_json=PRINT_JSON, use_cache=USE_CACHE)
  File "/usr/lib/python2.7/dist-packages/moulinette/__init__.py", line 117, in cli
    moulinette.run(args, print_json)
  File "/usr/lib/python2.7/dist-packages/moulinette/interfaces/cli.py", line 202, in run
    ret = self.actionsmap.process(args, timeout=5)
  File "/usr/lib/python2.7/dist-packages/moulinette/actionsmap.py", line 462, in process
    return func(**arguments)
  File "/usr/lib/moulinette/yunohost/user.py", line 192, in user_create
    subprocess.call(['nscd', '-i', 'passwd'])
  File "/usr/lib/python2.7/subprocess.py", line 522, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

When i go back to the admin dashboard, i can see the user got created, but SSO does not work for that user
and it seems the new user does not have access to any existing app or email etc…

When i remove the user from the dashboard, i end up with a “ghost” user named () that I have to delete one more time
to actually see it gone and I have this LDAP error message :

An error occured during LDAP operation

When I create the user from the dashboard, the error is different :

Error: 500 Internal Server Error
Sorry, the requested URL 'http://127.0.0.1:6787/users' caused an error:
Internal Server Error

Any hint on how to proceed to get this working ? it seems now I can’t add any new user.

ps: no problem on other Yunohost instances. on the same hardware/OS

Hi, same problem for me with same version of moulinette…
Except i installed yunohost on raspberry pi B.

I was able to create 2 users without any problem, but impossible to create a third one without this error!

Anyone to help?

Same here on a test server… I will investigate what happened

Hi @scith @pop & @scith @rickmendes !

Have you solved this issue?
I’m facing this problem to…

IMHO, l’erreur vient d’ici:

subprocess.call(['nscd', '-i', 'passwd'])

Si tu lances la commande manuellement, qu’est-ce que ça dit ?

sudo  nscd -i passwd

Ça me rend directement l’invite de commande:

admin@raspberrypi:~$ sudo nscd -i passwd
admin@raspberrypi:~$

C’est vraiment bizarre, je n’avais pas eu ce souci la première fois que j’avais lancé ce serveur…
Tu as une piste?

Tu as bien la même erreur que décrite plus haut ?

Ah non! Pas tout à fait en fait:

Traceback (most recent call last):
File “/usr/bin/yunohost”, line 160, in
print_json=PRINT_JSON, use_cache=USE_CACHE)
File “/usr/lib/python2.7/dist-packages/moulinette/init.py”, line 117, in cli
moulinette.run(args, print_json)
File “/usr/lib/python2.7/dist-packages/moulinette/interfaces/cli.py”, line 202, in run
ret = self.actionsmap.process(args, timeout=5)
File “/usr/lib/python2.7/dist-packages/moulinette/actionsmap.py”, line 462, in process
return func(**arguments)
File “/usr/lib/moulinette/yunohost/user.py”, line 179, in user_create
ssowat_conf = json.loads(str(json_conf.read()))
File “/usr/lib/python2.7/json/init.py”, line 326, in loads
return _default_decoder.decode(s)
File “/usr/lib/python2.7/json/decoder.py”, line 368, in decode
raise ValueError(errmsg(“Extra data”, s, end, len(s)))
ValueError: Extra data: line 7 column 1 - line 12 column 1 (char 75 - 156)

Effectivement je n’avais pas pensé à vérifier les n° de lignes exacts…

Laisse moi deviner, tu as modifier le fichier /etc/ssowat/conf.json.persistent pour installer les certificats let’sencrypt :smile: ?
Tu es le deuxième que je croise dans ce cas .

Quel est le contenu de ton fichier, du coup ?

Oui!!

Du coup j’ai modifié en regardant la réponse que tu avais données sur l’autre topic:
Unable to set default app

Et j’ai modifié en enlevant collant les deux blocs:

{
“redirected_urls”: {},
“unprotected_urls”: [
“mon_domaine.tld/.well-known/acme-challenge”
]
}

au lieu d’avoir juste le bloc pour let’s encrypt à la suite de l’autre.

Merci pour m’avoir permis de régler ce problème ! :slight_smile:

Mais je me suis retrouvé à nouveau bloqué par ça:

Confirm password:
Error: An error occured during LDAP operation

Aurais-tu une idée pour ce problème-là aussi?
:slight_smile:

Juste avec ça, ça risque d’être compliqué, c’est la seule sortie ?

As-tu des erreurs dans ton syslog ?

sudo cat /var/log/syslog | grep slapd

Ouhla, oui, un énorme paquet:

Jan 25 13:04:46 raspberrypi slapd[2555]: conn=1041 fd=23 ACCEPT from IP=127.0.0.1:33156 (IP=127.0.0.1:389)
Jan 25 13:04:46 raspberrypi slapd[2555]: conn=1041 op=0 BIND dn=“” method=128
Jan 25 13:04:46 raspberrypi slapd[2555]: conn=1041 op=0 RESULT tag=97 err=0 text=
Jan 25 13:04:46 raspberrypi slapd[2555]: conn=1041 op=1 SRCH base=“ou=sudo,dc=yunohost,dc=org” scope=2 deref=0 filter=“(cn=defaults)”
Jan 25 13:04:46 raspberrypi slapd[2555]: <= bdb_equality_candidates: (cn) not indexed
Jan 25 13:04:46 raspberrypi slapd[2555]: conn=1041 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
Jan 25 13:04:46 raspberrypi slapd[2555]: conn=1041 op=2 SRCH base=“ou=sudo,dc=yunohost,dc=org” scope=2 deref=0 filter=“(|(sudoUser=admin)(sudoUser=%#1007)(sudoUser=%admins)(sudoUser=%sftpusers)(sudoUser=%#4001)(sudoUser=%#4002)(sudoUser=ALL))”
Jan 25 13:04:46 raspberrypi slapd[2555]: <= bdb_equality_candidates: (sudoUser) not indexed
Jan 25 13:04:46 raspberrypi slapd[2555]: <= bdb_equality_candidates: (sudoUser) not indexed
Jan 25 13:04:46 raspberrypi slapd[2555]: <= bdb_equality_candidates: (sudoUser) not indexed
Jan 25 13:04:46 raspberrypi slapd[2555]: <= bdb_equality_candidates: (sudoUser) not indexed
Jan 25 13:04:46 raspberrypi slapd[2555]: <= bdb_equality_candidates: (sudoUser) not indexed
Jan 25 13:04:46 raspberrypi slapd[2555]: <= bdb_equality_candidates: (sudoUser) not indexed
Jan 25 13:04:46 raspberrypi slapd[2555]: <= bdb_equality_candidates: (sudoUser) not indexed
Jan 25 13:04:46 raspberrypi slapd[2555]: conn=1041 op=2 SEARCH RESULT tag=101 err=0 nentries=1 text=
Jan 25 13:04:46 raspberrypi slapd[2555]: conn=1041 op=3 SRCH base=“ou=sudo,dc=yunohost,dc=org” scope=2 deref=0 filter=“(sudoUser=+*)”
Jan 25 13:04:46 raspberrypi slapd[2555]: <= bdb_substring_candidates: (sudoUser) not indexed
Jan 25 13:04:46 raspberrypi slapd[2555]: conn=1041 op=3 SEARCH RESULT tag=101 err=0 nentries=0 text=
Jan 25 13:04:46 raspberrypi slapd[2555]: conn=1041 op=4 UNBIND
Jan 25 13:04:46 raspberrypi slapd[2555]: conn=1041 fd=23 closed

Et ce ne sont que les derniers, il y en a à nouveau un paquet pour 13:04:21!
Je n’ai aucun idée de comment ça se lit, tout ça…

Je me demandais: est-ce qu’il n’y aurait pas une nécessité de créer le premier utilisateur en local? Ce qui serait gênant, puisque je ne suis plus au même endroit que mon serveur…

Non, pas de problème de ce coté là.

Mais je vois rien d’anormal là dedans tu rentres quoi comme commande ?

Mais je vois rien d’anormal là dedans tu rentres quoi comme commande ?

Bah sudo cat /var/log/syslog | grep slapd, comme tu me l’avais conseillé ^^

Je viens de refaire une tentative avec la moulinette.
Voici la totalité de lignes correspondantes:

Jan 25 13:18:16 raspberrypi slapd[2555]: conn=1005 op=14 SRCH base=“dc=yunohost,dc=org” scope=2 deref=0 filter=“(&(objectClass=posixAccount)(uid=root))”
Jan 25 13:18:16 raspberrypi slapd[2555]: conn=1005 op=14 SRCH attr=uid uidNumber
Jan 25 13:18:16 raspberrypi slapd[2555]: conn=1005 op=14 SEARCH RESULT tag=101 err=0 nentries=0 text=
Jan 25 13:18:16 raspberrypi slapd[2555]: conn=1005 op=15 SRCH base=“dc=yunohost,dc=org” scope=2 deref=0 filter=“(&(objectClass=posixGroup)(memberUid=root))”
Jan 25 13:18:16 raspberrypi slapd[2555]: conn=1005 op=15 SRCH attr=memberUid cn gidNumber member
Jan 25 13:18:16 raspberrypi slapd[2555]: <= bdb_equality_candidates: (memberUid) not indexed
Jan 25 13:18:16 raspberrypi slapd[2555]: conn=1005 op=15 SEARCH RESULT tag=101 err=0 nentries=0 text=
Jan 25 13:18:16 raspberrypi slapd[2555]: conn=1014 op=7 SRCH base=“dc=yunohost,dc=org” scope=2 deref=0 filter=“(&(objectClass=posixAccount)(uid=postfix))”
Jan 25 13:18:16 raspberrypi slapd[2555]: conn=1014 op=7 SRCH attr=uid uidNumber
Jan 25 13:18:16 raspberrypi slapd[2555]: conn=1014 op=7 SEARCH RESULT tag=101 err=0 nentries=0 text=
Jan 25 13:18:16 raspberrypi slapd[2555]: conn=1014 op=8 SRCH base=“dc=yunohost,dc=org” scope=2 deref=0 filter=“(&(objectClass=posixGroup)(memberUid=postfix))”
Jan 25 13:18:16 raspberrypi slapd[2555]: conn=1014 op=8 SRCH attr=memberUid cn gidNumber member
Jan 25 13:18:16 raspberrypi slapd[2555]: <= bdb_equality_candidates: (memberUid) not indexed
Jan 25 13:18:16 raspberrypi slapd[2555]: conn=1014 op=8 SEARCH RESULT tag=101 err=0 nentries=0 text=
Jan 25 13:19:01 raspberrypi slapd[2555]: conn=1008 op=15 SRCH base=“dc=yunohost,dc=org” scope=2 deref=0 filter=“(&(objectClass=posixAccount)(uid=amavis))”
Jan 25 13:19:01 raspberrypi slapd[2555]: conn=1008 op=15 SRCH attr=uid uidNumber
Jan 25 13:19:01 raspberrypi slapd[2555]: conn=1008 op=15 SEARCH RESULT tag=101 err=0 nentries=0 text=
Jan 25 13:19:01 raspberrypi slapd[2555]: conn=1008 op=16 SRCH base=“dc=yunohost,dc=org” scope=2 deref=0 filter=“(&(objectClass=posixGroup)(memberUid=amavis))”
Jan 25 13:19:01 raspberrypi slapd[2555]: conn=1008 op=16 SRCH attr=memberUid cn gidNumber member
Jan 25 13:19:01 raspberrypi slapd[2555]: <= bdb_equality_candidates: (memberUid) not indexed
Jan 25 13:19:01 raspberrypi slapd[2555]: conn=1008 op=16 SEARCH RESULT tag=101 err=0 nentries=0 text=
Jan 25 13:19:13 raspberrypi slapd[2555]: conn=1002 op=16 SRCH base=“dc=yunohost,dc=org” scope=2 deref=0 filter=“(&(objectClass=posixAccount)(uid=admin))”
Jan 25 13:19:13 raspberrypi slapd[2555]: conn=1002 op=16 SRCH attr=uid uidNumber
Jan 25 13:19:13 raspberrypi slapd[2555]: conn=1002 op=16 SEARCH RESULT tag=101 err=0 nentries=1 text=
Jan 25 13:19:13 raspberrypi slapd[2555]: conn=1047 fd=23 ACCEPT from IP=127.0.0.1:33189 (IP=127.0.0.1:389)
Jan 25 13:19:13 raspberrypi slapd[2555]: conn=1047 op=0 BIND dn=“cn=admin,dc=yunohost,dc=org” method=128
Jan 25 13:19:13 raspberrypi slapd[2555]: conn=1047 op=0 BIND dn=“cn=admin,dc=yunohost,dc=org” mech=SIMPLE ssf=0
Jan 25 13:19:13 raspberrypi slapd[2555]: conn=1047 op=0 RESULT tag=97 err=0 text=
Jan 25 13:19:13 raspberrypi slapd[2555]: conn=1047 op=1 SRCH base=“cn=admin,dc=yunohost,dc=org” scope=0 deref=0 filter=“(objectClass=)"
Jan 25 13:19:13 raspberrypi slapd[2555]: conn=1047 op=1 SRCH attr=dn
Jan 25 13:19:13 raspberrypi slapd[2555]: conn=1002 op=17 SRCH base=“dc=yunohost,dc=org” scope=2 deref=0 filter=“(&(objectClass=shadowAccount)(uid=admin))”
Jan 25 13:19:13 raspberrypi slapd[2555]: conn=1002 op=17 SRCH attr=shadowExpire shadowInactive shadowFlag shadowWarning shadowLastChange uid shadowMin shadowMax
Jan 25 13:19:13 raspberrypi slapd[2555]: conn=1002 op=17 SEARCH RESULT tag=101 err=0 nentries=0 text=
Jan 25 13:19:13 raspberrypi slapd[2555]: conn=1047 op=2 ABANDON msg=2
Jan 25 13:19:13 raspberrypi slapd[2555]: conn=1047 op=3 UNBIND
Jan 25 13:19:13 raspberrypi slapd[2555]: conn=1047 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
Jan 25 13:19:13 raspberrypi slapd[2555]: conn=1047 fd=23 closed
Jan 25 13:19:13 raspberrypi slapd[2555]: conn=1000 op=6 SRCH base=“dc=yunohost,dc=org” scope=2 deref=0 filter=“(&(objectClass=posixAccount)(uid=admin))”
Jan 25 13:19:13 raspberrypi slapd[2555]: conn=1000 op=6 SRCH attr=uid uidNumber
Jan 25 13:19:13 raspberrypi slapd[2555]: conn=1000 op=6 SEARCH RESULT tag=101 err=0 nentries=1 text=
Jan 25 13:19:13 raspberrypi slapd[2555]: conn=1000 op=7 SRCH base=“dc=yunohost,dc=org” scope=2 deref=0 filter=“(&(objectClass=shadowAccount)(uid=admin))”
Jan 25 13:19:13 raspberrypi slapd[2555]: conn=1000 op=7 SRCH attr=shadowExpire shadowInactive shadowFlag shadowWarning shadowLastChange uid shadowMin shadowMax
Jan 25 13:19:13 raspberrypi slapd[2555]: conn=1000 op=7 SEARCH RESULT tag=101 err=0 nentries=0 text=
Jan 25 13:19:22 raspberrypi slapd[2555]: conn=1005 op=16 SRCH base=“dc=yunohost,dc=org” scope=2 deref=0 filter=“(&(objectClass=posixGroup)(gidNumber=1007))”
Jan 25 13:19:22 raspberrypi slapd[2555]: conn=1005 op=16 SRCH attr=memberUid cn gidNumber member
Jan 25 13:19:22 raspberrypi slapd[2555]: <= bdb_equality_candidates: (gidNumber) not indexed
Jan 25 13:19:22 raspberrypi slapd[2555]: conn=1005 op=16 SEARCH RESULT tag=101 err=0 nentries=0 text=
Jan 25 13:19:22 raspberrypi slapd[2555]: conn=1048 fd=23 ACCEPT from IP=127.0.0.1:33190 (IP=127.0.0.1:389)
Jan 25 13:19:22 raspberrypi slapd[2555]: conn=1048 op=0 BIND dn=“” method=128
Jan 25 13:19:22 raspberrypi slapd[2555]: conn=1048 op=0 RESULT tag=97 err=0 text=
Jan 25 13:19:22 raspberrypi slapd[2555]: conn=1048 op=1 SRCH base=“ou=sudo,dc=yunohost,dc=org” scope=2 deref=0 filter=“(cn=defaults)”
Jan 25 13:19:22 raspberrypi slapd[2555]: <= bdb_equality_candidates: (cn) not indexed
Jan 25 13:19:22 raspberrypi slapd[2555]: conn=1048 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
Jan 25 13:19:22 raspberrypi slapd[2555]: conn=1048 op=2 SRCH base=“ou=sudo,dc=yunohost,dc=org” scope=2 deref=0 filter=“(|(sudoUser=admin)(sudoUser=%#1007)(sudoUser=%admins)(sudoUser=%sftpusers)(sudoUser=%#4001)(sudoUser=%#4002)(sudoUser=ALL))”
Jan 25 13:19:22 raspberrypi slapd[2555]: <= bdb_equality_candidates: (sudoUser) not indexed
Jan 25 13:19:22 raspberrypi slapd[2555]: <= bdb_equality_candidates: (sudoUser) not indexed
Jan 25 13:19:22 raspberrypi slapd[2555]: <= bdb_equality_candidates: (sudoUser) not indexed
Jan 25 13:19:22 raspberrypi slapd[2555]: <= bdb_equality_candidates: (sudoUser) not indexed
Jan 25 13:19:22 raspberrypi slapd[2555]: <= bdb_equality_candidates: (sudoUser) not indexed
Jan 25 13:19:22 raspberrypi slapd[2555]: <= bdb_equality_candidates: (sudoUser) not indexed
Jan 25 13:19:22 raspberrypi slapd[2555]: <= bdb_equality_candidates: (sudoUser) not indexed
Jan 25 13:19:22 raspberrypi slapd[2555]: conn=1048 op=2 SEARCH RESULT tag=101 err=0 nentries=1 text=
Jan 25 13:19:22 raspberrypi slapd[2555]: conn=1048 op=3 SRCH base=“ou=sudo,dc=yunohost,dc=org” scope=2 deref=0 filter="(sudoUser=+
)”
Jan 25 13:19:22 raspberrypi slapd[2555]: <= bdb_substring_candidates: (sudoUser) not indexed
Jan 25 13:19:22 raspberrypi slapd[2555]: conn=1048 op=3 SEARCH RESULT tag=101 err=0 nentries=0 text=
Jan 25 13:19:22 raspberrypi slapd[2555]: conn=1048 op=4 UNBIND
Jan 25 13:19:22 raspberrypi slapd[2555]: conn=1048 fd=23 closed
Jan 25 13:19:34 raspberrypi slapd[2555]: conn=1049 fd=23 ACCEPT from IP=127.0.0.1:33191 (IP=127.0.0.1:389)
Jan 25 13:19:34 raspberrypi slapd[2555]: conn=1049 op=0 BIND dn=“” method=128
Jan 25 13:19:34 raspberrypi slapd[2555]: conn=1049 op=0 RESULT tag=97 err=0 text=
Jan 25 13:19:34 raspberrypi slapd[2555]: conn=1049 op=1 SRCH base=“ou=sudo,dc=yunohost,dc=org” scope=2 deref=0 filter=“(cn=defaults)”
Jan 25 13:19:34 raspberrypi slapd[2555]: <= bdb_equality_candidates: (cn) not indexed
Jan 25 13:19:34 raspberrypi slapd[2555]: conn=1049 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
Jan 25 13:19:34 raspberrypi slapd[2555]: conn=1049 op=2 SRCH base=“ou=sudo,dc=yunohost,dc=org” scope=2 deref=0 filter=“(|(sudoUser=admin)(sudoUser=%#1007)(sudoUser=%admins)(sudoUser=%sftpusers)(sudoUser=%#4001)(sudoUser=%#4002)(sudoUser=ALL))”
Jan 25 13:19:34 raspberrypi slapd[2555]: <= bdb_equality_candidates: (sudoUser) not indexed
Jan 25 13:19:34 raspberrypi slapd[2555]: <= bdb_equality_candidates: (sudoUser) not indexed
Jan 25 13:19:34 raspberrypi slapd[2555]: <= bdb_equality_candidates: (sudoUser) not indexed
Jan 25 13:19:34 raspberrypi slapd[2555]: <= bdb_equality_candidates: (sudoUser) not indexed
Jan 25 13:19:34 raspberrypi slapd[2555]: <= bdb_equality_candidates: (sudoUser) not indexed
Jan 25 13:19:34 raspberrypi slapd[2555]: <= bdb_equality_candidates: (sudoUser) not indexed
Jan 25 13:19:34 raspberrypi slapd[2555]: <= bdb_equality_candidates: (sudoUser) not indexed
Jan 25 13:19:34 raspberrypi slapd[2555]: conn=1049 op=2 SEARCH RESULT tag=101 err=0 nentries=1 text=
Jan 25 13:19:34 raspberrypi slapd[2555]: conn=1049 op=3 SRCH base=“ou=sudo,dc=yunohost,dc=org” scope=2 deref=0 filter=“(sudoUser=+)"
Jan 25 13:19:34 raspberrypi slapd[2555]: <= bdb_substring_candidates: (sudoUser) not indexed
Jan 25 13:19:34 raspberrypi slapd[2555]: conn=1049 op=3 SEARCH RESULT tag=101 err=0 nentries=0 text=
Jan 25 13:19:34 raspberrypi slapd[2555]: conn=1049 op=4 UNBIND
Jan 25 13:19:34 raspberrypi slapd[2555]: conn=1049 fd=23 closed
Jan 25 13:19:42 raspberrypi slapd[2555]: conn=1050 fd=23 ACCEPT from IP=127.0.0.1:33192 (IP=127.0.0.1:389)
Jan 25 13:19:42 raspberrypi slapd[2555]: conn=1050 op=0 BIND dn=“cn=admin,dc=yunohost,dc=org” method=128
Jan 25 13:19:42 raspberrypi slapd[2555]: conn=1050 op=0 BIND dn=“cn=admin,dc=yunohost,dc=org” mech=SIMPLE ssf=0
Jan 25 13:19:42 raspberrypi slapd[2555]: conn=1050 op=0 RESULT tag=97 err=0 text=
Jan 25 13:19:42 raspberrypi slapd[2555]: conn=1050 op=1 EXT oid=1.3.6.1.4.1.4203.1.11.3
Jan 25 13:19:42 raspberrypi slapd[2555]: conn=1050 op=1 WHOAMI
Jan 25 13:19:42 raspberrypi slapd[2555]: conn=1050 op=1 RESULT oid= err=0 text=
Jan 25 13:20:04 raspberrypi slapd[2555]: conn=1050 op=2 SRCH base=“dc=yunohost,dc=org” scope=2 deref=0 filter=“(mail=admin@medsi.eu)”
Jan 25 13:20:04 raspberrypi slapd[2555]: conn=1050 op=2 SRCH attr=dn
Jan 25 13:20:04 raspberrypi slapd[2555]: <= bdb_equality_candidates: (mail) not indexed
Jan 25 13:20:04 raspberrypi slapd[2555]: conn=1050 op=2 SEARCH RESULT tag=101 err=0 nentries=0 text=
Jan 25 13:20:04 raspberrypi slapd[2555]: conn=1050 op=3 SRCH base=“dc=yunohost,dc=org” scope=2 deref=0 filter=“(uid=admin_medsi)”
Jan 25 13:20:04 raspberrypi slapd[2555]: conn=1050 op=3 SRCH attr=dn
Jan 25 13:20:04 raspberrypi slapd[2555]: conn=1050 op=3 SEARCH RESULT tag=101 err=0 nentries=0 text=
Jan 25 13:20:04 raspberrypi slapd[2555]: conn=1005 op=17 SRCH base=“dc=yunohost,dc=org” scope=2 deref=0 filter=“(&(objectClass=posixAccount)(uid=admin_medsi))”
Jan 25 13:20:04 raspberrypi slapd[2555]: conn=1005 op=17 SRCH attr=loginShell cn gidNumber uidNumber objectClass homeDirectory gecos uid
Jan 25 13:20:04 raspberrypi slapd[2555]: conn=1005 op=17 SEARCH RESULT tag=101 err=0 nentries=0 text=
Jan 25 13:20:04 raspberrypi slapd[2555]: conn=1050 op=4 SRCH base=“ou=domains,dc=yunohost,dc=org” scope=2 deref=0 filter="(virtualdomain=
)”
Jan 25 13:20:04 raspberrypi slapd[2555]: conn=1050 op=4 SRCH attr=virtualdomain
Jan 25 13:20:04 raspberrypi slapd[2555]: conn=1050 op=4 SEARCH RESULT tag=101 err=0 nentries=1 text=
Jan 25 13:20:04 raspberrypi slapd[2555]: conn=1005 op=18 SRCH base=“dc=yunohost,dc=org” scope=2 deref=0 filter=“(&(objectClass=posixAccount)(uidNumber=60279))”
Jan 25 13:20:04 raspberrypi slapd[2555]: conn=1005 op=18 SRCH attr=loginShell cn gidNumber uidNumber objectClass homeDirectory gecos uid
Jan 25 13:20:04 raspberrypi slapd[2555]: <= bdb_equality_candidates: (uidNumber) not indexed
Jan 25 13:20:04 raspberrypi slapd[2555]: conn=1005 op=18 SEARCH RESULT tag=101 err=0 nentries=0 text=
Jan 25 13:20:04 raspberrypi slapd[2555]: conn=1005 op=19 SRCH base=“dc=yunohost,dc=org” scope=2 deref=0 filter=“(&(objectClass=posixGroup)(gidNumber=60279))”
Jan 25 13:20:04 raspberrypi slapd[2555]: conn=1005 op=19 SRCH attr=memberUid cn gidNumber member
Jan 25 13:20:04 raspberrypi slapd[2555]: <= bdb_equality_candidates: (gidNumber) not indexed
Jan 25 13:20:04 raspberrypi slapd[2555]: conn=1005 op=19 SEARCH RESULT tag=101 err=0 nentries=0 text=
Jan 25 13:20:04 raspberrypi slapd[2555]: conn=1050 op=5 SRCH base=“ou=users,dc=yunohost,dc=org” scope=2 deref=0 filter=“(uid=)"
Jan 25 13:20:04 raspberrypi slapd[2555]: conn=1050 op=5 SRCH attr=dn
Jan 25 13:20:04 raspberrypi slapd[2555]: conn=1050 op=5 SEARCH RESULT tag=101 err=0 nentries=0 text=
Jan 25 13:20:04 raspberrypi slapd[2555]: conn=1050 op=6 ADD dn=“uid=admin_medsi,ou=users,dc=yunohost,dc=org”
Jan 25 13:20:04 raspberrypi slapd[2555]: conn=1050 op=6 RESULT tag=105 err=20 text=mail: value #0 provided more than once
Jan 25 13:20:04 raspberrypi slapd[2555]: conn=1050 op=7 UNBIND
Jan 25 13:20:04 raspberrypi slapd[2555]: conn=1050 fd=23 closed
Jan 25 13:20:04 raspberrypi slapd[2555]: connection_read(23): no connection!
Jan 25 13:20:32 raspberrypi slapd[2555]: conn=1051 fd=23 ACCEPT from IP=127.0.0.1:33193 (IP=127.0.0.1:389)
Jan 25 13:20:32 raspberrypi slapd[2555]: conn=1051 op=0 BIND dn=“” method=128
Jan 25 13:20:32 raspberrypi slapd[2555]: conn=1051 op=0 RESULT tag=97 err=0 text=
Jan 25 13:20:32 raspberrypi slapd[2555]: conn=1051 op=1 SRCH base=“ou=sudo,dc=yunohost,dc=org” scope=2 deref=0 filter=“(cn=defaults)”
Jan 25 13:20:32 raspberrypi slapd[2555]: <= bdb_equality_candidates: (cn) not indexed
Jan 25 13:20:32 raspberrypi slapd[2555]: conn=1051 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
Jan 25 13:20:32 raspberrypi slapd[2555]: conn=1051 op=2 SRCH base=“ou=sudo,dc=yunohost,dc=org” scope=2 deref=0 filter=“(|(sudoUser=admin)(sudoUser=%#1007)(sudoUser=%admins)(sudoUser=%sftpusers)(sudoUser=%#4001)(sudoUser=%#4002)(sudoUser=ALL))”
Jan 25 13:20:32 raspberrypi slapd[2555]: <= bdb_equality_candidates: (sudoUser) not indexed
Jan 25 13:20:32 raspberrypi slapd[2555]: <= bdb_equality_candidates: (sudoUser) not indexed
Jan 25 13:20:32 raspberrypi slapd[2555]: <= bdb_equality_candidates: (sudoUser) not indexed
Jan 25 13:20:32 raspberrypi slapd[2555]: <= bdb_equality_candidates: (sudoUser) not indexed
Jan 25 13:20:32 raspberrypi slapd[2555]: <= bdb_equality_candidates: (sudoUser) not indexed
Jan 25 13:20:32 raspberrypi slapd[2555]: <= bdb_equality_candidates: (sudoUser) not indexed
Jan 25 13:20:32 raspberrypi slapd[2555]: <= bdb_equality_candidates: (sudoUser) not indexed
Jan 25 13:20:32 raspberrypi slapd[2555]: conn=1051 op=2 SEARCH RESULT tag=101 err=0 nentries=1 text=
Jan 25 13:20:32 raspberrypi slapd[2555]: conn=1051 op=3 SRCH base=“ou=sudo,dc=yunohost,dc=org” scope=2 deref=0 filter="(sudoUser=+
)”
Jan 25 13:20:32 raspberrypi slapd[2555]: <= bdb_substring_candidates: (sudoUser) not indexed
Jan 25 13:20:32 raspberrypi slapd[2555]: conn=1051 op=3 SEARCH RESULT tag=101 err=0 nentries=0 text=
Jan 25 13:20:32 raspberrypi slapd[2555]: conn=1051 op=4 UNBIND
Jan 25 13:20:32 raspberrypi slapd[2555]: conn=1051 fd=23 closed

non je parlais de la commande pour ajouter un utilisateur…

je parlais de la commande pour ajouter un utilisateur…

Ah!

admin@raspberrypi:~$ sudo yunohost user create admin_medsi

Et j’ai le même message d’erreur (en français, juste) en passant par l’interface d’administration en ligne.

quel est l’email que tu essayes de donner à ton utilisateur ?

admin@mon_domaine.tld

Je viens d’essayer en mettant une autre adresse et ça a marché!!! Ça m’étonne, je croyais pourtant avoir mis admin@mon_domaine.tld la première fois que j’avais lancé ce serveur… Sûrement ma mémoire faiblissant (même si à mon âge ça craint ^^)
Merci beaucoup!
:smiley:

C’est bien le problème: un utilisateur=un email.

De rien, bonne journée