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.