ramorse

Well-Known Member
Sep 6, 2003
256
5
168
cPanel Access Level
Root Administrator
Woke up this morning to have Clamd down on one server and Clamav down on another.

When I try to restart clamd on one using
/scripts/restartsrv_clamdI get:
The system could not find the “/usr/local/cpanel/3rdparty/bin/clamd” binary.

On the other when I try to restart clamav using /scripts/restartsrv_clamav I get:
/scripts/restartsrv_clamav: No such file or directory
I also tried /etc/rc.d/init.d/clamav but I get
/etc/rc.d/init.d/clamav: No such file or directory
 

ramorse

Well-Known Member
Sep 6, 2003
256
5
168
cPanel Access Level
Root Administrator
Well, that's odd. Now the one server that had clamav down has it up. In spite of what the command line result said. Clamd is still down on the other server, though.
 

24x7ss

Well-Known Member
Sep 30, 2014
272
19
68
India
cPanel Access Level
Root Administrator
Twitter
Try running below command on server to start clamd

/scripts/restartsrv clamd

also you can use /etc/init.d/clamd start command. There is no service like clamav.
 

ramorse

Well-Known Member
Sep 6, 2003
256
5
168
cPanel Access Level
Root Administrator
As stated I already tried /scripts/restartsrv clamd

I just tried /etc/init.d/clamd start and get
bash: /ect/init.d/clamd: No such file or directory
 

ramorse

Well-Known Member
Sep 6, 2003
256
5
168
cPanel Access Level
Root Administrator
It's been resolved. It was there, and running, apprarently, just not properly symlinked. Cpanel support figured it out and now WHM reports it's fine and the email alerts have stopped. I have no idea why/how the issue was created. Not by any action on our part. It must have been something that came up caused by the Cpanel/WHM update to 11.50.
 

RobertoD

Registered
Jun 19, 2015
2
0
1
Costa Rica
cPanel Access Level
Root Administrator
I dont know if im getting this same problem but after my box updated to CPanel my clamd service is stoped.

When i try to start it i get this message:

==============================================
server # /etc/init.d/clamd start

Starting Clam AntiVirus Daemon: ERROR: TCP: Cannot bind to [127.0.0.1]:3310: Address already in use

ERROR: LOCAL: Socket file /var/run/clamav/clamd.sock is in use by another process.

[FAILED]
==============================================

If i try to restart it:

/scripts/restartsrv clamd

info [restartsrv_clamd] The system could not find required package 'cpanel-clamav' for service 'clamd'...

Service Error

The “clamd” service is not installed.



Startup Log

Stopping clamd: [ OK ]
==============================================


As far as i know, the service was there and nothing changed.. besides the CPanel update.
 

ramorse

Well-Known Member
Sep 6, 2003
256
5
168
cPanel Access Level
Root Administrator
You might want to submit a ticket. I had to do that to get this resolved. This is what Cpanel support discovered with my clamd after the update:

This issue should now be resolved. The issue was that, instead of a symlink to /usr/local/cpanel/3rdparty/bin/clamd, /usr/local/sbin/clamd was a separate binary. I moved aside this binary and symlinked /usr/local/sbin/clamd to /usr/local/cpanel/3rdparty/bin/clamd:
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello :)

It's likely this was caused by a third-party installation of ClamAV (e.g. from source or RPM). I am happy to see the issue is now resolved.

Thank you.