• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Question Can't create mirrors.dat in /var/lib/clamav

TRILOS new media

New Pleskian
Cron <root@$> /usr/share/clamav/freshclam-sleep > /dev/null
notifies:
ERROR: Can't create mirrors.dat in /var/lib/clamav
ERROR: Failed to save mirrors.dat!
ERROR: initialize: libfreshclam init failed.
ERROR: Initialization error!

and
$/usr/bin/freshclam --debug
shows:
ERROR: Can't create mirrors.dat in /var/lib/clamav
Hint: The database directory must be writable for UID 993 or GID 995
ERROR: Failed to save mirrors.dat!
WARNING: Failed to create a new mirrors.dat!
ERROR: initialize: libfreshclam init failed.
ERROR: Initialization error!

but
#ls -lan
clears up:
drwxr-xr-x 3 993 995 4096 Apr 25 04:48 clamav

Anyway, only Plesk Premium Antivirus is used on that server (Plesk Onyx Version 17.8.11 Update #95) and clamav should not even be installed or I don´t know which component uses clamav.
Any ideas on how to get rid of this or whether it´s wise remove clamav?
 
You could try to use strace to get a better idea of what happens there and why the syscall fails.
 
Back
Top