Koozali.org: home of the SME Server

SME 9.2 freshclam update failed

Offline bobert312

  • 3
  • +0/-0
SME 9.2 freshclam update failed
« on: August 23, 2017, 04:48:23 PM »
Ths morning I received a notification that the freshclam update failed. Now some of the outgoing mail isn't arriving at the destination but others are which makes no sense to me. Some advice on what to check would be greatly appreciated.

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: SME 9.2 freshclam update failed
« Reply #1 on: August 23, 2017, 05:33:58 PM »
freshclam failing shouldn't be a big issue if it's rare (it can be for example that you lost connectivity for a few minutes at the wrong hour for example). Why do you think it's related to email not arriving at destination ? You should have a look at /var/log/qmail/current to see what's happening to those emails, but if the problem was related to clamav, your client (eg Thunderbird) would be informed immediatly of the reject
C'est la fin du monde !!! :lol:

Offline stefangk

  • *
  • 20
  • +0/-0
Re: SME 9.2 freshclam update failed
« Reply #2 on: August 23, 2017, 07:36:05 PM »
I get every hour e-mail notification that freshclam failed.
After I try manually to start freshclam I got:

# freshclam
ClamAV update process started at Wed Aug 23 20:15:31 2017
main.cld is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: Incremental update failed, trying to download daily.cvd
WARNING: getfile: daily.cvd not found on db.local.clamav.net (IP: 195.222.33.229)
WARNING: Can't download daily.cvd from db.local.clamav.net
Trying again in 5 secs...
ClamAV update process started at Wed Aug 23 20:15:37 2017
main.cld is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: Incremental update failed, trying to download daily.cvd
Trying host db.local.clamav.net (195.222.33.229)...
WARNING: getfile: daily.cvd not found on db.local.clamav.net (IP: 195.222.33.229)
WARNING: Can't download daily.cvd from db.local.clamav.net
Trying again in 5 secs...
ClamAV update process started at Wed Aug 23 20:15:42 2017
main.cld is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: Incremental update failed, trying to download daily.cvd
WARNING: getfile: daily.cvd not found on db.local.clamav.net (IP: 195.222.33.229)
WARNING: Can't download daily.cvd from db.local.clamav.net
Trying again in 5 secs...
ClamAV update process started at Wed Aug 23 20:15:48 2017
main.cld is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: Incremental update failed, trying to download daily.cvd
Trying host db.local.clamav.net (195.222.33.229)...
WARNING: getfile: daily.cvd not found on db.local.clamav.net (IP: 195.222.33.229)
WARNING: Can't download daily.cvd from db.local.clamav.net
Trying again in 5 secs...
ClamAV update process started at Wed Aug 23 20:15:53 2017
main.cld is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: Incremental update failed, trying to download daily.cvd
WARNING: getfile: daily.cvd not found on db.local.clamav.net (IP: 195.222.33.229)
WARNING: Can't download daily.cvd from db.local.clamav.net
Trying again in 5 secs...
ClamAV update process started at Wed Aug 23 20:15:58 2017
main.cld is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
ERROR: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: Incremental update failed, trying to download daily.cvd
WARNING: getfile: daily.cvd not found on db.local.clamav.net (IP: 195.222.33.229)
ERROR: Can't download daily.cvd from db.local.clamav.net
Giving up on db.local.clamav.net...
ClamAV update process started at Wed Aug 23 20:15:59 2017
main.cld is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
WARNING: getpatch: Can't download daily-23698.cdiff from database.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from database.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from database.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from database.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from database.clamav.net
ERROR: getpatch: Can't download daily-23698.cdiff from database.clamav.net
WARNING: Incremental update failed, trying to download daily.cvd
WARNING: getfile: daily.cvd not found on database.clamav.net (IP: 195.222.33.229)
ERROR: Can't download daily.cvd from database.clamav.net
Giving up on database.clamav.net...
Update failed. Your network may be down or none of the mirrors listed in /etc/freshclam.conf is working. Check http://www.clamav.net/doc/mirrors-faq.html for possible reasons.

Stefan Krastanov

Offline stefangk

  • *
  • 20
  • +0/-0
Re: SME 9.2 freshclam update failed
« Reply #3 on: August 23, 2017, 08:09:21 PM »
I follow-up http://www.clamav.net/documents/official-mirror-faq - clean up /var/clamav and then freshclam successfully updates, BUT than trying incremental it again fails.


# freshclam
ClamAV update process started at Wed Aug 23 21:01:18 2017
main.cvd is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr                                                                                                             )
WARNING: getfile: daily-23698.cdiff not found on db.local.clamav.net (IP: 193.92                                                                                                             .150.194)
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: Incremental update failed, trying to download daily.cvd
WARNING: getfile: daily.cvd not found on db.local.clamav.net (IP: 195.222.33.229                                                                                                             )
WARNING: Can't download daily.cvd from db.local.clamav.net
Trying again in 5 secs...
ClamAV update process started at Wed Aug 23 21:02:04 2017
main.cvd is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr                                                                                                             )
WARNING: getfile: daily-23698.cdiff not found on db.local.clamav.net (IP: 193.92                                                                                                             .150.194)
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: Incremental update failed, trying to download daily.cvd
WARNING: getfile: daily.cvd not found on db.local.clamav.net (IP: 195.222.33.229                                                                                                             )
WARNING: Can't download daily.cvd from db.local.clamav.net
Trying again in 5 secs...
ClamAV update process started at Wed Aug 23 21:02:31 2017
main.cvd is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr                                                                                                             )
Trying host db.local.clamav.net (193.92.150.194)...
WARNING: getfile: daily-23698.cdiff not found on db.local.clamav.net (IP: 193.92.150.194)
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: Incremental update failed, trying to download daily.cvd
WARNING: getfile: daily.cvd not found on db.local.clamav.net (IP: 195.222.33.229)
WARNING: Can't download daily.cvd from db.local.clamav.net
Trying again in 5 secs...
ClamAV update process started at Wed Aug 23 21:03:00 2017
main.cvd is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
nonblock_connect: connect timing out (30 secs)
Can't connect to port 80 of host db.local.clamav.net (IP: 193.92.150.194)
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: Incremental update failed, trying to download daily.cvd
WARNING: getfile: daily.cvd not found on db.local.clamav.net (IP: 195.222.33.229)
WARNING: Can't download daily.cvd from db.local.clamav.net
Trying again in 5 secs...
ClamAV update process started at Wed Aug 23 21:03:36 2017
main.cvd is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
Trying host db.local.clamav.net (193.92.150.194)...
WARNING: getfile: daily-23698.cdiff not found on db.local.clamav.net (IP: 193.92.150.194)
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: Incremental update failed, trying to download daily.cvd
WARNING: getfile: daily.cvd not found on db.local.clamav.net (IP: 195.222.33.229)
WARNING: Can't download daily.cvd from db.local.clamav.net
Trying again in 5 secs...
ClamAV update process started at Wed Aug 23 21:04:07 2017
main.cvd is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
Trying host db.local.clamav.net (193.92.150.194)...
WARNING: getfile: daily-23698.cdiff not found on db.local.clamav.net (IP: 193.92.150.194)
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
ERROR: getpatch: Can't download daily-23698.cdiff from db.local.clamav.net
WARNING: Incremental update failed, trying to download daily.cvd
WARNING: getfile: daily.cvd not found on db.local.clamav.net (IP: 195.222.33.229)
ERROR: Can't download daily.cvd from db.local.clamav.net
Giving up on db.local.clamav.net...
ClamAV update process started at Wed Aug 23 21:04:32 2017
main.cvd is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
Trying host database.clamav.net (193.92.150.194)...
WARNING: getfile: daily-23698.cdiff not found on database.clamav.net (IP: 193.92.150.194)
WARNING: getpatch: Can't download daily-23698.cdiff from database.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from database.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from database.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from database.clamav.net
WARNING: getpatch: Can't download daily-23698.cdiff from database.clamav.net
ERROR: getpatch: Can't download daily-23698.cdiff from database.clamav.net
WARNING: Incremental update failed, trying to download daily.cvd
WARNING: getfile: daily.cvd not found on database.clamav.net (IP: 195.222.33.229)
ERROR: Can't download daily.cvd from database.clamav.net
Giving up on database.clamav.net...
Update failed. Your network may be down or none of the mirrors listed in /etc/freshclam.conf is working. Check http://www.clamav.net/doc/mirrors-faq.html for possible reasons.

Stefan Krastanov

Offline allsorts

  • *
  • 38
  • +0/-0
Re: SME 9.2 freshclam update failed
« Reply #4 on: August 23, 2017, 09:31:31 PM »
Been suffering freshclam update failed since 0222UTC this moring. All but three of the roughly hourly updates has failed. Found the "freshclam --list-mirrors" command, that listed 43 mirror IPs but only four with todays date and all four set to Ignore. A DNS lookup of database.clamav.net only returns four IPs, yep the four set to ignore.

Deleted /var/clamav/mirrors.dat, ran freshclam -v, I didn't think it was 100% succesfull and all four IP's got listed as ignore. Deleted mirrors.dat again and subseqent runs say it says it is up todate. Now waiting for the release of an update to see what happens.

Why has it fallen over? It looks like there have been some changes to the mirrors or at least what the DNS returns for database.clamav.net. In that list of 43 mirrors there was one or two from last year, and about half of the rest from February and the rest from the last day or two. Most not set to ignore but as none of those are returned by the DNS lookup aren't used. Don't know why the mirrors aren't maintaining sync though, some unexpected consequence?
Cheers
Dave.

Offline Jean-Philippe Pialasse

  • *
  • 2,919
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: SME 9.2 freshclam update failed
« Reply #5 on: August 23, 2017, 09:51:48 PM »
https://www.clamav.net/documents/official-mirror-faq

probably an issue with clamav mirror, just wait 24 more hours to see it to resolve by itself.

Offline allsorts

  • *
  • 38
  • +0/-0
Re: SME 9.2 freshclam update failed
« Reply #6 on: August 24, 2017, 12:43:01 AM »
Agreed, not an SME Server problem. The occasional freshclam update does fail, "occasional" being once or twice a year. Not like today with almost every attempt to update failling for over 18 hours. I got fed up with the emails and waiting for it to sort itself out. My system has now done a succesful automatic update using just a single mirror at 2127UTC.
Cheers
Dave.

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: SME 9.2 freshclam update failed
« Reply #7 on: August 24, 2017, 12:59:14 AM »
allsorts

The update fails this way probably once a year for the last 10 years or so. It's just a temporary problem, & usually self fixes within a day or two, so be patient.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline TerryF

  • grumpy old man
  • *
  • 1,856
  • +6/-0
Re: SME 9.2 freshclam update failed
« Reply #8 on: August 24, 2017, 02:19:43 AM »
Still a pain in the nether regions, been over 30 hrs now down here, longest one for some time

--
qui scribit bis legit

Offline gbentley

  • *****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
Re: SME 9.2 freshclam update failed
« Reply #9 on: August 24, 2017, 11:13:57 AM »
Same for me about two days [UK] so today;

Code: [Select]
# rm /var/clamav/mirrors.dat
# freshclam -v

twice now have ;

Code: [Select]
ClamAV update process started at Thu Aug 24 10:10:38 2017
Using IPv6 aware code
Querying current.cvd.clamav.net
TTL: 180
Software version from DNS: 0.99.2
main.cvd version from DNS: 58
main.cld is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
daily.cvd version from DNS: 23705
daily.cld is up to date (version: 23705, sigs: 1742511, f-level: 63, builder: neo)
bytecode.cvd version from DNS: 309
bytecode.cld is up to date (version: 309, sigs: 69, f-level: 63, builder: bbaker)

Lets see :)
"If you don't know what you want, you end up with a lot you don't."

Offline bobert312

  • 3
  • +0/-0
Re: SME 9.2 freshclam update failed
« Reply #10 on: August 24, 2017, 05:42:51 PM »
I don't know if this is associated with the problem I'm having or not. The outgoing emial doesn't seem to be working. Sometimes it will go out but takes over 2 hours to get to the destination, other times it never arrives. I tried the "fix" for clamav and the mail worked again but now has stopped once again. What do I need to check?

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: SME 9.2 freshclam update failed
« Reply #11 on: August 24, 2017, 05:44:07 PM »
Like I said, you should check /var/log/qmail/current
C'est la fin du monde !!! :lol:

Offline brianr

  • *
  • 991
  • +2/-0
Re: SME 9.2 freshclam update failed
« Reply #12 on: August 24, 2017, 06:20:56 PM »
/usr/bin/refreshclam

seems to fix it.

See here:

https://wiki.contribs.org/Clamav:freshclam_update
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: SME 9.2 freshclam update failed
« Reply #13 on: August 24, 2017, 07:20:37 PM »
The output from /var/log/qmail/current
Shows several of these entries which vary slightly
I replaced our actual ip with XX.XX.XXX.XX for security. I suppose this means that one of our clients has picked up a virus.

@40000000599ef6ed1f0b22cc delivery 659232: deferral: Connected_to_98.136.216.25_but_sender_was_rejected./Remote_host_said:_421_4.7.0_[TSS04]_Messages_from_XX.XX.XXX.XXX_temporarily_deferred_due_to_user_complaints_-_4.16.55.1;_see_https://help.yahoo.com/kb/postmaster/SLN3434.html/


maybe, but this message is OT in this TOpic.. I'll split it to another one

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: SME 9.2 freshclam update failed
« Reply #14 on: August 24, 2017, 07:22:51 PM »