Your message dated Wed, 30 Aug 2017 21:09:54 +0200
with message-id <20170830190952.22ht4l4mtmvs3...@breakpoint.cc>
and subject line Re: Bug#835293: Log file shows additional information
has caused the Debian Bug report #835293,
regarding Clamav: Log file shows: ERROR: Can't save PID in file
/var/run/clamd.pid
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
835293: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=835293
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: clamav
Version: 0.99.2+dfsg-0+deb8u1
Severity: normal
Dear Maintainer,
I installed /clamav-daemon/ without problems but when trying to get it
to connect to /TCP:3310/ by adding the following lines:
TCPSocket 3310
TCPAddr localhost (or using 127.0.0.1)
into '//etc/clamav/clamd.conf/' and restarting with '/service
clamav-daemon restart/', and then using '/netstat -tap | grep clam/'
there was no output. I then
tried adding in:
PidFile /var/run/clamav/clamd.pid
and restarting again. Still no TCP socket was created but the
'/var/log/clamav.log/' shows:
ERROR: Can't save PID in file /var/run/clamd.pid
ERROR: Can't unlink the pid file /var/run/clamd.pid
I had expected the addition of the first two lines to create the first
of these files:
/var/run/clamav/clamd.pid
/var/run/clamav/freshclam.pid
but neither exist. The outpur of '/ls -l /var/run/' | grep clam/' after
I modifed the permissions is:
drwxrwxrwx 2 root root 60 Aug 24 10:30 clamav
Looking at the configuration automatically included below I see:
PidFile disabled
but that is not what is in my '//etc/clamav/clamd.conf/':
grep -rnw . -e "PidFile"
./clamd.conf:6:#PidFile /var/run/clamav/clamd.pid
and line 6 is:
PidFile /var/run/clamav/clamd.pid
I am unsure if my inability to get a TCP socket is related to the error
in the log file. I can use clamscan without issues at the
'//var/run/clamav/clamd.ctl/' exists
Thanks.
-- Package-specific info:
--- configuration ---
Checking configuration files in /etc/clamav
Config file: clamd.conf
-----------------------
LogFile = "/var/log/clamav/clamav.log"
StatsHostID = "auto"
StatsEnabled disabled
StatsPEDisabled = "yes"
StatsTimeout = "10"
LogFileUnlock disabled
LogFileMaxSize = "4294967295"
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
LocalSocket = "/var/run/clamav/clamd.ctl"
LocalSocketGroup = "clamav"
LocalSocketMode = "666"
FixStaleSocket = "yes"
TCPSocket = "3310"
TCPAddr = "localhost"
MaxConnectionQueueLength = "15"
StreamMaxLength = "26214400"
StreamMinPort = "1024"
StreamMaxPort = "2048"
MaxThreads = "30"
ReadTimeout = "180"
CommandReadTimeout = "5"
SendBufTimeout = "200"
MaxQueue = "100"
IdleTimeout = "30"
ExcludePath disabled
MaxDirectoryRecursion = "15"
FollowDirectorySymlinks disabled
FollowFileSymlinks disabled
CrossFilesystems = "yes"
SelfCheck = "3600"
DisableCache disabled
VirusEvent disabled
ExitOnOOM disabled
AllowAllMatchScan = "yes"
Foreground disabled
Debug disabled
LeaveTemporaryFiles disabled
User = "clamav"
Bytecode = "yes"
BytecodeSecurity = "TrustSigned"
BytecodeTimeout = "60000"
BytecodeUnsigned disabled
BytecodeMode = "Auto"
DetectPUA disabled
ExcludePUA disabled
IncludePUA disabled
AlgorithmicDetection = "yes"
ScanPE = "yes"
ScanELF = "yes"
DetectBrokenExecutables disabled
ScanMail = "yes"
ScanPartialMessages disabled
PhishingSignatures = "yes"
PhishingScanURLs = "yes"
PhishingAlwaysBlockCloak disabled
PhishingAlwaysBlockSSLMismatch disabled
PartitionIntersection disabled
HeuristicScanPrecedence disabled
StructuredDataDetection disabled
StructuredMinCreditCardCount = "3"
StructuredMinSSNCount = "3"
StructuredSSNFormatNormal = "yes"
StructuredSSNFormatStripped disabled
ScanHTML = "yes"
ScanOLE2 = "yes"
OLE2BlockMacros disabled
ScanPDF = "yes"
ScanSWF = "yes"
ScanXMLDOCS = "yes"
ScanHWP3 = "yes"
ScanArchive = "yes"
ArchiveBlockEncrypted disabled
ForceToDisk disabled
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"
ScanOnAccess disabled
OnAccessMountPath disabled
OnAccessIncludePath disabled
OnAccessExcludePath disabled
OnAccessExcludeUID disabled
OnAccessMaxFileSize = "5242880"
OnAccessDisableDDD disabled
OnAccessPrevention disabled
OnAccessExtraScanning disabled
DevACOnly disabled
DevACDepth disabled
DevPerformance disabled
DevLiblog disabled
DisableCertCheck disabled
Config file: freshclam.conf
---------------------------
StatsHostID disabled
StatsEnabled disabled
StatsTimeout disabled
LogFileMaxSize = "4294967295"
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
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"
SubmitDetectionStats disabled
DetectionStatsCountry disabled
DetectionStatsHostID disabled
SafeBrowsing disabled
Bytecode = "yes"
clamav-milter.conf not found
Software settings
-----------------
Version: 0.99.2
Optional features supported: MEMPOOL IPv6 FRESHCLAM_DNS_FIX AUTOIT_EA06
BZIP2 LIBXML2 PCRE ICONV JSON JIT
Database information
--------------------
Database directory: /var/lib/clamav
main.cvd: version 57, sigs: 4218790, built on Wed Mar 16 23:17:06 2016
bytecode.cld: version 283, sigs: 53, built on Thu Jun 23 16:01:37 2016
daily.cld: version 22134, sigs: 532535, built on Wed Aug 24 08:20:46 2016
Total number of signatures: 4751378
Platform information
--------------------
uname: Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2+deb8u3
(2016-07-02) x86_64
OS: linux-gnu, ARCH: x86_64, CPU: x86_64
Full OS version: Debian GNU/Linux 8.5 (jessie)
zlib version: 1.2.8 (1.2.8), compile flags: a9
Triple: x86_64-pc-linux-gnu
CPU: core-avx-i, Little-endian
platform id: 0x0a2152520804090201040902
Build information
-----------------
GNU C: 4.9.2 (4.9.2)
GNU C++: 4.9.2 (4.9.2)
CPPFLAGS: -D_FORTIFY_SOURCE=2
CFLAGS: -g -O2 -fPIE -fstack-protector-strong -Wformat
-Werror=format-security -Wall -D_FILE_OFFSET_BITS=64
-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
CXXFLAGS:
LDFLAGS: -fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,--as-needed
Configure: '--build=x86_64-linux-gnu' '--prefix=/usr'
'--includedir=/usr/include' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--sysconfdir=/etc' '--localstatedir=/var'
'--libexecdir=/usr/lib/clamav' '--disable-maintainer-mode'
'--disable-dependency-tracking' 'CFLAGS=-g -O2 -fPIE
-fstack-protector-strong -Wformat -Werror=format-security -Wall
-D_FILE_OFFSET_BITS=64' 'CPPFLAGS=-D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2
-fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wall
-D_FILE_OFFSET_BITS=64' 'LDFLAGS=-fPIE -pie -Wl,-z,relro -Wl,-z,now
-Wl,--as-needed' '--with-dbdir=/var/lib/clamav'
'--sysconfdir=/etc/clamav' '--disable-clamav' '--disable-unrar'
'--enable-milter' '--enable-dns-fix' '--with-libjson' '--with-gnu-ld'
'-with-system-llvm=/usr/bin/llvm-config' '--with-llvm-linking=dynamic'
'--with-systemdsystemunitdir=/lib/systemd/system'
'build_alias=x86_64-linux-gnu'
sizeof(void*) = 8
Engine flevel: 82, dconf: 82
--- data dir ---
total 142080
-rw-r--r-- 1 clamav clamav 446464 Aug 16 13:02 bytecode.cld
-rw-r--r-- 1 clamav clamav 35892736 Aug 24 09:36 daily.cld
-rw-r--r-- 1 clamav clamav 109143933 Apr 21 13:32 main.cvd
-rw------- 1 clamav clamav 1144 Aug 24 10:36 mirrors.dat
-- System Information:
Debian Release: 8.5
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages clamav depends on:
ii clamav-freshclam [clamav-data] 0.99.2+dfsg-0+deb8u1
ii libc6 2.19-18+deb8u4
ii libclamav7 0.99.2+dfsg-0+deb8u1
ii libcurl3 7.38.0-4+deb8u4
ii libssl1.0.0 1.0.1t-1+deb8u2
ii zlib1g 1:1.2.8.dfsg-2+b1
Versions of packages clamav recommends:
ii clamav-base 0.99.2+dfsg-0+deb8u1
Versions of packages clamav suggests:
pn clamav-docs <none>
-- no debconf information
--- End Message ---
--- Begin Message ---
On 2016-10-15 13:51:38 [+0200], Andreas Cadhalpun wrote:
> > Looking at this report:
> >
> > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=771911
> >
> > suggests that /etc/systemd/system/clamav-daemon.socket.d/extend.conf should
> > contain:
> >
> > [Socket]
> > ListenStream=127.0.0.1:3310
> >
> > Mine contains:
> >
> > [Socket]
> > ListenStream=
> > SocketUser=clamav
> > ListenStream=127.0.0.1:3310
> >
> > Which seems similar enough.
>
> That is good and should work. Does it not?
does not look like a bug, no response in almost a year -> closing.
If this is not right then please reopen and provide additional
information.
> Best regards,
> Andreas
Sebastian
--- End Message ---
_______________________________________________
Pkg-clamav-devel mailing list
Pkg-clamav-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-clamav-devel