I'm also seeing this error - WHM 68.0.20, CentOS 6.9, standard kernel. When I run `usr/local/cpanel/scripts/find_outdated_services` manually I get:
For some reason that I can't fathom my system is insisting on connecting to an old ip for that domain (looks like it changed at some point). It appears to be ignoring /etc/hosts for that sub-domain and I have no idea why. Commenting out the mirror list in the yum repo resolved it for me.
Looking for outdated services …
Cpanel::Exception/(XID mahxsn) The system received unexpected output from “/usr/local/cpanel/bin/needs-restarting-cpanel”: Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock error was
Cpanel::Exception/(XID mahxsn) The system received unexpected output from “/usr/local/cpanel/bin/needs-restarting-cpanel”: Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock error was
For some reason that I can't fathom my system is insisting on connecting to an old ip for that domain (looks like it changed at some point). It appears to be ignoring /etc/hosts for that sub-domain and I have no idea why. Commenting out the mirror list in the yum repo resolved it for me.