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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

upcp failed - needs-restarting-cpanel Could not retrieve mirrorlist

Discussion in 'General Discussion' started by theallan, Dec 18, 2017.

Tags:
  1. theallan

    theallan Active Member

    Joined:
    Nov 17, 2005
    Messages:
    34
    Likes Received:
    1
    Trophy Points:
    158
    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:

    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

    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.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    41,455
    Likes Received:
    1,608
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You may want to verify the resolvers in your /etc/resolv.conf file are valid and working.

    Thank you.
     
Loading...

Share This Page