Saturday, 23 March 2013

centos frehclam log file error

I was repeated receiving email about logging failed in freshclam. The exact error message in email was:

/etc/cron.daily/freshclam:

ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log)ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).



The solution to this problem is to edit the /etc/freshclam.conf and fix the user thing. The text you have to edit is:

DatabaseOwner someowner

Search for the above and replace someowner with the owner of the file  /var/log/clamav/freshclam.log . Then run freshclam and it wont throw the error and also run yum update because it showed me that my version of clamav is being phased and out and a newer version is available in repos. After the update everything is smooth and perfect as before.

The way to make sure everything is fine is by running the freshclam yourself and looking if it runs fine.

No comments:

Post a Comment