Install error init.xy on CentOS 8 via proxy
-
Hi there,
I am on a fresh install of CentOS 8.
Everything is fine until the install script try to download init.xy.I have the msg :
Downloading kernel, init and fog-client binaries… * Could not download init.xz properly
We use a proxy, but i have added the domain fogproject.org.
And if i use wget https://fogproject.org/inits/init.xz, it works fine.Any idea ?
-
Using
bash -x installfog.sh
Show me these commands :
curl --silent -kOL https://github.com/FOGProject/fos/releases/download/1.5.9/init.xz + curl --silent -kOL https://github.com/FOGProject/fos/releases/download/1.5.9/init.xz.sha256 + let cnt+=1 + [[ 1 -ne 0 ]] + [[ 9 -lt 10 ]] + [[ -f init.xz.sha256 ]] + checksum=1 + [[ 1 -ne 0 ]] + curl --silent -kOL https://github.com/FOGProject/fos/releases/download/1.5.9/init.xz + curl --silent -kOL https://github.com/FOGProject/fos/releases/download/1.5.9/init.xz.sha256 + let cnt+=1 + [[ 1 -ne 0 ]] + [[ 10 -lt 10 ]] + [[ 1 -ne 0 ]] + echo ' * Could not download init.xz properly' * Could not download init.xz properly + [[ -z '' ]] + exit 1
-
@jacques-olivier Are you behind a proxy server that wget is configured for?
-
@tom-elliott Hi Tom, yes we are behind a Squid proxi.
We have added http://github.com and https://fogproject.org in out white list.But the curl command line is not working in /lib/common/functions.sh
-
@jacques-olivier I’m going to guess your fog server has a file under the root’s home called .wgetrc
cat ~/.wgetrc
-
@tom-elliott I have :
cat .wget-hsts # HSTS 1.0 Known Hosts database for GNU Wget. # Edit at your own risk. # <hostname> <port> <incl. subdomains> <created> <max-age> fogproject.org 0 0 1606476412 15768000 github.com 0 1 1606477609 31536000
-
@Jacques-Olivier You need to either set proxy in .curlrc or through shell environment variables.
@Tom-Elliott
curl
is used for those downloads notwget
. -
@sebastian-roth I know that, but I wanted to know if there was a .wgetrc that’s allowing proxy (which would explain why wget works, but curl doesn’t)
-
@jacques-olivier Can you try the same principal for curl:
-
@jacques-olivier In my office we are behind a proxy server too and all I do is set the environment variables (when installing fog) and the installer works correctly. I rebuild a fog server at least once a month or testing reasons so I know it works well with both centos 8 and ubuntu 20.04
export http_proxy=http://proxy.domain.com:8080 export ftp_proxy=http://proxy.domain.com:8080 export https_proxy=http://proxy.domain.com:8080 export no_proxy="127.0.0.1,*.domain.com,192.168.50.53"
Where 192.168.50.53 is the IP address of the FOG Server.
If you want them set every time then set them in bashrc or your default profile. Once they are exported then just run the installer normally. Its a bit more complicated if your proxy server needs authentication to get onto the internet. I don’t have any personal experience. In the case of the proxy server it would be much easier to white list the FOG server IP than the domains the FOG server reaches out to for the packages.
-
@george1421 Thanks, i will try that.