Quote:
Originally Posted by Ron Haines I'm hoping someone can alert me to the consequences of removing clamav/db. |
I think these files are the virus databases updated by freshclam, so I reckon they're safe to delete or temporarily move at least.
Quote:
Originally Posted by Ron Haines A little hunting found hundreds of directories like clamav-5145907358182416d2857299a25a3434 in /var/tmp, each taking about 19M. Could be another clue to clamd's problems. The perms on /var/tmp look OK. |
I had the same symptoms as you... possibly caused by a server crash corrupting files.. or perhaps running out of space in /tmp.
Everything is sort of running now, but I had to cludge things a little.
I updated clamav to the latest version using this wiki entry...
Updating CLAMAV - ZimbraWiki
I deleted all the clamav-* directories in /tmp.
I reran the install in upgrade mode.
Clamd still won't report as running using 'zmcontrol status' or 'zmclamdctl status', and the error is always
'cat: /opt/zimbra/log/clamd.pid: No such file or directory'.
By grepping for the clamd process, I can find it and get it's PID tho, so when I fake the clamd.pid file antivirus is reported as running by zmcontrol status.
Something still needs fixing as 'zmclamdctl restart' puts me back in the same position, but at least outgoing mail works again.
Code:
$ zmclamdctl start
$ ps aux | grep clamd
zimbra 28500 12.7 2.6 32500 27480 ? Ss 11:36 1:41 /opt/zimbra/clamav/sbin/clamd --config-file /opt/zimbra/conf/clamd.conf
$ echo 28500 > /opt/zimbra/log/clamd.pid
$ zmclamdctl status