rebuild error: 'localhost did not have any working mirrors'

Pputnik

Member
May 20, 2016
11
1
3
Poland
cPanel Access Level
Root Administrator
Hello,

tried twice, got this error:
Code:
    -- Begin test 'Pre-test htaccess check' --
!! Test passed ok !!
!! Post check of 'httpd' process Ok !!
    -- End test 'Pre-test htaccess check' --
    -- Begin test 'Basic HTTP Request for static content' --
localhost did not have any working mirrors.  Please check your internet connection or dns server. at /usr/local/cpanel/Cpanel/HttpRequest.pm line 899.
Code:
[email protected] [~]# host cpanel.net
cpanel.net has address 208.74.125.87
cpanel.net has address 208.74.121.51
cpanel.net mail is handled by 0 mx1.cpanel.net.
cpanel.net mail is handled by 10 mx2.cpanel.net.
Code:
[email protected] [~]# cat /etc/resolv.conf
; generated by /sbin/dhclient-script
search openstacklocal mysite.com.novalocal
nameserver 8.8.8.8
nameserver 8.8.4.4
Code:
[email protected] [~]# cat /etc/hosts
127.0.0.1               localhost localhost.localdomain localhost4 localhost4.localdomain4
::1             localhost localhost.localdomain localhost6 localhost6.localdomain6
127.0.1.1               localhost dev
172.16.135.112          edinburgh.example.com
208.36.133.110          dev.example.tv
172.16.135.114          dev2.mysite.com dev2 dev.mysite.com.novalocal dev dev.mysite.com
Code:
[email protected] [~]# ping google.com
PING google.com (216.58.192.206) 56(84) bytes of data.
64 bytes from ord30s25-in-f14.1e100.net (216.58.192.206): icmp_seq=1 ttl=55 time=7.00 ms
64 bytes from ord30s25-in-f14.1e100.net (216.58.192.206): icmp_seq=2 ttl=55 time=7.02 ms
^C
WHM 56.0 (build 18)
CentOS release 6.7 (Final)

Could you help, please?
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,216
463
[email protected] [~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
127.0.1.1 localhost dev 172.16.135.112 edinburgh.example.com
208.36.133.110 dev.example.tv
172.16.135.114 dev2.mysite.com dev2 dev.mysite.com.novalocal dev dev.mysite.com
Hello,

Does the issue persist if you remove the "localhost" entry from the 127.0.1.1 line in the /etc/hosts file?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,216
463
I'm happy to see the issue is now resolved. Thank you for updating us with the outcome.