Hi!

I've recently upgraded one of my systems to 55 from 54 (btw, for me, the
most painful upgrade since ~3.9; I don't know what happened but
everything was against me), and one of the obstacles was the openldap
upgrade. I was using openldap-2.4 with bdb on 5.4 also, so I thought it
would be a clean cut. After trying to start slapd, it barked about the
bdb's consistency:

__db.001: unable to find environment
txn_checkpoint interface requires an environment configured for the transaction 
subsystem
... etc ... (the precise error message would require the restore of the
old db files, but what's important is there)

db4_verify of course told me the same, and db4_recover, or slapcat and
the likes were futile. So I just shrugged and went about to restore my
backups, but even the one week old backup did seem to be corrupt :-/

Long story short, I had to install a 5.4 OpenBSD, pkg_add
openldap-server, copy over the openldap-data directory, slapcat to an
ldif file then slapadd on the server to a clean and fresh openldap data
directory.
The logic is the same as for the rrdtool upgrade, but that is at least
mentioned in the upgrade faq ;-P

So if it seems this is a real upgrade issue for someone else also, and
not a PEBKAC, then I think it would be fair to mention this on
upgrade55.html. I could cook up a diff, if it turns out I was not
hallucinating.


Daniel

-- 
LÉVAI Dániel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F

Reply via email to