The service “clamd” appears to be down.

rjsnyder

Registered
Feb 26, 2018
3
0
1
United States
cPanel Access Level
Root Administrator
I'm getting emails about this non stop.


Service Name clamd
Service Status failed
Notification The service “clamd” appears to be down.
Service Check Method The system’s command to check or to restart this service failed.
Number of Restart Attempts 167
Service Check Raw Output (XID a25nrv) The “clamd” service is down.

The subprocess “/usr/local/cpanel/scripts/restartsrv_clamd” reported error number 255 when it ended.
Startup Log LibClamAV Warning: Detected duplicate databases /usr/local/cpanel/3rdparty/share/clamav/bytecode.cld and /usr/local/cpanel/3rdparty/share/clamav/bytecode.cvd. The /usr/local/cpanel/3rdparty/share/clamav/bytecode.cld database is older and will not be loaded, you should manually remove it from the database directory.


I've tried restarted the entire server gracefully.

I've tried restarted the ClamAV service.

This is my first experience with WHM and i have minor experience with cPanel. Any help would be appreciated. Thanks!
 
Last edited by a moderator:

cPanelMichael

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

You could move the duplicate database to another location with commands like this:

Code:
mkdir /root/clamav-backup
mv /usr/local/cpanel/3rdparty/share/clamav/bytecode.cld  /root/clamav-backup/
Then, check for any error messages when running the following commands:

Code:
/usr/local/cpanel/3rdparty/bin/freshclam
/scripts/restartsrv_clamd
Thank you.
 

rjsnyder

Registered
Feb 26, 2018
3
0
1
United States
cPanel Access Level
Root Administrator
I moved the backup and did both of those commands. Here's what I got.


/usr/local/cpanel/3rdparty/bin/freshclam

ClamAV update process started at Fri Mar 2 08:33:35 2018

WARNING: Your ClamAV installation is OUTDATED!

WARNING: Local version: 0.99.2 Recommended version: 0.99.4

DON'T PANIC! Read ClamavNet

main.cvd is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)

daily.cld is up to date (version: 24356, sigs: 1864910, f-level: 63, builder: neo)

bytecode.cvd is up to date (version: 319, sigs: 75, f-level: 63, builder: neo)

[[email protected] clamav-backup]# /scripts/restartsrv_clamd

Waiting for “clamd” to start ………failed.

Cpanel::Exception::Services::StartError

Service Status


Service Error

(XID z8yw3s) The “clamd” service failed to start.


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

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
# /scripts/restartsrv_clamd

Waiting for “clamd” to start ………failed.

Cpanel::Exception::Services::StartError

Service Status


Service Error

(XID z8yw3s) The “clamd” service failed to start.
Hello,

Could you let us know of any output related to ClamAV in /var/log/exim_mainlog or /var/log/chkservd.log when a restart is attempted?

Thank you.
 

rjsnyder

Registered
Feb 26, 2018
3
0
1
United States
cPanel Access Level
Root Administrator
/var/log/chkservd.log
_________

The subprocess “/usr/local/cpanel/scripts/restartsrv_clamd” reported error number 255 when it ended.][socket connect:N/A][fail count:943]Restarting clamd....

[notify:failed service:clamd]]...

apache_php_fpm [[check command:+][socket connect:N/A]]...Done

Service Check Finished

Service Check Started

Loading



[Removed due to the inclusion of real domain names]


Your help is appreciated. Thank you[/I]
 
Last edited by a moderator:

cPanelMichael

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

Could you open a support ticket using the link in my signature so we can take a closer look?

Thank you.
 

mramos

Active Member
Dec 10, 2002
25
0
151
Hi

I have the same problem and nothing works to solved.

Do you have any other suggestion?

Tks

Martin
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
I have the same problem and nothing works to solved.
Hi @mramos,

Can you confirm the exact issue you are facing? For instance, what appears in the "Startup Log" section in the ClamAV service failure notifications you receive?

Thank you.