Error downloading the license file from relay server as well. curl code 28. When installing.

visualchw

New member
Joined
Dec 18, 2021
Messages
7
OS : AlmaLinux 8.5

Please, I have been facing this problem for 3 days.!!!
 

Attachments

  • 2022-01-03_17-15-51.jpg
    2022-01-03_17-15-51.jpg
    161.4 KB · Views: 35
There is not a supported server listed as do.directadmin.com


Try running
Code:
cd /usr/local/directadmin/custombuild
./build update
./build set_fastest
problem is when new install.



[setup.sh] Welcome to DirectAdmin installer!

[setup.sh] Using these parameters for the installation:
License Key: eAHG2i8KfC.....
DA_CHANNEL: current
DA_EMAIL: [email protected]
DA_HOSTNAME: ......com
DA_NS1: ns1.......com
DA_NS2: ns2.......com
DA_SKIP_FASTEST: no
DA_SKIP_CSF: no
DA_SKIP_MYSQL_INSTALL: no
DA_SKIP_SECURE_PHP: no
DA_SKIP_CUSTOMBUILD: no
DA_INTERACTIVE_CUSTOMBUILD: no
DA_FOREGROUND_CUSTOMBUILD: no

[setup.sh] Checking for latest build in 'current' release channel...
[setup.sh] Downloading DirectAdmin distribution package directadmin_9a6798b0fb610c91775c580114a7101d8cad6fbf_linux_amd64.tar.gz...
-=O=- # # # #-=O=- # # ##-=O=- # # #-=O=- # # #-=O=- # ##-=O=- ###-=O=- ###-=O=- # #-=O=- # ##-=O=- # # #-=O=- # # ##-=O=- # # # ########################################################################################################################################### 100.0%
[setup.sh] Extracting DirectAdmin package directadmin_9a6798b0fb610c91775c580114a7101d8cad6fbf_linux_amd64.tar.gz to /usr/local/directadmin ...
[setup.sh] Starting installation...
* Installing pre-install packages ....
Last metadata expiration check: 3:16:24 ago on Tue 04 Jan 2022 02:51:49 AM +07.
Package iptables-1.8.4-20.el8.x86_64 is already installed.
Package wget-1.19.5-10.el8.x86_64 is already installed.
Package tar-2:1.30-5.el8.x86_64 is already installed.
Package gcc-8.5.0-4.el8_5.alma.x86_64 is already installed.
Package gcc-c++-8.5.0-4.el8_5.alma.x86_64 is already installed.
Package flex-2.6.1-9.el8.x86_64 is already installed.
Package bison-3.0.4-10.el8.x86_64 is already installed.
Package make-1:4.2.1-10.el8.x86_64 is already installed.
Package openssl-1:1.1.1k-5.el8_5.x86_64 is already installed.
Package openssl-devel-1:1.1.1k-5.el8_5.x86_64 is already installed.
Package perl-4:5.26.3-420.el8.x86_64 is already installed.
Package quota-1:4.04-14.el8.x86_64 is already installed.
Package libaio-0.3.112-1.el8.x86_64 is already installed.
Package libcom_err-devel-1.45.6-2.el8.x86_64 is already installed.
Package libcurl-devel-7.61.1-22.el8.x86_64 is already installed.
Package gd-2.2.5-7.el8.x86_64 is already installed.
Package zlib-devel-1.2.11-17.el8.x86_64 is already installed.
Package zip-3.0-23.el8.x86_64 is already installed.
Package unzip-6.0-45.el8_4.x86_64 is already installed.
Package libcap-devel-2.26-5.el8.x86_64 is already installed.
Package cronie-1.5.2-4.el8.x86_64 is already installed.
Package bzip2-1.0.6-26.el8.x86_64 is already installed.
Package cyrus-sasl-devel-2.1.27-5.el8.x86_64 is already installed.
Package perl-ExtUtils-Embed-1.34-420.el8.noarch is already installed.
Package autoconf-2.69-29.el8.noarch is already installed.
Package automake-1.16.1-7.el8.noarch is already installed.
Package libtool-2.4.6-25.el8.x86_64 is already installed.
Package which-2.21-16.el8.x86_64 is already installed.
Package patch-2.7.6-11.el8.x86_64 is already installed.
Package mailx-12.5-29.el8.x86_64 is already installed.
Package bzip2-devel-1.0.6-26.el8.x86_64 is already installed.
Package lsof-4.93.2-1.el8.x86_64 is already installed.
Package glibc-headers-2.28-164.el8.x86_64 is already installed.
Package kernel-devel-4.18.0-348.7.1.el8_5.x86_64 is already installed.
Package expat-devel-2.2.5-4.el8.x86_64 is already installed.
Package psmisc-23.1-5.el8.x86_64 is already installed.
Package net-tools-2.0-0.52.20160912git.el8.x86_64 is already installed.
Package systemd-devel-239-51.el8_5.3.x86_64 is already installed.
Package libdb-devel-5.3.28-42.el8_4.x86_64 is already installed.
Package perl-DBI-1.641-3.module_el8.3.0+2054+fbe55708.x86_64 is already installed.
Package xfsprogs-5.0.0-9.el8.x86_64 is already installed.
Package rsyslog-8.2102.0-5.el8.x86_64 is already installed.
Package logrotate-3.14.0-4.el8.x86_64 is already installed.
Package crontabs-1.11-17.20190603git.el8.noarch is already installed.
Package file-5.33-20.el8.x86_64 is already installed.
Package kernel-headers-4.18.0-348.7.1.el8_5.x86_64 is already installed.
Package hostname-3.20-6.el8.x86_64 is already installed.
Package ipset-7.1-1.el8.x86_64 is already installed.
Package krb5-devel-1.18.2-14.el8.x86_64 is already installed.
Package e2fsprogs-1.45.6-2.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
*
*****************************************************

/usr/sbin/setenforce: SELinux is disabled
All Checks have passed, continuing with install...
uid=994(diradmin) gid=992(diradmin) groups=992(diradmin)
Checking quotas...
Running quotacheck
done
Done quotacheck
Using data: license_key=eAHG2i8KfC.....%3D&insecure=yes
Warning: Transient problem: timeout Will retry in 1 seconds. 3 retries left. # # #
-=O=- # # # #-=O=- # # ##-=O=- # # #-=O=- # # #-=O=- # ##-=O=- ###-=O=- ###-=O=- # #-=O=- # ##-=O=- # # #-=O=- # # ##-=O=- # # # #-=O=- # # # #Warning: Transient problem: timeout Will retry in 2 seconds. 2 retries left.
Warning: Transient problem: timeout Will retry in 4 seconds. 1 retries left.
-=O=-# # # #
curl: (28) Resolving timed out after 5000 milliseconds
Error downloading the license file. curl exit code 28
Trying license relay server...
Warning: Transient problem: timeout Will retry in 1 seconds. 2 retries left. # # #
-=O=- # # # #-=O=- # # ##-=O=- # # #-=O=- # # #-=O=- # ##-=O=- ###-=O=- ###-=O=- # #-=O=- # ##-=O=- # # #-=O=- # # ##-=O=- # # # #-=O=- # # # #Warning: Transient problem: timeout Will retry in 2 seconds. 1 retries left.
-=O=- # # # #
curl: (28) Resolving timed out after 5000 milliseconds
Error downloading the license file from relay server as well. curl code 28
An error has occured while attempting to download the license.key.
 
I found a problem at /usr/local/directadmin/scripts/getLicense.sh

I edit timeout. But when I install. it was replaced with a new file.

#!/bin/sh

EXIT_CODE=500

LICENSE=/usr/local/directadmin/conf/license.key
DACONF_FILE=/usr/local/directadmin/conf/directadmin.conf
DA_BIN=/usr/local/directadmin/directadmin
LK_HASH=

###########################
# options
OS=`uname`;
CURL_CONNECT_OPTIONS="--location --progress-bar --connect-timeout 5 --retry 3"

###########################
INSECURE=0
if [ -s /root/.insecure_download ]; then
INSECURE=`cat /root/.insecure_download`
fi
HTTP=https
EXTRA_VALUE=
if [ "${INSECURE}" -eq 1 ]; then
HTTP=http
EXTRA_VALUE="&insecure=yes"
fi

###########################
# FUNCTIONS

GET=

#requires GET to be filled for licenseupdate?GET
get_license() {
echo "Using data: ${GET}"

curl ${CURL_CONNECT_OPTIONS} ${HTTP}://www.directadmin.com/cgi-bin/licenseupdate?${GET} --output ${LICENSE}.temp
RET=$?

if [ ${RET} -ne 0 ]
then
echo "Error downloading the license file. curl exit code ${RET}";
echo "Trying license relay server...";

curl ${CURL_CONNECT_OPTIONS} --retry 2 ${HTTP}://license.directadmin.com/licenseupdate.php?${GET} --output ${LICENSE}.temp
RET=$?

if [ ${RET} -ne 0 ]; then
echo "Error downloading the license file from relay server as well. curl code $RET";
EXIT_CODE=2
return
fi
fi

COUNT=`cat ${LICENSE}.temp | grep -c "* You are not allowed to run this program *"`;
 
I reordered the DNS again give DNS1=8.8.8.8 and followed byprovider's DNS.
Good deal. Yes generally its best to use a known good recurser dns like 9.9.9.9.

Sometimes Datacenters try to use their dns in their server setups. I have found several that do not work or point to a Local DA mirror inside the datacenter. The issue is they are not usually updated every day.
 
Had this problem as well.
To not keep google 8.8.8.8 on top, see what I did:
 
Back
Top