Re: 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.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Thierry,

On 15. 01. 21 11:06, thierry bordaz wrote:
Would you be able to run those commands:

dbscan -f /var/lib/dirsrv/<instance>/db/cesnet_cz /nsuniqueid.db -k =fffffff-fffffff-fffffff-fffffff -r =fffffff-fffffff-fffffff-fffffff

This seqfaults:

root@cml3:~# dbscan -f /var/lib/dirsrv/slapd-cml3/db/test/nsuniqueid.db -k =fffffff-fffffff-fffffff-fffffff -r =fffffff-fffffff-fffffff-fffffff
Can't find key '=fffffff-fffffff-fffffff-fffffff'
Segmentation fault

strace:

openat(AT_FDCWD, "/var/lib/dirsrv/slapd-cml3/db/test/nsuniqueid.db", O_RDONLY) = 3
fcntl(3, F_GETFD)                       = 0
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
fstat(3, {st_mode=S_IFREG|0600, st_size=16384, ...}) = 0
mmap(NULL, 16384, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f51149b3000
fstat(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(0x88, 0x1), ...}) = 0
write(1, "Can't find key '=fffffff-fffffff"..., 50Can't find key '=fffffff-fffffff-fffffff-fffffff'
) = 50
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x7fff3c000000} ---
+++ killed by SIGSEGV +++
Segmentation fault

I've created simple test suffix (see ldif) and problem persist :(

Error is now:
[18/Jan/2021:15:36:07.639103043 +0100] - ERR - _entryrdn_insert_key - Same DN (dn: nsuniqueid=ffffffff-ffffffff-ffffffff-ffffffff,dc=test) is already in the entryrdn file with different ID 4. Expected ID is 6. [18/Jan/2021:15:36:07.639405490 +0100] - ERR - index_addordel_entry - database index operation failed BAD 1023, err=9999 Unknown error 9999 [18/Jan/2021:15:36:07.794625784 +0100] - ERR - NSMMReplicationPlugin - _replica_configure_ruv - Failed to create replica ruv tombstone entry (dc=test); LDAP error - 1 [18/Jan/2021:15:36:07.794954251 +0100] - ERR - NSMMReplicationPlugin - replica_new - Unable to configure replica dc=test:

root@cml3:~# dbscan -f /var/lib/dirsrv/slapd-cml3/db/test/nsuniqueid.db
=d5658282-599911eb-af359663-f13d537d
=d5658283-599911eb-af359663-f13d537d
=d5658284-599911eb-af359663-f13d537d
=d5658285-599911eb-af359663-f13d537d

root@cml3:~# dbscan -f /var/lib/dirsrv/slapd-cml3/db/test/id2entry.db -K 4
id 4
	rdn: nsuniqueid=ffffffff-ffffffff-ffffffff-ffffffff
	objectClass: top
	objectClass: nsTombstone
	objectClass: extensibleobject
	nsUniqueId: ffffffff-ffffffff-ffffffff-ffffffff
	nsds50ruv: {replicageneration} 60059bd3000000010000
nsds50ruv: {replica 1 ldap://cml3.cesnet.cz:389} 60059bdd000200010000 60059c66
	 000000010000
	dc: test
	nscpEntryDN: dc=test
	nsruvReplicaLastModified: {replica 1 ldap://cml3.cesnet.cz:389} 60059c66
nsds5agmtmaxcsn: dc=test;test-ldap31;ldap31.cesnet.cz;636;65535;60059c66000000
	 010000
nsds5agmtmaxcsn: dc=test;test-ldap32;ldap32.cesnet.cz;636;65535;60059c66000000
	 010000
	
root@cml3:~# dbscan -f /var/lib/dirsrv/slapd-cml3/db/test/id2entry.db -K 6
Can't set cursor to returned item: BDB0073 DB_NOTFOUND: No matching key/data pair found
free(): invalid pointer
Aborted

After I run reindex on backend:
# root@cml3:~# dsctl cml3 db2index test

fffffff... entry shows in nsuniqueid.db

root@cml3:~# dbscan -f /var/lib/dirsrv/slapd-cml3/db/test/nsuniqueid.db
=d5658282-599911eb-af359663-f13d537d
=d5658283-599911eb-af359663-f13d537d
=d5658284-599911eb-af359663-f13d537d
=d5658285-599911eb-af359663-f13d537d
=ffffffff-ffffffff-ffffffff-ffffffff

Now is server able to start. Need reinitialization of both replicas and after reinitialization works. Untill next complete reindex. ;)

I've tested once again with fresh db. record rdn: nsuniqueid=ffffffff-ffffffff-ffffffff-ffffffff appears in nsuniqueid.db after reinitialization of both replicas is completed.


Isn't my problem related to this: https://github.com/389ds/389-ds-base/issues/273 ?

My system is Debian Buster and 389 DS is in version 1.4.4.9 taken from Debian Bullseye. If I can provide some more debug info please let me know.

I hope I can operate servers this without doing reindex on all attributes, but it would be nice if this will be fixed.

Thanks
--
-----------------------
Jan Tomasek aka Semik
http://www.tomasek.cz/
dn: dc=test
modifyTimestamp: 20200212102827Z
modifiersName: cn=directory manager
objectClass: top
objectClass: dcobject
dc: test
creatorsName: cn=directory manager
createTimestamp: 20100418093235Z

dn: ou=People,dc=test
modifyTimestamp: 20200622122744Z
modifiersName: cn=directory manager
ou: People
objectClass: top
objectClass: organizationalunit
creatorsName: cn=directory manager
createTimestamp: 20100418093236Z

dn: uid=test,ou=People,dc=test
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: person
objectClass: top
uid: test
sn: Test
cn: Jan Test

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
389-users mailing list -- 389-users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to 389-users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx

[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux