[Pkg-clamav-devel] Bug#1134489: clamav-freshclam-once.service fails to start
Timo van Roermund
timo at van-roermund.nl
Mon Apr 20 20:48:14 BST 2026
Package: clamav-freshclam
Version: 1.4.4+dfsg-1
Severity: normal
Dear Maintainer,
All clamav-freshclam services are enabled by default (see 'preset'):
$ systemctl status clamav-freshclam.service | grep preset
Loaded: loaded (/usr/lib/systemd/system/clamav-freshclam.service; enabled; preset: enabled)
$ systemctl status clamav-freshclam-once.service | grep preset
Loaded: loaded (/usr/lib/systemd/system/clamav-freshclam-once.service; enabled; preset: enabled)
$ systemctl status clamav-freshclam-once.timer | grep preset
Loaded: loaded (/usr/lib/systemd/system/clamav-freshclam-once.timer; enabled; preset: enabled)
My understanding is that:
- clamav-freshclam.service runs clamav-freshclam in the background (as daemon), constantly checking for updates.
- clamav-freshclam-once.service runs clamav-freshclam only when triggered via clamav-freshclam-once.timer.
However, these two services seem to be incompatible: when both are enabled, clamav-freshclam-once.service fails with the following error:
systemd[1]: Starting clamav-freshclam-once.service - Update ClamAV virus database once...
freshclam[2549]: ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
freshclam[2549]: ERROR: initialize: libfreshclam init failed.
freshclam[2549]: ERROR: Initialization error!
freshclam[2549]: ERROR: Failed to lock the log file /var/log/clamav/freshclam.log: Resource temporarily unavailable
systemd[1]: clamav-freshclam-once.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
systemd[1]: clamav-freshclam-once.service: Failed with result 'exit-code'.
systemd[1]: Failed to start clamav-freshclam-once.service - Update ClamAV virus database once.
What seems to happen is that the log file is locked by the instance of clamav-freshclam that is started by clamav-freshclam.service. And the (second) instance of clamav-freshclam, started afterwards by clamav-freshclam-once.service, fails.
Should one of these services not be disabled by default?
-- debconf information:
clamav-freshclam/Bytecode: true
clamav-freshclam/SafeBrowsing: false
clamav-freshclam/proxy_user:
clamav-freshclam/PrivateMirror:
clamav-freshclam/NotifyClamd: false
clamav-freshclam/autoupdate_freshclam: daemon
clamav-freshclam/http_proxy:
clamav-freshclam/internet_interface:
clamav-freshclam/LogRotate: true
clamav-freshclam/local_mirror: db.local.clamav.net
clamav-freshclam/update_interval: 24
More information about the Pkg-clamav-devel
mailing list