Hi Jan,

This is definitely an older version of the server, I would highly suggest to get onto the latest 1.4.x version that you can.  1.4.0 has not been maintained in a very long time, and is missing important fixes.

As for this error, I have not seen this before.  The first thing to try would have been to restart the server which promises to refresh the RUV entry & in-memory.  If that does not help maybe try to reindex the entryrdn index once more to see if it helps.  If that still does not help, then you can export the database (using the replication data option) and reimport it (this will not break replication or require any further action):

    dsconf -D "cn=Directory Manager" -w "$pswd" ldap://localhost backend export cesnet_cz --replication --ldif repl_export.ldif

    dsconf -D "cn=Directory Manager" -w "$pswd" ldap://localhost backend import cesnet_cz  repl_export.ldif

HTH,
Mark

On 1/13/21 11:22 AM, Jan Tomasek wrote:
Hello,

I've 389DS 1.4.0.21-1 on Debian/Buster in configuration with one master two consumers and several suffixes. After running

dsconf -D "cn=Directory Manager" -w "$pswd" ldap://localhost backend index reindex cesnet_cz

and completing indexing, err logfile on supplier server start show:
ERR - _entryrdn_insert_key - Same DN (dn: nsuniqueid=ffffffff-ffffffff-ffffffff-ffffffff,dc=cesnet,dc=cz) is already in the ,entryrdn file with different ID 10458.  Expected ID is 10459.

Complete log of that indexing:

[13/Jan/2021:16:43:10.896747048 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: aci [13/Jan/2021:16:43:10.900306795 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: cesnetemplid [13/Jan/2021:16:43:10.901040884 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: cn [13/Jan/2021:16:43:10.902098982 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: dc [13/Jan/2021:16:43:10.902728398 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: displayname [13/Jan/2021:16:43:10.903230082 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: entityidofidp [13/Jan/2021:16:43:10.903811474 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing entryrdn [13/Jan/2021:16:43:10.906245372 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: entrystatus [13/Jan/2021:16:43:10.906993328 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: entryusn [13/Jan/2021:16:43:10.907625883 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: givenName [13/Jan/2021:16:43:10.909503905 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: iphostnumber [13/Jan/2021:16:43:10.910181673 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: mail [13/Jan/2021:16:43:10.911199555 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: mailAlternateAddress [13/Jan/2021:16:43:10.911712896 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: mailHost [13/Jan/2021:16:43:10.912187870 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: member [13/Jan/2021:16:43:10.912657039 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: memberOf [13/Jan/2021:16:43:10.913311121 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: nsCertSubjectDN [13/Jan/2021:16:43:10.913817035 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: nscpEntryDN [13/Jan/2021:16:43:10.915613931 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: nsds5ReplConflict [13/Jan/2021:16:43:10.916112906 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: nsTombstoneCSN [13/Jan/2021:16:43:10.916587945 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: nsuniqueid [13/Jan/2021:16:43:10.918419748 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: ntUniqueId [13/Jan/2021:16:43:10.918898277 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: ntUserDomainId [13/Jan/2021:16:43:10.919347819 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: numsubordinates [13/Jan/2021:16:43:10.919940562 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: objectclass [13/Jan/2021:16:43:10.921719909 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: owner [13/Jan/2021:16:43:10.922432531 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: parentid [13/Jan/2021:16:43:10.923072797 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: seeAlso [13/Jan/2021:16:43:10.923580070 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: sn [13/Jan/2021:16:43:10.924288238 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: sponsor [13/Jan/2021:16:43:10.924959286 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: taccmd [13/Jan/2021:16:43:10.925596618 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: tacnaspointer [13/Jan/2021:16:43:10.926234600 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: tacprofilepointer [13/Jan/2021:16:43:10.926857374 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: tacuserpointer [13/Jan/2021:16:43:10.927401468 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: targetuniqueid [13/Jan/2021:16:43:10.927833486 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: telephoneNumber [13/Jan/2021:16:43:10.928480717 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: uid [13/Jan/2021:16:43:10.929047096 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexing attribute: uniquemember [13/Jan/2021:16:43:11.845074815 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexed 1000 entries (9%). [13/Jan/2021:16:43:12.658177768 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexed 2000 entries (19%). [13/Jan/2021:16:43:13.208182425 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexed 3000 entries (28%). [13/Jan/2021:16:43:13.960876293 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexed 4000 entries (38%). [13/Jan/2021:16:43:14.630850682 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexed 5000 entries (47%). [13/Jan/2021:16:43:15.394532510 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexed 6000 entries (57%). [13/Jan/2021:16:43:16.170632542 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexed 7000 entries (66%). [13/Jan/2021:16:43:16.796304684 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexed 8000 entries (76%). [13/Jan/2021:16:43:17.506801263 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexed 9000 entries (86%). [13/Jan/2021:16:43:18.067960870 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Indexed 10000 entries (95%). [13/Jan/2021:16:43:18.243288780 +0100] - INFO - ldbm_back_ldbm2index - cesnet_cz: Finished indexing. [13/Jan/2021:16:43:19.246780004 +0100] - ERR - _entryrdn_insert_key - Same DN (dn: nsuniqueid=ffffffff-ffffffff-ffffffff-ffffffff,dc=cesnet,dc=cz) is already in the entryrdn file with different ID 10458.  Expected ID is 10459. [13/Jan/2021:16:43:19.247170757 +0100] - ERR - index_addordel_entry - database index operation failed BAD 1023, err=9999 Unknown error 9999 [13/Jan/2021:16:43:19.247525937 +0100] - ERR - NSMMReplicationPlugin - _replica_configure_ruv - Failed to create replica ruv tombstone entry (dc=cesnet,dc=cz); LDAP error - 1 [13/Jan/2021:16:43:49.252019156 +0100] - ERR - _entryrdn_insert_key - Same DN (dn: nsuniqueid=ffffffff-ffffffff-ffffffff-ffffffff,dc=cesnet,dc=cz) is already in the entryrdn file with different ID 10458.  Expected ID is 10459. [13/Jan/2021:16:43:49.252315849 +0100] - ERR - index_addordel_entry - database index operation failed BAD 1023, err=9999 Unknown error 9999 [13/Jan/2021:16:43:49.252556037 +0100] - ERR - NSMMReplicationPlugin - _replica_configure_ruv - Failed to create replica ruv tombstone entry (dc=cesnet,dc=cz); LDAP error - 1


I tried to do indexes one after one, everyting is working fine untill I try to rebuild index for entryrdn and nsuniqueid. The second one start causing error: [13/Jan/2021:15:25:12.460676505 +0100] - ERR - _entryrdn_insert_key - Same DN (dn: nsuniqueid=ffffffff-ffffffff-ffffffff-ffffffff,dc=cesnet,dc=cz) is already in the entryrdn file with different ID 10454.  Expected ID is 10456. [13/Jan/2021:15:25:12.460870191 +0100] - ERR - index_addordel_entry - database index operation failed BAD 1023, err=9999 Unknown error 9999 [13/Jan/2021:15:25:12.461119957 +0100] - ERR - NSMMReplicationPlugin - _replica_configure_ruv - Failed to create replica ruv tombstone entry (dc=cesnet,dc=cz); LDAP error - 1

Only solution I've discovered is to disable replication, reinitializing all suffixes. This is quite painful.:(

How to avoid this error? And how to fix it when it happens? Thanks for any sugestions.

--

389 Directory Server Development Team
_______________________________________________
389-users mailing list -- 389-users@lists.fedoraproject.org
To unsubscribe send an email to 389-users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/389-users@lists.fedoraproject.org

Reply via email to