greghere

Member
Mar 31, 2021
6
0
1
Hong Kong
cPanel Access Level
Root Administrator
Just subscribed to a new cloud server with my local ISP, www.01link.net... Due to the early EOL of CentOS8, I installed CentOS7 instead, and am now trying to install WHM and cPanel. I've already disabled Network Manager with the instructions at: How to Disable Network Manager | cPanel & WHM Documentation, and also deactivated the firewall with the instructions at: System Requirements for CentOS | cPanel & WHM Documentation

Installing with the script:
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest

However, during the installation, the script somehow disables DNS on the server halfway through, causing the script to stop as it is unable to download anything else after that point. Pings to ip address still work, but gets an error message when trying to ping a URL..

Prior to executing the script:

[[email protected] ~]# ping yahoo.com
PING yahoo.com (98.137.11.163) 56(84) bytes of data.
64 bytes from media-router-fp74.prod.media.vip.gq1.yahoo.com (98.137.11.163): icmp_seq=1 ttl=53 time=166 ms
64 bytes from media-router-fp74.prod.media.vip.gq1.yahoo.com (98.137.11.163): icmp_seq=2 ttl=53 time=166 ms



Executing the code "cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest", and this is the part where the script dies:

2021-03-31 18:13:10 1690 [1127] ( INFO): The installation process will now set up the necessary empty cpanel directories.
2021-03-31 18:13:10 1721 [1127] ( INFO): The installation process will now ensure that GPG is set up properly before it imports keys.
2021-03-31 18:13:10 1724 [1127] ( INFO): The installation process will now import GPG keys for yum.
2021-03-31 18:13:10 2183 [1127] ( INFO): Downloading GPG public key, cPanelPublicKey.asc
2021-03-31 18:13:11 2192 [1127] ( INFO): Importing downloaded GPG public key from “/var/cpanel/.gpgtmpdir/cPanelPublicKey.asc”.
2021-03-31 18:13:11 1147 [1127] ( INFO): Ensuring that prelink is disabled...
2021-03-31 18:13:11 1156 [1127] ( INFO): Ensuring that conflicting services are not installed...
2021-03-31 18:13:11 1166 [1127] ( INFO): Removing conflicting service references from the RPM database (but leaving the services installed)...
2021-03-31 18:13:12 1440 [1127] (DEBUG): Retrieving http://httpupdate.cpanel.net/cpanelsync/TIERS to the TIERS file...
2021-03-31 18:13:12 1440 [1127] (DEBUG): Retrieving http://httpupdate.cpanel.net/cpanelsync/TIERS.asc to the TIERS.asc file...
2021-03-31 18:13:13 2148 [1127] ( INFO): Valid signature for TIERS (file:TIERS, sig:TIERS.asc)
2021-03-31 18:13:13 250 [1127] ( INFO): Installing cPanel & WHM major version 94.
2021-03-31 18:13:13 1973 [1127] (DEBUG): - ssystem [BEGIN]: /usr/bin/rdate -s rdate.cpanel.net
2021-03-31 10:13:14 1973 [1127] (DEBUG): - ssystem [END]
2021-03-31 10:13:14 1975 [1127] ( INFO): The system set the clock to: Wed Mar 31 10:13:14 2021
2021-03-31 10:13:14 1980 [1127] ( WARN): The system changed the clock by -28799 seconds.
2021-03-31 10:13:14 1982 [1127] ( WARN): The system adjusted the starting time to Wed Mar 31 10:13:04 2021.
2021-03-31 10:13:14 255 [1127] (DEBUG): - ssystem [BEGIN]: ps -U nscd -h 2>/dev/null || /sbin/service nscd start
2021-03-31 10:13:14 255 [1127] (DEBUG): Redirecting to /bin/systemctl start nscd.service
2021-03-31 10:13:14 255 [1127] (DEBUG): - ssystem [END]
2021-03-31 10:13:14 1227 [1186] ( INFO): Installing bootstrap cPanel Perl
2021-03-31 10:13:14 1236 [1186] (DEBUG): Retrieving the fix-cpanel-perl file from /cpanelsync/11.94.0.4/cpanel/scripts/fix-cpanel-perl.xz if available...
2021-03-31 10:13:14 1440 [1186] (DEBUG): Retrieving http://httpupdate.cpanel.net/cpanelsync/11.94.0.4/cpanel/scripts/fix-cpanel-perl.xz to the fix-cpanel-perl.xz file...
2021-03-31 10:13:14 1446 [1186] ( WARN): The system could not fetch the optional fix-cpanel-perl.xz file:
2021-03-31 10:13:14 1242 [1186] ( WARN): Script 'fix-cpanel-perl' is not available for cPanel & WHM version 11.94.0.4. Continuing installation...
2021-03-31 10:13:14 1381 [1127] (FATAL): The system cannot currently download from the httpupdate.cpanel.net servers.
Removing /root/installer.lock.

[[email protected] home]# ping yahoo.com
ping: yahoo.com: Name or service not known

[[email protected] home]# ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
64 bytes from 1.1.1.1: icmp_seq=1 ttl=59 time=1.70 ms
64 bytes from 1.1.1.1: icmp_seq=2 ttl=59 time=2.03 ms



How do I fix this error so it continues installing? Any help would be appreciated..
 
Last edited:

cPAdminsMichael

Well-Known Member
Dec 19, 2016
161
57
103
Denmark
cPanel Access Level
Root Administrator
Hmm.... how does your /etc/resolv.conf file look like?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
4,859
600
273
cPanel Access Level
Root Administrator
That's my best idea too - the most likely issue is with the /etc/resolv.conf file on the machine. You may want to try replacing what is in there with this data, which is the Google public resolvers:

Code:
nameserver 8.8.8.8
nameserver 8.8.4.4
 

greghere

Member
Mar 31, 2021
6
0
1
Hong Kong
cPanel Access Level
Root Administrator
See below

[[email protected] ~]# cat /etc/resolv.conf
# Generated by SolusVM
nameserver 8.8.8.8
nameserver 8.8.4.4

Definitely not the resolv.conf file...

The issue is, prior to executing the installation scrip, the server could resolve DNS addresses without problem.. The DNS resolution problem occurs right after where the script does some command with nscd...
 
Last edited:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
4,859
600
273
cPanel Access Level
Root Administrator
Thanks for the additional details. I'm wondering if there is some issue with that environment you're performing the install on, as I checked on my side and I don't see other reports of issues happening near the NSCD portion of the installer. NSCD isn't a tool that is unique to cPanel, so I'm wondering if your host could try enabling that service to see if that alone causes odd networking issues.