PMG 7.1 ClamAV Update Fail

rvalencia0

New Member
Apr 21, 2022
16
0
1
I've install a PMG 7.1-3 a few days ago, but since install the service freshclam show status failed and clamav-daemon as dead. I've try to start but I cant, whan can I do to fix this issue?
 
I've install a PMG 7.1-3 a few days ago, but since install the service freshclam show status failed and clamav-daemon as dead. I've try to start but I cant, whan can I do to fix this issue?
check the journal since booting (`journalctl -b`) usually freshclam/clamav-daemon should report why they could not start

else on a hunch - clamav nowadays needs 3-4 gb of memory - maybe the machine has too little memory?
 
I fount this into a syslog:

jul 09 10:49:47 spamfilter systemd[1]: /lib/systemd/system/clamav-freshclam.service:11: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
jul 09 10:49:47 spamfilter systemd[1]: /lib/systemd/system/clamav-daemon.service:12: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
jul 09 10:49:57 spamfilter freshclam[691]: ERROR: Can't save PID to file /var/run/clamav/freshclam.pid: No such file or directory
jul 09 10:49:57 spamfilter systemd[1]: clamav-freshclam.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
jul 09 10:49:57 spamfilter systemd[1]: clamav-freshclam.service: Failed with result 'exit-code'.
jul 09 10:53:00 spamfilter pmgdaemon[966]: starting task UPID:spamfilter:0000072A:00004CC7:62C9A45C:srvstart:clamav-freshclam:root@pam:
jul 09 10:53:00 spamfilter pmgdaemon[1834]: starting service clamav-freshclam: UPID:spamfilter:0000072A:00004CC7:62C9A45C:srvstart:clamav-freshclam:root@pam:
jul 09 10:53:00 spamfilter pmgdaemon[966]: end task UPID:spamfilter:0000072A:00004CC7:62C9A45C:srvstart:clamav-freshclam:root@pam: OK
jul 09 10:53:00 spamfilter systemd[1]: clamav-freshclam.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
jul 09 10:53:00 spamfilter freshclam[1836]: ERROR: Can't save PID to file /var/run/clamav/freshclam.pid: No such file or directory
jul 09 10:53:00 spamfilter systemd[1]: clamav-freshclam.service: Failed with result 'exit-code'.
jul 09 10:53:51 spamfilter systemd[1]: /lib/systemd/system/clamav-freshclam.service:11: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
jul 09 10:53:51 spamfilter systemd[1]: /lib/systemd/system/clamav-daemon.service:12: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
jul 09 10:53:52 spamfilter systemd[1]: /lib/systemd/system/clamav-freshclam.service:11: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
jul 09 10:53:52 spamfilter systemd[1]: /lib/systemd/system/clamav-daemon.service:12: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
jul 09 10:53:52 spamfilter systemd[1]: /lib/systemd/system/clamav-freshclam.service:11: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
jul 09 10:53:52 spamfilter systemd[1]: /lib/systemd/system/clamav-daemon.service:12: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
jul 09 10:54:22 spamfilter systemd[1]: /lib/systemd/system/clamav-freshclam.service:11: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
jul 09 10:54:22 spamfilter systemd[1]: /lib/systemd/system/clamav-daemon.service:12: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
jul 09 10:54:22 spamfilter systemd[1]: /lib/systemd/system/clamav-freshclam.service:11: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
jul 09 10:54:22 spamfilter systemd[1]: /lib/systemd/system/clamav-daemon.service:12: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
jul 09 10:54:22 spamfilter systemd[1]: /lib/systemd/system/clamav-freshclam.service:11: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
jul 09 10:54:22 spamfilter systemd[1]: /lib/systemd/system/clamav-daemon.service:12: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
jul 09 10:57:29 spamfilter pmgdaemon[965]: configuration change detected for 'clamav-daemon', restarting
jul 09 12:17:34 spamfilter pmgdaemon[965]: configuration change detected for 'clamav-freshclam', restarting
jul 09 12:17:34 spamfilter freshclam[11911]: ERROR: Can't save PID to file /var/run/clamav/freshclam.pid: No such file or directory
jul 09 12:17:34 spamfilter systemd[1]: clamav-freshclam.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
jul 09 12:17:34 spamfilter systemd[1]: clamav-freshclam.service: Failed with result 'exit-code'.
jul 09 12:19:38 spamfilter pmgdaemon[12106]: starting service clamav-freshclam: UPID:spamfilter:00002F4A:00083B42:62C9B8AA:srvstart:clamav-freshclam:root@pam:
jul 09 12:19:38 spamfilter pmgdaemon[966]: starting task UPID:spamfilter:00002F4A:00083B42:62C9B8AA:srvstart:clamav-freshclam:root@pam:
jul 09 12:19:39 spamfilter pmgdaemon[966]: end task UPID:spamfilter:00002F4A:00083B42:62C9B8AA:srvstart:clamav-freshclam:root@pam: OK
jul 09 12:19:39 spamfilter freshclam[12109]: ERROR: Can't save PID to file /var/run/clamav/freshclam.pid: No such file or directory
jul 09 12:19:39 spamfilter systemd[1]: clamav-freshclam.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
jul 09 12:19:39 spamfilter systemd[1]: clamav-freshclam.service: Failed with result 'exit-code'.
jul 09 12:26:11 spamfilter pmgdaemon[15092]: starting service clamav-daemon: UPID:spamfilter:00003AF4:0008D4AE:62C9BA33:srvstart:clamav-daemon:root@pam:
jul 09 12:26:11 spamfilter pmgdaemon[965]: starting task UPID:spamfilter:00003AF4:0008D4AE:62C9BA33:srvstart:clamav-daemon:root@pam:
jul 09 12:26:11 spamfilter pmgdaemon[965]: end task UPID:spamfilter:00003AF4:0008D4AE:62C9BA33:srvstart:clamav-daemon:root@pam: OK
jul 09 12:26:15 spamfilter pmgdaemon[965]: starting task UPID:spamfilter:00003B1B:0008D618:62C9BA37:srvstart:clamav-freshclam:root@pam:
jul 09 12:26:15 spamfilter pmgdaemon[15131]: starting service clamav-freshclam: UPID:spamfilter:00003B1B:0008D618:62C9BA37:srvstart:clamav-freshclam:root@pam:
jul 09 12:26:15 spamfilter pmgdaemon[965]: end task UPID:spamfilter:00003B1B:0008D618:62C9BA37:srvstart:clamav-freshclam:root@pam: OK
jul 09 12:26:15 spamfilter freshclam[15133]: ERROR: Can't save PID to file /var/run/clamav/freshclam.pid: No such file or directory
jul 09 12:26:15 spamfilter systemd[1]: clamav-freshclam.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
jul 09 12:26:15 spamfilter systemd[1]: clamav-freshclam.service: Failed with result 'exit-code'.
 
Hmm - could you try rebooting the host?
/var/run/clamav not existing sounds quite a bit off

could you maybe check if you have some custom config in /etc/apt/ that might cause this upon upgrade?
 
Yes, I've reboot many times, but still not working...

looks the problem was caused by an unaviable mirror from clamav to download the main and daily.cvd files, I get both files manually and put into /var/lib/clamav, restart and it works.
The problem now, is the database update must be manually... :/
 
jul 09 10:49:57 spamfilter freshclam[691]: ERROR: Can't save PID to file /var/run/clamav/freshclam.pid: No such file or directory
this is the problem - I think that it is due to the directory /var/run/clamav not existing..
the question is why it does not exist - since this usually works in all other installations

did you change anything regarding apt configuration, or system-service files?
how was the pmg set up?
 
Was setup using apt on debian 11 and everything on installation be "ok" but I think the problem was because the .cvd files from clamav wasn't download.
 

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!