The service clamd appears to be down

rpvw

Well-Known Member
Jul 18, 2013
1,101
465
113
UK
cPanel Access Level
Root Administrator
Why do you assume I am using an old version of Cpanel? Is v74 an outdated release?
I am not assuming that at all. I am attempting to make you realise the extent of the major changes that have happened over the past couple of years.

What does error 255 mean?
See http://www.tldp.org/LDP/abs/html/exitcodes.html (I hope you find that constructive help)

I have searched for other issues people have with clamd and they don't mention memory as the problem.
You obviously didn't like the answer provided by the cPanel analyst who ascertained that the issue was caused by a lack of server memory on your VPS.

Do please keep asking the same question until someone gives you the answer that you want to hear.

Good luck.
 

Muhammad hamza

Registered
Jun 11, 2019
1
0
1
Pakistan
cPanel Access Level
Root Administrator
I am also getting the same error after this cmd "/usr/local/cpanel/scripts/restartsrv_clamd" please help me how to resove this every day it goes down daily 4 to 5 times.

Service “clamd” is already stopped.

Waiting for “clamd” to start ……info [restartsrv_clamd] systemd failed to start the service “clamd” (The “/usr/bin/systemctl restart clamd.service --no-ask-password” command (process 8658) reported error number 1 when it ended.): Job for clamd.service failed because the control process exited with error code. See "systemctl status clamd.service" and "journalctl -xe" for details.

…failed.

Cpanel::Exception::Services::StartError
Service Status

Service Error
(XID nfqjpn) The “clamd” service failed to start.

Startup Log
Jun 30 11:15:08 server1.example.com systemd[1]: Starting clamd antivirus daemon...
Jun 30 11:15:44 server1.example.com clamd[8659]: 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.
Jun 30 11:15:47 server1. systemd[1]: clamd.service: control process exited, code=exited status=1
Jun 30 11:15:47 server1. systemd[1]: Failed to start clamd antivirus daemon.
Jun 30 11:15:47 server1. systemd[1]: Unit clamd.service entered failed state.
Jun 30 11:15:47 server1. systemd[1]: clamd.service failed.

Log Messages
Jun 30 11:15:44 server1 clamd: 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.

clamd has failed. Contact your system administrator if the service does not automagically recover.
 
Last edited by a moderator:

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,295
1,275
313
Houston
The original issue in this thread was related to memory on the server, this is also the most common cause of this issue is anything noted for ClamAV in /var/log/messages?