[Pkg-openldap-devel] Bug#419560: Upgrade problems.

Ola Lundqvist ola at opalsys.net
Mon Apr 16 16:13:01 UTC 2007


Package: slapd
Severity: normal
Version: 2.3.30-5

Hi

I know that this is not a very good bugreport as I did the upgrade
yesterday and I write this report from today. However I think it
could be good to know that there are problems while upgrading.

I started with a sarge system and upgraded to etch. I do not know
exactly know which other programs I upgrade at the same time but
I do not think it was that many, as I selectively upgraded a few
and slapd was one of the services in the middle.

This is what I remember:
1) I get information that the new user that slapd will run as is
   openldap.
2) On upgrade it can not start slapd as the user do not exist and
   the upgrade of that package exit.
3) The upgrade continue, and now the user is created it chowns
   a number of files and do convert from old data to the new.
4) But the start of slapd do not work well and the upgrade
   of the package terminates.
5) All other packages are now upgraded but slapd have problem.
6) I try again but slapd have problem and as it aborts
   with problem the upgrade is not working.
7) The problem seem to be that the backup of the old data files
   exist and therefore it aborts. So move away that directory
   and try again. I had fiddled around with the startup parameters
   of slapd at the same time so it can restart properly. I do not
   remember anymore what the reason whas that slapd did not start.
   Non existing ipv6 support maybe, I do not remember.
8) Now the upgrade go though.
9) I reset the parameters to the values I want and now the
   slapd process did not start.
10) I now find out that the ldap data directory contain files with
   root.root permission, and that is the reason why it do not start.
11) I chown all those files and whee I have a working slapd.

So my conclusion is that the upgrade path is not perfect from sarge
to etch.

I think the main problem is that I have to manually remove the
data backup directory. I think it should exit silently and not with
an error.

The first problem is probably because the -g openldap -u openldap is
triggered before the user has been created. I do not really know
how to avoid that.

However you are probably better to determine what the real problem is.

I assume that you can reproduce this way:
* Install sarge version of slapd
* Remove the openldap user and group.
* Upgrade slapd.

Regards,

// Ola

-- 
 --- Ola Lundqvist systemkonsult --- M Sc in IT Engineering ----
/  ola at opalsys.net                   Annebergsslingan 37        \
|  opal at debian.org                   654 65 KARLSTAD            |
|  http://opalsys.net/               Mobile: +46 (0)70-332 1551 |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9  /
 ---------------------------------------------------------------




More information about the Pkg-openldap-devel mailing list