Greetings,
since tonight there are issues updating the clamav database. Even deleting daily.cvd did not fix these issues. Following is an excerpt of syslog:
Proxmox staff, please note the following and consider:
- Updating to clamav 0.102.2 would ignore this issue
- Clamav 0.102.2 fixes a security issue, it is recommended that Proxmox releases an upgrade anytime soon
- Setting "ScriptedUpdates yes" in /etc/clamav/freshclam.conf fixes this issue, updates will now work properly again.
- Setting "ScriptedUpdates yes" in /etc/clamav/freshclam.conf also greatly reduces network load by no longer downloading the entire database each time, but just downloading a diff, saving 90% of bandwidth.
Note: This also needs to be set in /var/lib/pmg/templates/freshclam.conf.in and needs to be revisited each time there is an actual update for pmg installed as templates become overwritten.
Is there any reason why ScriptedUpdates ist set to no? ClamAV clearly recommends to change this setting to default value. After setting this value, updates work again:
Cheers
Marc
since tonight there are issues updating the clamav database. Even deleting daily.cvd did not fix these issues. Following is an excerpt of syslog:
Code:
Feb 10 13:52:11 mail freshclam[3783]: freshclam daemon 0.102.1 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
Feb 10 13:52:11 mail freshclam[3783]: ClamAV update process started at Mon Feb 10 13:52:11 2020
Feb 10 13:52:11 mail freshclam[3783]: ClamAV update process started at Mon Feb 10 13:52:11 2020
Feb 10 13:52:11 mail freshclam[3783]: daily database available for update (local version: 25719, remote version: 25720)
Feb 10 13:52:11 mail freshclam[3783]: daily database available for update (local version: 25719, remote version: 25720)
Feb 10 13:52:13 mail freshclam[3783]: WARNING: Mirror https://database.clamav.net is not synchronized.
Feb 10 13:52:13 mail freshclam[3783]: Mirror https://database.clamav.net is not synchronized.
Feb 10 13:52:13 mail freshclam[3783]: ERROR: Unexpected error when attempting to update database: daily
Feb 10 13:52:13 mail freshclam[3783]: Unexpected error when attempting to update database: daily
Feb 10 13:52:13 mail freshclam[3783]: WARNING: fc_update_databases: fc_update_database failed: Up-to-date (1)
Feb 10 13:52:13 mail freshclam[3783]: fc_update_databases: fc_update_database failed: Up-to-date (1)
Feb 10 13:52:13 mail freshclam[3783]: ERROR: Database update process failed: Up-to-date (1)
Feb 10 13:52:13 mail freshclam[3783]: Database update process failed: Up-to-date (1)
Feb 10 13:52:13 mail freshclam[3783]: ERROR: Update failed.
Feb 10 13:52:13 mail freshclam[3783]: Update failed.
Code:
# clamd --version
ClamAV 0.102.1/25720/Mon Feb 10 12:53:41 2020
Proxmox staff, please note the following and consider:
- Updating to clamav 0.102.2 would ignore this issue
- Clamav 0.102.2 fixes a security issue, it is recommended that Proxmox releases an upgrade anytime soon
- Setting "ScriptedUpdates yes" in /etc/clamav/freshclam.conf fixes this issue, updates will now work properly again.
- Setting "ScriptedUpdates yes" in /etc/clamav/freshclam.conf also greatly reduces network load by no longer downloading the entire database each time, but just downloading a diff, saving 90% of bandwidth.
Note: This also needs to be set in /var/lib/pmg/templates/freshclam.conf.in and needs to be revisited each time there is an actual update for pmg installed as templates become overwritten.
Is there any reason why ScriptedUpdates ist set to no? ClamAV clearly recommends to change this setting to default value. After setting this value, updates work again:
Code:
ClamAV update process started at Mon Feb 10 14:11:25 2020
daily.cld database is up to date (version: 25720, sigs: 2181998, f-level: 63, builder: raynman)
main.cvd database is up to date (version: 59, sigs: 4564902, f-level: 60, builder: sigmgr)
bytecode.cvd database is up to date (version: 331, sigs: 94, f-level: 63, builder: anvilleg)
safebrowsing.cvd database is up to date (version: 49191, sigs: 2213119, f-level: 63, builder: google)
Cheers
Marc
Last edited: