Learn about Centmin Mod LEMP Stack today
Become a Member

centmin.sh /inc/cpcheck.inc disabling ipset

Discussion in 'Bug Reports' started by jcat, Jan 9, 2024.

  1. jcat

    jcat Member

    153
    22
    18
    Jun 21, 2015
    New Jersey
    Ratings:
    +64
    Local Time:
    7:16 PM
    Can you apply a similar IPSET check you have here and check for the module?

    centminmod/inc/csftweaks.inc at master · centminmod/centminmod

    Example


    Code:
    # KERNEL_NUMERICVER=$(uname -r | awk -F. '{ printf("%d%03d%03d%03d\n", $1,$2,$3,$4); }')
    # [[ -f /proc/user_beancounters && "$KERNEL_NUMERICVER" -ge '3000000000' && "$(lsmod | grep ip_set)" ]] && echo "good in the hood"
    good in the hood
    
    to fix the check here:

    centminmod/inc/cpcheck.inc at master · centminmod/centminmod

    we need ipset! :p

    also if it could be applied to earlier branches 123.08stable/123.09beta01
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,527
    12,211
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,780
    Local Time:
    10:16 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    A CentOS 7, EL8 or EL9 issue? What is your server install environment? dedicated, KVM, OpenVZ ? Kernel versions

    Output for
    Code (Text):
    uname -r
     
  3. jcat

    jcat Member

    153
    22
    18
    Jun 21, 2015
    New Jersey
    Ratings:
    +64
    Local Time:
    7:16 PM
    Centos7
    OpenVZ7
    Code:
    # uname -r
    3.10.0
    
    ipset is supported and working on OpenVZ7
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,527
    12,211
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,780
    Local Time:
    10:16 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  5. jcat

    jcat Member

    153
    22
    18
    Jun 21, 2015
    New Jersey
    Ratings:
    +64
    Local Time:
    7:16 PM
    Copy, thank you!
     
  6. jcat

    jcat Member

    153
    22
    18
    Jun 21, 2015
    New Jersey
    Ratings:
    +64
    Local Time:
    7:16 PM
    Will need to request a further change as lxc actually gets outputted from virt-what

    Code:
    [15:06][root@wpo123456.bigscoots-wpo.com centminmod]# virt-what
    openvz
    lxc
    
    so still failing :(

    Code:
    [14:59][root@wpo123456.bigscoots-wpo.com centminmod]# [[ "$(virt-what | grep -o lxc)" != 'lxc' ]]
    [15:05][root@wpo123456.bigscoots-wpo.com centminmod]# echo $?
    1
    
     
  7. eva2000

    eva2000 Administrator Staff Member

    54,527
    12,211
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,780
    Local Time:
    10:16 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    What about output from command below on your OpenVZ7 system
    Code (Text):
    systemd-detect-virt
     
  8. jcat

    jcat Member

    153
    22
    18
    Jun 21, 2015
    New Jersey
    Ratings:
    +64
    Local Time:
    7:16 PM
    Code:
    # systemd-detect-virt
    openvz
     
  9. eva2000

    eva2000 Administrator Staff Member

    54,527
    12,211
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,780
    Local Time:
    10:16 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Looks like that command reports correctly. Anyway, updated 124.00stable and 130.00beta01 with fixed up lxc detection so openvz will work properly :)