Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 8th March 2013, 15:46
sawa73 sawa73 is offline
Junior Member
 
Join Date: Mar 2013
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
Default Clamav-daemon status failed !

Hello,

I have a server with debian + ispconfig3, sometimes Clamav-daemon status goes to failed for some reason.
This happened 3 times in 10 months.

I use this server since may 2012, this happened first time in december 2012, then 2 times yesterday.


Code:
root@ksxxxxx:~# /etc/init.d/clamav-daemon status
clamd is not running ... failed!
root@ksxxxxx:~# /etc/init.d/clamav-daemon start
Starting ClamAV daemon: clamd LibClamAV Warning: *******************************             *******************
LibClamAV Warning: ***  The virus database is older than 7 days!  ***
LibClamAV Warning: ***   Please update it as soon as possible.    ***
LibClamAV Warning: **************************************************
LibClamAV Warning: ***********************************************************
LibClamAV Warning: ***  This version of the ClamAV engine is outdated.     ***
LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***
LibClamAV Warning: ***********************************************************

Last edited by sawa73; 8th March 2013 at 15:51.
Reply With Quote
Sponsored Links
  #2  
Old 9th March 2013, 08:34
florian030 florian030 is offline
Senior Member
 
Join Date: Oct 2012
Posts: 187
Thanks: 7
Thanked 47 Times in 41 Posts
Default

Hi,

Quote:
Code:
Starting ClamAV daemon: clamd LibClamAV Warning: *******************************             *******************
LibClamAV Warning: ***  The virus database is older than 7 days!  ***
LibClamAV Warning: ***   Please update it as soon as possible.    ***
LibClamAV Warning: **************************************************
LibClamAV Warning: ***********************************************************
LibClamAV Warning: ***  This version of the ClamAV engine is outdated.     ***
LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***
LibClamAV Warning: ***********************************************************
Please update the database by running "freshclam" or "freshclam -v". Usually clamd/freshclam updates the database according to Checks in your freshclam.conf.

A few weeks ago there where a lot out trouble with updating clamav.

You can also try to remove the mirrors.dat (/usr/local/share/clamav) before running freshclam.

Which version of clamav are you using? Some mirrors block connections for outdated clients (i.e. <= clamav/0.94)
__________________
regards
Florian

blog.schaal-24.de
Reply With Quote
  #3  
Old 9th March 2013, 15:35
sawa73 sawa73 is offline
Junior Member
 
Join Date: Mar 2013
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi,

I can't use freshclam -v command :
Code:
root@ksxxxxx:~# freshclam -v
ERROR: /var/log/clamav/freshclam.log is locked by another process
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
My log file :
Code:
root@ksxxxxx:~# tail /var/log/clamav/freshclam.log
Sat Mar  9 14:37:01 2013 -> WARNING: getpatch: Can't download daily-16682.cdiff from database.clamav.net
Sat Mar  9 14:37:01 2013 -> WARNING: getpatch: Can't download daily-16682.cdiff from database.clamav.net
Sat Mar  9 14:37:01 2013 -> WARNING: getpatch: Can't download daily-16682.cdiff from database.clamav.net
Sat Mar  9 14:37:01 2013 -> WARNING: getpatch: Can't download daily-16682.cdiff from database.clamav.net
Sat Mar  9 14:37:01 2013 -> ERROR: getpatch: Can't download daily-16682.cdiff from database.clamav.net
Sat Mar  9 14:37:01 2013 -> WARNING: Incremental update failed, trying to download daily.cvd
Sat Mar  9 14:37:01 2013 -> ERROR: Can't download daily.cvd from database.clamav.net
Sat Mar  9 14:37:01 2013 -> Giving up on database.clamav.net...
Sat Mar  9 14:37:01 2013 -> Update failed. Your network may be down or none of the mirrors listed in /etc/clamav/freshclam.conf is working. Check http://www.clamav.net/support/mirror-problem for possible reasons.
Sat Mar  9 14:37:01 2013 -> --------------------------------------
My network is not down i can reach the clamav host :
Code:
root@ksxxxxx:~# host database.clamav.net
database.clamav.net is an alias for db.local.clamav.net.
db.local.clamav.net is an alias for db.fr.clamav.net.
db.fr.clamav.net has address 193.51.160.14
db.fr.clamav.net has address 193.52.101.131
db.fr.clamav.net has address 195.190.27.134
db.fr.clamav.net has address 91.193.56.105
db.fr.clamav.net has address 193.43.215.41
Content of /etc/clamav/freshclam.conf :
Code:
DatabaseOwner clamav
UpdateLogFile /var/log/clamav/freshclam.log
LogVerbose false
LogSyslog false
LogFacility LOG_LOCAL6
LogFileMaxSize 0
LogTime true
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
TestDatabases yes
ScriptedUpdates yes
CompressLocalDatabase no
Bytecode true
# Check for new database 24 times a day
Checks 24
DatabaseMirror db.local.clamav.net
DatabaseMirror database.clamav.net
I deleted mirror.dat in /var/lib/clamav

my Clamav version is 0.97 :
Code:
root@ksxxxxx:~# freshclam -V
ClamAV 0.97.6/16681/Thu Feb 14 13:55:37 2013
Thank you for your help.
Reply With Quote
  #4  
Old 9th March 2013, 15:57
florian030 florian030 is offline
Senior Member
 
Join Date: Oct 2012
Posts: 187
Thanks: 7
Thanked 47 Times in 41 Posts
Default

Remove main.cld and run freshclam again.
__________________
regards
Florian

blog.schaal-24.de
Reply With Quote
  #5  
Old 9th March 2013, 19:37
sawa73 sawa73 is offline
Junior Member
 
Join Date: Mar 2013
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I still have the same error messsage after deleted main.cld and mirrors.dat:

Code:
root@ksxxxxx:~# freshclam
ERROR: /var/log/clamav/freshclam.log is locked by another process
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
EDIT : It works, i needed to do /etc/init.d/clamav-freshclam stop

Now i have this message :

Code:
WARNING: getpatch: Can't download daily-16682.cdiff from database.clamav.net
WARNING: Incremental update failed, trying to download daily.cvd
Whitelisting short-term blacklisted mirrors
Retrieving http://database.clamav.net/daily.cvd
Ignoring mirror 193.51.160.14 (has connected too many times with an outdated version)
Ignoring mirror 193.52.101.131 (has connected too many times with an outdated version)
Ignoring mirror 195.190.27.134 (has connected too many times with an outdated version)
Ignoring mirror 193.43.215.41 (has connected too many times with an outdated version)
Ignoring mirror 91.193.56.105 (has connected too many times with an outdated version)
Ignoring mirror 193.51.160.14 (has connected too many times with an outdated version)
Ignoring mirror 193.52.101.131 (has connected too many times with an outdated version)
Ignoring mirror 195.190.27.134 (has connected too many times with an outdated version)
Ignoring mirror 193.43.215.41 (has connected too many times with an outdated version)
Ignoring mirror 91.193.56.105 (has connected too many times with an outdated version)
WARNING: Can't download daily.cvd from database.clamav.net

Last edited by sawa73; 9th March 2013 at 19:41.
Reply With Quote
  #6  
Old 10th March 2013, 06:59
florian030 florian030 is offline
Senior Member
 
Join Date: Oct 2012
Posts: 187
Thanks: 7
Thanked 47 Times in 41 Posts
Default

You should update to latest version (0.97.6 - http://www.clamav.net/lang/en/download/sources/). As i told you above, most mirrors drop connections from outdated clients and i`m not sure if your client can handle the latest database-files.

Usually you can update clamav while freshclam runs. IIRC this was a bug in an older version.
__________________
regards
Florian

blog.schaal-24.de
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
error.log is full of notices mod_fcgid 007007 Installation/Configuration 13 8th September 2012 11:29
Need help with ISPConfig Mail and Squirrelmail m.xander Installation/Configuration 109 3rd February 2012 00:15
Can't receive mails baicunko Server Operation 12 3rd August 2011 22:02
Systemimager (rsync) doesn't copy all comedit HOWTO-Related Questions 11 19th January 2007 17:17
How to install BFD (Brute Force Detection) domino Tips/Tricks/Mods 9 31st March 2006 22:40


All times are GMT +2. The time now is 03:16.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.