Want more timely Centmin Mod News Updates?
Become a Member

Install IPV6 only install

Discussion in 'Install & Upgrades or Pre-Install Questions' started by atomi, Jul 14, 2018.

  1. atomi

    atomi New Member

    7
    5
    3
    Jul 14, 2018
    Ratings:
    +9
    Local Time:
    12:38 AM
    1.15
    10
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: latest stable and beta
    • When was last time updated Centmin Mod code base ? : new install
    • Persistent Config: No

    I have installed Centmin Mod many time with CentOS 6 & 7 server but now I have fresh VPS with IPV6 only and CMM install is failing.
    Code:
    Download pcre-8.42.tar.gz ...
    --2018-07-12 09:02:26--  https://centminmod.com/centminmodparts/pcre/pcre-8.42.tar.gz
    failed: Address family for hostname not supported.
    
    This is just one of the examples. I have setup proxy to help connection to ipv4 only places like github but still there are many places in Centmin Mod scripts that have "wget -c4" which is making troubles. I was wondering are those really needed? If they are maybe one place which would define all wget parameters could be better solution since now it is kind of batch replacement to get rid of those.

    Has anyone succeeded to install CMM to ipv6 only box?
     
  2. eva2000

    eva2000 Administrator Staff Member

    36,032
    7,906
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,188
    Local Time:
    7:38 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Honestly, I have never thought about or intended for Centmin Mod to be installed on a IPv6 only server hence why most curl and wget commands in Centmin Mod 123.09beta01 are now forced over IPv4 only to avoid IPv6 connectivity issues that alot of hosts occasionally have.

    I will see about making it a variable to control if IPv4 is forced in 123.09beta01 and newer but that will take time right now.
     
    • Like Like x 1
  3. eva2000

    eva2000 Administrator Staff Member

    36,032
    7,906
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,188
    Local Time:
    7:38 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    @atomi I just committed an update to 123.09beta01 branch to support IPv6 only install at 123.09beta01 add FORCE_IPVFOUR='y' variable to control wget/curl ipv4… · centminmod/[email protected]

    For ipv6 only servers this update adds option for FORCE_IPVFOUR='n' to be set as a variable in persistent config file you create at /etc/centminmod/custom_config.inc BEFORE installing centmin mod. When FORCE_IPVFOUR='n' is set in persistent config file prior to running centmin mod installers Centmin Mod LEMP Stack Install Nginx on CentOS, then centmin mod remove the forced ipv4 connection parameter in all curl and wget commands within centmin mod scripts
     
    • Winner Winner x 1
  4. atomi

    atomi New Member

    7
    5
    3
    Jul 14, 2018
    Ratings:
    +9
    Local Time:
    12:38 AM
    1.15
    10
    Thanks, actually I already installed that box with Oneinstack script but I can easily test your modifications tomorrow with similar ipv6 only VPS
     
    • Like Like x 1
  5. atomi

    atomi New Member

    7
    5
    3
    Jul 14, 2018
    Ratings:
    +9
    Local Time:
    12:38 AM
    1.15
    10
    I've now tried couple time with ipv6 only VPS and it is performing much better with that parameter. Actually only thing that seems to be failing this time is Nginx and specially modules. It seems that for some reason they try still connecting with ipv4
    Code:
    Installing nginx Modules / Prerequisites...
    Download pcre-8.42.tar.gz ...
    --2018-07-15 09:23:16--  https://centminmod.com/centminmodparts/pcre/pcre-8.42.tar.gz
    failed: Address family for hostname not supported.
    
    Also after installing I found that /usr/local/src/centminmod/centmin.sh has '-4' in WGETOPT which might cause some troubles
     
    • Winner Winner x 1
    • Informative Informative x 1
  6. eva2000

    eva2000 Administrator Staff Member

    36,032
    7,906
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,188
    Local Time:
    7:38 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    thanks for testing and bug reporting - will nail that bug soon :)

    very much appreciated (y)
     
  7. eva2000

    eva2000 Administrator Staff Member

    36,032
    7,906
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,188
    Local Time:
    7:38 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
  8. Meirami

    Meirami Member

    97
    9
    8
    Dec 21, 2017
    Ratings:
    +31
    Local Time:
    12:38 AM
    That's great when people posts their findings so it's easy for @eva2000 to fix.
    I don't need ipv6 only (at least not yet) but it's good to know if/when it works!
    Thanks @atomi! Keep reporting.
     
    • Like Like x 1
  9. atomi

    atomi New Member

    7
    5
    3
    Jul 14, 2018
    Ratings:
    +9
    Local Time:
    12:38 AM
    1.15
    10
    I finally succeeded installing Centmin Mod to IPV6 only VPS while it was a bit hack but now LEMP is working and thats all I needed. Basicly you still need proxyserver with ipv4 and ipv6. I have installed earlier tinyproxy to port 8888. Before CMM setup you have to modify couple of files. I am not sure that all of these are needed or correct but I will paste those if it helps someone
    Code:
    # cat .curlrc
    proxy = prx:8888
    
    # cat .axelrc
    use_protocol= ipv6
    http_proxy = prx:8888
    
    # cat .gitconfig
    [http]
    proxy = http://prx:8888
    
    # cat .wgetrc
    use_proxy=yes
    http_proxy=http://prx:8888
    https_proxy=http://prx:8888
    
    # head -2 /etc/yum.conf
    [main]
    proxy=http://prx:8888
    
    Also you have to add that 'prx' to your /etc/hosts file with correct ipv6.
    After all this you can start normal CMM install procedure and hope for the best
     
    • Like Like x 1
    • Informative Informative x 1
  10. atomi

    atomi New Member

    7
    5
    3
    Jul 14, 2018
    Ratings:
    +9
    Local Time:
    12:38 AM
    1.15
    10
    oh and one more thing which might be helpful for someone. I had to ctrl+c install script just after it has put all of the stuff to /usr/local/src/centminmod. Then I edited in centmin.sh function called download_cmd to use only wget because otherwise it would fail in OpenSSL setup
    Code:
    Download openssl-1.1.0h.tar.gz ...
    download_cmd https://www.openssl.org/source/openssl-1.1.0h.tar.gz
    Proxy request sent, awaiting response... Initializing download: https://www.openssl.org/source/openssl-1.1.0h.tar.gz
    HTTP/1.0 500 Unable to connect
    
    but this is prolly due to my limit proxyskills. I will continue post my experiences with ipv6 box while I replace that Oneinstack box with this new CMM box in production.
     
    • Like Like x 1
    • Informative Informative x 1
  11. eva2000

    eva2000 Administrator Staff Member

    36,032
    7,906
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,188
    Local Time:
    7:38 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    You need tinyproxy for outbound IPv4 ?
     
  12. atomi

    atomi New Member

    7
    5
    3
    Jul 14, 2018
    Ratings:
    +9
    Local Time:
    12:38 AM
    1.15
    10
    Yep since some places like github.com does not have yet ipv6
     
  13. eva2000

    eva2000 Administrator Staff Member

    36,032
    7,906
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,188
    Local Time:
    7:38 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    I see :)
     
..