crash slapd after update

Bug #1878945 reported by John
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openldap (Ubuntu)
Expired
Medium
Unassigned

Bug Description

hi,
after update slapd to version 2.4.42+dfsg-2ubuntu3.8 I get not working ldap auth service;

perform: slaptest -f /etc/ldap/slapd.conf -F /etc/ldap/slapd.d/ and get:

5ebeb45f hdb_db_open: database "dc=myBase": db_open(/var/lib/ldap/id2entry.bdb) failed: No such file or directory (2).
5ebeb45f backend_startup_one (type=hdb, suffix="dc=myBase"): bi_db_open failed! (2)
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://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- 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://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- 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://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- 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://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- 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://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- 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://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit slapd.service has finished starting up.
--
-- The start-up result is done.

OS: Ubuntu 16.04.6 LTS

help, please!

John (john047)
description: updated
Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

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)rafaeldtinoco@focal:/var/lib/ldap$ sudo dpkg-reconfigure -p low slapd
  Backing up /etc/ldap/slapd.d in /var/backups/slapd-2.4.49+dfsg-2ubuntu1.2... done.
  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*' ?

Changed in openldap (Ubuntu):
status: New → Triaged
Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

Okay, so next step here is to understand if there is any margin for the upgrade execution path to have removed slapd database, just to make sure it is good (that is why I'm not marking this as incomplete).

Changed in openldap (Ubuntu):
importance: Undecided → Medium
Revision history for this message
John (john047) wrote :

debconf option was not enable before the upgrade...

under /var/backups/*
slapd-2.4.42+dfsg-2ubuntu3.1
slapd-2.4.42+dfsg-2ubuntu3.2
slapd-2.4.42+dfsg-2ubuntu3.6
unknown-2.4.42+dfsg-2ubuntu3.8.ldapdb

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Sorry about the delay in replying to this bug.

From the bug description, it seems to me that this issue happened while using Ubuntu Xenial (16.04); is that correct? I know it has been a while, but can you still reproduce the issue? If yes, are you able to describe the steps necessary to trigger this failure?

Ubuntu Xenial has reached the end of standard support, but I would like to determine whether this is still affecting you and if you are able to reproduce this using a newer version of Ubuntu (Bionic or Focal).

I'm marking this bug as Incomplete for now; please move it back to New once you have replied to this comment and provided more details.

Thanks.

Changed in openldap (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for openldap (Ubuntu) because there has been no activity for 60 days.]

Changed in openldap (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.