[Pkg-clamav-devel] Bug#1091528: clamav: Connection refused - after update

Edmund Lodewijks edmund at proteamail.com
Thu Dec 3 18:13:38 GMT 2026


On Sat, 28 Dec 2024 08:45:30 +0100 Leon Fellows <leonfellows at web.de> wrote:
> Yesterday, I have made an "apt upgrade". After that, the clamav-daemon
> refuses any connections.

Hi!

What do you mean by "refuses any connections"? How do you know?

> When I check with systemctl status clamav-daemon, it is "active (running)".

That seems to indicate that everything is okay. Otherwise you would see 
warnings or errors.

> But when I do
> telnet 127.0.0.1 3310
> I get this response:
> "Unable to connect to remote host: Connection refused".

Considering your configuration (see below), that is expected. You have:

 > TCPSocket disabled
 > TCPAddr disabled

Instead of TCP, you use (as is the default on Debian) a socket:

 > LocalSocket = "/var/run/clamav/clamd.ctl"

 > I expected something like:
 > PING -> PONG :)

Have you tried pinging like this?

$ clamdscan --ping 1




> -- Package-specific info:
> --- configuration ---
> Checking configuration files in /etc/clamav
> 
> Config file: clamd.conf
> -----------------------
> AlertExceedsMax disabled
> PreludeEnable disabled
> PreludeAnalyzerName = "ClamAV"
> LogFile = "/var/log/clamav/clamav.log"
> 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 disabled
> TCPAddr disabled
> MaxConnectionQueueLength = "15"
> StreamMaxLength = "26214400"
> StreamMinPort = "1024"
> StreamMaxPort = "2048"
> MaxThreads = "12"
> ReadTimeout = "180"
> CommandReadTimeout = "30"
> SendBufTimeout = "200"
> MaxQueue = "100"
> IdleTimeout = "30"

-- 
Edmund Lodewijks <edmund at proteamail.com>
TZ: UTC+2 / GMT+2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 236 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-clamav-devel/attachments/20261203/59e38d75/attachment.sig>


More information about the Pkg-clamav-devel mailing list