[Pkg-openldap-devel] Bug#491148: [Fwd: Bug#491148: Acknowledgement (upgrade fails, /etc/default/slapd is the solution)]

Louis van Belle louis at van-belle.nl
Fri Jul 18 06:31:10 UTC 2008


as requested, more info.
This is reproducable over and over again. ( with my config )

during the upgrade the upgrade script needs to stop the slapd server.
This fails, the upgrade script does not stop slapd correctie with my config.
This is why i reported this bug. the happens with the config used.
if this happens, i have 2 options. 1 stop slapd myself and do apt-get
upgrade again, or enter the info in /etc/default/slapd.

as i say you can reproduce this over and over again.
this is the part you of dpkg.log
2008-07-17 09:32:19 upgrade slapd 2.4.9-1 2.4.10-2
2008-07-17 09:32:19 status half-configured slapd 2.4.9-1
2008-07-17 09:32:20 status unpacked slapd 2.4.9-1
2008-07-17 09:32:20 status half-installed slapd 2.4.9-1
2008-07-17 09:32:21 status half-installed slapd 2.4.9-1
2008-07-17 09:32:21 status half-installed slapd 2.4.9-1
2008-07-17 09:32:21 status unpacked slapd 2.4.10-2
2008-07-17 09:32:21 status unpacked slapd 2.4.10-2
2008-07-17 09:32:34 configure slapd 2.4.10-2 2.4.10-2
2008-07-17 09:32:34 status unpacked slapd 2.4.10-2
2008-07-17 09:32:34 status unpacked slapd 2.4.10-2
2008-07-17 09:32:34 status unpacked slapd 2.4.10-2
2008-07-17 09:32:34 status unpacked slapd 2.4.10-2
2008-07-17 09:32:35 status unpacked slapd 2.4.10-2
2008-07-17 09:32:35 status unpacked slapd 2.4.10-2
2008-07-17 09:32:35 status unpacked slapd 2.4.10-2
2008-07-17 09:32:35 status unpacked slapd 2.4.10-2
2008-07-17 09:32:35 status unpacked slapd 2.4.10-2
2008-07-17 09:32:35 status unpacked slapd 2.4.10-2
2008-07-17 09:32:35 status unpacked slapd 2.4.10-2
2008-07-17 09:32:35 status unpacked slapd 2.4.10-2
2008-07-17 09:32:35 status unpacked slapd 2.4.10-2
2008-07-17 09:32:35 status unpacked slapd 2.4.10-2
2008-07-17 09:32:35 status unpacked slapd 2.4.10-2
2008-07-17 09:32:35 status unpacked slapd 2.4.10-2
2008-07-17 09:32:35 status unpacked slapd 2.4.10-2
2008-07-17 09:32:35 status unpacked slapd 2.4.10-2
2008-07-17 09:32:36 status unpacked slapd 2.4.10-2
2008-07-17 09:32:36 status unpacked slapd 2.4.10-2
2008-07-17 09:32:36 status unpacked slapd 2.4.10-2
2008-07-17 09:32:36 status unpacked slapd 2.4.10-2
2008-07-17 09:32:36 status half-configured slapd 2.4.10-2
2008-07-17 09:33:21 configure slapd 2.4.10-2 2.4.10-2
2008-07-17 09:33:21 status half-configured slapd 2.4.10-2
2008-07-17 09:35:21 configure slapd 2.4.10-2 2.4.10-2
2008-07-17 09:35:21 status half-configured slapd 2.4.10-2
2008-07-17 09:35:24 status installed slapd 2.4.10-2

Log started: 2008-07-11  10:37:45
Selecting previously deselected package slapd.
(Reading database ... 46670 files and directories currently installed.)
Unpacking slapd (from .../slapd_2.4.9-1_amd64.deb) ...
Processing triggers for man-db ...
Setting up slapd (2.4.9-1) ...

Configuration file `/etc/init.d/slapd'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : background this process to examine the situation
 The default action is to keep your current version.
*** slapd (Y/I/N/O/D/Z) [default=N] ? I
Installing new version of config file /etc/init.d/slapd ...

Configuration file `/etc/default/slapd'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : background this process to examine the situation
 The default action is to keep your current version.
*** slapd (Y/I/N/O/D/Z) [default=N] ?

Configuration file `/etc/ldap/schema/cosine.schema'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : background this process to examine the situation
 The default action is to keep your current version.
*** cosine.schema (Y/I/N/O/D/Z) [default=N] ? I
Installing new version of config file /etc/ldap/schema/cosine.schema ...

Configuration file `/etc/ldap/schema/nis.schema'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : background this process to examine the situation
 The default action is to keep your current version.
*** nis.schema (Y/I/N/O/D/Z) [default=N] ? I
Installing new version of config file /etc/ldap/schema/nis.schema ...

Configuration file `/etc/ldap/schema/inetorgperson.schema'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : background this process to examine the situation
 The default action is to keep your current version.
*** inetorgperson.schema (Y/I/N/O/D/Z) [default=N] ? I
Installing new version of config file
/etc/ldap/schema/inetorgperson.schema ...

Configuration file `/etc/ldap/schema/ppolicy.schema'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : background this process to examine the situation
 The default action is to keep your current version.
*** ppolicy.schema (Y/I/N/O/D/Z) [default=N] ? I
Installing new version of config file /etc/ldap/schema/ppolicy.schema ...

Configuration file `/etc/ldap/schema/openldap.ldif'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : background this process to examine the situation
 The default action is to keep your current version.
*** openldap.ldif (Y/I/N/O/D/Z) [default=N] ? I
Installing new version of config file /etc/ldap/schema/openldap.ldif ...

Configuration file `/etc/ldap/schema/README'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : background this process to examine the situation
 The default action is to keep your current version.
*** README (Y/I/N/O/D/Z) [default=N] ? I
Installing new version of config file /etc/ldap/schema/README ...

Configuration file `/etc/ldap/schema/java.schema'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : background this process to examine the situation
 The default action is to keep your current version.
*** java.schema (Y/I/N/O/D/Z) [default=N] ? I
Installing new version of config file /etc/ldap/schema/java.schema ...

Configuration file `/etc/ldap/schema/core.ldif'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : background this process to examine the situation
 The default action is to keep your current version.
*** core.ldif (Y/I/N/O/D/Z) [default=N] ? I
Installing new version of config file /etc/ldap/schema/core.ldif ...

Configuration file `/etc/ldap/schema/corba.schema'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : background this process to examine the situation
 The default action is to keep your current version.
*** corba.schema (Y/I/N/O/D/Z) [default=N] ? I
Installing new version of config file /etc/ldap/schema/corba.schema ...

Configuration file `/etc/ldap/schema/misc.schema'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : background this process to examine the situation
 The default action is to keep your current version.
*** misc.schema (Y/I/N/O/D/Z) [default=N] ? I
Installing new version of config file /etc/ldap/schema/misc.schema ...

Configuration file `/etc/ldap/schema/dyngroup.schema'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : background this process to examine the situation
 The default action is to keep your current version.
*** dyngroup.schema (Y/I/N/O/D/Z) [default=N] ? I
Installing new version of config file /etc/ldap/schema/dyngroup.schema ...

Configuration file `/etc/ldap/schema/openldap.schema'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : background this process to examine the situation
 The default action is to keep your current version.
*** openldap.schema (Y/I/N/O/D/Z) [default=N] ? I
Installing new version of config file /etc/ldap/schema/openldap.schema ...

Configuration file `/etc/ldap/schema/core.schema'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : background this process to examine the situation
 The default action is to keep your current version.
*** core.schema (Y/I/N/O/D/Z) [default=N] ? I
Installing new version of config file /etc/ldap/schema/core.schema ...
  Moving old database directory to /var/backups:
  - directory unknown... done.
  Creating initial slapd configuration... done.
  Creating initial LDAP directory... 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 -h 'ldap:/// ldaps:/// ldapi:///' -g openldap -u openldap -4
invoke-rc.d: initscript slapd, action "start" failed.
dpkg: error processing slapd (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 slapd
Log ended: 2008-07-11  10:38:15

You see now log ended, upgraded stopped.
now i stopped slapd by myself.
and dit upgrade again.
Log started: 2008-07-11  10:38:39
(Reading database ... 46850 files and directories currently installed.)
Removing slapd ...
Stopping OpenLDAP: slapd.
Purging configuration files for slapd ...
Removing slapd configuration... done
dpkg - warning: while removing slapd, directory `/usr/lib/ldap' not empty
so not removed.
dpkg - warning: while removing slapd, directory `/usr/share/slapd' not
empty so not removed.
Processing triggers for man-db ...
Log ended: 2008-07-11  10:38:43

and upgrade finished.


Louis






More information about the Pkg-openldap-devel mailing list