1752290 Members
4547 Online
108786 Solutions
New Discussion юеВ

Cyrus IMAP DBERROR

 
Romeo_4
Occasional Advisor

Cyrus IMAP DBERROR

Hello,

I have the follow problem:

HPUX 11.i v2 on RX2620 and ServiceGuard
Sendmail 8.11.1
Cyrus IMAP V2.2 (bundle in the CD HP-UX Internet Express )

Il cyrus-imap each 30min run a checkpoint of DB (ctl_cyrusdb). Each 1-3 days the checkpoint or something with this action, broke the DB with follow errors:

about to exec /opt/iexpress/cyrusimap/bin/ctl_cyrusdb

May 30 12:38:12 srvhpuxb ctl_cyrusdb[19815]: checkpointing cyrus databases
May 30 12:38:12 srvhpuxb ctl_cyrusdb[19815]: archiving database file: /var/mail/imap_config/annotations.db
May 30 12:38:12 srvhpuxb ctl_cyrusdb[19815]: DBERROR db4: DB_LOGC->get: LSN 1/1083033: invalid log record header
May 30 12:38:12 srvhpuxb ctl_cyrusdb[19815]: DBERROR: error listing log files: DB_NOTFOUND: No matching key/data pair found
May 30 12:38:12 srvhpuxb ctl_cyrusdb[19815]: DBERROR: archive /var/mail/imap_config/db: cyrusdb error
May 30 12:38:12 srvhpuxb ctl_cyrusdb[19815]: archiving database file: /var/mail/imap_config/mailboxes.db
May 30 12:38:12 srvhpuxb ctl_cyrusdb[19815]: DBERROR db4: DB_LOGC->get: LSN 1/1083033: invalid log record header
May 30 12:38:12 srvhpuxb above message repeats 2 times
May 30 12:38:12 srvhpuxb ctl_cyrusdb[19815]: DBERROR db4: DB_LOGC->get: LSN 1/1083303: invalid log record header
May 30 12:38:12 srvhpuxb ctl_cyrusdb[19815]: done checkpointing cyrus databases
May 30 12:38:12 srvhpuxb ctl_cyrusdb[19815]: DBERROR db4: DB_LOGC->get: LSN 1/1083303: invalid log record header
May 30 12:38:12 srvhpuxb above message repeats 2 times


I have open a support request to HP CALL CENTER ITALY but the answer is:

The Cyrus IMAP is not supported on HPUX.

First question:
Why HP doesn't support the bundle HP CD software?

Second question:
Is it available an IMAP software product supported from HP?

Third question:
How can help me?

Thanks in advance
6 REPLIES 6
Romeo_4
Occasional Advisor

Re: Cyrus IMAP DBERROR

More informations....

We are dealing with a problem regarding db corruption that happens randomly in correspondence to ctl_cyrusdb launch.

Here is an extract of the log file:

----error start
checkpointing cyrus databases
archiving database file: /var/mail/imap_config/annotations.db

DBERROR db4: DB_LOGC->get: LSN 1/1083033: invalid log record header
DBERROR: error listing log files: DB_NOTFOUND: No matching key/data
DBERROR: archive /var/mail/imap_config/db: cyrusdb error
archiving database file: /var/mail/imap_config/mailboxes.db
DBERROR db4: DB_LOGC->get: LSN 1/1083033: invalid log record header
ts 2 times
DBERROR db4: DB_LOGC->get: LSN 1/1083303: invalid log record header
done checkpointing cyrus databases
DBERROR db4: DB_LOGC->get: LSN 1/1083303: invalid log record header
--- error end

Here is reassumed our setup:

Sendmail/Cyrus Imap server are installed on an HP-UX V. B.11.23 IA64 Itanium server

Package versions are Sendmail 8.11.1, Cyrus-imap 2.2.12, Cyrus-sasl 2.1.21. Cyrus imap/sasl are a packaged version provided by Iexpress depot B.11.23 release.

We use saslauthd launched with -a pam flag to autenticate imap/pop3 users over a distributed directory service based on a Linux Openldap Server.
Pam_ldap and hpldapux client are used with no problem also to authenticate samba-cifs users.

I attach imapd.conf and cyrus.conf :

---start imapd.conf
configdirectory: /var/mail/imap_config
partition-default: /var/mail/imap_partition
admins: cyrus
sievedir: /var/mail/imap_config/sieve
sendmail: /usr/sbin/sendmail
hashimapspool: true
allowanonymouslogin: no
sasl_pwcheck_method: saslauthd
sasl_mech_list: PLAIN LOGIN
--- end imapd.conf

--- start cyrus.conf
START {
# do not delete this entry!
recover cmd="ctl_cyrusdb -r"
# this is only necessary if using idled for IMAP IDLE
idled cmd="idled"
}
# UNIX sockets start with a slash and are put into /var/lib/imap/sockets
SERVICES {
# add or remove based on preferences
imap cmd="imapd" listen="imap" prefork=5
pop3 cmd="pop3d" listen="pop3" prefork=3
sieve cmd="timsieved" listen="sieve" prefork=0
lmtpunix cmd="lmtpd" listen="/dc/mail/imap_config/socket/lmtp" prefork=1
}
EVENTS {
# this is required
checkpoint cmd="ctl_cyrusdb -c" period=30
delprune cmd="cyr_expire -E 3" at=0400
squatter cmd="squatter -rs user" at=0100
}
--- end cyrus.conf

Arunvijai_4
Honored Contributor

Re: Cyrus IMAP DBERROR

Hi,

One thing i can say is, Check permission on /var/mail/imap. This holds the key.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Romeo_4
Occasional Advisor

Re: Cyrus IMAP DBERROR

Hi,

the propriety are:

cyrus mail rwxr-x---
Steven E. Protter
Exalted Contributor

Re: Cyrus IMAP DBERROR

Shalom

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1123

HP should be able to support this question.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Arunvijai_4
Honored Contributor

Re: Cyrus IMAP DBERROR

Hi,

HP doesn't support Internet Express products, but they may answer your queries by email. I suspect, you have to thoroughly check all permissions of DB and other stuffs for user "cyrus". Google search for DB_NOTFOUND: No matching key/data pair found reveals the same.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Antonio Valle_1
Honored Contributor

Re: Cyrus IMAP DBERROR

Hi Romeo.

Running the same configuration (HPUX 11.23 on itanium and Cyrus) we are having exactly the same problem. Did you get to solve it?

Thanks!!
Antonio