crash slapd after update
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openldap (Ubuntu) |
Expired
|
Medium
|
Unassigned |
Bug Description
hi,
after update slapd to version 2.4.42+
perform: slaptest -f /etc/ldap/
5ebeb45f hdb_db_open: database "dc=myBase": db_open(
5ebeb45f backend_startup_one (type=hdb, suffix=
slap_startup failed (test would succeed using the -u switch)
journalctl -xe
-- Unit slapd.service has finished starting up.
--
-- The start-up result is done.
May 15 18:25:33 srv sshd[3917]: Connection closed by IP port PORT1 [preauth]
May 15 18:26:32 srv sshd[3919]: Connection closed by IP port PORT2 [preauth]
May 15 18:27:21 srv systemd[1]: Starting Daily apt download activities...
-- Subject: Unit apt-daily.service has begun start-up
-- Defined-By: systemd
-- Support: http://
--
-- Unit apt-daily.service has begun starting up.
May 15 18:27:23 srv systemd[1]: Started Daily apt download activities.
-- Subject: Unit apt-daily.service has finished start-up
-- Defined-By: systemd
-- Support: http://
--
-- Unit apt-daily.service has finished starting up.
--
-- The start-up result is done.
May 15 18:27:32 srv sshd[3987]: Connection closed by IP port PORT3 [preauth]
May 15 18:28:04 srv systemd[1]: Stopping LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol)...
-- Subject: Unit slapd.service has begun shutting down
-- Defined-By: systemd
-- Support: http://
--
-- Unit slapd.service has begun shutting down.
May 15 18:28:04 srv slapd[4020]: * Stopping OpenLDAP slapd
May 15 18:28:14 srv slapd[4020]: ...fail!
May 15 18:28:14 svr systemd[1]: slapd.service: Control process exited, code=exited status=1
May 15 18:28:14 srv systemd[1]: Stopped LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol).
-- Subject: Unit slapd.service has finished shutting down
-- Defined-By: systemd
-- Support: http://
--
-- Unit slapd.service has finished shutting down.
May 15 18:28:14 srv systemd[1]: slapd.service: Unit entered failed state.
May 15 18:28:14 srv systemd[1]: slapd.service: Failed with result 'exit-code'.
May 15 18:28:14 srv systemd[1]: Starting LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol)...
-- Subject: Unit slapd.service has begun start-up
-- Defined-By: systemd
-- Support: http://
--
-- Unit slapd.service has begun starting up.
May 15 18:28:15 srv slapd[4029]: * Starting OpenLDAP slapd
May 15 18:28:15 srv slapd[4029]: ...done.
May 15 18:28:15 srv systemd[1]: Started LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol).
-- Subject: Unit slapd.service has finished start-up
-- Defined-By: systemd
-- Support: http://
--
-- Unit slapd.service has finished starting up.
--
-- The start-up result is done.
OS: Ubuntu 16.04.6 LTS
help, please!
It says that your ldap database cannot be opened... There is a debconf option that says:
"Do you want the database to be removed when slapd is purged?"
I wonder if you had that enabled before the upgrade.
During slapd upgrade, it asks to create a backup of /var/lib/slapd:
(c)rafaeldtinoc o@focal: /var/lib/ ldap$ sudo dpkg-reconfigure -p low slapd slapd-2. 4.49+dfsg- 2ubuntu1. 2... done.
Backing up /etc/ldap/slapd.d in /var/backups/
Moving old database directory to /var/backups:
- directory unknown... done.
Creating initial configuration... done.
Creating LDAP directory... done.
Do you have anything under /var/backups/* named '*slapd*' ?