On Thu, 22 Feb 2007 11:52:08 -0500, aCaB <[EMAIL PROTECTED]> wrote:

Paul Griffith wrote:
Greetings,

Has anyone encountered the following problem:

Somehow there was a stale .dbLock file in the database directory, and
the  log file was full of
'ERROR: Can't lock database directory: /cs/local/share/clamav'
I did a strace and saw the freashclam was trying to create a new
.dbLock  file, but it kept failing due to the existing .dbLock file. I
am going to  assume that a previous freshclam didn't exit cleanly and
left a .dbLock  around, is there a FixStaleDBLock file option similar to
the  FixStaleSocket option?

We normally run freshclam out of cron, ClamAv version 0.90 and we are
using ScriptedUpdates.

Hi Paul,
This happened to me a couple of times when I killed (TERM) freshclam
while a download was in progress...
Unfortunately I'm unable to reproduce the problem.

Could you please provide some hints?

-aCaB

I will see what happens today, I didn't do anything special in my setup.
 The only unique thing in my setup is that my database sits on a NFS share.

Here is what the stale .dbLock file looks like:

#ls -lait
total 8962
545006030 -rwxrwxr-- 1 clamav clamav 0 Feb 22 02:28 .dbLock*

The million dollar question is what happened between Feb 21 17:28 and Feb 22 02:28.

Here are some log snippets...

--from /var/log/freshclam.0
------------------------------------
ClamAV update process started at Wed Feb 21 15:28:06 2007
main.cvd is up to date (version: 42, sigs: 83951, f-level: 10, builder: tkojm) daily.inc is up to date (version: 2622, sigs: 9581, f-level: 13, builder: ccordes)
--------------------------------------
ClamAV update process started at Wed Feb 21 16:28:02 2007
main.cvd is up to date (version: 42, sigs: 83951, f-level: 10, builder: tkojm) daily.inc is up to date (version: 2622, sigs: 9581, f-level: 13, builder: ccordes)
--------------------------------------
ClamAV update process started at Wed Feb 21 17:28:01 2007
main.cvd is up to date (version: 42, sigs: 83951, f-level: 10, builder: tkojm)
Downloading daily-2623.cdiff [0%]
daily.inc updated (version: 2623, sigs: 9598, f-level: 13, builder: ccordes)
Database updated (93549 signatures) from db.ca.clamav.net (IP: 24.215.0.24)
--------------------------------------
ERROR: Can't lock database directory: /cs/local/share/clamav
--------------------------------------
ERROR: Can't lock database directory: /cs/local/share/clamav
--------------------------------------

Thanks
Paul
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

Reply via email to