Learn about Centmin Mod LEMP Stack today
Register Now

error during install

Discussion in 'Install & Upgrades or Pre-Install Questions' started by ahmed, Sep 4, 2025.

  1. ahmed

    ahmed Active Member

    404
    49
    28
    Feb 21, 2017
    Ratings:
    +63
    Local Time:
    1:57 AM
    Hello please I need help with that:
    • CentOS Version: AlmaLinux

    Code:
    /svr-setup /svr-setup/nginx-1.29.1
    cp: cannot stat '/svr-setup/checksec.sh-2.6.0/checksec': No such file or directory
    
    /svr-setup/nginx-1.29.1
    WARNING: 'sysctl' not found! It's required for most checks.
    
    WARNING: Not all necessary commands found. Some tests might not work!
    
    {
      "/usr/local/nginx-dep/lib/libpcre.so": {
        "relro": "full",
        "canary": "yes",
        "nx": "yes",
        "pie": "dso",
        "clangcfi": "no",
        "safestack": "no",
        "rpath": "no",
        "runpath": "no",
        "symbols": "yes",
        "fortify_source": "yes",
        "fortified": "1",
        "fortify-able": "4"
      }
    }
    WARNING: 'sysctl' not found! It's required for most checks.
    
    WARNING: Not all necessary commands found. Some tests might not work!
    


     
  2. ahmed

    ahmed Active Member

    404
    49
    28
    Feb 21, 2017
    Ratings:
    +63
    Local Time:
    1:57 AM
    Code:
    MariaDB                                         0.0  B/s |   0  B     01:02   
    Errors during downloading metadata for repository 'mariadb':
      - Curl error (28): Timeout was reached for https://mirror.mobinhost.com/mariadb/mariadb-10.6.23/yum/rhel/9/x86_64/repodata/repomd.xml [Failed to connect to mirror.mobinhost.com port 443: Connection timed out]
    Error: Failed to download metadata for repo 'mariadb': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
    oni_err=1
     
  3. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    9:57 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Who's your web host? Could be network connectivity issues with your server and YUM repo and other Centmin Mod dependency downloads?

    If you can provide the following info and initial install log https://community.centminmod.com/threads/how-to-troubleshoot-centmin-mod-initial-install-issues.102/ that would help

    Please fill in any relevant information that applies to you:
    • CentOS Version: i.e. CentOS 7 64bit / AlmaLinux / Rocky Linux 8/9 ?
    • Centmin Mod Version Installed: i.e. 124.00stable or 130.00beta01 or 131.00stable or 140.00beta01. Run command:
      Code (Text):
      cminfo versions
    • Nginx Version Installed: i.e. 1.25.4, 1.24.0, 1.26.2, 1.27.1 ? Run command and post output in QUOTE BBCODE tags:
      Code (Text):
      nginx -V
    • PHP Version Installed: i.e. 7.3.33, 7.4.33, 8.0.30, 8.1.29, 8.2.23, 8.3.11. Run command and post output in CODE/CODEB BBCODE tags:
      Code (Text):
      php -v
    • MariaDB MySQL Version Installed: i.e. 10.3.xx or 10.4.xx or 10.6.xx. Run command and post output in CODE/CODEB BBCODE tags:
      Code (Text):
      mysqladmin ver
    • When was last time updated Centmin Mod code base ? : i.e. run centmin.sh menu option 23 submenu option 2 or cmupdate command
    • Persistent Config: Do you have any persistent config file options set in /etc/centminmod/custom_config.inc ? You can check via this command:
      Code (Text):
      cat /etc/centminmod/custom_config.inc
      

      Post output in CODE or CODEB bbcode tags.
     
  4. ahmed

    ahmed Active Member

    404
    49
    28
    Feb 21, 2017
    Ratings:
    +63
    Local Time:
    1:57 AM
    webhost is google cloud
    • CentOS Version: AlmaLinux
    • Centmin Mod Version Installed: i.e. 124.00stable
     
  5. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    9:57 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Centmin Mod installs CSF Firewall and auto configures all the ports whitelisting required for Centmin Mod installed software to function. You can see the outline of ports at CSF - Centmin Mod LEMP stack CSF Firewall default port listing.

    Google Cloud Compute like Amazon EC2 have their own Firewall in front of their virtual machine servers which is locked down tight by default see Firewall Rules Overview | VPC | Google Cloud. You need to configure Google Cloud's Firewall to open up and whitelist ports matching CSF Firewall's port list at CSF - Centmin Mod LEMP stack CSF Firewall default port listing

    For Google Cloud Firewall default is an internal private IP assigned only. So need to assign an external public IP too
    For Amazon EC2 Firewall
    With Google Cloud Compute watch your bandwidth costs as bandwidth is expensive at US$120-230/TB. Meaning if you have a traffic spike to 10TB, bandwidth costs alone will be 10x-120-230 = US$1,200-2,300 !

    Similar with Amazon EC2 bandwidth costs at US$90-130/TB.
     
  6. ahmed

    ahmed Active Member

    404
    49
    28
    Feb 21, 2017
    Ratings:
    +63
    Local Time:
    1:57 AM
    firewall rules applied however still errors

    Code:
    conn.c: In function ‘conn_info’:
    conn.c:350:47: warning: ‘%s’ directive writing up to 1023 bytes into a region of size between 1006 and 2039 [-Wformat-overflow=]
         sprintf(conn->http->headers, "http://%s:%i%s",
                                                   ^~
          conn->host, conn->port, s);
                                  ~                 
    In file included from /usr/include/stdio.h:873,

    Code:
    Error: Failed to download metadata for repo 'mariadb': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
    Code:
    exclude line exists... adding exclude line for mysql*
    *************************************************
    * Starting MariaDB Secure Installation
    *************************************************
    /usr/local/src/centminmod/inc/mariadb_install106.inc: line 1486: mysql_upgrade: command not found
    systemctl restart mariadb.service
    Failed to restart mariadb.service: Unit mariadb.service not found.
    Failed to stop mariadb.service: Unit mariadb.service not loaded.
    Failed to start mariadb.service: Unit mariadb.service not found.
    /usr/local/src/centminmod/tools/setio.sh: line 21: /usr/bin/mysql: No such file or directory
    /usr/local/src/centminmod/tools/setio.sh: line 22: mysqladmin: command not found
    /usr/local/src/centminmod/tools/setio.sh: line 23: mysqladmin: command not found
    
    Code:
    =================================================
    
    exclude line exists... adding exclude line for mysql*
    *************************************************
    * Starting MariaDB Secure Installation
    *************************************************
    /usr/local/src/centminmod/inc/mariadb_install106.inc: line 1486: mysql_upgrade: command not found
    systemctl restart mariadb.service
    Failed to restart mariadb.service: Unit mariadb.service not found.
    Failed to stop mariadb.service: Unit mariadb.service not loaded.
    Failed to start mariadb.service: Unit mariadb.service not found.
    /usr/local/src/centminmod/tools/setio.sh: line 21: /usr/bin/mysql: No such file or directory
    /usr/local/src/centminmod/tools/setio.sh: line 22: mysqladmin: command not found
    /usr/local/src/centminmod/tools/setio.sh: line 23: mysqladmin: command not found
    Error: Failed to download metadata for repo 'mariadb': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
    Failed to start mariadb.service: Unit mariadb.service not found.
    /usr/local/src/centminmod/tools/setio.sh: line 706: /usr/bin/mysql: No such file or directory
    
    +------------------------+-------+
    /etc/my.cnf adjustment
    +------------------------+-------+
    existing value:
    /usr/local/src/centminmod/tools/setio.sh: line 677: /usr/bin/mysql: No such file or directory
    new value:
    /usr/local/src/centminmod/tools/setio.sh: line 683: /usr/bin/mysql: No such file or directory
    /usr/local/src/centminmod/tools/setio.sh: line 696: /usr/bin/mysql: No such file or directory
    /usr/local/src/centminmod/tools/setio.sh: line 697: /usr/bin/mysql: No such file or directory
    
    +------------------------+-------+
    innodb io threads adjustment
    +------------------------+-------+
    existing value:
    +------------------------+-------+
    innodb_read_io_threads = 2
    innodb_write_io_threads = 2
    +------------------------+-------+
    new value:
    +------------------------+-------+
    innodb_read_io_threads = 2
    innodb_write_io_threads = 2
    +------------------------+-------+
    
    Restart MySQL server for io thread changes
    
    /usr/local/src/centminmod/tools/setio.sh: line 714: /usr/bin/mysql: No such file or directory
    *************************************************
    * MariaDB installed
    *************************************************
    After MariaDB installation
    Thu Sep  4 13:30:47 UTC 2025
    Failed to stop mariadb.service: Unit mariadb.service not loaded.
     
  7. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    9:57 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Noticed that mirror is linked to Iranian IP address. It could be that Google Cloud has blocked Iran based IP/connectivity due to sanctions or other issues. That would break downloads and YUM downloads from Iranian based mirrors?

    What geographic location is Google Cloud server? Post output of this command minus/mask IP address for privacy
    Code (Text):
    curl -s https://ipinfo.io
    
     
  8. ahmed

    ahmed Active Member

    404
    49
    28
    Feb 21, 2017
    Ratings:
    +63
    Local Time:
    1:57 AM
    Looks like it is getting better maybe as it was a new ip for the server

    also I followed this
    Using IAP for TCP forwarding  |  Identity-Aware Proxy  |  Google Cloud

    these are the errors till now:

    Code:
    Problem: module composer:2:20250904145923:00000000.x86_64 from remi-modular requires module(php), but none of the providers can be installed
      - conflicting requests
      - module php:7.2:8040020210530192442:02bae935.x86_64 from appstream is disabled
      - module php:7.3:8040020210530192443:02bae935.x86_64 from appstream is disabled
      - module php:7.4:8100020231211162544:3924b0c1.x86_64 from appstream is disabled
      - module php:8.0:8100020231211162605:3924b0c1.x86_64 from appstream is disabled
      - module php:8.2:8100020231129174030:3924b0c1.x86_64 from appstream is disabled
      - module php:7.4:8100020241211195618:3924b0c1.x86_64 from appstream is disabled
      - module php:8.2:8100020241211195620:3924b0c1.x86_64 from appstream is disabled
      - module php:remi-7.2:20250904145922:00000000.x86_64 from remi-modular is disabled
      - module php:remi-7.3:20250904145923:00000000.x86_64 from remi-modular is disabled
      - module php:remi-7.4:20250904145923:00000000.x86_64 from remi-modular is disabled
      - module php:remi-8.0:20250904145923:00000000.x86_64 from remi-modular is disabled
      - module php:remi-8.1:20250904145923:00000000.x86_64 from remi-modular is disabled
      - module php:remi-8.2:20250904145923:00000000.x86_64 from remi-modular is disabled
      - module php:remi-8.3:20250904145923:00000000.x86_64 from remi-modular is disabled
      - module php:remi-8.4:20250904145923:0000000
     
  9. ahmed

    ahmed Active Member

    404
    49
    28
    Feb 21, 2017
    Ratings:
    +63
    Local Time:
    1:57 AM
    Code:
    * Installing MariaDB via CentOS Yum Repo
    *************************************************
    MariaDB 10.6 Repo setup...
    
    setup /var/log/mysqld.log
    chown: invalid user: ‘mysql:mysql’
     
  10. ahmed

    ahmed Active Member

    404
    49
    28
    Feb 21, 2017
    Ratings:
    +63
    Local Time:
    1:57 AM
    Code:
    systemctl restart mariadb.service
    Failed to restart mariadb.service: Unit mariadb.service not found.
    
    NotifyAccess=none
    LimitNOFILE=1048576
    LimitNOFILESoft=1048576
    OOMScoreAdjust=0
    
                 __  __               _         ____   ____    _   ___ 
                |  \/  |  __ _  _ __ (_)  __ _ |  _ \ | __ )  / | / _ \
                | |\/| | / _` || '__|| | / _` || | | ||  _ \  | || | | |
                | |  | || (_| || |   | || (_| || |_| || |_) | | || |_| |
                |_|  |_| \__,_||_|   |_| \__,_||____/ |____/  |_| \___/
                                                                        
                         ____   _                _             
                        |  _ \ | | _   _   __ _ (_) _ __   ___
                        | |_) || || | | | / _` || || '_ \ / __|
                        |  __/ | || |_| || (_| || || | | |\__ \
                        |_|    |_| \__,_| \__, ||_||_| |_||___/
                                          |___/               
    ------------------------------------------------
    Installing MariaDB 10 plugins
    ------------------------------------------------
    mysql -e "INSTALL SONAME 'metadata_lock_info';"
    /usr/local/src/centminmod/inc/mariadb_install106.inc: line 1196: mysql: command not found
    mysql -e "INSTALL SONAME 'query_cache_info';"
    /usr/local/src/centminmod/inc/mariadb_install106.inc: line 1198: mysql: command not found
    mysql -e "INSTALL SONAME 'query_response_time';"
    /usr/local/src/centminmod/inc/mariadb_install106.inc: line 1200: mysql: command not found
    mysql -t -e "SELECT * FROM mysql.plugin;"
    /usr/local/src/centminmod/inc/mariadb_install106.inc: line 1207: mysql: command not found
    mysql -t -e "SHOW PLUGINS;"
    /usr/local/src/centminmod/inc/mariadb_install106.inc: line 1209: mysql: command not found
    mysql -t -e "SHOW ENGINES;"
    /usr/local/src/centminmod/inc/mariadb_install106.inc: line 1211: mysql: command not found
    
    Error: Failed to download metadata for repo 'mariadb': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
    Waiting for process with pid 124951 to finish.
     
  11. ahmed

    ahmed Active Member

    404
    49
    28
    Feb 21, 2017
    Ratings:
    +63
    Local Time:
    1:57 AM
  12. ahmed

    ahmed Active Member

    404
    49
    28
    Feb 21, 2017
    Ratings:
    +63
    Local Time:
    1:57 AM
    Code:
    /usr/local/src/centminmod/inc/redis.inc: line 222: /usr/local/bin/phpize: No such file or directory
    Error: Failed to download metadata for repo 'mariadb': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
    this keeps repeating
     
  13. ahmed

    ahmed Active Member

    404
    49
    28
    Feb 21, 2017
    Ratings:
    +63
    Local Time:
    1:57 AM
    new server ...(fifth trial)

    Code:
           ____              _               _          __  __             _
           / ___| ___  _ __  | |_  _ __ ___  (_) _ __   |  \/  |  ___    __| |
          | |    / _ \| '_ \ | __|| '_ ` _ \ | || '_ \  | |\/| | / _ \  / _` |
          | |___|  __/| | | || |_ | | | | | || || | | | | |  | || (_) || (_| |
           \____|\___||_| |_| \__||_| |_| |_||_||_| |_| |_|  |_| \___/  \__,_|
                                                                              
                            ___              _          _  _
                           |_ _| _ __   ___ | |_  __ _ | || |
                            | | | '_ \ / __|| __|/ _` || || |
                            | | | | | |\__ \| |_| (_| || || |
                           |___||_| |_||___/ \__|\__,_||_||_|
                                                            
    git clone Centmin Mod repo...
    Cloning into 'centminmod'...
    
    real    0m3.059s
    user    0m0.864s
    sys    0m0.347s
    /usr/local/src/centminmod
                                      _   _                          _  _       
        _ __ ___   _   _  ___   __ _ | | | |_  _ __ ___   _ __    __| |(_) _ __
       | '_ ` _ \ | | | |/ __| / _` || | | __|| '_ ` _ \ | '_ \  / _` || || '__|
       | | | | | || |_| |\__ \| (_| || | | |_ | | | | | || |_) || (_| || || |   
       |_| |_| |_| \__, ||___/ \__, ||_|  \__||_| |_| |_|| .__/  \__,_||_||_|   
                   |___/          |_|                    |_|                   
                                         _                 
                              ___   ___ | |_  _   _  _ __ 
                             / __| / _ \| __|| | | || '_ \
                             \__ \|  __/| |_ | |_| || |_) |
                             |___/ \___| \__| \__,_|| .__/
                                                    |_|   
    parse error: Invalid numeric literal at line 1, column 10
     
  14. ahmed

    ahmed Active Member

    404
    49
    28
    Feb 21, 2017
    Ratings:
    +63
    Local Time:
    1:57 AM
    the 10th install on
    almalinux 9

    =====

    Code:
    WARNING: 'sysctl' not found! It's required for most checks.
    
    WARNING: Not all necessary commands found. Some tests might not work!
    Code:
    Error: Failed to download metadata for repo 'mariadb': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
     
  15. ahmed

    ahmed Active Member

    404
    49
    28
    Feb 21, 2017
    Ratings:
    +63
    Local Time:
    1:57 AM
    "ip": "11111",
    "hostname": "11111.bc.googleusercontent.com",
    "city": "Doha",
    "region": "Baladīyat ad Dawḩah",
    "country": "QA",
    "loc": "25.2855,51.5310",
    "org": "AS396982 Google LLC",
    "timezone": "Asia/Qatar",
    "readme": "IP Address data API"
     
  16. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    9:57 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Confused why Google Cloud VM instances are giving you all these different countries - which geographic location are you picking when you create the Google Cloud VM instance?

    To rule out geographic location and YUM mirror location issues, try creating Google Cloud VM instance that is USA based. That would help us rule out geography as an issue for some of YUM repo mirrors like MariaDB
     
  17. ahmed

    ahmed Active Member

    404
    49
    28
    Feb 21, 2017
    Ratings:
    +63
    Local Time:
    1:57 AM
    looks like there is a problem with the yum on that specific region I moved the server to europe and it worked and I need to put it back to me server so what will be the problem in the future ? can I change the yum of that specific server instance so that I can work around that ? was that error only in mariadb?
     
  18. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    9:57 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Is this issue only for MariaDB ? what does MariaDB YUM repo file contain
    Code (Text):
    cat /etc/yum.repos.d/mariadb.repo
    

    example
    Code (Text):
    cat /etc/yum.repos.d/mariadb.repo
    [mariadb]
    name = MariaDB
    baseurl = https://mirror.rackspace.com/mariadb/yum/10.6/rhel9-amd64
    module_hotfixes=1
    gpgkey=https://mirror.rackspace.com/mariadb/yum/RPM-GPG-KEY-MariaDB
    gpgcheck=1
    exclude=MariaDB-Galera-server
    

    You could try changing to the contents of above and then run
    Code (Text):
    yum clean all
    yum list available --disablerepo=* --enablerepo=mariadb -q
    


    If you can tell me the geographic region you have issues with on Google Cloud, I can possibly add to Centmin Mod an overriding MariaDB YUM repo for that region
     
  19. ahmed

    ahmed Active Member

    404
    49
    28
    Feb 21, 2017
    Ratings:
    +63
    Local Time:
    1:57 AM
    it is in doha-qatar server
     
  20. ahmed

    ahmed Active Member

    404
    49
    28
    Feb 21, 2017
    Ratings:
    +63
    Local Time:
    1:57 AM
    [15:37][root@centmin ~]# cat /etc/yum.repos.d/mariadb.repo
    [mariadb]
    name = MariaDB
    baseurl = Index of /yum/10.6/rhel9-amd64/
    module_hotfixes=1
    gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
    gpgcheck=1
    exclude=MariaDB-Galera-server

    this is the server created in europe and transfreed to ME-qatar

    the earlier post shows the error during install on the doha-qatar servers