Web Hosting Forum - Net Hosting Talk

We are a community of individuals and businesses passionate about web hosting. Let's build, learn, and grow together.

Getting freshclam-sleep error emails

RickyWref

Newbie
Registered
Hi,

I'm getting freshclam-sleep error emails from of our server:
Code:
Cron <root@[host]> /usr/share/clamav/freshclam-sleep

ERROR: Can't open /var/lib/clamav/mirrors.dat for writing
ERROR: Can't open /var/lib/clamav/mirrors.dat for writing
/var/lib/clamav/ directory looks like this:
drwxr-xr-x 3 clamupdate clamupdate 4096 Jul 8 12:17 . drwxr-xr-x. 29 root root 4096 Jul 8 01:35 .. -rw-r--r-- 1 clamupdate clamupdate 1038848 Jul 8 03:07 bytecode.cld drwxr-xr-x 3 491 485 4096 Mar 7 03:30 clamav-9939694aa3a0bca18c94c57ea2061c36.tmp -rw-r--r-- 1 clamupdate clamupdate 141753856 Jul 8 12:15 daily.cld -rw-r--r-- 1 clamupdate clamupdate 117892267 Jul 2 14:36 main.cvd -rw------- 1 491 485 728 Aug 13 03:15 mirrors.dat

Can anyone guide me on how can I fix this?
 
  • Advertisement
  • Advertisement
  • You can use the following commands to resolve the issue:

    - systemctl start clamd
    - cd /var/lib/clamav
    - rm -f *
    - systemctl start clamd
    - freshclam -v
     

    Advertisement

    Back
    Top