Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 199795

Summary: net-nds/openldap-2.3.38 slapd fails to start after update from 2.3.35
Product: Gentoo Linux Reporter: Eric Brown <eric.brown>
Component: New packagesAssignee: Gentoo LDAP project <ldap-bugs>
Status: RESOLVED INVALID    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Eric Brown 2007-11-20 16:33:20 UTC
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
Comment 1 Markus Ullmann (RETIRED) gentoo-dev 2007-11-21 08:49:06 UTC
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.