Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 338422

Summary: app-antivirus/clamav freshclam fails due to freshclam.log missing
Product: Gentoo Linux Reporter: KJS <wolfden>
Component: Current packagesAssignee: Antivirus Team <antivirus>
Status: RESOLVED INVALID    
Severity: normal CC: bug, jackdachef
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description KJS 2010-09-23 08:44:05 UTC
When trying to run freshclam to update the db

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

ls -la /var/log/clamav/
total 0
drwxr-xr-x  2 haldaemon dhcp  51 Sep 19 07:12 .
drwxr-xr-x 16 root      root 240 Sep 23 02:09 ..
-rw-r--r--  1 root      root   0 Sep 16 14:09 .keep_app-antivirus_clamav-0

Fix:
touch /var/log/clamav/freshclam.log
chown clamav:clamav /var/log/clamav/freshclam.log


Reproducible: Always

Steps to Reproduce:
1.install clamav
2.run freshclam

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

Expected Results:  
freshclam to successfully connect and download the latest definitions
Comment 1 Marcin Mirosław 2010-11-05 13:42:23 UTC
Why do you have so strange permissions/owners of:
 drwxr-xr-x  2 haldaemon dhcp  51 Sep 19 07:12 .
? It's clear that freslam (if is working as clamav) can't write to those directory.
Comment 2 Eray Aslan gentoo-dev 2012-08-11 13:23:44 UTC
Closing as invalid.