Clamav-daemon not starting ** SOLVED **

I have tried 6 times to install Hestiacp on a fresh minimal install of Ubuntu 20.04 LTS.

clamav-daemon will not start.

● clamav-daemon.service - Clam AntiVirus userspace daemon
     Loaded: loaded (/lib/systemd/system/clamav-daemon.service; enabled; vendor>
    Drop-In: /etc/systemd/system/clamav-daemon.service.d
             └─extend.conf
     Active: inactive (dead)
  Condition: start condition failed at Mon 2022-05-02 07:28:32 UTC; 7s ago
             └─ ConditionPathExistsGlob=/var/lib/clamav/daily.{c[vl]d,inc} was >
       Docs: man:clamd(8)
             man:clamd.conf(5)
             https://docs.clamav.net/

below shows files in the /var/lib/clamav/ directory

root@hestiacp:/var/log/hestia# cd /var/lib/clamav
root@hestiacp:/var/lib/clamav# ls
bytecode.cvd  freshclam.dat

I also tried several times with Debain 11 and apache2 and nginx fail=d to start after server reboot (reinstalled several times).

Hope you can help.

OK Figured it out.
Seems that this is a known bug/error and quite common.
hope this helps others

cd /var/lib/clamav/
wget https://www.danami.com/hotfix/main.cvd
wget https://www.danami.com/hotfix/daily.cld
chown clamav:clamav main.cvd
chown clamav:clamav daily.cld
systemctl restart clamav-daemon

Then you have to update the virus definition files.

freshclam

There is a rate limit to getting the virus definitions 1 per hour.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.