cvt_cyrusdb and berkeley log files

Rob Siemborski rjs3 at andrew.cmu.edu
Tue Mar 2 10:14:50 EST 2004


On Tue, 2 Mar 2004, Andreas wrote:

> Now I restart cyrus. And get this in the logs:
> ctl_cyrusdb[30046]: DBERROR db4: /var/lib/imap/mailboxes.db: unexpected file type or format
> ctl_cyrusdb[30046]: DBERROR db4: Recovery function for LSN 1 4471396 failed
> ctl_cyrusdb[30046]: DBERROR db4: PANIC: Invalid argument
> ctl_cyrusdb[30046]: DBERROR: critical database situation
>
> It seems ctl_cyrusdb is attempting to read mailboxes.db as a DB file and not skiplist.
> I *suppose* this happens because it is trying to recover the database using the log file
> which was left there and contains BDB transactions. AFAIK, however, this type of recovery
> procedure is called "catastrophic" by the berkeley folks: a normal recovery procedure
> would only touch log files which contain uncommited transactions. Looking at the code, I
> see that it is not performing catastrophic recovery (it's just using the DB_RECOVER flag
> when opening the environment), so I'm at a loss here.
>
> The only way to remedy this situation is to remove the relevant log files.
> Anybody care to comment?

Its likely -- but did you remember to reconfigure cyrus to use skiplist to
read the mailbox list?

-Rob

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456
Research Systems Programmer * /usr/contributed Gatekeeper

---
Home Page: http://asg.web.cmu.edu/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