Koozali.org: home of the SME Server

Contribs.org Forums => Koozali SME Server 10.x => Topic started by: bclayton on November 05, 2021, 04:48:02 PM

Title: [Solved] freshclam: Update failed on V10
Post by: bclayton on November 05, 2021, 04:48:02 PM
I have been running a fully-updated V10 server for several months, and it has been running very well. Thanks to all those who built it!!

On Oct 30, I started receiving an email each hour, freshclam: Update failed.  Here is a recent log:


2021-11-05 10:13:12.530635500 ClamAV update process started at Fri Nov  5 10:13:12 2021
2021-11-05 10:13:12.530765500 WARNING: Your ClamAV installation is OUTDATED!
2021-11-05 10:13:12.530766500 WARNING: Local version: 0.100.2 Recommended version: 0.103.4
2021-11-05 10:13:12.530766500 DON'T PANIC! Read https://www.clamav.net/documents/upgrading-clamav
2021-11-05 10:13:12.530819500 main.cld is up to date (version: 62, sigs: 6647427, f-level: 90, builder: sigmgr)
2021-11-05 10:13:12.750060500 WARNING: getpatch: Can't download daily-26338.cdiff from database.clamav.net
2021-11-05 10:13:12.750200500 WARNING: getpatch: Can't download daily-26338.cdiff from database.clamav.net
2021-11-05 10:13:12.750359500 WARNING: getpatch: Can't download daily-26338.cdiff from database.clamav.net
2021-11-05 10:13:12.750560500 WARNING: getpatch: Can't download daily-26338.cdiff from database.clamav.net
2021-11-05 10:13:12.750722500 WARNING: getpatch: Can't download daily-26338.cdiff from database.clamav.net
2021-11-05 10:13:12.750887500 ERROR: getpatch: Can't download daily-26338.cdiff from database.clamav.net
2021-11-05 10:13:12.775113500 WARNING: Incremental update failed, trying to download daily.cvd
2021-11-05 10:13:12.775314500 ERROR: Can't download daily.cvd from database.clamav.net
2021-11-05 10:13:12.789924500 Giving up on database.clamav.net...
2021-11-05 10:13:12.789924500 Update failed. Your network may be down or none of the mirrors listed in /etc/freshclam.conf is working. Check https://www.clamav.net/documents/official-mirror-faq for possible reasons.

I assumed that it was a connection glitch and would resolve itself over time.  I'm beginning to wonder.  Not sure how to troubleshoot, but did run this:

[root@provue-server ~]# yum list clamav
Loaded plugins: fastestmirror, post-transaction-actions, priorities, smeserver
Loading mirror speeds from cached hostfile
 * base: mirror.jaleco.com
 * smecontribs: mirror.pialasse.com
 * smeupdates: mirror.pialasse.com
 * updates: nc-centos-mirror.iwebfusion.net
Installed Packages
clamav.x86_64                     0.103.3-8.el7                      @smeupdates
[root@provue-server ~]#

Any suggestions?   Thanks!
Title: Re: freshclam: Update failed on V10
Post by: ReetP on November 05, 2021, 08:00:19 PM
I think your install has an issue. Here's my v10.

Quote
[root@files ~]# rpm -qa |grep clamav

smeserver-clamav-2.7.0-9.el7.sme.noarch
clamav-update-0.103.3-5.el7.x86_64
clamav-data-0.103.3-5.el7.noarch
clamav-lib-0.103.3-5.el7.x86_64
clamav-0.103.3-5.el7.x86_64
clamav-filesystem-0.103.3-5.el7.noarch

So not sure why you have this.

Quote
WARNING: Local version: 0.100.2 Recommended version: 0.103.4

Looks like mixed up settings, but you certainly haven't updated as you are still at 0.103.4 (that comes from EPEL)

JP will know.
Title: Re: freshclam: Update failed on V10
Post by: TerryF on November 05, 2021, 08:14:35 PM
When I have had issues in past first stop has always been a # /usr/bin/refreshclam

If nothing else eliminates possible issue
Title: Re: freshclam: Update failed on V10
Post by: bclayton on November 05, 2021, 08:35:26 PM
Thanks,  Here are the results:

[root@provue-server ~]#  /usr/bin/refreshclam
-bash: /usr/bin/refreshclam: No such file or directory
[root@provue-server ~]#

Title: Re: freshclam: Update failed on V10
Post by: Jean-Philippe Pialasse on November 05, 2021, 09:39:21 PM
do you happen to have another sme9 around which redirect its admin emails to your sme10 box ?

Title: Re: freshclam: Update failed on V10
Post by: bclayton on November 05, 2021, 09:44:43 PM
I am running a v9.2 as my email server.  (Plan to migrate to v10 over Christmas holidays when we closed).
Title: [Solved] Re: freshclam: Update failed on V10
Post by: bclayton on November 05, 2021, 09:57:22 PM
JP, just checked the logs on the 9.2 box and that is where the problem is.  I'll migrate that box to v10 sooner.  -sorry to have wasted anyone's time.  Thanks for the help.
Title: Re: freshclam: Update failed on V10
Post by: Jean-Philippe Pialasse on November 05, 2021, 09:59:22 PM
so the freshclam email might come from this box. 

log on to the sme9 and do

Code: [Select]
config setprop freschclam status disabled
service freshclam stop


then after migration you will need to enable it back.
Title: Re: freshclam: Update failed on V10
Post by: bclayton on November 05, 2021, 10:05:13 PM
Done.  Thanks
Title: Re: [Solved] freshclam: Update failed on V10
Post by: Fumetto on November 05, 2021, 11:13:28 PM
so the freshclam email might come from this box. 

log on to the sme9 and do

Code: [Select]
config setprop freschclam status disabled
service freshclam stop


then after migration you will need to enable it back.
I owe you a pint of beers ... ^ _ ^
Title: Re: [Solved] freshclam: Update failed on V10
Post by: ReetP on November 06, 2021, 12:33:35 AM
Quote
I owe you a pint of beers ...

A pint of beer.
Several pints of beer (preferred solution)
There were beers everywhere
There were pints of beer everywhere
Everyone was drinking beer

English is messy :lol:
Title: Re: [Solved] freshclam: Update failed on V10
Post by: Fumetto on November 06, 2021, 12:36:31 AM
English is messy :lol:
Agree... :lol:
Title: Re: [Solved] freshclam: Update failed on V10
Post by: TerryF on November 06, 2021, 12:57:35 AM
English is messy :lol:

or go the way of the antipodeans :-) owe you a slab