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

Re: [OpenLDAP 2.2.24] Errors during ldapadd



Sivasakthi d/o Sivagnanam wrote:

anyone has any clue to what are the msg's all about ?
*Msg1:*
*<= bdb_dn2id: get failed: DB_NOTFOUND: No matching key/data pair found (-30989) <ERRDG>*
*My thought: Is that a check done before insertion is done to ensure no duplicate entry is made ?*

Yes. As such, this message is perfectly normal.

** *Msg2:*
*ldap_read: want=8 error=Resource temporarily unavailable <ERRDG>*
*My thought: Is that a sweeping read query done on c=MY when no objects are available causing that msg to appear ?*

No, it just means there was no data to read from the LDAP client. Also perfectly normal.


** Appreciate if you could assist me here or direct me to some documentation on this. Just worried over time if these msg's are not attended to could cause problems later.
*.sakthi*


    ----- Original Message -----
    *From:* Sivasakthi d/o Sivagnanam <mailto:sakthi@digicert.com.my>
    *To:* openLDAP-software <mailto:openldap-software@OpenLDAP.org>
    *Sent:* Tuesday, March 22, 2005 3:44 PM
    *Subject:* [OpenLDAP 2.2.24] Errors during ldapadd

    Dear all,
    I've compiled the latest openldap2.2.24 and have started adding
    objects into it. Insertion was successful but noticed there are
    some error statements in the debug mode.
    I've marked in bold... and tagged it as *<ERRDG>*
    ------------------------------------------------------------------

    line 66 (sizelimit 5000)

    line 67 (threads 8)

    line 68 (idletimeout 14400)

    line 69 (cachesize 10000)

    /etc/openldap/slapd.conf: line 69: unknown directive "cachesize"
    outside backend info and database definitions (ignored)

    line 70 (checkpoint 256 15)

    /etc/openldap/slapd.conf: line 70: unknown directive "checkpoint"
    outside backend info and database definitions (ignored)

    line 72 (database bdb)

    bdb_db_init: Initializing BDB database

    line 73 (suffix "c=MY")

    ......

    slapd startup: initiated.

    backend_startup: starting "c=MY"

    bdb_db_open: c=MY

    bdb_db_open: dbenv_open(/var/lib/ldap)

    slapd starting

    .....

    daemon: select: listen=6 active_threads=1 tvp=zero

    ....

    ber_get_next

    ldap_read: want=8, got=8

    0000: 30 21 02 01 01 60 1c 02 0!...`..

    ldap_read: want=27, got=27

    0000: 01 03 04 0f 63 6e 3d 6d 61 6e 61 67 65 72 2c 63
    ....cn=manager,c

    0010: 3d 4d 59 80 06 73 65 63 72 65 74 =MY..secret

    ber_get_next: tag 0x30 len 33 contents:

    ber_dump: buf=0x08153670 ptr=0x08153670 end=0x08153691 len=33

    0000: 02 01 01 60 1c 02 01 03 04 0f 63 6e 3d 6d 61 6e
    ...`......cn=man

    0010: 61 67 65 72 2c 63 3d 4d 59 80 06 73 65 63 72 65
    ager,c=MY..secre

    0020: 74 t

    ber_get_next

    *ldap_read: want=8 error=Resource temporarily unavailable <ERRDG>*

    *ber_get_next on fd 10 failed errno=11 (Resource temporarily
    unavailable) <ERRDG>*

    ...............

    0010: 0e 04 03 74 6f 70 04 07 63 6f 75 6e 74 72 79 30
    ...top..country0

    0020: 09 04 01 63 31 04 04 02 4d 59 ...c1...MY

    ber_scanf fmt ({m{W}}) ber:

    ber_dump: buf=0x08154858 ptr=0x08154884 end=0x0815488f len=11

    0000: 30 09 04 01 63 31 04 04 02 4d 59 0...c1...MY

    ber_scanf fmt (}) ber:

    ber_dump: buf=0x08154858 ptr=0x0815488f end=0x0815488f len=0

    bdb_dn2entry("c=my")

    => bdb_dn2id( "c=my" )

    *<= bdb_dn2id: get failed: DB_NOTFOUND: No matching key/data pair
    found (-30989) <ERRDG>*

    ==> bdb_add: c=MY

    oc_check_required entry (c=MY), objectClass "country"

    oc_check_allowed type "objectClass"

    oc_check_allowed type "c"

    oc_check_allowed type "structuralObjectClass"

    oc_check_allowed type "entryUUID"

    oc_check_allowed type "creatorsName"

    oc_check_allowed type "createTimestamp"

    oc_check_allowed type "entryCSN"

    oc_check_allowed type "modifiersName"

    oc_check_allowed type "modifyTimestamp"

    bdb_dn2entry("c=my")

    => bdb_dn2id( "c=my" )

    *<= bdb_dn2id: get failed: DB_NOTFOUND: No matching key/data pair
    found (-30989)  <ERRDG>*

    ......

    *ber_get_next on fd 10 failed errno=0 (Success)*

    *connection_read(10): input error=-2 id=1, closing.  <ERRDG>*

    connection_closing: readying conn=1 sd=10 for close

    connection_close: deferring conn=1 sd=10

    daemon: select: listen=6 active_threads=1 tvp=zero

    daemon: activity on 1 descriptors

    daemon: select: listen=6 active_threads=1 tvp=zero

    do_unbind

    connection_resched: attempting closing conn=1 sd=10

    connection_close: conn=1 sd=10

    daemon: removing 10



--
 -- Howard Chu
 Chief Architect, Symas Corp.       Director, Highland Sun
 http://www.symas.com               http://highlandsun.com/hyc
 Symas: Premier OpenSource Development and Support