Changes

From SME Server
Jump to navigationJump to search
no edit summary
Line 66: Line 66:     
Finally & to be absolutely sure signal-event post-update; signal-event reboot, then go through the logs post reboot to make sure everything started correctly.  This is not necessary for this procedure but doesn't hurt.
 
Finally & to be absolutely sure signal-event post-update; signal-event reboot, then go through the logs post reboot to make sure everything started correctly.  This is not necessary for this procedure but doesn't hurt.
 +
 +
== Method 2==
 +
 +
This is another method that you can find in [[bugzilla:7406]]
 +
 +
===The symptom===
 +
Freshclam update failed
 +
2013-02-25 08:53:52.875633500 ClamAV update process started at Mon Feb 25 08:53:52 2013
 +
2013-02-25 08:53:52.876036500 main.cvd is up to date (version: 54, sigs: 1044387, f-level: 60, builder: sven)
 +
2013-02-25 08:53:53.880007500 WARNING: getpatch: Can't download daily-16682.cdiff from database.clamav.net
 +
2013-02-25 08:53:53.880742500 WARNING: getpatch: Can't download daily-16682.cdiff from database.clamav.net
 +
2013-02-25 08:53:53.881457500 WARNING: getpatch: Can't download daily-16682.cdiff from database.clamav.net
 +
2013-02-25 08:53:53.882180500 WARNING: getpatch: Can't download daily-16682.cdiff from database.clamav.net
 +
2013-02-25 08:53:53.882920500 WARNING: getpatch: Can't download daily-16682.cdiff from database.clamav.net
 +
2013-02-25 08:53:53.883667500 ERROR: getpatch: Can't download daily-16682.cdiff from database.clamav.net
 +
2013-02-25 08:53:53.914071500 WARNING: Incremental update failed, trying to download daily.cvd
 +
2013-02-25 08:53:53.914962500 ERROR: Can't download daily.cvd from database.clamav.net
 +
2013-02-25 08:53:53.915120500 Giving up on database.clamav.net...
 +
2013-02-25 08:53:53.915137500 Update failed. Your network may be down or none of the mirrors listed in /etc/freshclam.conf is working. Check http://www.clamav.net/support/mirror-problem for possible reasons.
 +
===The howTO===
 +
#Stop qpsmtpd/sqpsmtpd:
 +
/usr/local/bin/svc -d /service/qpsmtpd/
 +
/usr/local/bin/svc -d /service/sqpsmtpd/
 +
 +
#Stop clamAV:
 +
/usr/local/bin/svc -d /service/freshclam/
 +
/usr/local/bin/svc -d /service/clamd/
 +
 +
#Delete all:
 +
cd /var/clamav
 +
rm -f /var/clamav/*
 +
 +
#Update clamAV database
 +
freshclam -v
 +
 +
#Restart qpsmtpd/sqpsmtpd & clamAV:
 +
/usr/local/bin/svc -u /service/freshclam/
 +
/usr/local/bin/svc -u /service/clamd/
 +
/usr/local/bin/svc -u /service/qpsmtpd/
 +
/usr/local/bin/svc -u /service/sqpsmtpd/
 +
 +
===Verify your started services ===
 +
 +
#Check services
 +
service clamd status
 +
service freshclam status
 +
service qpsmtpd status
 +
service sqpsmtpd status
 +
 +
#Check logs
 +
tail -25 /var/log/freshclam/current | tai64nlocal
 +
 +
#Check directories
 +
ls -lah /var/clamav/
 +
 +
 +
#To check freshclam when services are running 
 +
#start a new instance of the supervised freshclam service:
 +
sv t /service/freshclam
 +
tail -5 /var/log/freshclam/current | tai64nlocal
    
[[Category:Howto]]
 
[[Category:Howto]]

Navigation menu