openldap upgrade fails. chwon of olcDbDirectory, /var/lib/ldap not empty and missing backup of suffix
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openldap (Debian) |
Fix Released
|
Unknown
|
|||
openldap (Ubuntu) |
Fix Released
|
Undecided
|
Ryan Tandy |
Bug Description
Upgrading from Ubuntu 12.04.5 LTS to 14.04.1 LTS (slapd-
First, dump_databases in /var/lib/
grep "olcDbDirectory:" `grep -l "olcSuffix: ...
should have been
grep -h "olcDbDirectory:" `grep -l "olcSuffix: ...
later, get_suffix causes the same suffix to be reported twice, thus causing database load to fail on the second round of the while since /var/lib/ldap is already loaded with the correct files, but is expected to be empty. I fixed it with a '| sort -u' in get_suffix, but i guess it would be better to maybe redo load_databases' while loop to get both suffix and dbdir (since you can have the same suffix stored in more than one location, as I have, and thus first getting the suffix and then doing a grep for the olcDbDirectory in get_directory will cause the same storage to be reported for both instances of the suffix)
Related branches
Changed in openldap (Debian): | |
status: | Unknown → New |
Changed in openldap (Debian): | |
status: | New → Fix Committed |
Changed in openldap (Debian): | |
status: | Fix Committed → Fix Released |
Thanks for the report. At a glance, this appears like a more detailed duplicate of your comment on bug 322944; is that right, or is it a separate bug? Either way, if it's possible for you to provide a copy of your configuration that fails (with sensitive details/passwords removed), or steps to construct such a configuration, that would be really helpful. Thanks!