[Pkg-openldap-devel] Bug#603544: Bug#603544: rc bug?
Matthijs Mohlmann
matthijs at cacholong.nl
Wed Jan 12 07:35:35 UTC 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 01/11/2011 08:51 PM, Frederik Himpe wrote:
> On Tue, 2011-01-11 at 20:34 +0100, Matthijs Mohlmann wrote:
>
>> Do you have some more information from that server too ? Configuration ?
>> Because I changed the slapd.conf to use the new schema files, moved the
>> backup out of the way and did the upgrade and all went ok.
>
> $ dpkg -l slapd gosa-schema
> Desired=Unknown/Install/Remove/Purge/Hold
> |
> Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
> |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
> ||/ Name Version Description
> +++-==============-==============-============================================
> ii gosa-schema 2.6.11-2 LDAP schema for GOsa
> iF slapd 2.4.23-6 OpenLDAP server (slapd)
>
> Hmm, I'm getting something different now on this system:
>
> Preparing to replace slapd 2.4.23-6
> (using .../slapd_2.4.23-7_amd64.deb) ...
> Stopping OpenLDAP: slapd.
> Unpacking replacement slapd ...
> Preparing to replace libldap-2.4-2 2.4.23-6
> (using .../libldap-2.4-2_2.4.23-7_amd64.deb) ...
> Unpacking replacement libldap-2.4-2 ...
> Processing triggers for man-db ...
> Setting up libldap-2.4-2 (2.4.23-7) ...
> Setting up ldap-utils (2.4.23-7) ...
> Setting up slapd (2.4.23-7) ...
> Backing up /etc/ldap/slapd.conf in /var/backups/slapd-2.4.11-1
> +lenny2... done.
> Moving old database directories to /var/backups:
> - directory cn=accesslog... done.
> - directory dc=ai,dc=vub,dc=ac,dc=be... done.
> Loading from /var/backups/slapd-2.4.11-1+lenny2:
> - directory cn=accesslog... cp: cannot create regular file
> `/var/lib/ldap/accesslog/': Is a directory
> dpkg: error processing slapd (--configure):
> subprocess installed post-installation script returned error exit
> status 1
>
> And now /var/lib/ldap is totally empty!
>
Backup should be in /var/backups, the scripts always tries to move the
existing content to /var/backups.
You have 2 directories:
- /var/lib/ldap
- /var/lib/ldap/accesslog
The openldap scripts move everything inside a directory defined in the
openldap configuration to a backup directory, hence the removal of
accesslog at that location.
About fixing this:
Change the accesslog directory in the configuration to:
directory /var/lib/ldap-accesslog
Create that directory and rerun the upgrade procedure.
Regards,
Matthijs Möhlmann
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQIcBAEBAgAGBQJNLVnGAAoJEBXBjvSJ+ky+8dEQAIGa/apNFhxV068Mh40aeZfF
qvUPvJGC2YsgupyDud0aIFX8O+VS4VyxAQAYd67qX2UAQS01wC3aqs5BL5efvwem
P37TaJJy50bAlmyxttschUTc+WnnKpGwPc5RwvUSAgp5CoYRBJRKkuigysCgf7s+
M35TGdLYeUW61+AJbMXI8u5wSGQ8zlyXqY73LHE7goPL8eBHrDo3NjsWHzyqT6FB
FHqU3sUowvJuKiyUcwjiDg3JKGts1DseAH/qma4e7SHHmGrsgACw1A3fPbB5+aBH
L5vRfmSpBfZuyRXmMdaLjhcQfOJ3grRYl5E9DHY3y/32rVLyl2BtlB8nzgYPxkmU
F3PH72CKZXnloxwrFiDCzGnCbuf0lF0AejQjhl+BjNwLkRomwz4+IyhkD7MRWlEB
G5TiRPJHF8JRqJCDaStP3fz4Gm5V8un+bH9tw0VUj5MTG4z/pRfoL45hW92F0MHq
f0tiDrpjtOBkPySWJ465L2W7grA40dDr1xzJl+Rfs/JHS4/R3Inv5di3R4tbipyd
LP/dU4NM2YRz6ltc7Z5c0tTwA1dxvPmHZFsRg6uRo/lipudpFwXmAK2fYnqHJnJ8
yH71fwBKYYYIwmv5MRSloQnDr375srZuK+/rPweWiHO9HVWiQAeGtOWMRzTevCHm
81R21v42XfH+LAX6d4vE
=OPDH
-----END PGP SIGNATURE-----
More information about the Pkg-openldap-devel
mailing list