Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 496038

Summary: app-antivirus/clamav - Freshclam Error: connect(): No such file or directory
Product: Gentoo Linux Reporter: Roger <rogerx.oss>
Component: Current packagesAssignee: Antivirus Team <antivirus>
Status: RESOLVED OBSOLETE    
Severity: normal CC: antivirus
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Roger 2013-12-26 00:58:39 UTC
Running "freshclam --no-warnings --quiet" responds with " connect(): No such file or directory" error.

Per ArchLinux ClamAV Wiki Troubleshooting, a missing file is to blame for this error.

# touch /var/lib/clamav/clamd.sock
# chown clamav:clamav /var/lib/clamav/clamd.sock

There error disappears and there seems to be no need to uncomment or add the additional line to the /etc/clamav/clamd.conf file:

LocalSocket /var/lib/clamav/clamd.sock


Reproducible: Always
Comment 1 Roger 2013-12-28 04:56:26 UTC
Oops.  Looks like /etc/clamd.conf shows this files location should be "/var/run/clamav/clamd.sock"!

As such,

# mv /var/lib/clamav/clamd.sock /var/run/clamav/clamd.sock
Comment 2 Thomas Raschbacher gentoo-dev 2016-05-29 19:45:27 UTC
closing as OBSOLETE considering how old this bug is with no activity.