kylefarris / clamscan

A robust ClamAV virus scanning library supporting scanning files, directories, and streams with local sockets, local/remote TCP, and local clamscan/clamdscan binaries (with failover).
MIT License
236 stars 69 forks source link

ERROR: Could not lookup : Servname not supported for ai_socktype #19

Closed Reiji87 closed 5 years ago

Reiji87 commented 7 years ago

I was trying to run a scan using my node app, during the callback I got an error as follow

ERROR: Communication error

So I tried to run the scan manually, the error message is ERROR: Could not lookup : Servname not supported for ai_socktype

The command used for run is: clamdscan --no-summary --fdpass --config-file=/etc/clamav/clamd.conf /home/ubuntu/testing/up/testing12324

Anyone encountered this before? Thank you :)

shogan94 commented 7 years ago

Did you ever find a solution to this? I just recently started getting this error also. In the meantime I switched to using clamscan instead of clamdscan

derMani commented 6 years ago

The user who runs the node instance, must be in the unix group clamscan.

usermod --groups clamscan --append

This should do the trick

cpu2910 commented 6 years ago

Starting clamav-daemon will help...