Hey,
can u check if you have the same errors like me last night? For me it looks like there was an error connecting to the update servers, an incomplete incremental update and an failed full download of the main.cvd. therefor the clamd quits, cause it doesnt have any valid definitions. today morning i restarted all services and all working again. Cause the freshclam update is every hour, it doesn't make sense to reload clamav any later, i think. Only solution i can imagine is a local mirror in your network which only "sync" the actual package to the productive tree, if the local testinstall works. Should be done an ~30 lines bash script. I hope that helps a bit. Best regards Erwin --- freshclam --- ClamAV update process started at Mon Jun 23 21:26:33 2008 nonblock_connect: connect timing out (30 secs) Can't connect to port 80 of host db.local.clamav.net (IP: 91.198.238.33) Trying host db.local.clamav.net (193.27.50.222)... nonblock_connect: connect timing out (30 secs) Can't connect to port 80 of host db.local.clamav.net (IP: 193.27.50.222) Trying host db.local.clamav.net (212.1.60.18)... nonblock_connect: connect timing out (30 secs) Can't connect to port 80 of host db.local.clamav.net (IP: 212.1.60.18) Trying host db.local.clamav.net (213.174.32.130)... ERROR: getfile: Unknown response from remote server (IP: 213.174.32.130) ERROR: getpatch: Can't download main-47.cdiff from db.local.clamav.net nonblock_connect: connect timing out (30 secs) ERROR: getfile: Unknown response from remote server (IP: 213.174.32.130) ERROR: getpatch: Can't download main-47.cdiff from db.local.clamav.net WARNING: Incremental update failed, trying to download main.cvd --- / freshclam --- --- clamavlog --- Mon Jun 23 21:02:11 2008 -> SelfCheck: Database status OK. Mon Jun 23 22:02:18 2008 -> SelfCheck: Database modification detected. Forcing reload. Mon Jun 23 22:02:19 2008 -> Reading databases from /var/lib/clamav Mon Jun 23 22:04:29 2008 -> ERROR: reload db failed: Unable to lock database directory (try 1) Mon Jun 23 22:06:39 2008 -> ERROR: reload db failed: Unable to lock database directory (try 2) Mon Jun 23 22:08:49 2008 -> ERROR: reload db failed: Unable to lock database directory (try 3) Mon Jun 23 22:08:49 2008 -> ERROR: reload db failed: Unable to lock database directory Mon Jun 23 22:08:49 2008 -> Terminating because of a fatal error. Mon Jun 23 22:08:49 2008 -> Socket file removed. Mon Jun 23 22:08:49 2008 -> Pid file removed. Mon Jun 23 22:08:49 2008 -> --- Stopped at Mon Jun 23 22:08:49 2008 Tue Jun 24 07:01:41 2008 -> +++ Started at Tue Jun 24 07:01:41 2008 --- / clamavlog --- Sebastian Inacker schrieb: > Hello. > > Last night clamav terminated with this logfile informations: > > Mon Jun 23 22:02:43 2008 -> SelfCheck: Database modification detected. > Forcing reload. > Mon Jun 23 22:02:43 2008 -> Reading databases from /var/lib/clamav > Mon Jun 23 22:04:53 2008 -> ERROR: reload db failed: Unable to lock > database directory (try 1) > Mon Jun 23 22:07:03 2008 -> ERROR: reload db failed: Unable to lock > database directory (try 2) > Mon Jun 23 22:09:13 2008 -> ERROR: reload db failed: Unable to lock > database directory (try 3) > Mon Jun 23 22:09:13 2008 -> ERROR: reload db failed: Unable to lock > database directory > Mon Jun 23 22:09:13 2008 -> Terminating because of a fatal error. > Mon Jun 23 22:09:13 2008 -> Socket file removed. > Mon Jun 23 22:09:13 2008 -> Pid file removed. > Mon Jun 23 22:09:13 2008 -> --- Stopped at Mon Jun 23 22:09:13 2008 > > I found some old postings about that problem, but i must have missed > the sollution. Can someone give me a hint? > > It is possible to tell clamav, it should try to reload it's database > for a longer time? > '/etc/init.d/clamav-daemon start' started clamav without problems (no > stale lockfile). > > System is Debian Etch. > clamav package: 0.92.1~dfsg-1volatile2 > (I know, 93.1 is the newest version, but i haven't found hints, that > this is the real reason for this. The problem occured with much older > versions too.) > > # clamd --version > ClamAV 0.92.1/7546/Tue Jun 24 01:40:35 2008 > > # ls -lad /var/lib/clamav > drwxr-xr-x 4 clamav clamav 4096 Jun 24 09:58 /var/lib/clamav > > # ps auxw| grep clam[d] > clamav 1916 0.6 1.7 81212 46072 ? Ssl 09:58 0:18 > /usr/sbin/clamd > > Thanks in advance, > Sebastian > _______________________________________________ > Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net > http://www.clamav.net/support/ml > > _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml