ClamAV won't start

I’ve just signed up for a new VPS (which uses Parallels Virtuozzo) today with Debian 6 on it, I’ve installed Virtualmin via the install.sh script and it all seems to have gone OK except for ClamAV - when I click ‘Enable ClamAV server’ I get the following:

Enable Virus Scanning Server
Configuring and enabling the ClamAV scanning server …
Starting ClamAV server and enabling at boot …
… failed to start : Starting ClamAV daemon: clamd /etc/init.d/clamav-daemon: line 327: 26672 Killed start-stop-daemon --start -o -c $User --exec $DAEMON failed!
… all done

I get something similar when trying to start it via the command line:

/etc/init.d/clamav-daemon start

Starting ClamAV daemon: clamd /etc/init.d/clamav-daemon: line 327: 30527 Killed start-stop-daemon --start -o -c $User --exec $DAEMON
failed!

Any ideas?

Thanks

Phil

Howdy,

Do you see any errors in /var/log/mail.log when trying to start Clam?

Also, can you paste in the contents of /proc/user_beancounters?

-Eric

Hi Eric

The mail log doesn’t seem to show anything when I try and start ClamAV - I used ‘tail’ to look at the most recent entries both before and after trying to start it and it was the same.

The contents of user_beancounters is as follows:

cat /proc/user_beancounters

Version: 2.5
uid resource held maxheld barrier limit failcnt
7267898: kmemsize 17801974 20029440 9223372036854775807 9223372036854775807 0
lockedpages 0 0 117964 117964 0
privvmpages 157140 160124 9223372036854775807 9223372036854775807 0
shmpages 1082 1082 9223372036854775807 9223372036854775807 0
dummy 0 0 9223372036854775807 9223372036854775807 0
numproc 67 117 9223372036854775807 9223372036854775807 0
physpages 76597 82440 117964 117964 4
vmguarpages 0 0 117964 117964 0
oomguarpages 71833 71833 117964 117964 4
numtcpsock 24 24 9223372036854775807 9223372036854775807 0
numflock 8 8 9223372036854775807 9223372036854775807 0
numpty 1 1 9223372036854775807 9223372036854775807 0
numsiginfo 0 45 9223372036854775807 9223372036854775807 0
tcpsndbuf 542952 542952 9223372036854775807 9223372036854775807 0
tcprcvbuf 393216 393216 9223372036854775807 9223372036854775807 0
othersockbuf 254320 254320 9223372036854775807 9223372036854775807 0
dgramrcvbuf 0 0 9223372036854775807 9223372036854775807 0
numothersock 226 226 9223372036854775807 9223372036854775807 0
dcachesize 5519563 5725216 9223372036854775807 9223372036854775807 0
numfile 2295 2435 9223372036854775807 9223372036854775807 0
dummy 0 0 9223372036854775807 9223372036854775807 0
dummy 0 0 9223372036854775807 9223372036854775807 0
dummy 0 0 9223372036854775807 9223372036854775807 0
numiptent 18 18 9223372036854775807 9223372036854775807 0

Hmm, well, you don’t have too many, but you do have some failures listed in that user_beancounter output.

If you try to start ClamAV again, do any of the numbers in the “failcnt” field increase?

Also, which Linux distribution are you using?

-Eric

If I hit “enable clamav server” in virtualmin, I get:

Configuring and enabling the ClamAV scanning server .. Starting ClamAV server and enabling at boot .. failed to start : Starting Clam AntiVirus Daemon: [FAILED] all done

No clamav errors in maillog.

I don’t have a /proc/user_beancounters file on my system, so can’t help there -

Mine’s a Centos 6.4 X64 on digitalocean’s vps cloud (using Linux KVM technology for virtualization).

On my original thread, http://www.virtualmin.com/node/26836 Macaba says the same thing happens on his Ubuntu 12.04 LTS. But we have heard back from Macaba with any more details.

Chris

Hi, yes if I try to start it again the counts for both oomguarpages and physpages go up by 1.

I’m thinking it’s because of the amount of memory my VPS has, 256MB.

#cat /proc/meminfo shows I’ve got 114748 kB free.

The distribution is Debian 6

Yeah, unfortunately, the ClamAV daemon is fairly large, it can be tricky to run that on systems without plenty of RAM.

You may want to stick to using the ClamAV command line scanner… though with 256MB of RAM, even that may be a little tricky.

-Eric

OK thanks for the help anyway