LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ldap error: bdb_db_open: database already in use (https://www.linuxquestions.org/questions/linux-software-2/ldap-error-bdb_db_open-database-already-in-use-812378/)

zubat123 06-05-2010 05:42 PM

ldap error: bdb_db_open: database already in use
 
the ldap service starts successfully. but when running the script "migrate_all_offline.sh" i get the error below. i am unable to log into the client system using ldap. has anyone experienced this kind of error? thanks

Preparing LDAP database...
bdb_db_open: database already in use
backend_startup_one: bi_db_open failed! (-1)
slap_startup failed
Migration failed: saving failed LDIF to /tmp/nis.ldif.zf5108

running 'slaptest -v -f /etc/openldap/slapd.conf -u' was successful though

bathory 06-06-2010 03:01 AM

Hi,

From the script name it looks like you have to run it while slapd is stopped. That's why it complains that the database is in use.

Regards

druuna 06-06-2010 04:50 AM

Hi,

bathory's hunch is correct: LDAP MigrationTools (see bottom of the page).

Hope this helps.

zubat123 06-06-2010 06:19 PM

thanks for the tip guys. still getting errors though. i stopped ldap service then ran the migrate_all_offline.sh script and it gave me errors below. i remember reading that the first run will give errors but i ran this twice and still same error. i'm still unable to ssh or log into the client machine through ldap.

[root@server~]# sh /usr/share/openldap/migration/migrate_all_offline.sh
=> bdb_tool_entry_put: id2entry_add failed: DB_KEYEXIST: Key/data pair already exists (-30996)
=> bdb_tool_entry_put: txn_aborted! DB_KEYEXIST: Key/data pair already exists (-30996)
slapadd: could not add entry dn="dc=kuroi,dc=com" (line=5): txn_aborted! DB_KEYEXIST: Key/data pair already exists (-30996)
Migration failed: saving failed LDIF to /tmp/nis.ldif.lQ5812

on the client side, if i configure env LANG=C authconfig-tui to use ldap, md5, shadow and point to the ldap server, i get a "fail" trying to start autofs. if i do the manual or permanent (fstab) method, i get wrong ownership for the username when mounting server's /home directory.

[root@client~]# ll /home
total 20
drwx------ 2 root root 16384 Apr 26 06:48 lost+found
drwx------ 7 tabuz users 4096 Jun 3 16:49 zubat


All times are GMT -5. The time now is 07:22 AM.