Want more timely Centmin Mod News Updates?
Become a Member

Upgrade Problems when I upgraded from 123.09beta01 to 131.00stable

Discussion in 'Install & Upgrades or Pre-Install Questions' started by jellday, Oct 17, 2024.

  1. jellday

    jellday Member

    53
    4
    8
    May 31, 2014
    Ratings:
    +6
    Local Time:
    12:49 PM
    1.4.6
    5.5
    Please fill in any relevant information that applies to you:
    • CentOS Version:
      Code (Text):
      CentOS release 6.10 (Final)


    • Centmin Mod Version Installed:
      Code (Text):
      131.00stable
    • Nginx Version Installed:
      Code (Text):
      1.16.0
    • PHP Version Installed:
      Code (Text):
      PHP 5.6.40 (cli) (built: Jul 23 2019 05:41:09)
      Copyright (c) 1997-2016 The PHP Group
      Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
          with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
      
    • MariaDB MySQL Version Installed:
      Code (Text):
      5.5.64-MariaDB
    • When was last time updated Centmin Mod code base ? : Oct 16th,2024
    • Persistent Config: no
      Code (Text):
      MARCH_TARGETNATIVE='n'
      

    The problem is when I run centmin.sh, I got several errors:
    Code (Text):
    awk: cmd. line:1: fatal: cannot open file `/etc/os-release' for reading (No such file or directory)
    cat: /etc/os-release: No such file or directory
    /usr/local/src/centminmod/inc/datamanager.inc: line 5: jq: command not found
    
    awk: cmd. line:1: fatal: cannot open file `/etc/os-release' for reading (No such file or directory)
    awk: cmd. line:1: fatal: cannot open file `/etc/os-release' for reading (No such file or directory)
    /usr/local/src/centminmod/inc/cpcheck.inc: line 1361: jq: command not found
    /usr/local/src/centminmod/inc/cpcheck.inc: line 1362: jq: command not found
    


    I checked and there is no "os-release" file but only "centos-release" file. And what is "jq" file, where can I find it?

    Anyway, the problem is not big, but I still need help. Many thanks.


    The following is the process when I upgraded from 123.09beta01 to 131.00stable.
    Code (Text):
    # ./centmin.sh
    
    pure-ftpd: create 2048bit /etc/pki/pure-ftpd/pure-ftpd.pem file for
    pure-ftpd: /etc/pki/pure-ftpd/pure-ftpd.pem created
    /etc/init.d /usr/local/src/centminmod
    /usr/local/src/centminmod
    --------------------------------------------------------
         Centmin Mod Menu 123.09beta01 centminmod.com     
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  XCache Re-install
    7).  APC Cache Re-install
    8).  XCache Install
    9).  APC Cache Install
    10). Memcached Server Re-install
    11). MariaDB MySQL Upgrade & Management
    12). Zend OpCache Install/Re-install
    13). Install/Reinstall Redis PHP Extension
    14). SELinux disable
    15). Install/Reinstall ImagicK PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: zstd,pigz,pbzip2,lbzip2
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Install/Re-Install
    21). Data Transfer (TBA)
    22). Add Wordpress Nginx vhost + Cache Plugin
    23). Update Centmin Mod Code Base
    24). Exit
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 23
    --------------------------------------------------------
    
    --------------------------------------------------------
            Centmin Mod Updater Sub-Menu             
    --------------------------------------------------------
    1). Setup Centmin Mod Github Environment
    2). Update Centmin Mod Current Branch
    3). Update Centmin Mod Newer Branch
    4). Exit
    --------------------------------------------------------
    Enter option [ 1 - 4 ] 3
    --------------------------------------------------------
    
    fetching latest branch list...
    
    Update Centmin Mod to newer branch via git
    You need to input the name of the branch
    List of current remote branches by descending date order
    
    /centminmod/centminmod/branches
    /centminmod/centminmod/branches/active
    /centminmod/centminmod/branches/stale
    /centminmod/centminmod/branches/all
    140.00beta01
    /centminmod
    131.00stable
    /centminmod
    
    Enter the branch name you want to switch to i.e. 123.09beta01 : 131.00stable
    
    
    download github.com centmin mod 131.00stable branch repo
    time git clone -b 131.00stable --depth=1 https://github.com/centminmod/centminmod.git centminmod
    Initialized empty Git repository in /usr/local/src/centminmod/.git/
    
    real    0m11.412s
    user    0m7.967s
    sys    0m1.679s
    
    list all available local branches
     git branch -a
    * 131.00stable
      remotes/origin/123.06stable
      remotes/origin/123.07stable
      remotes/origin/123.08stable
      remotes/origin/123.09beta01
      remotes/origin/123.09beta01-cf-http3
      remotes/origin/123.09beta01-el8
      remotes/origin/123.09beta01-el8.3
      remotes/origin/123.09beta01-el8.5
      remotes/origin/123.09beta01-mariadb105
      remotes/origin/123.09beta01-nginx-http3-preview1
      remotes/origin/123.09beta01-wpsendmail
      remotes/origin/124.00stable
      remotes/origin/130.00beta01
      remotes/origin/130.00beta01-appstream-mariadb
      remotes/origin/130.00beta01-mariadb10.11
      remotes/origin/131.00stable
      remotes/origin/140.00beta01
      remotes/origin/HEAD -> origin/master
      remotes/origin/master
    
    list git log last commit
     git log -a
    commit efd5840f2761fdb09744c0926ce7ba83c7f2d4a4
    Author: George Liu (eva2000) <eva2000@centminmod.com>
    Date:   Fri Oct 4 10:59:52 2024 +1000
    
        update nginx 1.27.2 in 131.00stable
       
        - update nginx 1.27.2 default https://community.centminmod.com/threads/nginx-announce-nginx-1-27-2.26489/
    
    to update centmin mod 131.00stable branch repo via git
     cd /usr/local/src/centminmod
     git stash
     git pull
     chmod +x centmin.sh
    
    ####################### IMPORTANT #######################
     To complete update
    ####################### IMPORTANT #######################
     run:
    
      cd /usr/local/src/centminmod
    
     before invoking centmin.sh again
    ####################### IMPORTANT #######################
    
    You have new mail in /var/spool/mail/root
    [02:34][root@vultr.guest centminmod]# cd /usr/local/src/centminmod
    [02:35][root@vultr.guest centminmod]#  git stash
    No local changes to save
    [02:35][root@vultr.guest centminmod]#  git pull
    Already up-to-date.
    [02:35][root@vultr.guest centminmod]#  chmod +x centmin.sh
    [02:35][root@vultr.guest centminmod]# ./centmin.sh
    awk: cmd. line:1: fatal: cannot open file `/etc/os-release' for reading (No such file or directory)
    cat: /etc/os-release: No such file or directory
    /usr/local/src/centminmod/inc/datamanager.inc: line 5: jq: command not found
    
    awk: cmd. line:1: fatal: cannot open file `/etc/os-release' for reading (No such file or directory)
    awk: cmd. line:1: fatal: cannot open file `/etc/os-release' for reading (No such file or directory)
    /usr/local/src/centminmod/inc/cpcheck.inc: line 1361: jq: command not found
    /usr/local/src/centminmod/inc/cpcheck.inc: line 1362: jq: command not found
    pure-ftpd: create 2048bit /etc/pki/pure-ftpd/pure-ftpd.pem file for
    pure-ftpd: /etc/pki/pure-ftpd/pure-ftpd.pem created
    Creating backup...
    `/etc/csf/csf.conf' -> `/var/lib/csf/backup/1729132537_before_cc_src_2_switch'
    Creating backup...
    `/etc/csf/csf.conf' -> `/var/lib/csf/backup/1729132538_after_cc_src_2_switch'
    --------------------------------------------------------
         Centmin Mod Menu 131.00stable centminmod.com     
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  MySQL User Database Management
    7).  Option Being Revised (TBA)
    8).  Option Being Revised (TBA)
    9).  Option Being Revised (TBA)
    10). Memcached Server Re-install
    11). MariaDB MySQL Upgrade & Management
    12). Zend OpCache Install/Re-install
    13). Install/Reinstall Redis PHP Extension
    14). SELinux disable
    15). Install/Reinstall ImagicK PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: zstd,pigz,pbzip2,lbzip2
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Install/Re-Install
    21). Data Transfer
    22). Add Wordpress Nginx vhost + Cache Plugin
    23). Update Centmin Mod Code Base
    24). Exit
    
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    2:49 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    CentOS 6.x has long been end of life and not longer supports by CentOS so Centmin Mod wouldn't really support new installs - though existing installs may work somewhat.

    That I came across for my test CentOS 6.x systems I still have. For that you need to switch to Centmin Mod 140.00beta01 https://community.centminmod.com/th...ase-with-almalinux-rocky-linux-support.25572/ which is only branch with that specific fix

    So on existing server run cmupdate command below to switch to 140.00beta01
    Code (Text):
    cmupdate update-beta


    But I highly suggest you move to a new server with AlmaLinux 8 or 9 instead of remaining on CentOS 6.x as it's end of life.
     
  3. jellday

    jellday Member

    53
    4
    8
    May 31, 2014
    Ratings:
    +6
    Local Time:
    12:49 PM
    1.4.6
    5.5
    Many thanks for your help.
    Switching OS is time-consuming and lots of work, and I am not sure if current web-apps' compatible with AlmaLinux, which can be tricky.