ClamAV fails to start following upgrade
Upgraded my run-from-ram with /var mounted to HDD installation from Alpine 2.2.3 to Alpine 2.3.6 by running setup-bootable and rebooting to apply the new packages. On reboot, the Clamd service failed to start with the following message:
LibClamAV Warning: Cannot dlopen libclamunrar_iface: file not found - unrar support unavailable LibClamAV Error: cl_load(): Can't get status of /var/lib/clamav ERROR: Can't get file status
I manually created the /var/lib/clamav folder, and then trying to start the service resulted in the following:
LibClamAV Warning: Cannot dlopen libclamunrar_iface: file not found - unrar support unavailable LibClamAV Error: cli_loaddb(): No supported database files found in /var/lib/clamav ERROR: Can't open file or directory
On removing and reinstalling the clamav-db package, the /var/lib/clamav directory and necessary database files existed, and the service was able to start.
I’ve picked this up on a few similar type of installations I have here. I’m guessing that with an upgrade using setup-bootable and rebooting the necessary files/directories are not created in a mounted /var partition as they would be when doing a standard package upgrade. Any suggestions on how this could be fixed?
(from redmine: issue id 1047, created on 2012-03-13, closed on 2012-05-03)
- Revision 4cd38832 by Natanael Copa on 2012-04-30T15:13:30Z:
main/clamav: separate clamav-db and freshclam Having a big static db in a package is not a good idea for /var on disk installs. We ship the db and freshclam in separate packages. also clean up the install and init.d scripts while here. fixes #1047