i run nightly backups on my zimbra (5.0.14) by stopping zimbra, rsyncing and restarting zimbra.
every couple of weeks or so, the antivirus fails to stars because the clamav database gets corrupted (and out of date), the error below is:
Code:
LibClamAV Warning: ***********************************************************
LibClamAV Warning: *** This version of the ClamAV engine is outdated. ***
LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***
LibClamAV Warning: ***********************************************************
LibClamAV Warning: ***********************************************************
LibClamAV Warning: *** This version of the ClamAV engine is outdated. ***
LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***
LibClamAV Warning: ***********************************************************
LibClamAV Error: cli_loadmd5: Problem parsing database at line 364543
LibClamAV Error: Can't load main.mdb: Malformed database
LibClamAV Error: cli_tgzload: Can't load main.mdb
LibClamAV Error: Can't load /opt/zimbra/data/clamav/db/main.cld: Malformed database
this seems to be caused directly by just startting and stopping zimbra, but i'm not sure what the bug is. it is likely some race condition.
simply following the instructions here, will get things whipped into shape
ClamAV - Reset Defs DB - Zimbra :: Wiki
however, i would need to run this everytime i find my zimbra in this bad state, which is usually not until i have about 200 messages deferred (which is then when i realize zimbra is down)
thus, i've modified my backup script to also restart the antivirus after backing up and restarting zimbra.
Code:
sudo -u zimbra /opt/zimbra/bin/zmcontrol stop
rsync -avz /opt/zimbra /backups/zimbra
sudo -u zimbra /opt/zimbra/bin/zmcontrol start
sudo -u zimbra /opt/zimbra/bin/zmantivirusctl stop
sudo -u zimbra /opt/zimbra/bin/zmantivirusctl start
will this cause me even more problems? anyone have a better suggestion?