Welcome to Centmin Mod Community
Become a Member

IPv6 call at IPv4 server

Discussion in 'Bug Reports' started by wmtech, Mar 11, 2024.

  1. wmtech

    wmtech Active Member

    167
    44
    28
    Jul 22, 2017
    Ratings:
    +125
    Local Time:
    12:53 AM
    • CentOS Version: CentOS 7.9 64bit
    • Centmin Mod Version Installed: 124.00stable
    • Nginx Version Installed: 1.25.4
    • PHP Version Installed: 8.2.16
    • When was last time updated Centmin Mod code base ? : current
    • Persistent Config:
      Code (Text):
      DISABLE_IPVSIX='y'
      FORCE_IPVFOUR='y'
      

    Updating PHP with option 5 fails with that error:

    Code:
    Downloading PHP 8.2 from https://git.php.net/repository/php-src.git
    Cloning into 'php-'...
    fatal: unable to access 'https://git.php.net/repository/php-src.git/': Failed to connect to 2a02:cb41::5: Network is unreachable
    It seems the script tries to connect to an ipv6 address when the server has no ipv6 network configured and ipv6 is also disabled serverwide and in custom_config.

    Looks like a bug to me. :)

     
  2. eva2000

    eva2000 Administrator Staff Member

    53,209
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    8:53 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    hmmm, where did you set the variables
    Code (Text):
    DISABLE_IPVSIX='y'
    FORCE_IPVFOUR='y'

    in the persistent config file /etc/centminmod/custom_config.inc?

    what does this command return
    Code (Text):
    grep -w 'net.ipv6.conf.all.disable_ipv6' /etc/sysctl.conf
    

    and
    Code (Text):
    grep -w 'net.ipv6.conf.default.disable_ipv6' /etc/sysctl.conf

    and this command
    Code (Text):
    sysctl net.ipv6.conf.all.disable_ipv6

    and
    Code (Text):
    sysctl net.ipv6.conf.default.disable_ipv6
     
  3. wmtech

    wmtech Active Member

    167
    44
    28
    Jul 22, 2017
    Ratings:
    +125
    Local Time:
    12:53 AM
    Yes.

    All of those sysctl settings are active at the server and included in /etc/sysctl.conf.
     
  4. eva2000

    eva2000 Administrator Staff Member

    53,209
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    8:53 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    value of 1 or 0 ?
     
  5. wmtech

    wmtech Active Member

    167
    44
    28
    Jul 22, 2017
    Ratings:
    +125
    Local Time:
    12:53 AM
    All "1".
     
  6. eva2000

    eva2000 Administrator Staff Member

    53,209
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    8:53 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    strange then IPv6 should work. Only thing I can think of is git.php.net themselves are blocking your server's requests?
    Code (Text):
    Failed to connect to 2a02:cb41::5: Network is unreachable
    


    tried it and maybe git.php.net security too tight?
    Code (Text):
    ping -4 -c4 git.php.net
    PING php-git2.php.net (208.43.231.11) 56(84) bytes of data.
    --- php-git2.php.net ping statistics ---
    4 packets transmitted, 0 received, 100% packet loss, time 3051ms
    
    ping -6 -c4 git.php.net
    PING git.php.net(php-git2.php.net (2a02:cb41::5)) 56 data bytes
    --- git.php.net ping statistics ---
    4 packets transmitted, 0 received, 100% packet loss, time 3072ms
    


    hmmm

    but only routine that uses git.php.net is if you try to install PHP 8.4.x alpha/pre-beta/master branch see search for 124.00stable branch via sourcegraph

    from
    Code (Text):
    Cloning into 'php-'
    

    it suggests you didn't enter proper php version at the upgrade prompt
     
  7. wmtech

    wmtech Active Member

    167
    44
    28
    Jul 22, 2017
    Ratings:
    +125
    Local Time:
    12:53 AM
    Hm. I just tried to install PHP 8.1.27 at that server and it worked well. This error just comes up, if I try to install PHP 8.2.16.

    PHP 8.2.16 is a proper PHP version however. It looks like the script thinks that this version does not exist and calls git.php.net?

    I might try 8.2.15 and see if that fails too...

    But the script should not call any IPv6 address if IPv6 is disabled at that server. This will never work as expected. ;-)
     
  8. eva2000

    eva2000 Administrator Staff Member

    53,209
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    8:53 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    looks like there's 1 bug DISABLE_IPVSIX='y' should disable IPv6 on system and another bug for git.php.net not resolving for experimental latest PHP versions i.e. at the time 124.00stable max supported PHP 8.1, so PHP 8.2 was experimental and called from git.php.net. On 130.00beta01 max supported PHP 8.3, so PHP 8.4 is experimental and doesn't actually call from git.php.net (which has issues).

    For PHP Centmin Mod 124.00stable supported up to PHP 8.1 Centmin Mod LEMP Stack Install Nginx on CentOS
    details on switching to 130.00beta01 at https://community.centminmod.com/threads/centmin-mod-124-00stable-130-00beta01-releases.22673/
     
    Last edited: Mar 14, 2024
  9. eva2000

    eva2000 Administrator Staff Member

    53,209
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    8:53 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+