Upgrade 2.3.7 to 2.3.9

Martin Schweizer schweizer.martin at gmail.com
Thu Sep 20 09:41:09 EDT 2007


Hello

I did an upgrade from 2.3.7 to 2.3.9 on my system:

FreeBSD acsvfbsd04.acutronic.ch 6.1-RELEASE-p5 FreeBSD 6.1-RELEASE-p5
#0: Fri Sep  1 20:01:04 CEST 2006
martin at acsvfbsd04.acutronic.ch:/usr/obj/usr/src/sys/GENERIC  i386

My configs:

/usr/local/etc/cyrus.conf
--------------------------------
# standard standalone server implementation

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/imap/socket
SERVICES {
  # add or remove based on preferences
  imap          cmd="imapd" listen="imap" prefork=0 provide_uuid=2
# imaps         cmd="imapd -s" listen="imaps" prefork=0
  pop3          cmd="pop3d" listen="pop3" prefork=0
# pop3s         cmd="pop3d -s" listen="pop3s" prefork=0
  sieve         cmd="timsieved" listen="sieve" prefork=0
  ## syncserver    cmd="/usr/local/cyrus/bin/sync_server"
listen="csync" prefork=0
  # syncclient    cmd="/usr/local/cyrus/bin/sync_client -r" listen="csync"
  # these are only necessary if receiving/exporting usenet via NNTP
#  nntp         cmd="nntpd" listen="nntp" prefork=0
#  nntps                cmd="nntpd -s" listen="nntps" prefork=0

  # at least one LMTP is required for delivery
  lmtp          cmd="lmtpd" listen="lmtp" prefork=0
  lmtpunix      cmd="lmtpd" listen="/usr/imap/var/imap/socket/lmtp" prefork=0

  # this is required if using notifications
#  notify       cmd="notifyd" listen="/var/imap/socket/notify"
proto="udp" prefork=1
}

EVENTS {
  # this is required
  checkpoint    cmd="ctl_cyrusdb -c" period=30

  # this is only necessary if using duplicate delivery suppression,
  # Sieve or NNTP
  delprune      cmd="cyr_expire -E 3" at=0400

  # this is only necessary if caching TLS sessions
  tlsprune      cmd="tls_prune" at=0400

  # SQUAT
  squatter      cmd="squatter -r user" period=1440



/usr/local/etc/imapd.conf
---------------------------------
#
# $FreeBSD: ports/mail/cyrus-imapd23/files/imapd.conf,v 1.13
2004/11/22 08:15:15 ume Exp $
#
# Sample configurations file for Cyrus IMAPd
# Most lines in this file are commented; in this case the default is used.
# The commented lines (usually) contain the default value

# The pathname of the IMAP configuration directory
#
# configdirectory: /var/imap

configdirectory: /usr/imap/var/imap

# The partition name used by default for new mailboxes
#
#defaultpartition: default

# The directory for the different partitions
#
#partition-default: /var/spool/imap

partition-default: /usr/imap/var/spool/imap

# Ändert den Standart-Servername auf ...
# Diese Option muss geändert werden, wenn die sasldb2.db von mail2
verwendet wird,
# da sonst die Authentifikation nicht funktioniert. Die Synchronisation zwischen
# mail2 und mail4 funktioniert aber anschliessend nicht mehr.
# servername: acsvfbsd02.acutronic.ch

# defaultdomain: acsvfbsd04.acutronic.ch
# defaultdomain: acutronic.ch
# virtdomain: yes

admins:root cyrus
sasl_pwcheck_method: auxprop
sasl_mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5
#sasl_sasldb_path: /usr/local/etc/sasldb2.db

lmtpsocket: /usr/imap/var/imap/socket/lmtp
# /var/imap/socket/lmtp

# Erlaubt die Benutzung von Klartext-Passwörtern
allowplaintext: yes

sync_machineid: 2
sync_repeat_interval: 1


After the new start I get the following error DBERROR message:

/var/log/messages
-------------------------
[snip]
Sep 20 14:51:06 acsvfbsd04 master[5774]: process started
Sep 20 14:51:06 acsvfbsd04 ctl_cyrusdb[5775]: recovering cyrus databases
Sep 20 14:51:06 acsvfbsd04 ctl_cyrusdb[5775]: skiplist: recovered
/usr/imap/var/imap/mailboxes.db (207 records, 36492 bytes) i
Sep 20 14:51:06 acsvfbsd04 ctl_cyrusdb[5775]: skiplist: recovered
/usr/imap/var/imap/annotations.db (0 records, 144 bytes) in
Sep 20 14:51:06 acsvfbsd04 ctl_cyrusdb[5775]: done recovering cyrus databases
Sep 20 14:51:07 acsvfbsd04 master[5774]: ready for work
Sep 20 14:51:07 acsvfbsd04 squatter[5776]: indexing mailboxes
Sep 20 14:51:07 acsvfbsd04 ctl_cyrusdb[5777]: checkpointing cyrus databases
Sep 20 14:51:07 acsvfbsd04 ctl_cyrusdb[5777]: DBERROR: error listing
log files: DB_NOTFOUND: No matching key/data pair found
Sep 20 14:51:07 acsvfbsd04 ctl_cyrusdb[5777]: DBERROR: archive
/usr/imap/var/imap/db: cyrusdb error
Sep 20 14:51:07 acsvfbsd04 ctl_cyrusdb[5777]: DBERROR: error listing
log files: DB_NOTFOUND: No matching key/data pair found
Sep 20 14:51:07 acsvfbsd04 ctl_cyrusdb[5777]: DBERROR: archive
/usr/imap/var/imap/db: cyrusdb error
Sep 20 14:51:07 acsvfbsd04 ctl_cyrusdb[5777]: DBERROR: error listing
log files: DB_NOTFOUND: No matching key/data pair found
Sep 20 14:51:07 acsvfbsd04 ctl_cyrusdb[5777]: DBERROR: archive
/usr/imap/var/imap/db: cyrusdb error
Sep 20 14:51:07 acsvfbsd04 ctl_cyrusdb[5777]: done checkpointing cyrus databases
Sep 20 14:51:21 acsvfbsd04 squatter[5776]: done indexing mailboxes
[snip]

After reinstall cyrus-imapd 2.3.9 the error is gone. Any ideas? Is
there a probleme with the Berkley DB (any upgrades necessairy?)? Any
hints are welcome.

Kind regards,
-- 
Martin Schweizer
schweizer.martin at gmail.com
Tel.: +41 32 512 48 54 (VoIP)
Fax: +1 619 3300587


More information about the Info-cyrus mailing list