Webhosting Blog

BerkeleyDB error in exim logs


The Exim logs might display strange error as follows:

The  /var/log/exim_mainlog shows Berkeley DB error.

[root@server~]# cat /var/log/exim_mainlog

Berkeley DB error: PANIC: fatal region error detected; run recovery
Berkeley DB error: PANIC: fatal region error detected; run recovery
Berkeley DB error: PANIC: fatal region error detected; run recovery

This is an error message is generally from BerkeleyDB libraries! Exim stores certain databases using BerkeleyDB for e.g. the  aliases files.

In order to resolve this error on a cPanel server you can remove or move the DB.

[root@server~]# mv /var/spool/exim/db /var/spool/exim/db.bak

Once done you can restart the exim service.

[root@server~]#/scripts/restartsrv_exim

OR

[root@server~]# /etc/init.d/exim restart

This should now remove the error.

Advertisements

One response

  1. Thank you for this post, it helped me to solve the same problem with exim.

    December 20, 2012 at 11:29 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s