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

Re: Unable to use OpenLDAP with BDB in Solaris.



Quanah Gibson-Mount wrote:



--On Wednesday, January 28, 2004 3:42 PM +0100 Anibal Caceres Hernando <anibal.caceres@ericsson.com> wrote:

    Hi,
    I'm using Solaris 8, and I've without problems BDB 4.2.52 and
OpenLDAP 2.1.25, but when I try to start the slapd process, I've the
following as response:

slapd startup: initiated.
bdb_db_open: o=company
bdb_db_open:
dbenv_open(/vobs/hes/hes_code/software/OpenLDAP/mms1-database)
bdb(o=company): mmap: Resource temporarily unavailable
bdb_db_open: dbenv_open failed: Resource temporarily unavailable (11)
backend_startup: bi_db_open(0) failed! (11)
slapd shutdown: initiated
====> bdb_cache_release_all
slapd shutdown: freeing system resources.
bdb(o=company): txn_checkpoint interface requires an environment
configured for the transaction subsystem
bdb_db_destroy: txn_checkpoint failed: Invalid argument (22)
====> bdb_cache_release_all
slapd stopped.
connections_destroy: nothing to destroy.

    Apparently there's a problem opening the BDB database, but something
has been created in the database directory
(/vobs/hes/hes_code/software/OpenLDAP/mms1-database):

 >ls -l mms1-database/
total 16
-rw-------   1 eceacah  ERDSP001_ECC    8192 Jan 28 15:27 __db.001

    I've done the same in a Linux machine without problems. If anybody
can help me about this I'll be really grateful.
    Thank you very much.
    Kind regards,


Hello,

You need to create a database before starting slapd, usually done using the slapadd command on an ldif file.

--Quanah


-- Quanah Gibson-Mount Principal Software Developer ITSS/TSS/Computing Systems ITSS/TSS/Infrastructure Operations Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html

Thank you for your answer, Quanah. I've tried to do what you suggest, but the result is the same:


>./proxy/sbin/slapadd -l mms1.ldif -f slapd1.conf -d 516
bdb_initialize: Sleepycat Software: Berkeley DB 4.2.52: (December 3, 2003)
bdb_db_init: Initializing BDB database
bdb_db_open: o=company
bdb(o=company): mmap: Resource temporarily unavailable
bdb_db_open: dbenv_open failed: Resource temporarily unavailable (11)
backend_startup: bi_db_open failed! (11)
bdb(o=company): txn_begin interface requires an environment configured for the transaction subsystem
=> bdb_tool_entry_put: txn_begin failed: Invalid argument (22)
slapadd: could not add entry dn="o=company" (line=5): txn_begin failed: Invalid argument (22)
bdb(o=company): txn_checkpoint interface requires an environment configured for the transaction subsystem
bdb_db_destroy: txn_checkpoint failed: Invalid argument (22)


Again it seems to be a problem opening the database, but something has been created (by bdb_db_init, I suppose) in the database directory... I don't know what can be wrong... any more idea?
Kind regards,


  Aníbal.