Get the most out of your Centmin Mod LEMP stack
Become a Member

Enable ipv6 error

Discussion in 'Bug Reports' started by pamamolf, Dec 5, 2019 at 5:17 AM.

  1. pamamolf

    pamamolf Premium Member Premium Member

    3,551
    343
    83
    May 31, 2014
    Ratings:
    +658
    Local Time:
    7:11 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01
    Hello

    On a vps i install Centminmod using:
    Code:
    DISABLE_IPVSIX='y'
    A day later i i change it to:
    Code:
    DISABLE_IPVSIX='n'
    and when i start Centminmod i got:
    Code:
    postconf: fatal: parameter inet_interfaces: no local interface found for ::1
    and i am actually a bit confused on how to re enable ipv6...

    /etc/hosts
    Code:
    ::1 server.mydomain.com server
    ::1 localhost.localdomain localhost
    ::1 localhost6.localdomain6 localhost6
    
    Thanks !
     
    Last edited: Dec 5, 2019 at 5:48 AM
  2. eva2000

    eva2000 Administrator Staff Member

    42,268
    9,550
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,708
    Local Time:
    3:11 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    try re-running centmin.sh after the change, does it fix it as centmin.sh will detect the change and should set postfix appropriately
     
  3. pamamolf

    pamamolf Premium Member Premium Member

    3,551
    343
    83
    May 31, 2014
    Ratings:
    +658
    Local Time:
    7:11 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    Yes i re run it as "n" and "y" but i am always getting the same error...

    At postfix i have:
    Code:
    inet_interfaces = localhost
    inet_protocols = all
    
    but i didn't adjust anything there....
     
  4. pamamolf

    pamamolf Premium Member Premium Member

    3,551
    343
    83
    May 31, 2014
    Ratings:
    +658
    Local Time:
    7:11 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    Also maybe there is a better method to do the ipv6 disable function ?

    I was tested GlusterFS and it needs rpcbind to work.

    If ipv6 is disabled by the sysctl.conf file after reboot the rpcbind is not running with a failed state ....

    Checking on the net i found at Red hat:
    1402961 – rpcbind.socket systemd unit fails to start when IPv6 is disabled.

    Code:
    The problem is that if you disable ipv6 in sysctl.conf, it is not disabled from the beginning of the boot, but actually quite late in the boot process. Meanwhile systemd found out that ipv6 is enabled and scheduled a start of a socket, that would listen on ipv6.
    
    There are two solution to this problem. Either disable the ipv6 from kernel command line, or after you edit the sysctl.conf call dracut -f, so your change also gets into the initramfs.

    It will be great if it is possible to adjust the ipv6 enable/disable function to avoid that issue.

    Thank you !
     
    Last edited: Dec 5, 2019 at 1:32 PM
  5. eva2000

    eva2000 Administrator Staff Member

    42,268
    9,550
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,708
    Local Time:
    3:11 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    rpcbind should be reactivated when centmin.sh runs with DISABLE_IPVSIX='n' from my code in 123.09beta01

    question is after setting DISABLE_IPVSIX='n', did you run centmin.sh once for centmin mod to reverse the changes made from DISABLE_IPVSIX='y' ?
     
  6. pamamolf

    pamamolf Premium Member Premium Member

    3,551
    343
    83
    May 31, 2014
    Ratings:
    +658
    Local Time:
    7:11 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    Yes it should...

    Yes.

    The only way to fix it is by running:

    but i was looking for a proper fix...

    I can send you login info if you want to check it...
    It is just a test vps server....

    Thank you
     
  7. eva2000

    eva2000 Administrator Staff Member

    42,268
    9,550
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,708
    Local Time:
    3:11 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    I believe I know why as centmin.sh only starts rpcbind after apply the update for DISABLE_IPVSIX='n' if it detected that rpcbind was running before. But as you don't have rpcbind running before hand, it didn't start. That is as expected and not a bug unless you had rpbind running before DISABLE_IPVSIX='n' and before server reboot and it didn't start after server reboot.