package slapd failed to install

Bug #227267 reported by Sven Zeisberg
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openldap2.3 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I have a problem installing slapd-2.4.7-6ubuntu3 on hardy heron 8.04 LTS Server (amd64):

aptitude reinstall slapd
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut
Reading state information... Fertig
Reading extended state information
Initializing package states... Fertig
Building tag database... Fertig
The following packages will be REINSTALLED:
  slapd
0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Fertig
Richte slapd ein (2.4.7-6ubuntu3) ...
  Backing up /etc/ldap/slapd.conf in /var/backups/slapd-2.4.7-6ubuntu3... done.
/var/lib/dpkg/info/slapd.postinst: 1234: cannot open /etc/ldap/schema/core.schema: No such file
/var/lib/dpkg/info/slapd.postinst: 1234: cannot open /etc/ldap/schema/cosine.schema: No such file
/var/lib/dpkg/info/slapd.postinst: 1234: cannot open /etc/ldap/schema/nis.schema: No such file
/var/lib/dpkg/info/slapd.postinst: 1234: cannot open /etc/ldap/schema/inetorgperson.schema: No such file
Reloading AppArmor profiles : done.
Starting OpenLDAP: slapd - failed.
The operation failed but no output was produced. For hints on what went
wrong please refer to the system's logfiles (e.g. /var/log/syslog) or
try running the daemon in Debug mode like via "slapd -d 16383" (warning:
this will create copious output).

Below, you can find the command line options used by this script to
run slapd. Do not forget to specify those options if you
want to look to debugging output:
  slapd -g openldap -u openldap -f /etc/ldap/slapd.conf
invoke-rc.d: initscript slapd, action "start" failed.
dpkg: Fehler beim Bearbeiten von slapd (--configure):
 Unterprozess post-installation script gab den Fehlerwert 1 zurück
Fehler traten auf beim Bearbeiten von:
 slapd
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Richte slapd ein (2.4.7-6ubuntu3) ...
  Backing up /etc/ldap/slapd.conf in /var/backups/slapd-2.4.7-6ubuntu3... done.
/var/lib/dpkg/info/slapd.postinst: 1234: cannot open /etc/ldap/schema/core.schema: No such file
/var/lib/dpkg/info/slapd.postinst: 1234: cannot open /etc/ldap/schema/cosine.schema: No such file
/var/lib/dpkg/info/slapd.postinst: 1234: cannot open /etc/ldap/schema/nis.schema: No such file
/var/lib/dpkg/info/slapd.postinst: 1234: cannot open /etc/ldap/schema/inetorgperson.schema: No such file
Reloading AppArmor profiles : done.
Starting OpenLDAP: slapd - failed.
The operation failed but no output was produced. For hints on what went
wrong please refer to the system's logfiles (e.g. /var/log/syslog) or
try running the daemon in Debug mode like via "slapd -d 16383" (warning:
this will create copious output).

Below, you can find the command line options used by this script to
run slapd. Do not forget to specify those options if you
want to look to debugging output:
  slapd -g openldap -u openldap -f /etc/ldap/slapd.conf
invoke-rc.d: initscript slapd, action "start" failed.
dpkg: Fehler beim Bearbeiten von slapd (--configure):
 Unterprozess post-installation script gab den Fehlerwert 1 zurück
Fehler traten auf beim Bearbeiten von:
 slapd
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut
Reading state information... Fertig
Reading extended state information
Initializing package states... Fertig
Building tag database... Fertig

the directory /etc/ldap/schema is actually empty ... is the package corrupted??

Rgds,
Sven

Revision history for this message
Mathias Gug (mathiaz) wrote : Re: [Bug 227267] [NEW] package slapd failed to install

Hi,

On Tue, May 06, 2008 at 11:40:59AM -0000, Sven Zeisberg wrote:
> I have a problem installing slapd-2.4.7-6ubuntu3 on hardy heron 8.04 LTS
> Server (amd64):
>
> aptitude reinstall slapd

Why are you trying to reinstall ?

  status incomplete

--
Mathias Gug
Ubuntu Developer http://www.ubuntu.com

Changed in openldap2.3:
status: New → Incomplete
Revision history for this message
Sven Zeisberg (sven-zeisberg) wrote :

I've tried to install a kolab server from the ubuntu repositories. the "kolab_bootstrap -b" script broke at the point of starting the ldap server. after some googeling for a hint on this, I decided to set up the ldap first without kolab ... that's why "reinstall"

Revision history for this message
Mathias Gug (mathiaz) wrote : Re: [Bug 227267] Re: package slapd failed to install

On Tue, May 06, 2008 at 09:08:25PM -0000, Sven Zeisberg wrote:
> I've tried to install a kolab server from the ubuntu repositories. the
> "kolab_bootstrap -b" script broke at the point of starting the ldap
> server. after some googeling for a hint on this, I decided to set up the
> ldap first without kolab ... that's why "reinstall"

Could you try to purge the slapd package before installing ?

--
Mathias Gug
Ubuntu Developer http://www.ubuntu.com

Revision history for this message
Sven Zeisberg (sven-zeisberg) wrote :

I'll rather reinstall the whole server since more problems pile up due to my bewitched kolab trials... I still have the old server running and have so far just been testing the installation on the new one. exim and postfix packages somehow got installed in parallel and aptitude can't remove (nor purge) either of them now ... seems all messed up.
kolab is about to release 2.2 where they (finally) move to more modern components. I'm very much looking forward to that, but currently, kolab and hardy seem to have a rather unfriendly relationship...

BUT: thank you for your help anyway!

Revision history for this message
Mathias Gug (mathiaz) wrote :

On Wed, May 07, 2008 at 04:46:55AM -0000, Sven Zeisberg wrote:
> I'll rather reinstall the whole server since more problems pile up due to my bewitched kolab trials... I still have the old server running and have so far just been testing the installation on the new one. exim and postfix packages somehow got installed in parallel and aptitude can't remove (nor purge) either of them now ... seems all messed up.

Marking the bug invalid. Seems that the kolab install script messes up
the whole system. Reopen if you can reproduce the issue.

 status invalid
--
Mathias Gug
Ubuntu Developer http://www.ubuntu.com

Changed in openldap2.3:
status: Incomplete → Invalid
Revision history for this message
dynamisdenarii (hector-tuxtems) wrote :

I had a similar problem, and I found out that it was due to a type mistake in the /etc/ldap/sldap.conf

I removed my mistake and Rock&Roll

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.