F17->F18: upgrade OpenLDAP database?

Brian Millett bmillett at gmail.com
Fri Mar 15 16:15:23 UTC 2013


On Fri, 15 Mar 2013 11:35:02 -0400
Braden McDaniel <braden at endoframe.com> wrote:

> After upgrading from F17 to F18, I get this message when trying to  
> start slapd:
> 
> Mar 15 11:24:13 knock.endoframe.net slapd[8210]: hdb_db_open: database  
> "dc=endoframe,dc=net" cannot be opened, err -30969. Restore from backup!
> Mar 15 11:24:13 knock.endoframe.net slapd[8210]:  
> bdb(dc=endoframe,dc=net): BDB1566 txn_checkpoint interface requires an  
> environment configured for the transaction subsystem
> Mar 15 11:24:13 knock.endoframe.net slapd[8210]: bdb_db_close:  
> database "dc=endoframe,dc=net": txn_checkpoint failed: Invalid  
> argument (22).
> Mar 15 11:24:13 knock.endoframe.net slapd[8210]: backend_startup_one  
> (type=hdb, suffix="dc=endoframe,dc=net"): bi_db_open failed! (-30969)
> Mar 15 11:24:13 knock.endoframe.net slapd[8210]: bdb_db_close:  
> database "dc=endoframe,dc=net": alock_close failed
> Mar 15 11:24:13 knock.endoframe.net slapd[8210]: slapd stopped.
> Mar 15 11:24:13 knock.endoframe.net systemd[1]: slapd.service: control  
> process exited, code=exited status=1
> Mar 15 11:24:13 knock.endoframe.net systemd[1]: Failed to start  
> OpenLDAP Server Daemon.
> 
> 
> Can the database be upgraded? I tried this in /var/lib/ldap:
> 
> # db_upgrade cn.bdb
> db_upgrade: BDB1538 Program version 5.3 doesn't match environment version 5.2
> db_upgrade: DB_ENV->open: BDB0091 DB_VERSION_MISMATCH: Database  
> environment version mismatch
> 
> 

what you want to do is to 'recover' the db, so in /var/lib/ldap, do 

db_recover

then make sure that all files are owned ldap:ldap

-- 
Brian Millett
"Part of a dream is better than none."
   -- [ Harriman Gray, "Eyes"]


More information about the users mailing list