all Mailboxes disappear when cyrus-imapd restarts

Simon Matter simon.matter at ch.sauter-bc.com
Thu Jun 26 03:00:28 EDT 2003


Hi,

It seems you have upgraded your server from Ramiro Morales's 2.0.16 rpms
to one of my 2.1.x rpms. They are not compatible to just upgrade!
Without knowing too much what could be wrong, it seems that some db's
are in an unsupported format for you 2.1.x cyrus-imapd version.

Simon

Sydney Weidman schrieb:
> 
> It seems that whenever my RedHat 7.2 system restarts the cyrus-imapd
> server, all the mailboxes for all users vanish. In order to restore the
> mailboxes, I use cyradm as the cyrus user and cm user.* for every
> directory that I find in the /var/spool/imap/<letter>/<username>/* tree.
> Then I have to run (also as the cyrus user)
> /usr/libexec/cyrus/reconstruct -r user.username.
> 
> But if the server gets restarted, I have to do it all over again. Here
> is some info to help give some clues. I am at a loss to explain this.
> Thanks in advance for any assistance.
> 
> Cheers,
> Syd.
> 
> [root at server syd]# uname -a
> Linux server.plug.ca 2.4.9-31 #1 Tue Feb 26 06:53:37 EST 2002 i586
> unknown
> 
> [root at server syd]# rpm -qa | grep cyrus
> cyrus-imapd-utils-2.1.9-3
> cyrus-sasl-gssapi-2.1.5-1
> cyrus-imapd-2.1.9-3
> cyrus-sasl-devel-2.1.5-1
> cyrus-imapd-doc-2.0.16-5rm
> cyrus-sasl-2.1.5-1
> cyrus-sasl-plain-2.1.5-1
> cyrus-sasl-md5-2.1.5-1
> cyrus-imapd-devel-2.1.9-3
> 
> Many errors like this are seen in /var/adm/imapd.log:
> Jun 25 12:00:52 server cvt_cyrusdb[7220]: DBERROR db3:
> /var/lib/imap/user/w/weidmans.seen.cvt_cyrusdb: unexpected file type or
> format
> Jun 25 12:00:52 server cvt_cyrusdb[7220]: DBERROR: opening
> /var/lib/imap/user/w/weidmans.seen.cvt_cyrusdb: Invalid argument
> 
> Also a few like this:
> 
> Jun 25 02:26:41 server lmtpd[3292]: DBERROR: error closing:
> DB_RUNRECOVERY: Fatal error, run database recovery
> Jun 25 02:26:41 server lmtpd[3292]: DBERROR: error closing deliverdb:
> cyrusdb error
> Jun 25 02:26:41 server lmtpd[3292]: DBERROR: error exiting application:
> DB_RUNRECOVERY: Fatal error, run database recovery
> 
> [root at server syd]# cat /etc/imapd.conf
> configdirectory: /var/lib/imap
> partition-default: /var/spool/imap
> admins: cyrus
> allowanonymouslogin: no
> sieveuserhomedir: no
> servername: mail.plug.ca
> sievedir: /var/lib/imap/sieve
> sendmail: /usr/sbin/sendmail
> hashimapspool: true
> sasl_pwcheck_method: auxprop
> sasl_mech_list: digest-md5 cram-md5 gssapi shadow plain
> tls_cert_file: /var/lib/imap/cyrus-imapd.pem
> tls_key_file: /var/lib/imap/cyrus-imapd.pem
> 
> [root at server syd]# cat /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/lib/imap/sockets
> SERVICES {
>   # add or remove based on preferences
>   imap          cmd="imapd" listen="imap" prefork=5
>   imaps         cmd="imapd -s" listen="imaps" prefork=1
>   pop3          cmd="pop3d" listen="pop3" prefork=3
>   pop3s         cmd="pop3d -s" listen="pop3s" prefork=1
>   sieve         cmd="timsieved" listen="sieve" prefork=0
> 
>   # at least one LMTP is required for delivery
> #  lmtp         cmd="lmtpd" listen="lmtp" prefork=0
>   lmtpunix      cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=1
> 
>   # this is only necessary if using notifications
> #  notify       cmd="notifyd" listen="/var/lib/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
>   delprune      cmd="ctl_deliver -E 3" period=1440
> 
>   # this is only necessary if caching TLS sessions
>   tlsprune      cmd="tls_prune" period=1440
> }
> 
>   ------------------------------------------------------------------------
>                        Name: signature.asc
>    signature.asc       Type: application/pgp-signature
>                 Description: This is a digitally signed message part




More information about the Info-cyrus mailing list