5

ERROR: /var/log/clamav/freshclam.log is locked by another process

view full story
linux-howto

http://www.linuxquestions.org – hi I've clamav daemon installed on debian lenny: Code: # dpkg -l | grep clamav ii  clamav                              0.95.3+dfsg-1~volatile1                        anti-virus utility for Unix - command-line interface ii  clamav-base                          0.95.3+dfsg-1~volatile1                        anti-virus utility for Unix - base package ii  clamav-daemon                        0.95.3+dfsg-1~volatile1                        anti-virus utility for Unix - scanner daemon ii  clamav-freshclam                    0.95.3+dfsg-1~volatile1                        anti-virus utility for Unix - virus database update utility rc  libclamav2                          0.91.2-1~volatile1                              virus scanner library rc  libclamav3                          0.92.1~dfsg-1volatile2                          virus scanner library ii  libclamav5                          0.94.dfsg.2-1lenny2                            anti-virus utility for Unix - library ii  libclamav6                          0.95.3+dfsg-1~volatile1                        anti-virus utility for Unix - library Using freshclam I'm getting the following error: Code: # freshclam ERROR: /var/log/clamav/freshclam.log is locked by another process ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log). my /etc/clamav/freshclam.conf Code: DatabaseOwner clamav UpdateLogFile /var/log/clamav/freshclam.log LogVerbose false LogSyslog false LogFacility LOG_LOCAL6 LogFileMaxSize 0 LogTime no Foreground false Debug false MaxAttempts 5 DatabaseDirectory /var/lib/clamav/ DNSDatabaseInfo current.cvd.clamav.net AllowSupplementaryGroups false PidFile /var/run/clamav/freshclam.pid ConnectTimeout 30 ReceiveTimeout 30 ScriptedUpdates yes CompressLocalDatabase no # Check for new database 24 times a day Checks 24 DatabaseMirror db.local.clamav.net DatabaseMirror database.clamav.net DatabaseMirror clamav.gencore.org DatabaseMirror clamav.datev.de DatabaseMirror clamav.ftp.genotec.ch DatabaseMirror switch.clamav.net DatabaseMirror db.ch.clamav.net and in /var/log/clamav/ I have the following permissions: Code: # ls -l /var/log/clamav/ total 100 -rw-r----- 1 clamav adm    0 2010-01-31 11:00 clamav.log -rw-r----- 1 clamav adm 1555 2010-01-31 11:00 clamav.log.1 -rw-r----- 1 clamav adm  124 2010-01-31 02:00 clamav.log.10.gz -rw-r----- 1 clamav adm  117 2010-01-31 00:00 clamav.log.11.gz -rw-r----- 1 clamav adm  20 2010-01-30 23:00 clamav.log.12.gz -rw-r----- 1 clamav adm  124 2010-01-31 10:00 clamav.log.2.gz -rw-r----- 1 clamav adm  120 2010-01-31 08:00 clamav.log.3.gz -rw-r----- 1 clamav adm  117 2010-01-31 07:00 clamav.log.4.gz -rw-r----- 1 clamav adm  20 2010-01-31 06:00 clamav.log.5.gz -rw-r----- 1 clamav adm  123 2010-01-31 06:00 clamav.log.6.gz -rw-r----- 1 clamav adm  121 2010-01-31 05:00 clamav.log.7.gz -rw-r----- 1 clamav adm  198 2010-01-31 03:00 clamav.log.8.gz -rw-r----- 1 clamav adm  20 2010-01-31 02:00 clamav.log.9.gz -rw-r----- 1 clamav adm  261 2010-01-31 11:00 freshclam.log -rw-r----- 1 clamav adm  661 2010-01-31 11:00 freshclam.log.1 -rw-r----- 1 clamav adm  20 2010-01-31 01:00 freshclam.log.10.gz -rw-r----- 1 clamav adm  20 2010-01-31 00:00 freshclam.log.11.gz -rw-r----- 1 clamav adm  20 2010-01-30 23:00 freshclam.log.12.gz -rw-r----- 1 clamav adm  20 2010-01-31 09:00 freshclam.log.2.gz -rw-r----- 1 clamav adm  20 2010-01-31 08:00 freshclam.log.3.gz -rw-r----- 1 clamav adm  20 2010-01-31 07:00 freshclam.log.4.gz -rw-r----- 1 clamav adm  20 2010-01-31 06:00 freshclam.log.5.gz -rw-r----- 1 clamav adm  20 2010-01-31 05:00 freshclam.log.6.gz -rw-r----- 1 clamav adm  20 2010-01-31 04:00 freshclam.log.7.gz -rw-r----- 1 clamav adm  20 2010-01-31 03:00 freshclam.log.8.gz -rw-r----- 1 clamav adm  276 2010-01-31 02:03 freshclam.log.9.gz Howto solve this problem? (HowTos)