I have no script OnUpdateExecute script and got the lock problem
today, right after a completly buggy freshclam run. Watch the logs:
Received signal: wake up
ClamAV update process started at Tue Feb 27 07:31:00 2007
main.cvd is up to date (version: 42, sigs: 83951, f-level: 10, builder:
tkojm)
nonblock_recv: recv timing out (30 secs)
ERROR: getfile: Error while reading database from db.us.clamav.net (IP:
208.67.80.27)
ERROR: getpatch: Can't download daily-2659.cdiff from db.us.clamav.net
Downloading daily-2659.cdiff [100%]
ERROR: getfile: daily-2660.cdiff not found on remote server (IP:
209.8.40.140)
ERROR: getpatch: Can't download daily-2660.cdiff from db.us.clamav.net
ERROR: getfile: daily-2660.cdiff not found on remote server (IP:
64.246.44.108)
ERROR: getpatch: Can't download daily-2660.cdiff from db.us.clamav.net
ERROR: getfile: daily-2660.cdiff not found on remote server (IP:
64.246.44.108)
ERROR: getpatch: Can't download daily-2660.cdiff from db.us.clamav.net
WARNING: Incremental update failed, trying to download daily.cvd
Downloading daily.cvd [100%]
WARNING: Mirror 205.139.192.13 is not synchronized.
Trying again in 5 secs...
ClamAV update process started at Tue Feb 27 07:33:58 2007
main.cvd is up to date (version: 42, sigs: 83951, f-level: 10, builder:
tkojm)
Downloading daily-2659.cdiff [100%]
ERROR: getfile: daily-2660.cdiff not found on remote server (IP:
64.246.44.108)
ERROR: getpatch: Can't download daily-2660.cdiff from db.us.clamav.net
ERROR: getfile: daily-2660.cdiff not found on remote server (IP:
64.246.44.108)
ERROR: getpatch: Can't download daily-2660.cdiff from db.us.clamav.net
ERROR: getfile: daily-2660.cdiff not found on remote server (IP:
67.18.105.98)
ERROR: getpatch: Can't download daily-2660.cdiff from db.us.clamav.net
WARNING: Incremental update failed, trying to download daily.cvd
Downloading daily.cvd [100%]
WARNING: Mirror 152.13.144.243 is not synchronized.
Trying again in 5 secs...
ClamAV update process started at Tue Feb 27 07:34:03 2007
main.cvd is up to date (version: 42, sigs: 83951, f-level: 10, builder:
tkojm)
Downloading daily-2659.cdiff [100%]
ERROR: getfile: daily-2660.cdiff not found on remote server (IP:
209.8.40.140)
ERROR: getpatch: Can't download daily-2660.cdiff from db.us.clamav.net
ERROR: getfile: daily-2660.cdiff not found on remote server (IP:
67.18.105.98)
ERROR: getpatch: Can't download daily-2660.cdiff from db.us.clamav.net
ERROR: getfile: daily-2660.cdiff not found on remote server (IP:
67.18.105.98)
ERROR: getpatch: Can't download daily-2660.cdiff from db.us.clamav.net
WARNING: Incremental update failed, trying to download daily.cvd
Downloading daily.cvd [100%]
WARNING: Mirror 209.8.40.140 is not synchronized.
Giving up on db.us.clamav.net...
ClamAV update process started at Tue Feb 27 07:34:03 2007
main.cvd is up to date (version: 42, sigs: 83951, f-level: 10, builder:
tkojm)
Downloading daily-2659.cdiff [100%]
Downloading daily-2660.cdiff [100%]
Downloading daily-2661.cdiff [100%]
daily.inc updated (version: 2661, sigs: 11349, f-level: 13, builder:
ccordes)
Database updated (95300 signatures) from database.clamav.net (IP:
130.59.10.34)
Clamd successfully notified about the update.
--------------------------------------
And then, in clamd.log:
Tue Feb 27 07:32:54 2007 -> Reading databases from /var/lib/clamav
Tue Feb 27 07:35:05 2007 -> ERROR: reload db failed: Unable to lock
database directory
Tue Feb 27 07:35:05 2007 -> Terminating because of a fatal error.Tue Feb
27 07:35:05 2007 -> Socket file removed.
Tue Feb 27 07:35:05 2007 -> Pid file removed.
Tue Feb 27 07:35:05 2007 -> --- Stopped at Tue Feb 27 07:35:05 2007
Unfortunelly, people rebooted server before called me, i couldnt
watch for stale files on /var/lib/clamav. It was working again right
after a reboot.
Tomasz Kojm escreveu:
On Mon, 26 Feb 2007 23:41:39 -0800
Dennis Peterson <[EMAIL PROTECTED]> wrote:
Wolf, Brian wrote:
Brian wrote:
It looks like my problem was caused by having freshclam run
a script after an update using the OnUpdateExecute line in
freshclam.conf. The script created a file containing the EICAR
pattern and then scanned it with
cat /tmp/eicar.com | /usr/local/bin/clamscan --quiet -
Once I removed the clamscan command, the error went away. This
command worked okay in previous versions.
I get that same error and I don't run a script. Still haven't figured it
out.
Does it occur with each run of freshclam?
--
Atenciosamente / Sincerily,
Leonardo Rodrigues
Solutti Tecnologia
http://www.solutti.com.br
Minha armadilha de SPAM, NÃO mandem email
[EMAIL PROTECTED]
My SPAMTRAP, do not email it
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html