Impossible to create new user with « yunohost create »

Hello everybody,

My YunoHost server

Hardware: VPS on ProxMox
YunoHost version: 3.6.4.6
I have access to my server : Through SSH and through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : yes
If yes, please explain: I changed olcSizeLimit to 1000 because I have 700 users

dn: cn=config
objectClass: olcGlobal
cn: config
olcConfigFile: /etc/ldap/slapd.conf
olcConfigDir: /etc/ldap/slapd.d/
olcArgsFile: /var/run/slapd/slapd.args
olcAttributeOptions: lang-
olcAuthzPolicy: none
olcConcurrency: 0
olcConnMaxPending: 100
olcConnMaxPendingAuth: 1000
olcGentleHUP: FALSE
olcIdleTimeout: 0
olcIndexSubstrIfMaxLen: 4
olcIndexSubstrIfMinLen: 2
olcIndexSubstrAnyLen: 4
olcIndexSubstrAnyStep: 2
olcIndexIntLen: 4
olcListenerThreads: 1
olcLocalSSF: 71
olcLogLevel: 256
olcPidFile: /var/run/slapd/slapd.pid
olcReadOnly: FALSE
olcReverseLookup: FALSE
olcSaslSecProps: noplain,noanonymous
olcSizeLimit: 1000
olcSockbufMaxIncoming: 262143
olcSockbufMaxIncomingAuth: 16777215
olcThreads: 16
olcTLSVerifyClient: never
olcTLSProtocolMin: 0.0
olcToolThreads: 1
olcWriteTimeout: 0
structuralObjectClass: olcGlobal
entryUUID: f68d7d32-37f6-1039-9b98-f790c0d3d639
creatorsName: cn=config
createTimestamp: 20190711071218Z
entryCSN: 20190711071218.545679Z#000000#000#000000
modifiersName: cn=config
modifyTimestamp: 20190711071218Z

Description of my issue

Yunohost instance works well, every user can login but I can not create new users. Command “yunohost create” seems to use bad scope. Previous users were created with a mass creation script. https://github.com/ObaniGemini/YunoHost-accounts_generation

Nov 19 11:32:51 techno-sully slapd[20470]: conn=1058 fd=19 ACCEPT from PATH=/var/run/slapd/ldapi (PATH=/var/run/slapd/ldapi)
Nov 19 11:32:51 techno-sully slapd[20470]: conn=1058 op=0 BIND dn="" method=163
Nov 19 11:32:51 techno-sully slapd[20470]: conn=1058 op=0 BIND authcid="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" authzid="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth"
Nov 19 11:32:51 techno-sully slapd[20470]: conn=1058 op=0 BIND dn="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" mech=EXTERNAL sasl_ssf=0 ssf=71
Nov 19 11:32:51 techno-sully slapd[20470]: conn=1058 op=0 RESULT tag=97 err=0 text=
Nov 19 11:32:51 techno-sully slapd[20470]: conn=1058 op=1 SRCH base="cn=admin,dc=yunohost,dc=org" scope=2 deref=0 filter="(objectClass=*)"
Nov 19 11:32:51 techno-sully slapd[20470]: conn=1058 op=1 SRCH attr=userPassword
Nov 19 11:32:51 techno-sully slapd[20470]: conn=1058 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
Nov 19 11:32:51 techno-sully slapd[20470]: conn=1058 op=2 SRCH base="dc=yunohost,dc=org" scope=2 deref=0 filter="(mail=tpierre@techno-sully.ac-versailles.fr)"
Nov 19 11:32:51 techno-sully slapd[20470]: conn=1058 op=2 SRCH attr=dn
Nov 19 11:32:51 techno-sully slapd[20470]: <= mdb_equality_candidates: (mail) not indexed
Nov 19 11:32:51 techno-sully slapd[20470]: conn=1058 op=2 SEARCH RESULT tag=101 err=0 nentries=0 text=
Nov 19 11:32:51 techno-sully slapd[20470]: conn=1058 op=3 SRCH base="dc=yunohost,dc=org" scope=2 deref=0 filter="(uid=tpierre)"
Nov 19 11:32:51 techno-sully slapd[20470]: conn=1058 op=3 SRCH attr=dn
Nov 19 11:32:51 techno-sully slapd[20470]: conn=1058 op=3 SEARCH RESULT tag=101 err=0 nentries=0 text=
Nov 19 11:32:51 techno-sully slapd[20470]: conn=1002 op=7 SRCH base="dc=yunohost,dc=org" scope=2 deref=0 filter="(objectClass=posixAccount)"
Nov 19 11:32:51 techno-sully slapd[20470]: conn=1002 op=7 SRCH attr=uidNumber cn gecos uid objectClass homeDirectory gidNumber loginShell
Nov 19 11:32:51 techno-sully slapd[20470]: conn=1002 op=7 SEARCH RESULT tag=101 err=0 nentries=707 text=
Nov 19 11:32:51 techno-sully slapd[20470]: conn=1058 op=4 SRCH base="ou=domains,dc=yunohost,dc=org" scope=2 deref=0 filter="(virtualdomain=*)"
Nov 19 11:32:51 techno-sully slapd[20470]: conn=1058 op=4 SRCH attr=virtualdomain
Nov 19 11:32:51 techno-sully slapd[20470]: conn=1058 op=4 SEARCH RESULT tag=101 err=0 nentries=2 text=
Nov 19 11:32:51 techno-sully slapd[20470]: conn=1001 op=4 SRCH base="dc=yunohost,dc=org" scope=2 deref=0 filter="(objectClass=posixAccount)"
Nov 19 11:32:51 techno-sully slapd[20470]: conn=1001 op=4 SRCH attr=uidNumber cn gecos uid objectClass homeDirectory gidNumber loginShell
Nov 19 11:32:51 techno-sully slapd[20470]: conn=1001 op=4 SEARCH RESULT tag=101 err=0 nentries=707 text=
Nov 19 11:32:51 techno-sully slapd[20470]: conn=1002 op=8 SRCH base="dc=yunohost,dc=org" scope=2 deref=0 filter="(objectClass=posixAccount)"
Nov 19 11:32:51 techno-sully slapd[20470]: conn=1002 op=8 SRCH attr=uidNumber cn gecos uid objectClass homeDirectory gidNumber loginShell
Nov 19 11:32:51 techno-sully slapd[20470]: conn=1002 op=8 SEARCH RESULT tag=101 err=0 nentries=707 text=
Nov 19 11:32:51 techno-sully slapd[20470]: conn=1058 op=5 SRCH base="ou=users,dc=yunohost,dc=org" scope=2 deref=0 filter="(uid=*)"
Nov 19 11:32:51 techno-sully slapd[20470]: conn=1058 op=5 SRCH attr=dn
Nov 19 11:32:51 techno-sully slapd[20470]: conn=1058 op=5 SEARCH RESULT tag=101 err=0 nentries=706 text=
Nov 19 11:32:51 techno-sully slapd[20470]: conn=1058 op=6 ADD dn="uid=tpierre,ou=users,dc=yunohost,dc=org"
Nov 19 11:32:51 techno-sully slapd[20470]: conn=1058 op=6 RESULT tag=105 err=50 text=no write access to parent
Nov 19 11:32:51 techno-sully slapd[20470]: conn=1058 op=7 UNBIND
Nov 19 11:32:51 techno-sully slapd[20470]: conn=1058 fd=19 closed

Thanks for help

But what happens exactly when you run yunohost user create … Is there any particular message making you say it’s not working …

Hello Aleks,

Here is the error

Info: The operation 'Add 'tpierre' user' has failed! To get help, please share the full log of this operation using the command 'yunohost log display 20191119-103251-user_create-tpierre --share'
Error: An error occurred during LDAP operation

The raw paste, but there is no interesting information :
https://paste.yunohost.org/raw/egibuwomay

I changed the debug level to have some logs…

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.