Article View: linux.debian.bugs.dist
Article #6287Bug#1155428: race between services installed by clamav-freshclam causes failure to start some of them
From: Giacomo Mulas
Date: Thu, 26 Nov 2026 10:00
Date: Thu, 26 Nov 2026 10:00
342 lines
13814 bytes
13814 bytes
Package: clamav-freshclam
Version: 1.4.6+dfsg-1~deb13u1
Severity: normal
Tags: trixie
Dear Maintainer,
after upgrading clamav-freshclam from 1.4.3+dfsg-1 to 1.4.6+dfsg-1~deb13u1
(trixie point update), on four machines that use the freshclam daemon
(clamav-freshclam.service, enabled as before) the upgrade also enabled
clamav-freshclam-once.service and clamav-freshclam-once.timer.
The oneshot cannot run while the daemon is active, so it fails at boot and
then once a day from the timer, and "systemctl is-system-running" reports
"degraded":
freshclam[945338]: ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
freshclam[945338]: ERROR: initialize: libfreshclam init failed.
freshclam[945338]: ERROR: Initialization error!
freshclam[945338]: ERROR: Failed to lock the log file /var/log/clamav/freshclam.log: Resource temporarily unavailable
systemd[1]: clamav-freshclam-once.service: Failed with result 'exit-code'.
Cause: in 1.4.3+dfsg-1 debian/rules ran "dh_installsystemd --name
clamav-daemon", so no enable snippet was generated for the freshclam units.
In 1.4.6+dfsg-1~deb13u1 the override became
dh_installsystemd -pclamav-daemon clamav-clamonacc.service --no-enable --no-start
dh_installsystemd --remaining-packages
so the generated postinst now enables (and starts) all three units of
clamav-freshclam; since deb-systemd-helper had never seen the -once units,
"was-enabled" is true and they get enabled on upgrade.
unstable already has the right override (1.4.6+dfsg-1 and 1.4.7+dfsg-1):
dh_installsystemd -pclamav-freshclam clamav-freshclam-once.service clamav-freshclam-once.timer --no-enable --no-start
but that line is missing from the trixie update, and neither changelog
mentions it. Please consider adding it to the next trixie update (the
already enabled units would still need disabling; perhaps a one-time
maintscript step when the daemon unit is enabled).
Workaround:
systemctl disable --now clamav-freshclam-once.timer clamav-freshclam-once.service
systemctl reset-failed clamav-freshclam-once.service
Thanks!
Best regards,
Giacomo Mulas
-- Package-specific info:
--- configuration ---
Checking configuration files in /etc/clamav
Config file: clamd.conf
-----------------------
AlertExceedsMax disabled
CacheSize = "65536"
PreludeEnable disabled
PreludeAnalyzerName = "ClamAV"
LogFile = "/var/log/clamav/clamav.log"
LogFileUnlock disabled
LogFileMaxSize = "9223372036854775807"
LogTime = "yes"
LogClean disabled
LogSyslog disabled
LogFacility = "LOG_LOCAL6"
LogVerbose disabled
LogRotate = "yes"
ExtendedDetectionInfo = "yes"
PidFile disabled
TemporaryDirectory disabled
DatabaseDirectory = "/var/lib/clamav"
OfficialDatabaseOnly disabled
FailIfCvdOlderThan disabled
LocalSocket = "/var/run/clamav/clamd.ctl"
LocalSocketGroup = "clamav"
LocalSocketMode = "666"
FixStaleSocket = "yes"
TCPSocket disabled
TCPAddr disabled
MaxConnectionQueueLength = "15"
StreamMaxLength = "26214400"
StreamMinPort = "1024"
StreamMaxPort = "2048"
MaxThreads = "12"
ReadTimeout = "180"
CommandReadTimeout = "5"
SendBufTimeout = "200"
MaxQueue = "100"
IdleTimeout = "30"
ExcludePath disabled
MaxDirectoryRecursion = "15"
FollowDirectorySymlinks disabled
FollowFileSymlinks disabled
CrossFilesystems = "yes"
SelfCheck = "3600"
ConcurrentDatabaseReload = "yes"
DisableCache disabled
VirusEvent disabled
ExitOnOOM disabled
AllowAllMatchScan = "yes"
Foreground disabled
Debug disabled
LeaveTemporaryFiles disabled
GenerateMetadataJson disabled
User = "clamav"
Bytecode = "yes"
BytecodeSecurity = "TrustSigned"
BytecodeTimeout = "60000"
BytecodeUnsigned disabled
BytecodeMode = "Auto"
DetectPUA disabled
ExcludePUA disabled
IncludePUA disabled
ScanPE = "yes"
ScanELF = "yes"
ScanMail = "yes"
ScanPartialMessages disabled
PhishingSignatures = "yes"
PhishingScanURLs = "yes"
HeuristicAlerts = "yes"
HeuristicScanPrecedence disabled
StructuredDataDetection disabled
StructuredMinCreditCardCount = "3"
StructuredMinSSNCount = "3"
StructuredSSNFormatNormal = "yes"
StructuredSSNFormatStripped disabled
ScanHTML = "yes"
ScanOLE2 = "yes"
AlertBrokenExecutables disabled
AlertBrokenMedia disabled
AlertEncrypted disabled
StructuredCCOnly disabled
AlertEncryptedArchive disabled
AlertEncryptedDoc disabled
AlertOLE2Macros disabled
AlertPhishingSSLMismatch disabled
AlertPhishingCloak disabled
AlertPartitionIntersection disabled
ScanPDF = "yes"
ScanSWF = "yes"
ScanXMLDOCS = "yes"
ScanHWP3 = "yes"
ScanOneNote = "yes"
ScanArchive = "yes"
ScanImage = "yes"
ScanImageFuzzyHash = "yes"
ForceToDisk disabled
MaxScanTime = "120000"
MaxScanSize = "104857600"
MaxFileSize = "26214400"
MaxRecursion = "16"
MaxFiles = "10000"
MaxEmbeddedPE = "10485760"
MaxHTMLNormalize = "10485760"
MaxHTMLNoTags = "2097152"
MaxScriptNormalize = "5242880"
MaxZipTypeRcg = "1048576"
MaxPartitions = "50"
MaxIconsPE = "100"
MaxRecHWP3 = "16"
PCREMatchLimit = "10000"
PCRERecMatchLimit = "5000"
PCREMaxFileSize = "26214400"
OnAccessMountPath disabled
OnAccessIncludePath disabled
OnAccessExcludePath disabled
OnAccessExcludeRootUID disabled
OnAccessExcludeUID disabled
OnAccessExcludeUname = "clamav"
OnAccessMaxFileSize = "5242880"
OnAccessDisableDDD disabled
OnAccessPrevention disabled
OnAccessExtraScanning disabled
OnAccessCurlTimeout = "5000"
OnAccessMaxThreads = "5"
OnAccessRetryAttempts disabled
OnAccessDenyOnError disabled
DevACOnly disabled
DevACDepth disabled
DevPerformance disabled
DevLiblog disabled
DisableCertCheck disabled
AlgorithmicDetection = "yes"
BlockMax disabled
PhishingAlwaysBlockSSLMismatch disabled
PhishingAlwaysBlockCloak disabled
PartitionIntersection disabled
OLE2BlockMacros disabled
ArchiveBlockEncrypted disabled
Config file: freshclam.conf
---------------------------
LogFileMaxSize = "9223372036854775807"
LogTime = "yes"
LogSyslog disabled
LogFacility = "LOG_LOCAL6"
LogVerbose disabled
LogRotate = "yes"
PidFile disabled
DatabaseDirectory = "/var/lib/clamav"
Foreground disabled
Debug disabled
UpdateLogFile = "/var/log/clamav/freshclam.log"
DatabaseOwner = "clamav"
Checks = "24"
DNSDatabaseInfo = "current.cvd.clamav.net"
DatabaseMirror = "db.local.clamav.net", "database.clamav.net"
PrivateMirror disabled
MaxAttempts = "5"
ScriptedUpdates = "yes"
TestDatabases = "yes"
CompressLocalDatabase disabled
ExtraDatabase disabled
ExcludeDatabase disabled
DatabaseCustomURL disabled
HTTPProxyServer disabled
HTTPProxyPort disabled
HTTPProxyUsername disabled
HTTPProxyPassword disabled
HTTPUserAgent disabled
NotifyClamd = "/etc/clamav/clamd.conf"
OnUpdateExecute disabled
OnErrorExecute disabled
OnOutdatedExecute disabled
LocalIPAddress disabled
ConnectTimeout = "30"
ReceiveTimeout = "30"
Bytecode = "yes"
clamav-milter.conf not found
Software settings
-----------------
Version: 1.4.6
Optional features supported: MEMPOOL AUTOIT_EA06 ICONV
Database information
--------------------
Database directory: /var/lib/clamav
bytecode.cld: version 339, sigs: 80, built on Thu Sep 11 14:29:19 2025
main.cld: version 63, sigs: 3287027, built on Wed Dec 17 00:18:22 2025
daily.cld: version 28194, sigs: 355842, built on Wed Nov 25 07:26:59 2026
Total number of signatures: 3642949
Platform information
--------------------
uname: Linux 6.12.118+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.118-1 (2026-11-20) x86_64
OS: Linux, ARCH: x86_64, CPU: x86_64
Full OS version: Debian GNU/Linux 13 (trixie)
zlib version: 1.3.1 (1.3.1), compile flags: a9
platform id: 0x0a21d8d808000000000e0200
Build information
-----------------
GNU C: 14.2.0 (14.2.0)
sizeof(void*) = 8
Engine flevel: 216, dconf: 216
--- data dir ---
total 316352
-rw-r--r-- 1 clamav clamav 1369088 Sep 15 2025 bytecode.cld
drwxr-xr-x 1 clamav clamav 86 Oct 3 2016 clamav-0299c945887dea77df153a9f22120048.tmp
drwxr-xr-x 1 clamav clamav 0 Nov 13 2016 clamav-1481e19577abd26c6aa9fba3f72e6f1d.tmp
drwxr-xr-x 1 clamav clamav 86 May 8 2017 clamav-18853a3847794343f3c84fe08c5ca5d1.tmp
drwxr-xr-x 1 clamav clamav 0 Apr 24 2015 clamav-6ffb4101d3e5c342cc35fe07a2224c47.tmp
drwxr-xr-x 1 clamav clamav 86 Aug 23 2019 clamav-ae1ee95881fe360d68b365668a574796.tmp
-rw-r--r-- 1 clamav clamav 86213632 Nov 25 08:29 daily.cld
-rw-r--r-- 1 clamav clamav 69 Nov 19 2023 freshclam.dat
-rw-r--r-- 1 clamav clamav 236346880 Dec 17 2025 main.cld
-rw------- 1 clamav clamav 69 Sep 5 2021 mirrors.dat
-- System Information:
Debian Release: 13.8
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (104, 'stable'), (101, 'unstable'), (9, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.12.118+deb13-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages clamav-freshclam depends on:
ii cdebconf [debconf-2.0] 0.280
ii clamav-base 1.4.6+dfsg-1~deb13u1
ii debconf [debconf-2.0] 1.5.91
ii dpkg 1.22.22
ii libc6 2.41-12+deb13u5
ii libclamav12 1.4.6+dfsg-1~deb13u1
ii logrotate 3.22.0-1
ii procps 2:4.0.4-9
ii ucf 3.0052
Versions of packages clamav-freshclam recommends:
ii ca-certificates 20250419+deb13u1
Versions of packages clamav-freshclam suggests:
ii apparmor 4.1.0-1
ii clamav-doc 1.4.6+dfsg-1~deb13u1
-- Configuration Files:
/etc/logcheck/ignore.d.server/clamav-freshclam [Errno 13] Permesso negato: '/etc/logcheck/ignore.d.server/clamav-freshclam'
-- debconf information:
* clamav-freshclam/NotifyClamd: true
* clamav-freshclam/update_interval: 24
clamav-freshclam/internet_interface:
* clamav-freshclam/PrivateMirror:
* clamav-freshclam/http_proxy:
* clamav-freshclam/local_mirror: db.local.clamav.net
* clamav-freshclam/SafeBrowsing: true
* clamav-freshclam/LogRotate: true
clamav-freshclam/proxy_user:
* clamav-freshclam/Bytecode: true
* clamav-freshclam/autoupdate_freshclam: daemon
--
_________________________________________________________________
Giacomo Mulas <giacomo.mulas@inaf.it>
_________________________________________________________________
INAF - Osservatorio Astronomico di Cagliari
via della scienza 5 - 09047 Selargius (CA)
tel. +39 070 71180247
mob. : +39 329 6603810
_________________________________________________________________
"every year keeps getting shorter, never seem to find the time
plans that either come to naught, or half a page of scribbled lines
the time is gone, the song is over, thought I'd something more to say"
(Pink Floyd)
_________________________________________________________________
Technical Details
Message-ID:
<O3EqJ-ef20-3@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Giacomo Mulas <giacomo.mulas@inaf.it>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1155428: race between services installed by clamav-freshclam causes failure to start some of them
Date: Thu, 26 Nov 2026 11:00:01 +0100
Message-ID: <O3EqJ-ef20-3@gated-at.bofh.it>
X-Original-To: submit@bugs.debian.org
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Thu Nov 26 09:59:09 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -0.952
Reply-To: Giacomo Mulas <giacomo.mulas@inaf.it>, 1155428@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: pkg-clamav-devel@lists.alioth.debian.org
X-Debian-Pr-Message: report 1155428
X-Debian-Pr-Package: clamav-freshclam
X-Debian-Pr-Keywords: trixie
X-Debian-Pr-Source: clamav
X-Gm-Message-State: APuU4Z9fENUCho3h4U/T6/LcBqDs3NsHKb5kVnoxi6fd7SZJUILW2yKk
Pyy+IoYuUgFQRHQs5iCPOhNjNU6j5A/KLy+oKcGrTV0MnPGlXFp25JS81dPgXdP4fjAeHKRo9XA
xKpVVqgY=
X-Gm-Gg: AZFdTZcnf+8UMtItxf7Ysn0VESDEilVb1RxokAXD6jrPLO9+GyeAPASUqlB3wUP+lVf
/oN6X41ocKajx2Xc1jpFNeYas86s2SqJ0nCIy8gDmE4RWkbX8RA0/Y4TmF6wGsOVDUr48q/dpPJ
0nVW5NVzI3IcWbWipo/tejwN8JDh2Y6P3fwH3dl3n/aQmOBjbhdUkb0gMDgoVz+/RyL5xFXUobO
OqrcP9v5OLPEz2sRNalwRp+yKDjfS+yg2Lv7PUR+UcU45ma+llpNMn41wWSHQytsSvPRg/GhuhF
A0b6vy0WYGNUJJRSu6EzdPJylAHj6nPdaAQ455K08rDrgmvKsvKP5aVdj9Uwq3FTV5mrutGHwXL
4iYwdHMgHbAPU6fx8KGOlFgoTIVmL/0g/uXruduztPDNEBcMp2I9PMsi5OfZxYEVM/ltgj0nro9
22B6/mvT7dObstfC3QHpF4fbqV0N+k9hvE3KR7M9ymIAj3DJMldnHBpxma+aH/LM5jlNjgEQZUS
Je3wr5S7TDgXeCP9uAOKm/iOds9iyLCyyH7lf7l+PYGU7g3p7QgMMAP+pjqF8BowT2fsdUEsJNa
o1mUJ/n/Nhxg1Wb0H916y9Z9YezdG7ouDw+AIpD03dR3+8bFwoImHQBqJXzRE3Y9Qxxpc71e9t4
HnkuNB4MgajvQGc/HmmxG/LwcnfZalJMF7Pfu
X-Received: by 2002:a5d:5f4c:0:b0:48e:5d33:da5c with SMTP id ffacd0b85a97d-4abad5aca65mr39811848f8f.1.1795687013481;
Thu, 26 Nov 2026 01:56:53 -0800 (PST)
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; charset=US-ASCII
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2005174
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 342
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Thu, 26 Nov 2026 10:56:52 +0100 (CET)
X-Original-Message-ID: <c5028df6-1c28-c715-be3d-a5f5559222c6@inaf.it>