Error ldap Size limit exceeded

Salut,
depuis hier je n’ai plus accès a la gestion des utilisateurs

$ yunohost user list
Error: error during LDAP search operation with: base='ou=users,dc=yunohost,dc=org', filter='(&(objectclass=person)(!(uid=root))(!(uid=nobody)))', attrs=['uid', 'cn', 'mail', 'mailuserquota', 'loginShell'] and exception {'desc': 'Size limit exceeded'}

c’est l’instance pour mon école d’art avec ~500 users Ynh pour 300 utilisateurs

est-ce que vous auriez une idée?

$ yunohost tools versions
yunohost: 
  repo: stable
  version: 3.8.5.9
yunohost-admin: 
  repo: stable
  version: 3.8.3.5
moulinette: 
  repo: stable
  version: 3.8.1.3
ssowat: 
  repo: stable
  version: 3.8.0.3

[edit]
bon j’ai tenté une update du système mais slapd coince, d’ailleurs le service ne veut plus démarrer :frowning:

$ apt install --fix-broken
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  ldap-utils
Suggested packages:
  libsasl2-modules-gssapi-mit | libsasl2-modules-gssapi-heimdal
Recommended packages:
  libsasl2-modules
The following packages will be upgraded:
  ldap-utils
1 upgraded, 0 newly installed, 0 to remove and 48 not upgraded.
1 not fully installed or removed.
Need to get 0 B/192 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] 
Setting up slapd (2.4.44+dfsg-5+deb9u5) ...
  Backing up /etc/ldap/slapd.d in /var/backups/slapd-2.4.44+dfsg-5+deb9u4... done.
Job for slapd.service failed because the control process exited with error code.
See "systemctl status slapd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript slapd, action "start" failed.
● slapd.service - LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol)
   Loaded: loaded (/etc/init.d/slapd; generated; vendor preset: enabled)
  Drop-In: /etc/systemd/system/slapd.service.d
           └─ynh-override.conf
   Active: activating (auto-restart) (Result: exit-code) since Tue 2020-11-17 09:37:48 CET; 11ms ago
     Docs: man:systemd-sysv-generator(8)
  Process: 19242 ExecStart=/etc/init.d/slapd start (code=exited, status=1/FAILURE)
   CGroup: /system.slice/slapd.service
           └─26180 /usr/sbin/slapd -h ldap://127.0.0.1:389/ ldaps:/// ldapi:/// -g openldap -u openldap -F /etc/ldap/slapd.d

Nov 17 09:37:48 esadhar.net systemd[1]: Failed to start LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol).
Nov 17 09:37:48 esadhar.net systemd[1]: slapd.service: Unit entered failed state.
Nov 17 09:37:48 esadhar.net systemd[1]: slapd.service: Failed with result 'exit-code'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package slapd (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 slapd
E: Sub-process /usr/bin/dpkg returned an error code (1)

pas grand chose dans le journal

[...]
66.5.16
Nov 17 05:10:00 esadhar.net slapd[26180]: slap_global_control: unrecognized control: 1.3.6.1.4.1.4203.666.5.16
Nov 17 05:10:00 esadhar.net slapd[26180]: slap_global_control: unrecognized control: 1.3.6.1.4.1.4203.666.5.16
Nov 17 05:10:00 esadhar.net slapd[26180]: slap_global_control: unrecognized control: 1.3.6.1.4.1.4203.666.5.16
Nov 17 05:12:41 esadhar.net slapd[26180]: slap_global_control: unrecognized control: 1.3.6.1.4.1.4203.666.5.16
Nov 17 05:12:41 esadhar.net slapd[26180]: slap_global_control: unrecognized control: 1.3.6.1.4.1.4203.666.5.16
Nov 17 05:12:41 esadhar.net slapd[26180]: slap_global_control: unrecognized control: 1.3.6.1.4.1.4203.666.5.16
Nov 17 05:12:41 esadhar.net slapd[26180]: slap_global_control: unrecognized control: 1.3.6.1.4.1.4203.666.5.16
Nov 17 05:12:41 esadhar.net slapd[26180]: slap_global_control: unrecognized control: 1.3.6.1.4.1.4203.666.5.16
Nov 17 05:12:41 esadhar.net slapd[26180]: slap_global_control: unrecognized control: 1.3.6.1.4.1.4203.666.5.16
Nov 17 05:12:41 esadhar.net slapd[26180]: slap_global_control: unrecognized control: 1.3.6.1.4.1.4203.666.5.16
[...]
$ journalctl -u slapd
Nov 17 09:39:43 esadhar.net systemd[1]: Failed to start LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol).
Nov 17 09:39:43 esadhar.net systemd[1]: slapd.service: Unit entered failed state.
Nov 17 09:39:43 esadhar.net systemd[1]: slapd.service: Failed with result 'exit-code'.
Nov 17 09:39:46 esadhar.net systemd[1]: slapd.service: Service hold-off time over, scheduling restart.
Nov 17 09:39:46 esadhar.net systemd[1]: Stopped LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol).
Nov 17 09:39:46 esadhar.net systemd[1]: Starting LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol)...
Nov 17 09:39:46 esadhar.net slapd[20657]: Starting OpenLDAP: slapd failed!
Nov 17 09:39:46 esadhar.net systemd[1]: slapd.service: Control process exited, code=exited status=1
[...]

résolu
daemon: bind(8) failed errno=98 (Address already in use)
j’ai killé un process openldap qui “traînait” va savoir pourquoi
du coup le service est reparti
j’ai pu upgrader le syteme

pour le limt size exceed j’ai edité /usr/share/yunohost/templates/slapd/slapd.conf
en mettant

# The maximum number of entries that is returned for a search operation
sizelimit 10000

puis yunohost tools regen-conf slapd --force

et voila

1 Like

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