[Pkg-freeipa-devel] Bug#992696: 389-ds: 389-DS no longer starts since bullseye due to libjemalloc.so.2 not found

Adam Reece adam at svencoop.com
Sun Aug 22 13:15:34 BST 2021


Package: 389-ds
Version: 1.4.4.11-2
Severity: grave
Justification: renders package unusable




-- System Information:
Debian Release: 11.0
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-8-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_SOFTLOCKUP
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages 389-ds depends on:
ii  389-ds-base     1.4.4.11-2
ii  cockpit-389-ds  1.4.4.11-2

389-ds recommends no packages.

389-ds suggests no packages.

-- no debconf information

Hello,

Since upgrading from Buster to Bullseye the 389-DS service "dirsrv" no longer starts due to "libjemalloc.so.2" not being found.
(For below, my instance is named "amun".)

>From syslog when invoking `service dirsrv at amun.service`:

> Aug 22 14:04:14 amun systemd[1]: Starting 389 Directory Server amun.service....
> Aug 22 14:04:14 amun ds_systemd_ask_password_acl[12466]: ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/dirsrv/lib/libjemalloc.so.2' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
> Aug 22 14:04:14 amun ds_systemd_ask_password_acl[12468]: ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/dirsrv/lib/libjemalloc.so.2' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
> Aug 22 14:04:14 amun ds_systemd_ask_password_acl[12469]: ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/dirsrv/lib/libjemalloc.so.2' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
> Aug 22 14:04:14 amun ds_systemd_ask_password_acl[12468]: grep: /etc/dirsrv/slapd-amun.service/dse.ldif: No such file or directory
> Aug 22 14:04:14 amun ds_systemd_ask_password_acl[12470]: ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/dirsrv/lib/libjemalloc.so.2' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
> Aug 22 14:04:14 amun ns-slapd[12471]: ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/dirsrv/lib/libjemalloc.so.2' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
> Aug 22 14:04:14 amun ns-slapd[12471]: [22/Aug/2021:14:04:14.763765705 +0200] - INFO - dse_check_file - The config /etc/dirsrv/slapd-amun.service/dse.ldif can not be accessed. Attempting restore ... (reason: 0)
> Aug 22 14:04:14 amun ns-slapd[12471]: [22/Aug/2021:14:04:14.763855927 +0200] - INFO - dse_check_file - The backup /etc/dirsrv/slapd-amun.service/dse.ldif.bak can not be accessed. Check it exists and permissions.
> Aug 22 14:04:14 amun ns-slapd[12471]: [22/Aug/2021:14:04:14.763863191 +0200] - ERR - slapd_bootstrap_config - No valid configurations can be accessed! You must restore /etc/dirsrv/slapd-amun.service/dse.ldif from backup!
> Aug 22 14:04:14 amun ns-slapd[12471]: [22/Aug/2021:14:04:14.763868899 +0200] - EMERG - main - The configuration files in directory /etc/dirsrv/slapd-amun.service could not be read or were not found.  Please refer to the error log or output for more information.
> Aug 22 14:04:14 amun systemd[1]: dirsrv at amun.service.service: Main process exited, code=exited, status=1/FAILURE
> Aug 22 14:04:14 amun systemd[1]: dirsrv at amun.service.service: Failed with result 'exit-code'.
> Aug 22 14:04:14 amun systemd[1]: Failed to start 389 Directory Server amun.service..

I noticed the configuration directory does not end with ".service", it's just "/etc/dirsrv/slapd-amun", so looks like an upgrade has changed the service to look at the wrong location.
Creating a symbolic link to work around that did reduce the quantity of errors, but the "libjemalloc.so.2" library issue is still there:

> Aug 22 14:13:37 amun systemd[1]: Starting 389 Directory Server amun.service....
> Aug 22 14:13:37 amun ds_systemd_ask_password_acl[14025]: ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/dirsrv/lib/libjemalloc.so.2' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
> Aug 22 14:13:37 amun ds_systemd_ask_password_acl[14027]: ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/dirsrv/lib/libjemalloc.so.2' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
> Aug 22 14:13:37 amun ds_systemd_ask_password_acl[14028]: ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/dirsrv/lib/libjemalloc.so.2' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
> Aug 22 14:13:37 amun ds_systemd_ask_password_acl[14029]: ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/dirsrv/lib/libjemalloc.so.2' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
> Aug 22 14:13:37 amun ns-slapd[14030]: ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/dirsrv/lib/libjemalloc.so.2' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
> Aug 22 14:13:38 amun ns-slapd[14030]: [22/Aug/2021:14:13:38.279004946 +0200] - ERR - dse_read_one_file - The entry cn=schema in file /etc/dirsrv/slapd-amun.service/schema/60samba3.ldif (lineno: 1) is invalid, error code 20 (Type or value exists) - object class sambaConfig: The name does not match the OID "1.3.6.1.4.1.7165.1.2.2.10". Another object class is already using the name or OID.
> Aug 22 14:13:38 amun ns-slapd[14030]: [22/Aug/2021:14:13:38.280495362 +0200] - ERR - setup_internal_backends - Please edit the file to correct the reported problems and then restart the server.
> Aug 22 14:13:38 amun systemd[1]: dirsrv at amun.service.service: Main process exited, code=exited, status=1/FAILURE
> Aug 22 14:13:38 amun systemd[1]: dirsrv at amun.service.service: Failed with result 'exit-code'.
> Aug 22 14:13:38 amun systemd[1]: Failed to start 389 Directory Server amun.service..

I've also done `apt install libjemalloc2` to bring this library in, but that didn't resolve this.

Please let me know if any further information is required.

Thanks,
Adam



More information about the Pkg-freeipa-devel mailing list