On Fri, 28 Oct 2022, Yasuhiro Kimura wrote:

From: Ralf Hildebrandt via clamav-users <clamav-users@lists.clamav.net>
Subject: Re: [clamav-users] [ext] ClamAV 1.0.0 release candidate now available
Date: Fri, 28 Oct 2022 09:10:46 +0200

* Micah Snyder (micasnyd) via clamav-users <clamav-users@lists.clamav.net>:

We are excited to announce the ClamAV 1.0.0 release candidate!

I'm seeing log entries like this for the machines with 1.0.0-rc
indicating the daily.cld update failed:

I experienced same problem while I'm working to update FreeBSD ClamAV
port to 1.0.0-rc. It happens if ClamAV is built with external
TomsFastMath library (that is, ENABLE_EXTERNAL_TOMSFASTMATH option is
ON).

See issue #736 for more detail.

https://github.com/Cisco-Talos/clamav/issues/736

I am building from the tarball at
https://www.clamav.net/downloads/production/clamav-1.0.0-rc.tar.gz
on Ubuntu kinetic 22.10 (released this month) and have the same problem,
but have not (yet?) managed to resolve it with the internal TomsFastMath library.

I started by copying the database directory from one built by freshclam v103.7
which has had no problems with recent updates, including yesterday and today.
The freshclam.conf files have different UpdateLogFile and DatabaseDirectory but
are otherwise identical, including
    DatabaseMirror db.local.clamav.net
    DatabaseMirror database.clamav.net

Yesterday freshclam suggested that I checked again later, but today
it is downloading the .cvd after failing to patch the .cld

Should I, or you, be concerned that after just two days, freshclam
switches to a large download ?

Joel asked:
You wouldn’t download the cld from the server.
Or am I reading this thread wrong.

No, but the database directory has an existing .cld to update.

In mkdir_and_chdir_for_cdiff_tmp() libfreshclam_internal.c I see:

        /*
         * 3) Unpack the existing CVD/CLD database to this directory.
         */
        if (CL_SUCCESS != cl_cvdunpack(cvdfile, tmpdir, false)) {
            logg(LOGG_ERROR, "mkdir_and_chdir_for_cdiff_tmp: Can't unpack %s into 
%s\n", cvdfile, tmpdir);
            cli_rmdirs(tmpdir);
            goto done;
        }
but chasing cl_cvdunpack, the verify routines only mention cvd.
Do they verify .cld files too, or is that the real problem ?

------------------------------------

(Whilst the .cvd downloads, the line
        Time:   21.7s, ETA:    0.0s [========================>]   
57.34MiB/57.34MiB
flickers a lot; does it need to redraw every 0.1 seconds ?)

------------------------------------

# host db.local.clamav.net ; host database.clamav.net
db.local.clamav.net is an alias for db.local.clamav.net.cdn.cloudflare.net.
db.local.clamav.net.cdn.cloudflare.net has address 104.16.219.84
db.local.clamav.net.cdn.cloudflare.net has address 104.16.218.84
db.local.clamav.net.cdn.cloudflare.net has IPv6 address 2606:4700::6810:db54
db.local.clamav.net.cdn.cloudflare.net has IPv6 address 2606:4700::6810:da54
database.clamav.net is an alias for database.clamav.net.cdn.cloudflare.net.
database.clamav.net.cdn.cloudflare.net has address 104.16.219.84
database.clamav.net.cdn.cloudflare.net has address 104.16.218.84
database.clamav.net.cdn.cloudflare.net has IPv6 address 2606:4700::6810:da54
database.clamav.net.cdn.cloudflare.net has IPv6 address 2606:4700::6810:db54


Sat Oct 29 12:30:06 2022 -> --------------------------------------
Sat Oct 29 12:30:06 2022 -> ClamAV update process started at Sat Oct 29 
12:30:06 2022
Sat Oct 29 12:30:06 2022 -> daily database available for update (local version: 
26702, remote version: 26703)
Sat Oct 29 12:30:06 2022 -> WARNING: [LibClamAV] CVD verification failed for: 
daily.cld
Sat Oct 29 12:30:06 2022 -> ERROR: mkdir_and_chdir_for_cdiff_tmp: Can't unpack 
daily.cld into 
/var/lib/clamav-1.0.0-rc/tmp.b1a2031575/clamav-a369f6069be4efb91a43123096659109.tmp
Sat Oct 29 12:30:06 2022 -> The database server doesn't have the latest patch 
for the daily database (version 26703). The server will likely have updated if you 
check again in a few hours.
Sat Oct 29 12:30:06 2022 -> main.cld database is up-to-date (version: 62, sigs: 
6647427, f-level: 90, builder: sigmgr)
Sat Oct 29 12:30:06 2022 -> bytecode.cld database is up-to-date (version: 333, 
sigs: 92, f-level: 63, builder: awillia2)
Sun Oct 30 09:22:40 2022 -> --------------------------------------
Sun Oct 30 09:22:40 2022 -> ClamAV update process started at Sun Oct 30 
09:22:40 2022
Sun Oct 30 09:22:40 2022 -> daily database available for update (local version: 
26702, remote version: 26704)
Sun Oct 30 09:22:41 2022 -> WARNING: [LibClamAV] CVD verification failed for: 
daily.cld
Sun Oct 30 09:22:41 2022 -> ERROR: mkdir_and_chdir_for_cdiff_tmp: Can't unpack 
daily.cld into 
/var/lib/clamav-1.0.0-rc/tmp.1e7a2b62db/clamav-13ead5841234f30e4eb51b6c88c30635.tmp
Sun Oct 30 09:22:41 2022 -> WARNING: Incremental update failed, trying to 
download daily.cvd
Sun Oct 30 09:23:04 2022 -> Testing database: 
'/var/lib/clamav-1.0.0-rc/tmp.1e7a2b62db/clamav-1c8714a1574f2f81c3846f238d297cb8.tmp-daily.cvd'
 ...
Sun Oct 30 09:23:10 2022 -> Database test passed.
Sun Oct 30 09:23:10 2022 -> daily.cvd updated (version: 26704, sigs: 2009539, 
f-level: 90, builder: raynman)
Sun Oct 30 09:23:10 2022 -> main.cld database is up-to-date (version: 62, sigs: 
6647427, f-level: 90, builder: sigmgr)
Sun Oct 30 09:23:10 2022 -> bytecode.cld database is up-to-date (version: 333, 
sigs: 92, f-level: 63, builder: awillia2)
Sun Oct 30 09:23:10 2022 -> Clamd successfully notified about the update.
Sun Oct 30 09:28:04 2022 -> --------------------------------------

---------------------------

Thanks,

--
Andrew C. Aitchison                      Kendal, UK
                   and...@aitchison.me.uk
_______________________________________________

Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation

https://docs.clamav.net/#mailing-lists-and-chat

Reply via email to