[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: openLDAP not starting on redhat 8



Dieter Kluenter wrote:
Peter Traub <peter@vindicia.com> writes:
[root@ws01 ldap]# /usr/local/libexec/slapd -d 256
daemon: socket() failed errno=97 (Address family not supported by protocol)
bdb_initialize: Sleepycat Software: Berkeley DB 4.2.52: (December  3, 2003)
bdb_db_init: Initializing BDB database
bdb(dc=vindicia,dc=com): Program version 4.2 doesn't match environment
version
bdb_db_open: dbenv_open failed: Invalid argument (22)
backend_startup: bi_db_open(0) failed! (22)
bdb(dc=vindicia,dc=com): txn_checkpoint interface requires an
environment configured for the transaction subsystem
bdb_db_destroy: txn_checkpoint failed: Invalid argument (22)
slapd stopped.
connections_destroy: nothing to destroy.

[...]
The symlink libdb.so ist pointing to an older libdb version and not
to libdb-4.2.so

No, the log clearly shows that the software version is 4.2, so taht is not the problem.


The error message says that the "Program version 4.2 doesn't match environment version" - this means the environment files (such as the ones carrying the cache, locks, etc.) don't match the software version. Most likely some library feature that was present on the system that created the BDB environment is missing on the target system.

Possibly running db_recover to destroy and recreate the environment will work. Or running db_upgrade to reset the environment version. But in general, copying the raw BDB files between heterogeneous platforms is not supported, and it's no surprise that this didn't work.
--
-- Howard Chu
Chief Architect, Symas Corp. Director, Highland Sun
http://www.symas.com http://highlandsun.com/hyc
Symas: Premier OpenSource Development and Support