Unable to Run ClamAV server scanner on Post Installation Wizard

Created a fresh VM in CM using the CM's CentOS 7 image From CM, I installed Virtualmin Everything completed fine. Go into the Virtualmin web interface to complete the Post Installation wizard enabling the ClamAV server scanner.

A problem occurred testing the ClamAV server scanner :

ERROR: Could not lookup : Servname not supported for ai_socktype
 
----------- SCAN SUMMARY -----------
Infected files: 0
Time: 0.004 sec (0 m 0 s)

Is this something that needs to fixed during installation or do you have an easy fix to keep moving?

Status: 
Closed (fixed)

Comments

Steffan's picture
Submitted by Steffan on Tue, 09/06/2016 - 00:53 Pro Licensee

I was just reading through that. I did the following:

# touch /var/run/clamd.scan/clamd.sock
# chown clamscan:clamscan /var/run/clamd.scan/clamd.sock
# chmod 660 /var/run/clamd.scan/clamd.sock
# systemctl restart clamd@scan.service

It then lets me proceed. I don't know if it's a permanent fix. What is it that causes this? Is it a bug with the clam stuff or Virtualmin?

Yeah that's a fine question! That doesn't occur for everyone, so we'll need to sort out why that's occurring for some people and not others.

Is your server a dedicated server, or a VPS?

Steffan's picture
Submitted by Steffan on Tue, 09/06/2016 - 10:02 Pro Licensee

VPS. - A Cloudmin created Virtual Machine. Looking back at it, this may be the fix according to the bug report posted on fedora. https://bugzilla.redhat.com/show_bug.cgi?id=1284253

chmod 755 /var/run/clamd.scan
sed 's/710/755/' /usr/lib/tmpfiles.d/clamd.scan.conf > /etc/tmpfiles.d/clamd.scan.conf

FYI, the next Virtualmin release should fix this by updating clamd.conf to have clamd set the correct permissions on the socket file.

Steffan's picture
Submitted by Steffan on Sun, 03/18/2018 - 00:11 Pro Licensee

Status: Active » Closed (fixed)