DBERROR: critical database situation

Niels Dettenbach nd at syndicat.com
Wed Jan 4 04:15:36 EST 2017


Am Mittwoch, 4. Januar 2017, 09:45:47 CET schrieb absolutely_free--- via Info-
cyrus:
> Hi,
> I am using cyrus-imapd23-2.3.19_2 on FreeBSD.
> After BSD upgrade (from 10 to 11) I get problems with cyrus.
> I get this kind of errors on:
> 
> Jan  4 09:27:31 mail imaps[65141]: DBERROR db5: pthread suspend failed:
> Invalid argument Jan  4 09:27:31 mail imaps[65141]: DBERROR db5: BDB0061
> PANIC: Invalid argument Jan  4 09:27:31 mail imaps[65141]: DBERROR:
> critical database situation Jan  4 09:27:31 mail imaps[65140]: DBERROR db5:
> BDB0060 PANIC: fatal region error detected; run recovery Jan  4 09:27:31
> mail imaps[65140]: DBERROR: critical database situation Jan  4 09:27:38
> mail imaps[65142]: DBERROR db5: BDB0060 PANIC: fatal region error detected;
> run recovery Jan  4 09:27:38 mail imaps[65142]: DBERROR: critical database
> situation Jan  4 09:27:38 mail master[65081]: service imaps pid 65142 in
> READY state: terminated abnormally Jan  4 09:27:38 mail imaps[65143]:
> DBERROR db5: BDB0060 PANIC: fatal region error detected; run recovery Jan 
> 4 09:27:38 mail imaps[65143]: DBERROR: critical database situation Jan  4
> 09:27:38 mail master[65081]: service imaps pid 65143 in READY state:
> terminated abnormally

Just to clearify here: it is important to follow the upgrade procedure from 
cyrus:
https://www.cyrusimap.org/docs/cyrus-imapd/2.4.0/install-upgrade.php

and to export/reimport any data during db version changes / upgrades within 
the used cyrus builds (export before - delete db and and reimport after).

see i.e:
https://lists.andrew.cmu.edu/pipermail/info-cyrus/2015-August/038316.html
https://www.banquise.org/software/how-to-recover-from-cyrus-when-you-have-some-db-errors/ (Linux, but same thing...)


Another thing often required in such a situation is to remove :

	rm -f /var/lib/cyrus/deliver.db
	rm -f /var/lib/cyrus/tls_sessions.db

to avoid the existence of incompatible database files.

If that doesn't help, a bug in your build may be a reason. Did you build the 
software from sources / ports or installed binaries?

hth a bit,

Niels.

-- 
 ---
 Niels Dettenbach
 Syndicat IT & Internet
 http://www.syndicat.com
 PGP: https://syndicat.com/pub_key.asc
 ---
 



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20170104/a927645f/attachment-0001.sig>


More information about the Info-cyrus mailing list