I am having trouble starting clamd on a debian box and was hoping
someone could help. The basic error I am getting is ...

connect(): No such file or directory
ERROR: Can't connect to clamd.

----------- SCAN SUMMARY -----------
Infected files: 0
Time: 0.007 sec (0 m 0 s)


The problem seems to be creating the socket, I have the following in my
config file

LocalSocket /var/run/clamd/clamd

The clamav user has full permissions on that directory and by su'ing to
the clamav user I can create a pipe in that directory so it doesn't seem
to be permissions. I had the same problem with 0.66 and now with 0.67.

The following is the end of the output from strace clamd.

old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40032000
read(3, "##\n## Example config file for th"..., 4096) = 4096
read(3, "lamd must be started by root).\n#"..., 4096) = 2559
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40032000, 4096)                = 0
socket(PF_UNIX, SOCK_STREAM, 0)         = 3
connect(3, {sin_family=AF_UNIX, path="/var/run/clamd/clamd"}, 110) = -1
ENOENT (No such file or directory)
close(3)                                = 0
dup(2)                                  = 3
fcntl64(3, F_GETFL)                     = 0x8002 (flags
O_RDWR|O_LARGEFILE)
fstat64(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40032000
_llseek(3, 0, 0xbfffe6f4, SEEK_CUR)     = -1 ESPIPE (Illegal seek)
write(3, "connect(): No such file or direc"..., 37connect(): No such
file or directory
) = 37
close(3)                                = 0
munmap(0x40032000, 4096)                = 0
write(2, "ERROR: ", 7ERROR: )                  = 7
write(2, "Can\'t connect to clamd.\n", 24Can't connect to clamd.
) = 24
gettimeofday({1078754942, 300805}, {0, 0}) = 0
write(2, "\n----------- SCAN SUMMARY ------"..., 38
----------- SCAN SUMMARY -----------
) = 38
write(2, "Infected files: 0\n", 18Infected files: 0
)     = 18
write(2, "Time: 0.038 sec (0 m 0 s)\n", 26Time: 0.038 sec (0 m 0 s)
) = 26
_exit(2)                                = ?

I have tried using an ip address and port and a local file but both
fail.

The same config file works fine on my gentoo box.

Has anyone any ideas?

Ta

Robin


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to