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

ldap_add: Already exists



Hello all,

that's what happened (it was not the first time):

It seems that some entries get locked by the DB for some index row
corrupted. I was trying  to insert a new entry but I got the error
message 'Already Present', but I could not delete it (even whit no
subentries under that), and nothing changed reindexing.
I'm using OpenLDAP 2.0.7 with a gdbm (GNU ldbm) backend on a RedHat
Linux 7.1.
Next U have the complete console messages.
Moreover using the slapcat -c i got the LDIF Representetion of my tree
AND the messages:
# no data for entry id=000002d7
# no data for entry id=000002d9
# no data for entry id=000000cf
# no data for entry id=000000be
What's the best practice to follow ?
I mean do I have the chance to simply delete the corrupted id on the db
? (NB reindexing does not work)

Thank U all in adv.
Luigi.

------------------------------------------------------------------------
-----------------
*************************************************
Stopping, indexing & restarting the server
*************************************************
[root@HPI3711 /root]# ps -ef |grep slapd
root     10974     1  0 Oct04 ?        00:02:41 slapd
root     22225 10127  0 16:11 pts/1    00:00:00 grep slapd
[root@HPI3711 /root]# kill 10974
[root@HPI3711 /root]# slapindex
[root@HPI3711 /root]# slapd

*************************************************
Trying to add the entry
*************************************************
[root@HPI3711 /root]# ldapadd -v -f /root/demo_ldif/ins.ldif  -x -D
'cn=rootDR, o=MANTA, dc=Tilab, dc=com' -w secret
ldap_initialize( <DEFAULT> )
add objectClass:
        confVIPTiger
add vckT:
        P_rossi
add 1stVipTermT:
        SS_1012
add 2ndVipTermT:
        PI_0001
adding new entry
"vckT=P_rossi,o=VCC,pnT=0174444,o=SP,o=MANTA,dc=Tilab,dc=com"
ldap_add: Already exists

ldif_record() = 68

*************************************************
Stopping, indexing & restarting the server AGAIN
*************************************************
[root@HPI3711 /root]# ps -ef |grep slapd
root     22229     1  0 16:12 ?        00:00:00 slapd
root     22234 10127  0 16:14 pts/1    00:00:00 grep slapd
[root@HPI3711 /root]# kill 22229
[root@HPI3711 /root]# slapindex
[root@HPI3711 /root]# slapd

*************************************************
Trying to modify the entry
*************************************************
[root@HPI3711 /root]# ldapmodify -v -f /root/demo_ldif/ins.ldif  -x -D
'cn=rootDR, o=MANTA, dc=Tilab, dc=com' -w secret
ldap_initialize( <DEFAULT> )
add objectClass:
        confVIPTiger
add vckT:
        P_rossi
add 1stVipTermT:
        SS_1012
add 2ndVipTermT:
        PI_0001
modifying entry
"vckT=P_rossi,o=VCC,pnT=0174444,o=SP,o=MANTA,dc=Tilab,dc=com"
ldap_modify: Type or value exists
        additional info: modify: add values failed

ldif_record() = 20

*************************************************
Trying to delete the entry
*************************************************
[root@HPI3711 /root]# ldapdelete ?v
vckT=P_rossi,o=VCC,pnT=0174444,o=SP,o=MANTA,dc=Tilab,dc=com  -x -D
'cn=rootDR, o=MANTA, dc=Tilab, dc=com' -w secret
ldap_initialize( <DEFAULT> )
deleting entry
"vckT=P_rossi,o=VCC,pnT=0174444,o=SP,o=MANTA,dc=Tilab,dc=com"
Delete Result: Unknown error (80)
Additional info: DN index delete failed


*************************************************
What else ?
Thanx
*************************************************