• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Install error init.xy on CentOS 8 via proxy

Scheduled Pinned Locked Moved
Linux Problems
4
11
2.6k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J
    Jacques-Olivier
    last edited by Nov 27, 2020, 9:17 AM

    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 ?

    T G 2 Replies Last reply Nov 27, 2020, 12:23 PM Reply Quote 0
    • J
      Jacques-Olivier
      last edited by Jacques-Olivier Nov 27, 2020, 3:49 AM Nov 27, 2020, 9:48 AM

      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
      
      1 Reply Last reply Reply Quote 0
      • T
        Tom Elliott @Jacques-Olivier
        last edited by Nov 27, 2020, 12:23 PM

        @jacques-olivier Are you behind a proxy server that wget is configured for?

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        J 1 Reply Last reply Nov 27, 2020, 1:47 PM Reply Quote 0
        • J
          Jacques-Olivier @Tom Elliott
          last edited by Nov 27, 2020, 1:47 PM

          @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

          T 1 Reply Last reply Nov 27, 2020, 1:52 PM Reply Quote 0
          • T
            Tom Elliott @Jacques-Olivier
            last edited by Nov 27, 2020, 1:52 PM

            @jacques-olivier I’m going to guess your fog server has a file under the root’s home called .wgetrc

            cat ~/.wgetrc
            

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

            J 1 Reply Last reply Nov 27, 2020, 2:10 PM Reply Quote 0
            • J
              Jacques-Olivier @Tom Elliott
              last edited by Nov 27, 2020, 2:10 PM

              @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
              
              T 1 Reply Last reply Nov 27, 2020, 11:49 PM Reply Quote 0
              • S
                Sebastian Roth Moderator
                last edited by Nov 27, 2020, 2:45 PM

                @Jacques-Olivier You need to either set proxy in .curlrc or through shell environment variables.

                @Tom-Elliott curl is used for those downloads not wget.

                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                T 1 Reply Last reply Nov 27, 2020, 11:48 PM Reply Quote 0
                • T
                  Tom Elliott @Sebastian Roth
                  last edited by Nov 27, 2020, 11:48 PM

                  @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)

                  Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                  Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                  Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                  1 Reply Last reply Reply Quote 0
                  • T
                    Tom Elliott @Jacques-Olivier
                    last edited by Nov 27, 2020, 11:49 PM

                    @jacques-olivier Can you try the same principal for curl:

                    https://daniel.haxx.se/blog/2020/11/03/hsts-your-curl/

                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                    1 Reply Last reply Reply Quote 0
                    • G
                      george1421 Moderator @Jacques-Olivier
                      last edited by Nov 28, 2020, 1:15 AM

                      @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.

                      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                      J 1 Reply Last reply Dec 3, 2020, 1:36 PM Reply Quote 0
                      • J
                        Jacques-Olivier @george1421
                        last edited by Dec 3, 2020, 1:36 PM

                        @george1421 Thanks, i will try that.

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        1 / 1
                        • First post
                          3/11
                          Last post

                        162

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project