• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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