Re: DBERROR: critical database situation

Niels Dettenbach via Info-cyrus <[email protected]>
Newsgroups gmane.mail.imap.cyrus
Organization Syndicat IT&Internet
Message-ID <1757481.Wa9tHEiyg0@gongo>
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
 ---

----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEen+3H2N8RDyGzUZnDbtaiEWSKkQFAlhsvTgACgkQDbtaiEWS
KkSqLRAAiBpkOVvj3Tbhr+aUZ7tZg3alzGAfuN4Bq+okLRHof8M88HbU1xHQMTsJ
UpsywdkfJcL6LXWd4yHB3+KApX8jB6o3c3ub6DYKXXUoVe8CDCyCmUKbJ4sQyeLl
S8gClnGWHWnwezN88ocBrjiyKQmSwksT/kF1/BNDHyaACacfskXcMetJFWPMHpBd
RY6HgEcGqz2XSzmLSR8Y6sYc/L2yPiYsoh69Jdc+a/h0Ek4oxY0P27Ag+B5tufDl
Ctfq96N/tQa9u5Uwe/qDLL/+WWR8hnEwaRHD6chqYWQn5Z7i09sGKNLS1f7qw1nD
sHzpijDUxH3Hhs5EjTmKmb4XUr9W8DVbb9lrL3nf1EJK+rSwq98gs4vdYqjqIsjx
47QjMtEbHqurFqyW0B8vUxwRG8QvCZzwRMr+DoMYG438UrBOkcWhp0NTXRg8gFJe
bPASTUl3ReAjQZyLYq2kftNkteydMSwJFOvteipOHDEXKLuaXKQL+XncW4q7ODmk
3ZXMFhgtuOsH44ErtRpoyHUmHUtl/1lTSFVzTdcyqu2YT6/TASnXcK8/o0yHd7WV
0/fDB8fg1lNDYPR8ldan7V8PGal/2THaVCuEQCjEuB7QgtEUskcqKF8NTMP9hWlR
Z3+/zxuV4gcaGn2y179Ikjd/T4lgKV155lVroFA6p2NvIfNoZtI=
=zCYx
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.