Moving Cyrus from one server to another

Frank Reta frank at lag.net
Mon Nov 22 05:02:40 EST 2004


Hey all:
After scouring the archives I couldn't find an answer to this particular 
question:

I've cyrus imap running beautifully on a RH 8.0 box right now but I'm in a 
situation where I need to move the operation onto another RH8.0 box.  I've 
built out the cyrus/postfix structure on the new box but can't seem to get 
cyrus up and running on the new box with the old server 
databases/mailstores.

To do this, I shutdown cyrus, shuttingdown saslauthd and master.  Then I 
rsync'd (recursively) /var/imap which contained:
drwxr-x---   11 cyrus    mail         4096 Nov 22 01:22 .
drwxr-xr-x   21 root     root         4096 Oct 18 01:49 ..
drwxr-xr-x    2 cyrus    mail         4096 Nov 21 07:52 db
drwx------    2 cyrus    mail         4096 Nov 22 01:22 db.backup1
drwx------    2 cyrus    mail         4096 Nov 22 00:52 db.backup2
-rw-------    1 cyrus    mail       258048 Nov 22 01:22 deliver.db
drwxr-xr-x    2 cyrus    mail         4096 Oct  4  2003 log
-rw-------    1 cyrus    mail        16384 Nov 22 01:22 mailboxes.db
drwxr-xr-x    2 cyrus    mail         4096 Oct  4  2003 msg
drwxr-xr-x    2 cyrus    mail         4096 Nov 22 01:40 proc
drwxr-xr-x   28 cyrus    mail         4096 Oct  4  2003 quota
-rw-------    1 cyrus    mail         1807 Oct  4  2003 server.pem
drwxr-xr-x    2 cyrus    mail         4096 Nov 11 19:52 socket
-rw-------    1 cyrus    mail         8192 Nov 21 19:52 tls_sessions.db
drwxr-xr-x   28 cyrus    mail         4096 Oct  4  2003 user

followed by rsyncing (resursiv.) /var/spool/imap which contained:
drwxr-xr-x    2 cyrus    mail         4096 Nov 22 01:37 stage.
drwx------   33 cyrus    mail         4096 Nov 20 19:59 user


The immediate error that comes up in /var/log/messages is:

Nov 22 01:52:18 lumbergh master[2003]: setrlimit: Unable to set file 
descriptors limit to -1: Operation not permitted
Nov 22 01:52:18 lumbergh saslauthd[2004]: detach_tty      : master pid is: 
2004
Nov 22 01:52:18 lumbergh saslauthd[2004]: ipc_init        : listening on 
socket: /var/run/saslauthd/mux
Nov 22 01:52:18 lumbergh master[2003]: retrying with 1024 (current max)
Nov 22 01:52:18 lumbergh master[2003]: process started


followed about 20 seconds later with:

Nov 22 01:52:36 lumbergh ctl_cyrusdb[2009]: DBERROR db4: unable to join 
the environment
Nov 22 01:52:36 lumbergh ctl_cyrusdb[2009]: DBERROR db4: Ignoring log 
file: /var/imap/db/log.0000000017: unsupported log version 7
Nov 22 01:52:36 lumbergh ctl_cyrusdb[2009]: DBERROR db4: Invalid log file: 
log.0000000017: Invalid argument
Nov 22 01:52:36 lumbergh ctl_cyrusdb[2009]: DBERROR db4: PANIC: Invalid 
argument
Nov 22 01:52:36 lumbergh ctl_cyrusdb[2009]: DBERROR: critical database 
situation
Nov 22 01:52:36 lumbergh master[2003]: process 2009 exited, status 75
Nov 22 01:52:36 lumbergh master[2003]: ready for work
Nov 22 01:52:36 lumbergh tls_prune[2015]: DBERROR db4: region error 
detected; run recovery.
Nov 22 01:52:36 lumbergh tls_prune[2015]: DBERROR: dbenv->open 
'/var/imap/db' failed: DB_RUNRECOVERY: Fatal error, run database recovery
Nov 22 01:52:36 lumbergh tls_prune[2015]: DBERROR: init() on berkeley
Nov 22 01:52:36 lumbergh tls_prune[2015]: DBERROR: reading 
/var/imap/db/skipstamp, assuming the worst: No such file or directory
Nov 22 01:52:36 lumbergh tls_prune[2015]: DBERROR db4: environment not yet 
opened
Nov 22 01:52:36 lumbergh tls_prune[2015]: DBERROR: opening 
/var/imap/tls_sessions.db: Invalid argument
Nov 22 01:52:36 lumbergh tls_prune[2015]: DBERROR: opening 
/var/imap/tls_sessions.db: cyrusdb error
Nov 22 01:52:36 lumbergh cyr_expire[2016]: DBERROR db4: region error 
detected; run recovery.
Nov 22 01:52:36 lumbergh cyr_expire[2016]: DBERROR: dbenv->open 
'/var/imap/db' failed: DB_RUNRECOVERY: Fatal error, run database recovery
Nov 22 01:52:36 lumbergh cyr_expire[2016]: DBERROR: init() on berkeley
Nov 22 01:52:36 lumbergh cyr_expire[2016]: DBERROR: reading 
/var/imap/db/skipstamp, assuming the worst: No such file or directory
Nov 22 01:52:36 lumbergh ctl_cyrusdb[2017]: DBERROR db4: region error 
detected; run recovery.
Nov 22 01:52:36 lumbergh ctl_cyrusdb[2017]: DBERROR: dbenv->open 
'/var/imap/db' failed: DB_RUNRECOVERY: Fatal error, run database recovery
Nov 22 01:52:36 lumbergh cyr_expire[2016]: skiplist: recovered 
/var/imap/annotations.db (0 records, 144 bytes) in 0 seconds
Nov 22 01:52:36 lumbergh cyr_expire[2016]: skiplist: invalid magic header: 
/var/imap/mailboxes.db
Nov 22 01:52:36 lumbergh cyr_expire[2016]: DBERROR: opening 
/var/imap/mailboxes.db: cyrusdb error
Nov 22 01:52:36 lumbergh ctl_cyrusdb[2017]: DBERROR: init() on berkeley
Nov 22 01:52:36 lumbergh ctl_cyrusdb[2017]: DBERROR: reading 
/var/imap/db/skipstamp, assuming the worst: No such file or directory
Nov 22 01:52:36 lumbergh ctl_cyrusdb[2017]: checkpointing cyrus databases
Nov 22 01:52:36 lumbergh ctl_cyrusdb[2017]: DBERROR db4: txn_checkpoint 
interface requires an environment configured for the transaction subsystem
Nov 22 01:52:36 lumbergh ctl_cyrusdb[2017]: DBERROR: couldn't checkpoint: 
Invalid argument
Nov 22 01:52:36 lumbergh ctl_cyrusdb[2017]: DBERROR: sync /var/imap/db: 
cyrusdb error
Nov 22 01:52:36 lumbergh ctl_cyrusdb[2017]: DBERROR db4: 
DB_ENV->log_archive interface requires an environment configured for the 
logging subsystem
Nov 22 01:52:36 lumbergh ctl_cyrusdb[2017]: DBERROR: error listing log 
files: Invalid argument
Nov 22 01:52:36 lumbergh ctl_cyrusdb[2017]: DBERROR: archive /var/imap/db: 
cyrusdb error
Nov 22 01:52:36 lumbergh ctl_cyrusdb[2017]: DBERROR db4: txn_checkpoint 
interface requires an environment configured for the transaction subsystem
Nov 22 01:52:36 lumbergh ctl_cyrusdb[2017]: DBERROR: couldn't checkpoint: 
Invalid argument
Nov 22 01:52:36 lumbergh ctl_cyrusdb[2017]: DBERROR: sync /var/imap/db: 
cyrusdb error
Nov 22 01:52:36 lumbergh ctl_cyrusdb[2017]: DBERROR db4: 
DB_ENV->log_archive interface requires an environment configured for the 
logging subsystem
Nov 22 01:52:36 lumbergh ctl_cyrusdb[2017]: DBERROR: error listing log 
files: Invalid argument
Nov 22 01:52:36 lumbergh ctl_cyrusdb[2017]: DBERROR: archive /var/imap/db: 
cyrusdb error
Nov 22 01:52:36 lumbergh ctl_cyrusdb[2017]: done checkpointing cyrus 
databases
Nov 22 01:52:18 lumbergh master[2003]: setrlimit: Unable to set file 
descriptors limit to -1: Operation not permitted
Nov 22 01:52:18 lumbergh saslauthd[2004]: detach_tty      : master pid is: 
2004
Nov 22 01:52:18 lumbergh saslauthd[2004]: ipc_init        : listening on 
socket: /var/run/saslauthd/mux
Nov 22 01:52:18 lumbergh master[2003]: retrying with 1024 (current max)
Nov 22 01:52:18 lumbergh master[2003]: process started

I've been struggling with this for a while now...Can anyone shed any light 
on this?

--Frank Reta

---
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