Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 338422 - app-antivirus/clamav freshclam fails due to freshclam.log missing
Summary: app-antivirus/clamav freshclam fails due to freshclam.log missing
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Antivirus Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-23 08:44 UTC by KJS
Modified: 2012-08-11 13:23 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.