Discussion:
ClamAV stopped working with ClamAV Module ERROR:: Could not load databases from /var/clamav
Remco Barendse
2014-06-18 11:44:49 UTC
Permalink
Hi list!

It seems ClamAV got updated on my CentOS 5.x machine but since the update,
it stopped working.

I see this error from the /var/log/maillog:
MailScanner[16618]: MailScanner E-Mail Virus Scanner version 4.84.6 starting...
MailScanner[16618]: Reading configuration file /etc/MailScanner/MailScanner.conf
MailScanner[16618]: Reading configuration file /etc/MailScanner/conf.d/README
MailScanner[16618]: Read 875 hostnames from the phishing whitelist
MailScanner[16618]: Read 0 hostnames from the phishing blacklists
MailScanner[16618]: Using SpamAssassin results cache
MailScanner[16618]: Connected to SpamAssassin cache database
MailScanner[16618]: Enabling SpamAssassin auto-whitelist functionality...
MailScanner[16618]: I have found clamavmodule scanners installed, and will use them all by default.
MailScanner[16618]: ClamAV Module ERROR:: Could not load databases from /var/clamav

I checked /var/clamav it looks ok, also wiped out the databases there and
then ren freshclam but no luck. Permissions also seem to be ok

Ideas anyone?
Jerry Benton
2014-06-18 12:30:02 UTC
Permalink
Is clamd running as the same user as before? They moved from clam to clamav
at some version not too long ago.


On Wed, Jun 18, 2014 at 1:44 PM, Remco Barendse <mailscanner at barendse.to>
Post by Remco Barendse
Hi list!
It seems ClamAV got updated on my CentOS 5.x machine but since the update,
it stopped working.
MailScanner[16618]: MailScanner E-Mail Virus Scanner version 4.84.6 starting...
MailScanner[16618]: Reading configuration file
/etc/MailScanner/MailScanner.conf
MailScanner[16618]: Reading configuration file
/etc/MailScanner/conf.d/README
MailScanner[16618]: Read 875 hostnames from the phishing whitelist
MailScanner[16618]: Read 0 hostnames from the phishing blacklists
MailScanner[16618]: Using SpamAssassin results cache
MailScanner[16618]: Connected to SpamAssassin cache database
MailScanner[16618]: Enabling SpamAssassin auto-whitelist functionality...
MailScanner[16618]: I have found clamavmodule scanners installed, and will
use them all by default.
MailScanner[16618]: ClamAV Module ERROR:: Could not load databases from /var/clamav
I checked /var/clamav it looks ok, also wiped out the databases there and
then ren freshclam but no luck. Permissions also seem to be ok
Ideas anyone?
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
--
--
Jerry Benton
Mailborder Systems
www.mailborder.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20140618/11fa40db/attachment.html
Kevin Miller
2014-06-18 16:28:18 UTC
Permalink
Also check the location of clamav. When I updated a few weeks ago, in addition to the user change from clam to clamav they moved the packages from /var/lib/clamav to /var/clamav. I found clue in the logs in /var/log/clamav/. Check the freshclam.conf and/or clamd.conf files ? they specify the location of the databases.

...Kevin
--
Kevin Miller
Network/email Administrator, CBJ MIS Dept.
155 South Seward Street
Juneau, Alaska 99801
Phone: (907) 586-0242, Fax: (907) 586-4500
Registered Linux User No: 307357
From: mailscanner-bounces at lists.mailscanner.info [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Jerry Benton
Sent: Wednesday, June 18, 2014 4:30 AM
To: MailScanner discussion
Subject: Re: ClamAV stopped working with ClamAV Module ERROR:: Could not load databases from /var/clamav

Is clamd running as the same user as before? They moved from clam to clamav at some version not too long ago.

On Wed, Jun 18, 2014 at 1:44 PM, Remco Barendse <mailscanner at barendse.to<mailto:mailscanner at barendse.to>> wrote:
Hi list!

It seems ClamAV got updated on my CentOS 5.x machine but since the update,
it stopped working.

I see this error from the /var/log/maillog:
MailScanner[16618]: MailScanner E-Mail Virus Scanner version 4.84.6 starting...
MailScanner[16618]: Reading configuration file /etc/MailScanner/MailScanner.conf
MailScanner[16618]: Reading configuration file /etc/MailScanner/conf.d/README
MailScanner[16618]: Read 875 hostnames from the phishing whitelist
MailScanner[16618]: Read 0 hostnames from the phishing blacklists
MailScanner[16618]: Using SpamAssassin results cache
MailScanner[16618]: Connected to SpamAssassin cache database
MailScanner[16618]: Enabling SpamAssassin auto-whitelist functionality...
MailScanner[16618]: I have found clamavmodule scanners installed, and will use them all by default.
MailScanner[16618]: ClamAV Module ERROR:: Could not load databases from /var/clamav

I checked /var/clamav it looks ok, also wiped out the databases there and
then ren freshclam but no luck. Permissions also seem to be ok

Ideas anyone?
--
MailScanner mailing list
mailscanner at lists.mailscanner.info<mailto:mailscanner at lists.mailscanner.info>
http://lists.mailscanner.info/mailman/listinfo/mailscanner

Before posting, read http://wiki.mailscanner.info/posting

Support MailScanner development - buy the book off the website!



--

--
Jerry Benton
Mailborder Systems
www.mailborder.com<http://www.mailborder.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20140618/c72acb19/attachment.html
Rick Cooper
2014-06-18 14:46:04 UTC
Permalink
Bear in mind this same error will occur during the creation of the initial
object and if anything changed in the exports part of the perl module all
manner of issues can occur. That is why Julian finally agreed to include the
clamd code after having asked so many times, anything changes in certain
internal parts of libclamav and the clamav module is broken until the
maintainer gets around to modifying the constants imports and functions

Switch to clamd and you will likely have no issue and use a lot fewer
resources

-----Original Message-----
From: mailscanner-bounces at lists.mailscanner.info
[mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Remco
Barendse
Sent: Wednesday, June 18, 2014 7:45 AM
To: MailScanner mailing list
Subject: ClamAV stopped working with ClamAV Module ERROR:: Could not
loaddatabases from /var/clamav

Hi list!

It seems ClamAV got updated on my CentOS 5.x machine but since the update,
it stopped working.

I see this error from the /var/log/maillog:
MailScanner[16618]: MailScanner E-Mail Virus Scanner version 4.84.6
starting...
MailScanner[16618]: Reading configuration file
/etc/MailScanner/MailScanner.conf
MailScanner[16618]: Reading configuration file
/etc/MailScanner/conf.d/README
MailScanner[16618]: Read 875 hostnames from the phishing whitelist
MailScanner[16618]: Read 0 hostnames from the phishing blacklists
MailScanner[16618]: Using SpamAssassin results cache
MailScanner[16618]: Connected to SpamAssassin cache database
MailScanner[16618]: Enabling SpamAssassin auto-whitelist functionality...
MailScanner[16618]: I have found clamavmodule scanners installed, and will
use them all by default.
MailScanner[16618]: ClamAV Module ERROR:: Could not load databases from
/var/clamav

I checked /var/clamav it looks ok, also wiped out the databases there and
then ren freshclam but no luck. Permissions also seem to be ok

Ideas anyone?
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner

Before posting, read http://wiki.mailscanner.info/posting

Support MailScanner development - buy the book off the website!
Loading...