Ubuntu

Upgrade fails with multiple database backends defined

Reported by deadsven on 2009-04-24
4
Affects Status Importance Assigned to Milestone
openldap (Ubuntu)
Low
Unassigned

Bug Description

Dist upgrade from intrepid to jauncy failed. under dist-upgrade did i get several errors on slapd (could not be installed, removed etc)

ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 9.04
ErrorMessage:
 ErrorMessage: subprocess post-installation script returned error exit status 1
Package: slapd 2.4.15-1ubuntu3
SourcePackage: openldap
Title: package slapd 2.4.15-1ubuntu3 failed to install/upgrade:
Uname: Linux 2.6.28-11-generic i686

deadsven (deadsven) wrote :
Andreas Olsson (andol) wrote :

Could you repost the /var/log/dist-upgrade/ contents? It apparently got truncated to 40bytes...

Changed in openldap (Ubuntu):
status: New → Incomplete
deadsven (deadsven) wrote :

added new tar file.

I could fix my openldap installation by purging and re-installing the slapd and ldap-utils packages. Doing this, my database got deleted, but after rebuilding it everything works now as before.

Andreas Olsson (andol) wrote :

Well, if nothing else I believe I've pinpointed the relevant error message

---
 Backing up /etc/ldap/slapd.d/ in /var/backups/slapd-2.4.11-0ubuntu6.2... done.
  Moving old database directories to /var/backups:
  - directory dc=nodomain... done.
  Loading from /var/backups/slapd-2.4.11-0ubuntu6.2:
  - directory dc=nodomain... failed.

Loading the database from the LDIF dump failed with the following
error while running slapadd:
    slapadd: line 29: database (dc=nodomain) not configured to hold "dc=api,dc=no"
    slapadd: line 29: database (dc=nodomain) not configured to hold "dc=api,dc=no"
dpkg: error processing slapd (--configure):
 subprocess post-installation script returned error exit status 1
--

Will have to get back to you on the how and why. Not that familiar with the slapd package. (yet)

Mathias Gug (mathiaz) wrote :

Relevant error message:

Preparing to replace slapd 2.4.11-0ubuntu6.2 (using .../slapd_2.4.15-1ubuntu3_i386.deb) ...

Xlib: extension "RANDR" missing on display ":0.0".

Xlib: extension "RANDR" missing on display ":0.0".

Stopping OpenLDAP: slapd.

Xlib: extension "RANDR" missing on display ":0.0".

Xlib: extension "RANDR" missing on display ":0.0".

  Dumping to /var/backups/slapd-2.4.11-0ubuntu6.2:

  - directory dc=nodomain... done.

  - directory dc=api,dc=no... done.

Unpacking replacement slapd ...

[...]

Installing new version of config file /etc/init.d/slapd ...

Xlib: extension "Generic Event Extension" missing on display ":0.0".

Xlib: extension "RANDR" missing on display ":0.0".

Xlib: extension "Generic Event Extension" missing on display ":0.0".

Xlib: extension "Generic Event Extension" missing on display ":0.0".

Xlib: extension "Generic Event Extension" missing on display ":0.0".

Xlib: extension "Generic Event Extension" missing on display ":0.0".

Xlib: extension "Generic Event Extension" missing on display ":0.0".

Xlib: extension "RANDR" missing on display ":0.0".

Xlib: extension "Generic Event Extension" missing on display ":0.0".

Xlib: extension "Generic Event Extension" missing on display ":0.0".

Xlib: extension "Generic Event Extension" missing on display ":0.0".

Xlib: extension "Generic Event Extension" missing on display ":0.0".

  Backing up /etc/ldap/slapd.d/ in /var/backups/slapd-2.4.11-0ubuntu6.2... done.

  Moving old database directories to /var/backups:

  - directory dc=nodomain... done.

  Loading from /var/backups/slapd-2.4.11-0ubuntu6.2:

  - directory dc=nodomain... failed.

Loading the database from the LDIF dump failed with the following

error while running slapadd:

    slapadd: line 29: database (dc=nodomain) not configured to hold "dc=api,dc=no"

    slapadd: line 29: database (dc=nodomain) not configured to hold "dc=api,dc=no"

Mathias Gug (mathiaz) wrote :

Could you confirm that you had 2 databases defined in your slapd?

Changed in openldap (Ubuntu):
importance: Undecided → Low
Chuck Short (zulcss) wrote :

We'd like to figure out what's causing this bug for you, but we haven't heard back from you in a while. Could you please provide the requested information? Thanks!

deadsven (deadsven) wrote :

I don't use openldap anymore. But if it helps, this is how the slapd was setup originally. This was before intrepid. I just did a fresh installation and added some lines to slapd.conf. This is from our installation notes:

sudo apt-get install slapd ldap-utils
echo -e "\ndatabase hdb\nsuffix \"dc=api,dc=no\"\nrootdn \"cn=Manager,dc=api,dc=no\"\nrootpw password" | sudo tee -a /etc/ldap/slapd.conf
sudo /etc/init.d/slapd restart

I did not remove the preconfigured "nodomain" entry, so I guess i had 2 databases, yes.

With the upgrade to intrepid, the slapd was converted to a new configuration format. But I can't help with further details on the new format.

Mathias Gug (mathiaz) on 2009-11-02
Changed in openldap (Ubuntu):
status: Incomplete → Triaged
summary: - package slapd 2.4.15-1ubuntu3 failed to install/upgrade:
+ Upgrade fails with multiple database backends defined
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers