Thread View: linux.debian.bugs.dist
2 messages
2 total messages
Started by Giacomo Mulas
Thu, 26 Nov 2026 10:00
Bug#1155428: race between services installed by clamav-freshclam causes failure to start some of them
Author: 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)
_________________________________________________________________
Bug#1155428: race between services installed by clamav-freshclam causes failure to start some of them
Author: Edmund Lodewijks
Date: Tue, 01 Dec 2026 09:50
Date: Tue, 01 Dec 2026 09:50
35 lines
3487 bytes
3487 bytes
Hi Giacomo!
On Thu, 26 Nov 2026 10:56:52 +0100 (CET) Giacomo Mulas
<giacomo.mulas@inaf.it> wrote:
> ...
> 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).
Thank you for the very precise bug report! This will be addressed with a
next update.
Kind regards,
Edmund
--
Edmund Lodewijks <edmund@proteamail.com>
TZ: UTC+2 / GMT+2
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads