upsforum

Well-Known Member
Jul 27, 2005
473
0
166
Code:
Waiting for âclamdâ
                   â¦failed.

Service Error
        The âclamdâ

Startup Log
        Starting Clam AntiVirus Daemon: ERROR: TCP: bind() error when trying to listen on [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]

clamd has failed. Contact your system administrator if the service does not automagically recover.
I have a problem with clamd service, I try with

# /usr/local/cpanel/scripts/restartsrv_clamd

but get this error:
 
Oct 10, 2015
15
1
3
Alabama, United States
cPanel Access Level
Root Administrator
Check your already running processes. See if clamd is already running (and possibly started by another user/system call).

Code:
ps auxf |grep clam |grep -v grep
If there is another instance, kill it first.

Eg.
Code:
root     29698  0.0  2.4 359024 202924 ?       Ssl  08:37   0:00 /usr/local/cpanel/3rdparty/bin/clamd

kill -9 29698

You should be able to then successfully restart it.

Code:
/scripts/restartsrv_clamd
Waiting for “clamd” to start ……waiting for “clamd” to initialize ……
…finished.

Startup Log
    Oct 21 08:43:30 localhost systemd[1]: Starting clamd antivirus daemon...
    Oct 21 08:43:41 localhost systemd[1]: Started clamd antivirus daemon.

clamd started successfully.
 

upsforum

Well-Known Member
Jul 27, 2005
473
0
166
this is result

Code:
[email protected] [~]# /scripts/restartsrv_clamd
Waiting for âclamdâ


â¦failed.

Service Error
        The âclamdâ

Startup Log
        Starting Clam AntiVirus Daemon: [  OK  ]

clamd has failed. Contact your system administrator if the service does not automagically recover.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello :)

Please post the output from:

Code:
rpm -qa|grep clam
Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
For other members that may be experiencing similar issues can you please confirm the resolution to this issue?
I've seen this happen in the past when a third-party instance of ClamAV was installed on the system.

Thank you.