The system’s command to check or to restart this service failed.

pzavar

Registered
Sep 10, 2019
2
0
1
Los Angeles
cPanel Access Level
Website Owner
We've been logging a lot more errors than usual with the Startup Log. This is the error message:
Code:
Died at /usr/local/cpanel/Cpanel/ServiceManager/Services/Spamd.pm line 192.
...propagated at /usr/local/cpanel/Cpanel/ServiceManager/Services/Spamd.pm line 204.
And this is the Startup Log:
Code:
Sep 18 00:50:36 [URL='http://web.example.net/']web.example.net[/URL] spamd[5251]: rules: meta test KAM_PET2 has dependency 'KAM_PET' with a zero score
Sep 18 00:50:36 [URL='http://web.example.net/']web.example.net[/URL] spamd[5251]: rules: meta test KAM_HAIR has dependency '__KAM_HAIR3' with a zero score
Sep 18 00:50:36 [URL='http://web.example.net/']web.example.net[/URL] spamd[5251]: rules: meta test KAM_HAIR has dependency '__KAM_HAIR4' with a zero score
Sep 18 00:50:37 [URL='http://web.example.net/']web.example.net[/URL] spamd[5251]: spamd: server started on IO::Socket::IP [::1]:783, IO::Socket::IP [127.0.0.1]:783 (running version 3.4.2)
Sep 18 00:50:37 [URL='http://web.example.net/']web.example.net[/URL] spamd[5251]: spamd: server pid: 5251
Sep 18 00:50:37 [URL='http://web.example.net/']web.example.net[/URL] spamd[5251]: spamd: fork: Cannot allocate memory at /usr/local/cpanel/3rdparty/perl/528/bin/spamd line 1434.
Sep 18 00:50:37 [URL='http://web.example.net/']web.example.net[/URL] systemd[1]: Started Apache SpamAssassin™ deferral daemon.
Sep 18 00:50:37 [URL='http://web.example.net/']web.example.net[/URL] systemd[1]: spamd.service: main process exited, code=exited, status=255/n/a
Sep 18 00:50:37 [URL='http://web.example.net/']web.example.net[/URL] systemd[1]: Unit spamd.service entered failed state.
Sep 18 00:50:37 [URL='http://web.example.net/']web.example.net[/URL] systemd[1]: spamd.service failed.
I was reading this thread that seems to be a similar issue but the solutions posted and what worked for the other person does not work for us. Running
Code:
rpm -qa |grep SpamAssassin[/ICODE], we get [ICODE]cpanel-perl-528-Mail-SpamAssassin-3.004002-14.cp1178.x86_64
, and finally trying to run
Code:
yum reinstall packagename
.
We receive either this:
Code:
Loaded plugins: fastestmirror, rhnplugin, universal-hooks[ICODE]

or this:
[CODE]Loaded plugins: fastestmirror, rhnplugin, universal-hooks
This system is receiving updates from CLN.
Existing lock /var/run/yum.pid: another copy is running as pid 29336.
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory : 162 M RSS (763 MB VSZ)
    Started: Tue Sep  3 22:22:45 2019 - 14 day(s) 18:45:07 ago
    State  : Sleeping, pid: 29336
with it retrying every 2 seconds.

Does anyone know of any solution for our issue?
Thanks in advance!
 
Last edited by a moderator:

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
7,508
591
263
Houston
cPanel Access Level
DataCenter Provider
That output indicates that yum is being used by another process which started using it 14 days ago - This would more than likely indicate that it's a stale process.

You might try to find out what PID 29336 is and/or kill it then attempt to run yum again.

I also want to note that it's possible you might be affected by the following upstream issue: [UPS-177] Service Failures after CentOS 7.7 update