You may get the error “No supported database files found in /var/clamav” while restarting ClamAV.
/etc/init.d/clamd restart Stopping Clam AntiVirus Daemon: [FAILED] Starting Clam AntiVirus Daemon: LibClamAV Error: cli_loaddb(): No supported database files found in /var/clamav ERROR: Can't open file or directory [FAILED]
Don’t panic. You are getting this error because you don’t have any virus database definitions under /var/clamav. Run the below command to fix this.
The above command will kill all running ClamAV update processes. Now run the “freshclam” to fix this issue.
freshclam ClamAV update process started at Wed May 22 02:45:39 2013 main.cvd is up to date (version: 54, sigs: 1044387, f-level: 60, builder: sven) Downloading daily.cvd [100%] daily.cvd updated (version: 17258, sigs: 1297275, f-level: 63, builder: neo) Downloading bytecode.cvd [100%]bytecode.cvd updated (version: 214, sigs: 41, f-level: 63, builder: neo) Database updated (2341703 signatures) from db.local.clamav.net (IP: 184.108.40.206) WARNING: Clamd was NOT notified: Can't connect to clamd through /var/run/clamav/clamd.sock connect(): No such file or directory
Please do not worry about the warning. You are getting this warning because you haven’t started the ClamAV yet.
Now it’s time to start the ClamAV.
/etc/init.d/clamd start Starting Clam AntiVirus Daemon: [ OK ]
So that’s how you fix the ClamAV error – No supported database files found in /var/clamav.