Clamd was NOT notified: Can't connect to clamd through /var/run/clamav/clamd.ctl: No such file or directory

poetry

Active Member
May 28, 2020
206
57
33
Hello,

Just noticed after rebooting our mail gateway that we have this error in the logs. Any suggestion how to properly fix this without it breaking again when we do upgrade next time. I see some suggestions on https://wiki.archlinux.org/index.php/ClamAV#Error:_Clamd_was_NOT_notified

We are using Mail Gateway 6.3-5 latest version with all updates installed.

freshclam[826]: freshclam daemon 0.102.4 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
freshclam[826]: ClamAV update process started at Sat Jan 2 14:12:49 2021
freshclam[826]: ClamAV update process started at Sat Jan 2 14:12:49 2021
freshclam[826]: daily database available for update (local version: 26035, remote version: 26036)
freshclam[826]: daily database available for update (local version: 26035, remote version: 26036)
freshclam[826]: Testing database: '/var/lib/clamav//tmp.9cdbf/clamav-49125a4f250d353c5e9980f0af3c4b43.tmp-daily.cvd' ...
freshclam[826]: Testing database: '/var/lib/clamav//tmp.9cdbf/clamav-49125a4f250d353c5e9980f0af3c4b43.tmp-daily.cvd' ...
freshclam[826]: Database test passed.
freshclam[826]: Database test passed.
freshclam[826]: daily.cvd updated (version: 26035, sigs: 4294743, f-level: 63, builder: raynman)
freshclam[826]: main.cvd database is up to date (version: 59, sigs: 4564902, f-level: 60, builder: sigmgr)
freshclam[826]: daily.cvd updated (version: 26035, sigs: 4294743, f-level: 63, builder: raynman)
freshclam[826]: main.cvd database is up to date (version: 59, sigs: 4564902, f-level: 60, builder: sigmgr)
freshclam[826]: bytecode.cvd database is up to date (version: 331, sigs: 94, f-level: 63, builder: anvilleg)
freshclam[826]: safebrowsing.cvd database is up to date (version: 49191, sigs: 2213119, f-level: 63, builder: google)
freshclam[826]: bytecode.cvd database is up to date (version: 331, sigs: 94, f-level: 63, builder: anvilleg)
freshclam[826]: safebrowsing.cvd database is up to date (version: 49191, sigs: 2213119, f-level: 63, builder: google)
freshclam[826]: WARNING: Clamd was NOT notified: Can't connect to clamd through /var/run/clamav/clamd.ctl: No such file or directory
freshclam[826]: Clamd was NOT notified: Can't connect to clamd through /var/run/clamav/clamd.ctl: No such file or directory

freshclam[826]: --------------------------------------

Default settings for virus detector:
clamd1.png clamd2.png
clamd3.png

Also logs for clamd
clamd[848]: Received 0 file descriptor(s) from systemd.
clamd[848]: clamd daemon 0.102.4 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
clamd[848]: Running as user clamav (UID 106, GID 112)
clamd[848]: Log file size limited to 4294967295 bytes.
clamd[848]: Reading databases from /var/lib/clamav/
clamd[848]: Not loading PUA signatures.
clamd[848]: Bytecode: Security mode set to "TrustSigned".
clamd[848]: Loaded 11057209 signatures.
clamd[848]: LOCAL: Unix socket file /var/run/clamav/clamd.ctl
clamd[848]: Limits: Global time limit set to 120000 milliseconds.
clamd[848]: Limits: Global size limit set to 100000000 bytes.
clamd[848]: Limits: File size limit set to 25000000 bytes.
clamd[848]: Limits: Recursion level limit set to 5.
clamd[848]: Limits: Files limit set to 1000.
clamd[848]: Limits: MaxEmbeddedPE limit set to 10485760 bytes.
clamd[848]: Limits: MaxHTMLNormalize limit set to 10485760 bytes.
clamd[848]: Limits: MaxHTMLNoTags limit set to 2097152 bytes.
clamd[848]: Limits: MaxScriptNormalize limit set to 5242880 bytes.
clamd[848]: Limits: MaxZipTypeRcg limit set to 1048576 bytes.
clamd[848]: Limits: MaxPartitions limit set to 50.
clamd[848]: Limits: MaxIconsPE limit set to 100.
clamd[848]: Limits: MaxRecHWP3 limit set to 16.
clamd[848]: Limits: PCREMatchLimit limit set to 100000.
clamd[848]: Limits: PCRERecMatchLimit limit set to 2000.
clamd[848]: Limits: PCREMaxFileSize limit set to 26214400.
clamd[848]: Archive support enabled.
clamd[848]: AlertExceedsMax heuristic detection disabled.
clamd[848]: Heuristic alerts enabled.
clamd[848]: Portable Executable support enabled.
clamd[848]: ELF support enabled.
clamd[848]: Alerting on broken executables enabled.
clamd[848]: Mail files support enabled.
clamd[848]: OLE2 support enabled.
clamd[848]: PDF support enabled.
clamd[848]: SWF support enabled.
clamd[848]: HTML support enabled.
clamd[848]: XMLDOCS support enabled.
clamd[848]: HWP3 support enabled.
clamd[848]: Self checking every 3600 seconds.
clamd[848]: LOCAL: Setting connection queue length to 15
clamd[848]: Limits: Global time limit set to 120000 milliseconds.
clamd[848]: Limits: Global size limit set to 100000000 bytes.
clamd[848]: Limits: File size limit set to 25000000 bytes.
clamd[848]: Limits: Recursion level limit set to 5.
clamd[848]: Limits: Files limit set to 1000.
clamd[848]: Limits: MaxEmbeddedPE limit set to 10485760 bytes.
clamd[848]: Limits: MaxHTMLNormalize limit set to 10485760 bytes.
clamd[848]: Limits: MaxHTMLNoTags limit set to 2097152 bytes.
clamd[848]: Limits: MaxScriptNormalize limit set to 5242880 bytes.
clamd[848]: Limits: MaxZipTypeRcg limit set to 1048576 bytes.
clamd[848]: Limits: MaxPartitions limit set to 50.
clamd[848]: Limits: MaxIconsPE limit set to 100.
clamd[848]: Limits: MaxRecHWP3 limit set to 16.
clamd[848]: Limits: PCREMatchLimit limit set to 100000.
clamd[848]: Limits: PCRERecMatchLimit limit set to 2000.
clamd[848]: Limits: PCREMaxFileSize limit set to 26214400.
clamd[848]: Archive support enabled.
clamd[848]: AlertExceedsMax heuristic detection disabled.
clamd[848]: Heuristic alerts enabled.
clamd[848]: Portable Executable support enabled.
clamd[848]: ELF support enabled.
clamd[848]: Alerting on broken executables enabled.
clamd[848]: Mail files support enabled.
clamd[848]: OLE2 support enabled.
clamd[848]: PDF support enabled.
clamd[848]: SWF support enabled.
clamd[848]: HTML support enabled.
clamd[848]: XMLDOCS support enabled.
clamd[848]: HWP3 support enabled.
clamd[848]: Self checking every 3600 seconds.

Thank you for your help!
 
freshclam[826]: WARNING: Clamd was NOT notified: Can't connect to clamd through /var/run/clamav/clamd.ctl: No such file or directory
freshclam[826]: Clamd was NOT notified: Can't connect to clamd through /var/run/clamav/clamd.ctl: No such file or directory
does this keep on showing up in the logs - or is it only shortly after the system starts ?
(if it's only after the system starts I guess clamav-daemon is not yet done starting, when freshclam tries to notify it)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!