Vitaly Kuznetsov wrote: > Hello! > > I'm trying to build Fedora-DS for ALT Linux project with new libdb-4.7. > Old instances use libdb-4.4. I have some problems with data migration. > FDS with db4.7 does not want to read old (db4.4) data with errors. I > tried to delete logs and do db_upgrade - without success. New instances > work fine. Fedora DS versions (old and new) are both 1.1.3. > Looks like a bug. Please file a bug. In the meantime, you can use db2ldif to export your old data, and ldif2db to import into your new database. > Errors: > > [05/Nov/2008:13:56:37 +0300] - Fedora-Directory/1.1.3 B2008.310.1047 > starting up > [05/Nov/2008:13:56:37 +0300] - Clean up db environment and start from > archive. > [05/Nov/2008:13:56:37 +0300] - libdb: Program version 4.7 doesn't match > environment version 4.4 > [05/Nov/2008:13:56:37 +0300] - libdb: Program version 4.7 doesn't match > environment version 4.4 > [05/Nov/2008:13:56:37 +0300] - Deleting log file: > (/var/lib/fedora-ds/slapd-ldap1/db/log.0000000001) > [05/Nov/2008:13:56:37 +0300] - Deleting log file: > (/var/lib/fedora-ds/slapd-ldap1/db/log.0000000147) > [05/Nov/2008:13:56:38 +0300] - attrcrypt_unwrap_key: failed to unwrap > key for cipher AES > [05/Nov/2008:13:56:38 +0300] - Failed to retrieve key for cipher AES in > attrcrypt_cipher_init > [05/Nov/2008:13:56:38 +0300] - Failed to initialize cipher AES in > attrcrypt_init > [05/Nov/2008:13:56:38 +0300] - libdb: file userRoot/id2entry.db4 has LSN > 134/2584752, past end of log at 1/140 > [05/Nov/2008:13:56:38 +0300] - libdb: Commonly caused by moving a > database from one database environment > [05/Nov/2008:13:56:38 +0300] - libdb: to another without clearing the > database LSNs, or by removing all of > [05/Nov/2008:13:56:38 +0300] - libdb: the log files from a database > environment > [05/Nov/2008:13:56:38 +0300] - libdb: > /var/lib/fedora-ds/slapd-ldap1/db/userRoot/id2entry.db4: unexpected file > type or format > [05/Nov/2008:13:56:38 +0300] - dbp->open("userRoot/id2entry.db4") > failed: Invalid argument (22) > [05/Nov/2008:13:56:38 +0300] - dblayer_instance_start fail: Invalid > argument (22) > [05/Nov/2008:13:56:38 +0300] - attrcrypt_unwrap_key: failed to unwrap > key for cipher AES > [05/Nov/2008:13:56:38 +0300] - Failed to retrieve key for cipher AES in > attrcrypt_cipher_init > [05/Nov/2008:13:56:38 +0300] - Failed to initialize cipher AES in > attrcrypt_init > [05/Nov/2008:13:56:38 +0300] - libdb: file NetscapeRoot/id2entry.db4 has > LSN 1/3096357, past end of log at 1/140 > [05/Nov/2008:13:56:38 +0300] - libdb: Commonly caused by moving a > database from one database environment > [05/Nov/2008:13:56:38 +0300] - libdb: to another without clearing the > database LSNs, or by removing all of > [05/Nov/2008:13:56:38 +0300] - libdb: the log files from a database > environment > [05/Nov/2008:13:56:38 +0300] - libdb: > /var/lib/fedora-ds/slapd-ldap1/db/NetscapeRoot/id2entry.db4: unexpected > file type or format > [05/Nov/2008:13:56:38 +0300] - dbp->open("NetscapeRoot/id2entry.db4") > failed: Invalid argument (22) > [05/Nov/2008:13:56:38 +0300] - dblayer_instance_start fail: Invalid > argument (22) > [05/Nov/2008:13:56:38 +0300] - start: Failed to start databases, err=22 > Invalid argument > [05/Nov/2008:13:56:38 +0300] - Failed to allocate 10000000 byte dbcache. > Please reduce nsslapd-cache-autosize and Restart the server. > [05/Nov/2008:13:56:38 +0300] - Failed to start database plugin ldbm database > [05/Nov/2008:13:56:38 +0300] - WARNING: ldbm instance userRoot already > exists > [05/Nov/2008:13:56:38 +0300] - WARNING: ldbm instance NetscapeRoot > already exists > [05/Nov/2008:13:56:38 +0300] binder-based resource limits - > nsLookThroughLimit: parameter error (slapi_reslimit_register() already > registered) > [05/Nov/2008:13:56:38 +0300] - start: Resource limit registration failed > [05/Nov/2008:13:56:38 +0300] - Failed to start database plugin ldbm database > [05/Nov/2008:13:56:38 +0300] - Error: Failed to resolve plugin dependencies > [05/Nov/2008:13:56:38 +0300] - Error: preoperation plugin 7-bit check is > not started > [05/Nov/2008:13:56:38 +0300] - Error: accesscontrol plugin ACL Plugin is > not started > [05/Nov/2008:13:56:38 +0300] - Error: preoperation plugin ACL > preoperation is not started > > Any ideas? > > -- > Fedora-directory-users mailing list > Fedora-directory-users at redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users >