Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-04-2009, 09:29 AM
Active Member
 
Posts: 44
Default clamav problems after nightly backups

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?
Reply With Quote
  #2 (permalink)  
Old 04-21-2009, 07:16 AM
Junior Member
 
Posts: 9
Default New since .14

I have had a nightly backup in place for almost two years and have not had a problem until updating to 5.0.14GA on Ubuntu 8.04LTS. I have the exact same problem. The odd thing about it is that if I start/stop/start again after the backup there is no issue, and if I restart the O/S there is no issue. It is only after I stop/backup/start that it happens.

Anyone else?

Jon
Reply With Quote
  #3 (permalink)  
Old 04-24-2009, 02:50 AM
Junior Member
 
Posts: 9
Default

Yes I'm also getting this same problem on two Zimbra installs, both 5.0.14 and both on Ubuntu 8.04LTS

Exactly the same issue with stop/backup/start causing the issue where there is no issue just stop/start

On my major zimbra install I've simply switched off the AV until I have a fix as this server needs to be backed up every night. Any fix would be appreciated.
Reply With Quote
  #4 (permalink)  
Old 05-04-2009, 10:38 AM
Special Member
 
Posts: 100
Default

Same issue here.. I've seen it happening both on Ubuntu or rhel 4x (ose or network edition)
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.