Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

In Progress [CPANEL-21312] The cpgreylistd service is down

Discussion in 'E-mail Discussion' started by martin MHC, Jun 7, 2018.

  1. martin MHC

    martin MHC Well-Known Member

    Joined:
    Sep 14, 2016
    Messages:
    88
    Likes Received:
    11
    Trophy Points:
    8
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    Over the last few days on WHM 70.0.48 I've been getting daily reports that :

    ================
    (XID ewurwr) The “cpgreylistd” service is down.

    The subprocess “/usr/local/cpanel/scripts/restartsrv_cpgreylistd” reported error number 255 when it ended.

    Startup Log [*] cPGreyList is running with PID: '38473'
    [+] Successfully sent 'HUP' signal to daemon.

    This happens at the same time every night; 11pm (+/- 5 minutes) and for approximately 5 minutes until I get a second notice that CPGreylist has restarted.

    ================

    It's not a big deal in itself; but it's persistently every night. This hadn't occured previously.

    I have looked at various logs but can't find reference to "cPGreyList" so clarification on which log file to explore would also be good. I have checked for a Checkservd.log (see here) but there is none.

    I am curious if reinstalling greylist would help, however I'm not overly familiar with yum and can't find google results as to best ways of running yum to reinstall (rather than fresh install or update) greylist.

    I would like some advice on:

    1) How can I find out what specifically causes this issue? (error 255 sounds like a generic fail)

    2) If possible, how do I solve this greylist downtime?

    3) If nessecary, how would I correctly re-install Greylist on my server?

    Many thanks !
     
  2. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,760
    Likes Received:
    131
    Trophy Points:
    118
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @martin MHC

    It sounds like it's staying unresponsive to chkservd checks of the service. Can you run the following via SSH I'd like to see how long the process has been running:
    Code:
     ps faux |grep cpgreylist[d]
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. martin MHC

    martin MHC Well-Known Member

    Joined:
    Sep 14, 2016
    Messages:
    88
    Likes Received:
    11
    Trophy Points:
    8
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    Hello Lauren,

    The output at 5:19pm my time is:

    root 58944 0.0 0.1 36680 4708 ? S Jun06 0:08 cpgreylistd - processor

    Just incase it relates, since asking the question I did find the WHM --> Software --> Rebuild RPM Database and run that earlier today. (Not sure if it would make a difference but thought it was worth a shot)

    Cheers
     
  4. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,760
    Likes Received:
    131
    Trophy Points:
    118
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @martin MHC

    It doesn't look like it's been running too long since 12am yesterday. If you stop it with the following:

    Code:
    /scripts/restartsrv_cpgreylistd --stop
    Ensure no further cpgreylistd processes are running by running the earlier command again:
    Code:
    ps faux |grep cpgreylist[d]
    Then restart it by running:

    Code:
    /scripts/restartsrv_cpgreylistd --start
    Can you let me know if the issue persists?

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    martin MHC likes this.
  5. martin MHC

    martin MHC Well-Known Member

    Joined:
    Sep 14, 2016
    Messages:
    88
    Likes Received:
    11
    Trophy Points:
    8
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    Hello @cPanelLauren .
    Thanks for the advice.

    Everything ran as expected; output below just for clarity:

    (I will let you know tomorrow if the issue returns tonight)

    In the meantime how would I go about establishing what caused this?

    root@plop [~]# /scripts/restartsrv_cpgreylistd --stop
    Waiting for “cpgreylistd” to stop ………finished.

    Startup Log
    [+] No running cPGreyList process found.
    [*] Starting cPGreyListd ...
    [*] Found cPGreyList running with PID: '58944'. Stopping...
    [+] cPGreyList stopped successfully.

    cpgreylistd stopped successfully.
    root@plop [~]# ps faux |grep cpgreylist[d]
    root@plop [~]# /scripts/restartsrv_cpgreylistd --start
    Waiting for “cpgreylistd” to start ……waiting for “cpgreylistd” to initialize ……… finished.

    Service Status
    cpgreylistd (/usr/local/cpanel/libexec/cpgreylistd --restart) running as root with PID 42952 (process table check method)

    Startup Log
    [+] No running cPGreyList process found.

    cpgreylistd started successfully.
     
    #5 martin MHC, Jun 7, 2018
    Last edited: Jun 7, 2018
  6. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,760
    Likes Received:
    131
    Trophy Points:
    118
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    HI @martin MHC

    Great, now will you let us know if you continue to receive the same notifications that it failed to restart? I'd give it until tomorrow to be sure.

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. martin MHC

    martin MHC Well-Known Member

    Joined:
    Sep 14, 2016
    Messages:
    88
    Likes Received:
    11
    Trophy Points:
    8
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    Hello @cPanelLauren -- I received no notifications this morning so I think your fix solved the problem. I'll bare that in mind for next time! Cheers!
     
    cPanelLauren likes this.
  8. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,760
    Likes Received:
    131
    Trophy Points:
    118
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @martin MHC
    I'm so happy to hear that! I'm glad I could help!

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. martin MHC

    martin MHC Well-Known Member

    Joined:
    Sep 14, 2016
    Messages:
    88
    Likes Received:
    11
    Trophy Points:
    8
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    Hello @cPanelLauren -- unfortunately the issue has returned again; exactly the same as before! Nothng else has been changed as far as I am aware!

    I have run the commands given above to restart the service but would like to find out what's causing it to break at 11pm every night?!

    I guess this may need to be a ticket?
     
    #9 martin MHC, Jun 10, 2018
    Last edited: Jun 10, 2018
  10. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,760
    Likes Received:
    131
    Trophy Points:
    118
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    HI @martin MHC

    Is there anything logged to
    Code:
    /usr/local/cpanel/logs/cpgreylistd.log
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. martin MHC

    martin MHC Well-Known Member

    Joined:
    Sep 14, 2016
    Messages:
    88
    Likes Received:
    11
    Trophy Points:
    8
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    Hello
    The only vaguely interesting notes in that file are pretty minor:

    Code:
        [2018-06-08 22:57:18 +0100] info [cpgreylistd] SIGHUP received: re-execing daemon 
        [2018-06-08 22:57:18 +0100] info [cpgreylistd] cPGreyListd Processor startup with PID '27551'
    
        [2018-06-09 22:57:20 +0100] info [cpgreylistd] SIGHUP received: re-execing daemon
        [2018-06-09 22:59:07 +0100] info [cpgreylistd] cPGreyListd Processor startup with PID '50033'
    
        [2018-06-10 22:57:31 +0100] info [cpgreylistd] SIGHUP received: re-execing daemon
        [2018-06-10 23:02:13 +0100] info [cpgreylistd] cPGreyListd Processor startup with PID '58621'
    
    PID 58621 is currently running ok. Another notice of the above was received again this morning....
     
  12. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,760
    Likes Received:
    131
    Trophy Points:
    118
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @martin MHC

    It looks like the same issue is persisting, for some reason chkservd isn't seeing the greylistd service restart within the allotted time frame. There's no issue with it's restarting it's just not doing it before chkservd times out. You can probably confirm this by checking /var/log/chkservd.log for restarts of the cpgreylistd service.

    It may be useful to open a ticket at this point so we can look at the configuration closer and determine why it's not being recognized by chkservd.

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. martin MHC

    martin MHC Well-Known Member

    Joined:
    Sep 14, 2016
    Messages:
    88
    Likes Received:
    11
    Trophy Points:
    8
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    Hello @cPanelLauren - Thanks for that and sorry for the delay getting back to you. I have opened a support request with id 9739621 . Cheers
     
  14. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,760
    Likes Received:
    131
    Trophy Points:
    118
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @martin MHC

    No worries! I just checked in on the ticket and it looks like it's already being worked on by one of our analysts. I'll update here when there's more information!

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. martin MHC

    martin MHC Well-Known Member

    Joined:
    Sep 14, 2016
    Messages:
    88
    Likes Received:
    11
    Trophy Points:
    8
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    Hello @cPanelLauren and all, the problem appeared to be related to having a SELinux installation running on the server. Rather strangely the SELinux had been installed since 2015 and appeared to have run without issues iro WHM but recently this had caused backup and UPCP faults includng this one.

    Having disabled SELinux the system seems to be running smoothly (touch wood!) over the last 2 days.
     
  16. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,760
    Likes Received:
    131
    Trophy Points:
    118
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,760
    Likes Received:
    131
    Trophy Points:
    118
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @martin MHC

    I wanted to add to this thread for anyone coming across this later, as a result of this thread we did end up opening a case CPANEL-21312 - cpgreylistd dies if it gets SIGHUP while starting MERGE this is currently being tested and I'll update here again once it's completed.

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    martin MHC likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice