[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Can't import ldif file



What version of BDB are you using?  If 4.7.25, does it contain the Oracle patches?

On Wed, Aug 12, 2009 at 11:18 AM, Kristen Walker <kwalker@sbceo.org> wrote:

On 8/12/09 10:16 AM, "Quanah Gibson-Mount" <quanah@zimbra.com> wrote:

> --On Wednesday, August 12, 2009 9:59 AM -0700 Kristen Walker
> <kwalker@sbceo.org> wrote:
>
>> I don't see a progress bar when I try the import, it just seems to hang.
>> The server I am adding to does not have a database.  I do a rm __db.*
>> *.bdb log.* in the openldap-data directory after the failed imports so
>> that I wipe out the database each time and start over.
>>
>> I haven't tried the -q flag and got this:
>>
>> slapadd -q -v -f /usr/local/etc/openldap/slapd.conf -l
>> /root/08052009_0647_ldap_backup.ldif
>> bdb_db_open: database "dc=sbceoportal,dc=org": unclean shutdown detected;
>> attempting recovery.
>> bdb(dc=sbceoportal,dc=org): recovery requires transaction support
>> bdb_db_open: database "dc=sbceoportal,dc=org" cannot be recovered, err 22.
>> Restore from backup!
>> backend_startup_one: bi_db_open failed! (22)
>> slap_startup failed
>
>
> Do you have slapd running on the server you are restoring to?  slapd must
> be shutdown for slapadd to operate, it is an offline command.
>
> --Quanah
>

Slapd is not running on the server:

root@domU-12-31-38-00-42-32:~# ps aux | grep slapd

root     29033  0.0  0.0   3420   768 pts/1    R+   17:19   0:00 grep slapd

root@domU-12-31-38-00-42-32:~# slapadd -q -v -f
/usr/local/etc/openldap/slapd.conf -l /root/08052009_0647_ldap_backup.ldif

bdb_db_open: database "dc=sbceoportal,dc=org": unclean shutdown detected;
attempting recovery.
bdb_db_open: database "dc=sbceoportal,dc=org": cannot recover, database must
be reinitialized.
backend_startup_one: bi_db_open failed! (-1)
slap_startup failed
root@domU-12-31-38-00-42-32:~#


Thanks,
Kristen



--
Kristen Walker

Digital Media Resources Developer
Instructional Media Services
Santa Barbara County Education Office
4400 Cathedral Oaks Road
P.O. Box 6307
Santa Barbara, CA 93160-6307
(805)964-4711 ext. 5244/FAX (805)683-3597
kwalker@sbceo.org
http://www.sbceoportal.org