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

index_param failed



Hello !

I have cyrus (IMAP mailserver) working perfectly based on openldap,
BUT I have some strange messages in the logs that I would like to understand/correct :

* bdb_equality_candidates: (accountStatus) index_param failed (18)
* bdb_equality_candidates: (virtualdomain) index_param failed (18)
* bdb_equality_candidates: (description) index_param failed (18)

This is exactly ONE session where one of our users 
(description=dbucher@ourcompany.ch) is sending a mail to the outside 
world (dbucher@destdomain.ch).

If someone would be nice enough to explain me exactly what it means, and
how to solve this problem, it would be very nice...

I already searched a lot to find help on this topic, without success, I found some possible solutions but I don't know exactly how to test them :
1. define the approriate indexes in slapd.conf, reindex and restart
2. Check the actual index files to make sure they're correct permissions, etc, and then try a db_recover. 

In slapd.conf I have :
index objectClass                       eq,pres
index ou,cn,mail,surname,givenname      eq,pres,sub
index uidNumber,gidNumber,loginShell    eq,pres
index uid,memberUid                     eq,pres,sub
index nisMapName,nisMapEntry            eq,pres,sub

I tryed to add :
index accountStatus,description eq

but :
# slapindex
bdb_db_open: database already in use
backend_startup_one: bi_db_open failed! (-1)
slap_startup failed


Thanks a lot in advance for your help

Denis


Sep 11 20:19:29 mailhost slapd[2099]: conn=21436 op=1273 BIND anonymous 
mech=implicit ssf=0
Sep 11 20:19:29 mailhost slapd[2099]: conn=21436 op=1273 BIND 
dn="cn=mailadmin,ou=mailservices,dc=ourcompany,dc=ch" method=128
Sep 11 20:19:29 mailhost slapd[2099]: conn=21436 op=1273 BIND 
dn="cn=mailadmin,ou=mailservices,dc=ourcompany,dc=ch" mech=SIMPLE ssf=0
Sep 11 20:19:29 mailhost slapd[2099]: conn=21436 op=1273 RESULT tag=97 
err=0 text=
Sep 11 20:19:29 mailhost slapd[2099]: conn=21436 op=1274 SRCH 
base="ou=mailservices,dc=ourcompany,dc=ch" scope=2 deref=0 
filter="(|(&(objectClass=CourierMailAccount)(mail=dbucher@ourcompany.ch)(accountStatus=active))(&(cn=mailadmin)(description=dbucher@ourcompany.ch)))"
Sep 11 20:19:29 mailhost slapd[2099]: conn=21436 op=1274 SRCH attr=dn
Sep 11 20:19:29 mailhost slapd[2099]: <= bdb_equality_candidates: 
(accountStatus) index_param failed (18)
Sep 11 20:19:29 mailhost slapd[2099]: <= bdb_equality_candidates: 
(description) index_param failed (18)
Sep 11 20:19:29 mailhost slapd[2099]: conn=21436 op=1274 SEARCH RESULT 
tag=101 err=0 nentries=1 text=
Sep 11 20:19:29 mailhost slapd[2099]: conn=21436 op=1275 BIND anonymous 
mech=implicit ssf=0
Sep 11 20:19:29 mailhost slapd[2099]: conn=21436 op=1275 BIND 
dn="cn=dbucher,ou=users,ou=ourcompany.ch,ou=mailservices,dc=ourcompany,dc=ch" 
method=128
Sep 11 20:19:29 mailhost slapd[2099]: conn=21436 op=1275 BIND 
dn="cn=dbucher,ou=users,ou=ourcompany.ch,ou=mailservices,dc=ourcompany,dc=ch" 
mech=SIMPLE ssf=0
Sep 11 20:19:29 mailhost slapd[2099]: conn=21436 op=1275 RESULT tag=97 
err=0 text=
Sep 11 20:19:29 mailhost slapd[2099]: conn=24035 op=4 SRCH 
base="ou=mailservices,dc=ourcompany,dc=ch" scope=2 deref=0 
filter="(&(objectClass=CourierMailAlias)(mail=dbucher@destdomain.ch)(accountStatus=active))"
Sep 11 20:19:29 mailhost slapd[2099]: conn=24035 op=4 SRCH attr=maildrop
Sep 11 20:19:29 mailhost slapd[2099]: conn=24035 op=4 SEARCH RESULT 
tag=101 err=0 nentries=0 text=
Sep 11 20:19:29 mailhost slapd[2099]: conn=24035 op=5 SRCH 
base="ou=mailservices,dc=ourcompany,dc=ch" scope=2 deref=0 
filter="(&(objectClass=CourierMailAlias)(mail=@destdomain.ch)(accountStatus=active))"
Sep 11 20:19:29 mailhost slapd[2099]: conn=24035 op=5 SRCH attr=maildrop
Sep 11 20:19:29 mailhost slapd[2099]: conn=24035 op=5 SEARCH RESULT 
tag=101 err=0 nentries=0 text=
Sep 11 20:19:29 mailhost slapd[2099]: conn=24036 op=4 SRCH 
base="ou=mailservices,dc=ourcompany,dc=ch" scope=2 deref=0 
filter="(&(objectClass=CourierMailAlias)(mail=dbucher@destdomain.ch)(accountStatus=active))"
Sep 11 20:19:29 mailhost slapd[2099]: conn=24036 op=4 SRCH attr=maildrop
Sep 11 20:19:29 mailhost slapd[2099]: conn=24036 op=4 SEARCH RESULT 
tag=101 err=0 nentries=0 text=
Sep 11 20:19:29 mailhost slapd[2099]: conn=24036 op=5 SRCH 
base="ou=mailservices,dc=ourcompany,dc=ch" scope=2 deref=0 
filter="(&(objectClass=CourierMailAlias)(mail=@destdomain.ch)(accountStatus=active))"
Sep 11 20:19:29 mailhost slapd[2099]: conn=24036 op=5 SRCH attr=maildrop
Sep 11 20:19:29 mailhost slapd[2099]: conn=24036 op=5 SEARCH RESULT 
tag=101 err=0 nentries=0 text=
Sep 11 20:19:29 mailhost slapd[2099]: conn=24038 fd=20 ACCEPT from 
IP=127.0.0.1:41775 (IP=0.0.0.0:389)
Sep 11 20:19:29 mailhost slapd[2099]: conn=24038 op=0 BIND 
dn="cn=mailadmin,ou=mailservices,dc=ourcompany,dc=ch" method=128
Sep 11 20:19:29 mailhost slapd[2099]: conn=24038 op=0 BIND 
dn="cn=mailadmin,ou=mailservices,dc=ourcompany,dc=ch" mech=SIMPLE ssf=0
Sep 11 20:19:29 mailhost slapd[2099]: conn=24038 op=0 RESULT tag=97 
err=0 text=
Sep 11 20:19:29 mailhost slapd[2099]: conn=24038 op=1 SRCH 
base="ou=mailservices,dc=ourcompany,dc=ch" scope=2 deref=0 
filter="(&(objectClass=CourierMailAlias)(mail=destdomain.ch)(accountStatus=active))"
Sep 11 20:19:29 mailhost slapd[2099]: conn=24038 op=1 SRCH attr=maildrop
Sep 11 20:19:29 mailhost slapd[2099]: conn=24038 op=1 SEARCH RESULT 
tag=101 err=0 nentries=0 text=
Sep 11 20:19:29 mailhost slapd[2099]: conn=24038 op=2 SRCH 
base="ou=mailservices,dc=ourcompany,dc=ch" scope=2 deref=0 
filter="(&(objectClass=CourierDomainAlias)(virtualdomain=destdomain.ch))"
Sep 11 20:19:29 mailhost slapd[2099]: conn=24038 op=2 SRCH 
attr=virtualdomain
Sep 11 20:19:29 mailhost slapd[2099]: <= bdb_equality_candidates: 
(virtualdomain) index_param failed (18)
Sep 11 20:19:29 mailhost slapd[2099]: conn=24038 op=2 SEARCH RESULT 
tag=101 err=0 nentries=0 text=
Sep 11 20:19:35 mailhost slapd[2099]: conn=24038 fd=20 closed 
(connection lost)