clamav update failed.

akong

Well-Known Member
Oct 15, 2018
87
1
48
46
I manual install PMG on debian 10.It's all done.But when I update clamav database.It's will show error message.

ERROR: Can't open/parse the config file /etc/clamav/freshclam.conf
TASK ERROR: command '/usr/bin/freshclam --stdout' failed: exit code 2

How to check this error?
 
hi,


can you show pmgversion -v ?


maybe you can take a look at this thread[0] for a possible solution

[0]: https://forum.proxmox.com/threads/proxmox-mail-gateway-clamav-update-error.76600/
Hello,
I input pmgversion -v this command line
I got message
root@pmg:~# pmgversion -v
proxmox-mailgateway: 6.2-2 (API: 6.3-5/40d25ec2, running kernel: 5.4.78-2-pve)
pmg-api: 6.3-5
pmg-gui: 2.3-1
pve-kernel-5.4: 6.3-3
pve-kernel-helper: 6.3-3
pve-kernel-5.4.78-2-pve: 5.4.78-2
clamav-daemon: 0.102.4+dfsg-0+deb10u1
libarchive-perl: 3.3.3-1
libjs-extjs: 6.0.1-10
libjs-framework7: 4.4.7-1
libpve-apiclient-perl: 3.1-3
libpve-common-perl: 6.3-2
libpve-http-server-perl: 3.1-1
libxdgmime-perl: 0.01-5
lvm2: not correctly installed
pmg-docs: 6.3-1
pmg-log-tracker: 2.1.8-1
postgresql-11: 11.10-0+deb10u1
proxmox-mini-journalreader: 1.1-1
proxmox-spamassassin: 3.4.4-3
proxmox-widget-toolkit: 2.4-3
pve-firmware: 3.1-3
pve-xtermjs: 4.7.0-3
 
I got error message.
Jan 14 12:28:41 pmg freshclam[2306]: ERROR: Can't open/parse the config file /etc/clamav/freshclam.conf
Jan 14 12:28:41 pmg systemd[1]: clamav-freshclam.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jan 14 12:28:41 pmg systemd[1]: clamav-freshclam.service: Failed with result 'exit-code'.

Jan 14 12:30:01 pmg pmg-smtp-filter[1076]: starting database maintainance
Jan 14 12:30:01 pmg pmg-smtp-filter[1076]: end database maintainance (4 ms)
Jan 14 12:30:34 pmg pmgdaemon[1084]: starting task UPID: pmg:00000932:00039A7B:5FFFC8EA:avupdate::root@pam:
Jan 14 12:30:34 pmg pmgdaemon[2354]: command '/usr/bin/freshclam --stdout' failed: exit code 2
Jan 14 12:30:34 pmg pmgdaemon[1084]: end task UPID: pmg:00000932:00039A7B:5FFFC8EA:avupdate::root@pam: command '/usr/bin/freshclam --stdout' failed: exit code 2
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!