DBERROR: opening /imap/conf/tls_sessions.db

Gary Mills mills at cc.umanitoba.ca
Sat Apr 30 11:36:00 EDT 2005


The other day, we had a couple of complaints that SSL had stopped
working with Cyrus IMAP.  This was followed by complaints that e-mail
sending with SMTP was not working.  Reading e-mail with IMAP or POP
was not affected.  When I checked, all of the lmtpd processes were
blocked waiting for a mutex lock.  I tried to run db_stat, but it also
blocked the same way.  A stack trace on one of the lmtpd processes
showed that it was attempting to check the duplicate delivery
database.  Stopping and starting master resolved the problem.

The first error messages in the messages log were these four:

  Apr 29 14:48:55 electra imapd[9057]: [ID 729713 local6.error] DBERROR: opening /imap/conf/tls_sessions.db: Invalid argument
  Apr 29 14:48:55 electra imapd[5401]: [ID 729713 local6.error] DBERROR: opening /imap/conf/tls_sessions.db: Invalid argument
  Apr 29 14:48:55 electra imapd[5401]: [ID 729713 local6.error] DBERROR: opening /imap/conf/tls_sessions.db: cyrusdb error
  Apr 29 14:48:55 electra imapd[9057]: [ID 729713 local6.error] DBERROR: opening /imap/conf/tls_sessions.db: cyrusdb error

These were followed a few minutes later by many like these that only
ended with the restart:

  Apr 29 14:50:48 electra sm-mta[4265]: [ID 801593 mail.crit] j3TJolFM004224: SYSERR(root): Could not connect to socket /var/run/imap/lmtp: Connection refused by localhost
  Apr 29 14:50:48 electra sm-mta[4266]: [ID 801593 mail.crit] j3TJoZHn004191: SYSERR(root): Could not connect to socket /var/run/imap/lmtp: Connection refused by localhost

The problem with lmtpd seems to have been a deadlock on the duplicate
delivery database.  Could it have been caused by the previous problem
with the TLS sessions database?  How do I prevent the initial problem?

We are using skiplist for the mboxlist and seen databases, but
db-3.1.17 for the duplicate delivery and TLS sessions databases.  The
Cyrus version is 2.1.14, running under Solaris 9.  Cyrus had been
running smoothly for some time before this problem occured.

-- 
-Gary Mills-    -Unix Support-    -U of M Academic Computing and Networking-
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list