clamd (ClamAV 0.90) died with following messages in the log:

Wed Feb 28 10:41:48 2007 -> SelfCheck: Database status OK.
Wed Feb 28 10:52:12 2007 -> SelfCheck: Database modification detected. Forcing reload.
Wed Feb 28 10:52:12 2007 -> Reading databases from /.../clamav
Wed Feb 28 10:54:22 2007 -> ERROR: reload db failed: Unable to lock database directory Wed Feb 28 10:54:22 2007 -> Terminating because of a fatal error.Wed Feb 28 10:54:22 2007 -> Socket file removed.
Wed Feb 28 10:54:22 2007 -> Pid file removed.
Wed Feb 28 10:54:22 2007 -> --- Stopped at Wed Feb 28 10:54:22 2007


freshclam had some problems with the update mirror(s) during that days:

Received signal: wake up
ClamAV update process started at Wed Feb 28 11:54:22 2007
main.cvd is up to date (version: 42, sigs: 83951, f-level: 10, builder: tkojm)
Ignoring mirror 192.129.4.120 (due to previous errors)
ERROR: getpatch: Can't download daily-2676.cdiff from db.ro.clamav.net
............. a lot of similar errors
ERROR: getpatch: Can't download daily-2676.cdiff from db.ro.clamav.net
WARNING: Incremental update failed, trying to download daily.cvd
Ignoring mirror 192.129.4.120 (due to previous errors)
ERROR: Can't download daily.cvd from db.ro.clamav.net
Giving up on db.ro.clamav.net...
ClamAV update process started at Wed Feb 28 11:54:43 2007
main.cvd is up to date (version: 42, sigs: 83951, f-level: 10, builder: tkojm)
Downloading daily-2676.cdiff [100%]
daily.inc updated (version: 2676, sigs: 11410, f-level: 13, builder: ccordes) Database updated (95361 signatures) from database.clamav.net (IP: 62.236.254.228) WARNING: Clamd was NOT notified: Can't connect to clamd through /.../clamd (socket)

The "funny" part is that freshclam kept reporting that the updates went OK. (wich was correct, strictly speaking...)

A (much) better way to handle clamd crashes, when it can't be notified, would be to issue an update failure message.


It seems that 0.90.1 still suffers from similar problems:

Wed Mar  7 14:35:17 2007 -> SelfCheck: Database status OK.
Wed Mar 7 14:46:18 2007 -> SelfCheck: Database modification detected. Forcing reload.
Wed Mar  7 14:46:18 2007 -> Reading databases from /var/lib/clamav
Wed Mar 7 14:48:28 2007 -> ERROR: reload db failed: Unable to lock database directory (try 1) Wed Mar 7 14:50:38 2007 -> ERROR: reload db failed: Unable to lock database directory (try 2) Wed Mar 7 14:52:49 2007 -> ERROR: reload db failed: Unable to lock database directory (try 3) Wed Mar 7 14:52:49 2007 -> ERROR: reload db failed: Unable to lock database directory Wed Mar 7 14:52:49 2007 -> Terminating because of a fatal error.Wed Mar 7 14:52:49 2007 -> Socket file removed.
Wed Mar  7 14:52:49 2007 -> Pid file removed.
Wed Mar  7 14:52:49 2007 -> --- Stopped at Wed Mar  7 14:52:49 2007
Mon Mar 12 09:03:06 2007 -> SelfCheck: Database status OK.Received signal: wake up
ClamAV update process started at Wed Mar  7 14:45:57 2007
main.cvd is up to date (version: 42, sigs: 83951, f-level: 10, builder: tkojm)
connect_error: getsockopt(SO_ERROR): fd=9 error=111: Connection refused
Can't connect to port 80 of host db.ro.clamav.net (IP: 192.129.4.120)
ERROR: getpatch: Can't download daily-2760.cdiff from db.ro.clamav.net
............... and so on...
connect_error: getsockopt(SO_ERROR): fd=9 error=111: Connection refused
Can't connect to port 80 of host db.ro.clamav.net (IP: 192.129.4.120)
ERROR: Can't download daily.cvd from db.ro.clamav.net
Giving up on db.ro.clamav.net...
ClamAV update process started at Wed Mar  7 14:46:21 2007
main.cvd is up to date (version: 42, sigs: 83951, f-level: 10, builder: tkojm)
Downloading daily-2760.cdiff [100%]
Downloading daily-2761.cdiff [100%]
daily.inc updated (version: 2761, sigs: 13163, f-level: 14, builder: ccordes) Database updated (97114 signatures) from database.clamav.net (IP: 62.236.254.228)
Clamd successfully notified about the update.
--------------------------------------
Received signal: wake up
ClamAV update process started at Wed Mar  7 15:52:49 2007
main.cvd is up to date (version: 42, sigs: 83951, f-level: 10, builder: tkojm)
Downloading daily-2762.cdiff [100%]
Downloading daily-2763.cdiff [100%]
daily.inc updated (version: 2763, sigs: 13220, f-level: 14, builder: ccordes) Database updated (97171 signatures) from db.ro.clamav.net (IP: 192.129.4.120) WARNING: Clamd was NOT notified: Can't connect to clamd through /var/run/amavis/clamd

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

Reply via email to