slapd fails to start after an update: Nov 20 11:28:33 localhost slapd[2166]: @(#) $OpenLDAP: slapd 2.3.38 (Oct 20 2007 00:33:50) $ root@localhost:/var/tmp/portage/net-nds/openldap-2.3.38/work/openldap-2.3.38/servers/slapd Nov 20 11:28:33 localhost slapd[2166]: SQL engine 'mysql' not supported Nov 20 11:28:33 localhost slapd[2166]: auxpropfunc error no mechanism available Nov 20 11:28:33 localhost slapd[2166]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: sql Nov 20 11:28:33 localhost slapd[2166]: auxpropfunc error invalid parameter supplied Nov 20 11:28:33 localhost slapd[2166]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: ldapdb Nov 20 11:28:33 localhost slapd[2167]: bdb(dc=foo,dc=bar): Program version 4.5 doesn't match environment version 0.143 Nov 20 11:28:33 localhost slapd[2167]: bdb_db_open: Database cannot be opened, err -30972. Restore from backup! Nov 20 11:28:33 localhost slapd[2167]: bdb(dc=foo,dc=bar): DB_ENV->lock_id_free interface requires an environment configured for the locking subsystem Nov 20 11:28:33 localhost slapd[2167]: bdb(dc=foo,dc=bar): txn_checkpoint interface requires an environment configured for the transaction subsystem Nov 20 11:28:33 localhost slapd[2167]: bdb_db_close: txn_checkpoint failed: Invalid argument (22) Nov 20 11:28:33 localhost slapd[2167]: backend_startup_one: bi_db_open failed! (-30972) Nov 20 11:28:33 localhost slapd[2167]: bdb_db_close: alock_close failed Nov 20 11:28:33 localhost slapd[2167]: slapd stopped. Nov 20 11:28:33 localhost slapd[2167]: connections_destroy: nothing to destroy Reproducible: Always
Hi Eric, there are two problems here. 1) your SASL setup is broken 2) you linked to a newer berkeleydb Fixing SASL is beyond this bug, exporting and importing with berkeley tools should work though, there was recently a post on openldap users mailinglist about that.