Discussion:
[clamav-users] Issue with ClamAV on Red Hat Enterprise Linux
(too old to reply)
Nathan Parker
2016-05-30 01:55:26 UTC
Permalink
Hi there!


Sorry it's taken me so long to respond. I've had issues receiving the Daily Digests.


Here's the error message I receive when I attempt to run freshclam:


[***@redhatpc ~]$ freshclam

ERROR: Please edit the example config file /etc/freshclam.conf

ERROR: Can't open/parse the config file /etc/freshclam.conf

[***@redhatpc ~]$


Here is the error message I receive when I attempt to run clamscan:

[***@redhatpc ~]$ clamscan
LibClamAV Warning: **************************************************
LibClamAV Warning: *** The virus database is older than 7 days! ***
LibClamAV Warning: *** Please update it as soon as possible. ***
LibClamAV Warning: **************************************************
LibClamAV Error: Can't load /var/lib/clamav/main.cvd: Can't verify database integrity
LibClamAV Error: cli_loaddbdir(): error loading database /var/lib/clamav/main.cvd
ERROR: Can't verify database integrity

----------- SCAN SUMMARY -----------
Known viruses: 78529
Engine version: 0.99.1
Scanned directories: 0
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 1.106 sec (0 m 1 s)
[***@redhatpc ~]$


Any help in resolving these two issues would be much appreciated.


Thanks!


Nathan Parker

President/CEO
Mallard Computer, Inc.
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
Rafael Ferreira
2016-05-30 02:02:55 UTC
Permalink
That error usually means that main.cvd is corrupted but since freshclam doesn’t even run I would start there, it might be just a matter of sorting out your /etc/freshclam.conf file
Post by Nathan Parker
Hi there!
Sorry it's taken me so long to respond. I've had issues receiving the Daily Digests.
ERROR: Please edit the example config file /etc/freshclam.conf
ERROR: Can't open/parse the config file /etc/freshclam.conf
LibClamAV Warning: **************************************************
LibClamAV Warning: *** The virus database is older than 7 days! ***
LibClamAV Warning: *** Please update it as soon as possible. ***
LibClamAV Warning: **************************************************
LibClamAV Error: Can't load /var/lib/clamav/main.cvd: Can't verify database integrity
LibClamAV Error: cli_loaddbdir(): error loading database /var/lib/clamav/main.cvd
ERROR: Can't verify database integrity
----------- SCAN SUMMARY -----------
Known viruses: 78529
Engine version: 0.99.1
Scanned directories: 0
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 1.106 sec (0 m 1 s)
Any help in resolving these two issues would be much appreciated.
Thanks!
Nathan Parker
President/CEO
Mallard Computer, Inc.
_______________________________________________
https://github.com/vrtadmin/clamav-faq
http://www.clamav.net/contact.html#ml
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html
Al Varnell
2016-05-30 04:22:34 UTC
Permalink
Looks like permission errors. Is freshclam.conf and your database owned by the clamav user and are you running freshclam as such?

-Al-
Post by Nathan Parker
Hi there!
Sorry it's taken me so long to respond. I've had issues receiving the Daily Digests.
ERROR: Please edit the example config file /etc/freshclam.conf
ERROR: Can't open/parse the config file /etc/freshclam.conf
LibClamAV Warning: **************************************************
LibClamAV Warning: *** The virus database is older than 7 days! ***
LibClamAV Warning: *** Please update it as soon as possible. ***
LibClamAV Warning: **************************************************
LibClamAV Error: Can't load /var/lib/clamav/main.cvd: Can't verify database integrity
LibClamAV Error: cli_loaddbdir(): error loading database /var/lib/clamav/main.cvd
ERROR: Can't verify database integrity
----------- SCAN SUMMARY -----------
Known viruses: 78529
Engine version: 0.99.1
Scanned directories: 0
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 1.106 sec (0 m 1 s)
Any help in resolving these two issues would be much appreciated.
Thanks!
Nathan Parker
President/CEO
Mallard Computer, Inc.
_______________________________________________
https://github.com/vrtadmin/clamav-faq
http://www.clamav.net/contact.html#ml
-Al-
--
Al Varnell
Mountain View, CA
Dennis Peterson
2016-05-30 05:34:22 UTC
Permalink
If you completely installed ClamAV from RPM packages one would have installed
sample copies of freshclam.conf and clamd.conf. Those files need to be edited
after they're installed. Information for doing so can be found in the
documentation at clamav.net.

Specifically, freshclam.conf has the following two lines in it that require your
attention:

# Comment or remove the line below.
Example

The keyword Example is what makes the file an unuseable example of the final
version. You need to comment or remove the word as instructed.

If you have not done at least this then freshclam will report the two errors you
saw. There is more to do with this configuration file to localize it to your
installation and geographic location.

The same is true to for the clamd.conf file.

dp
Post by Nathan Parker
Hi there!
Sorry it's taken me so long to respond. I've had issues receiving the Daily Digests.
ERROR: Please edit the example config file /etc/freshclam.conf
ERROR: Can't open/parse the config file /etc/freshclam.conf
LibClamAV Warning: **************************************************
LibClamAV Warning: *** The virus database is older than 7 days! ***
LibClamAV Warning: *** Please update it as soon as possible. ***
LibClamAV Warning: **************************************************
LibClamAV Error: Can't load /var/lib/clamav/main.cvd: Can't verify database integrity
LibClamAV Error: cli_loaddbdir(): error loading database /var/lib/clamav/main.cvd
ERROR: Can't verify database integrity
----------- SCAN SUMMARY -----------
Known viruses: 78529
Engine version: 0.99.1
Scanned directories: 0
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 1.106 sec (0 m 1 s)
Any help in resolving these two issues would be much appreciated.
Thanks!
Nathan Parker
President/CEO
Mallard Computer, Inc.
_______________________________________________
https://github.com/vrtadmin/clamav-faq
http://www.clamav.net/contact.html#ml
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
Nathan Parker
2016-06-04 01:19:44 UTC
Permalink
Thanks everyone for chiming into this. Sorry it's taken me so long to respond (again).


So basically, I just need to open those two files mentioned above and edit them to get everything running?


Thanks!


Nathan Parker

President/CEO
Mallard Computer, Inc.
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml

Loading...