Hi,

I'm running ClamAv on Kubernetes. The image tag is clamav/clamav:1.5.1. I
have a Java app based SpringBoot that communicates with ClamAV.
When I'm trying to scan a file using my Java app The app hangs up at this
line:

ClamavClient clamScan = new ClamavClient(url, port);

clamScan.ping(); // hangs up

When I'm running the telnet command to my URL the command run as expected.

My clamd config file:

##############################
# Network Settings (TCP mode)
##############################
TCPSocket 3310
TCPAddr 0.0.0.0
LocalSocket /run/clamav/clamd.sock
LocalSocketGroup clamav
LocalSocketMode 666

##############################
# Logging
##############################
# LogFile /var/log/clamav/clamd.log
LogFileUnlock yes
LogTime yes
LogVerbose no            # Change to "yes" for debug
ExtendedDetectionInfo yes
LogVerbose yes  # Enable verbose for debugging

##############################
# Performance & Limits
##############################
MaxScanSize 200M
MaxFileSize 100M
StreamMaxLength 150M
MaxRecursion 20
MaxFiles 10000
MaxScanTime 120000        # 120 seconds
ReadTimeout 120
IdleTimeout 60

##############################
# Heuristics / Features
##############################
ScanArchive yes
ScanOLE2 yes
ScanPDF yes
ScanSWF yes
ScanHWP3 yes
HeuristicScanPrecedence yes

##############################
# Misc
##############################
Foreground yes
User clamav
SelfCheck 3600           # Every 60 minutes

My freshclam config file:

###############
# Database Updates
###############
DatabaseOwner clamav
Checks 12   # every 2 hours

DatabaseMirror database.clamav.net
DNSDatabaseInfo current.cvd.clamav.net

###############
# Logging
###############
UpdateLogFile /var/log/clamav/freshclam.log
LogVerbose yes

-- 
Lior Koskas
*Blockchain **Specialist**, *WaveBL

 wavebl.com <https://wavebl.com/>  |   [email protected] <[email protected]>

IMPORTANT: The contents of this email and any attachments are confidential.
They are intended for the named recipient(s) only. If you have received
this email by mistake, please notify the sender immediately and do not
disclose the contents to anyone or make copies thereof.


Wavebl.com
<https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwavebl.com%2F&data=02%7C01%7CKasper.Oelund%40maersk.com%7C9a72b1fb6eb240bcbfcb08d761aae9da%7C05d75c05fa1a42e79cf1eb416c396f2d%7C0%7C1%7C637085260046191835&sdata=Rq7xeRRcgfnjZ9dMMZlsUFrTXlp6WLILdOcP4kzir6w%3D&reserved=0>
 | Twitter
<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2Fwavebl%3Flang%3Den&data=02%7C01%7CKasper.Oelund%40maersk.com%7C9a72b1fb6eb240bcbfcb08d761aae9da%7C05d75c05fa1a42e79cf1eb416c396f2d%7C0%7C0%7C637085260046201829&sdata=GbODOCwXlshniD%2FDlaDF0WfzhRpfqXL8%2B%2BTU79IxqEc%3D&reserved=0>
| Linkedin
<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2F10082448%3Ftrk%3Dtyah%26trkInfo%3DclickedVertical%253Acompany%252CclickedEntityId%253A10082448%252Cidx%253A2-1-3%252CtarId%253A1457252792686%252Ctas%253Awave%2520(by&data=02%7C01%7CKasper.Oelund%40maersk.com%7C9a72b1fb6eb240bcbfcb08d761aae9da%7C05d75c05fa1a42e79cf1eb416c396f2d%7C0%7C1%7C637085260046211829&sdata=FKNOcDPezSN4xwlOD%2BbD79LxVDSTNT4%2BTw7rSGjFqL0%3D&reserved=0>
_______________________________________________

Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation

https://docs.clamav.net/#mailing-lists-and-chat

Reply via email to