Learn about Centmin Mod LEMP Stack today
Register Now

Upgrade Error when typing cmupdate

Discussion in 'Install & Upgrades or Pre-Install Questions' started by huaanhhuy, Jul 6, 2021.

  1. huaanhhuy

    huaanhhuy New Member

    25
    0
    1
    Jun 10, 2020
    Ratings:
    +1
    Local Time:
    1:37 PM
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.21.0
    • PHP Version Installed: 7.4.21
    • MariaDB MySQL Version Installed: 10.4.20
    • When was last time updated Centmin Mod code base ? : today


      Hi @eva2000 i have this error when typing cmupdate, please help me fix, thanks

      Centmin Mod code updates available for /usr/local/src/centminmod
      to update, run cmupdate command in SSH & re-run centmin.sh once & exit
      ===============================================================================
      [01:03][root@cp ~]# cmupdate
      No local changes to save
      error: object file .git/objects/9e/a0b69be40c464a425afbf1f2a757e68fa5befc is empty
      error: unable to find 9ea0b69be40c464a425afbf1f2a757e68fa5befc
      error: object file .git/objects/9e/a0b69be40c464a425afbf1f2a757e68fa5befc is empty
      fatal: loose object 9ea0b69be40c464a425afbf1f2a757e68fa5befc (stored in .git/objects/9e/a0b69be40c464a425afbf1f2a757e68fa5befc) is corrupt
      fatal: The remote end hung up unexpectedly
     
  2. eva2000

    eva2000 Administrator Staff Member

    55,417
    12,256
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,837
    Local Time:
    4:37 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Just do a fresh Centmin Mod code replacement by wiping /usr/local/src/centminmod as outlined similar to update guide here for older than .07 releases.

    replace branchname with branch you want either 123.08stable or 123.09beta01

    first verify that github repo link is working and you don't have connectivity issues to github.com via curl header inspection - look for HTTP 200 status code = ok
    Code (Text):
    curl -I https://github.com/centminmod/centminmod
    

    example
    Code (Text):
    curl -I https://github.com/centminmod/centminmod
    HTTP/1.1 200 OK
    Server: GitHub.com
    Date: Fri, 03 May 2019 09:37:50 GMT
    Content-Type: text/html; charset=utf-8
    Status: 200 OK
    

    Then do clean Centmin Mod code replacement using below SSH commands
    Code (Text):
    branchname=123.09beta01
    cd /usr/local/src
    rm -rf centminmod*
    git clone -b ${branchname} --depth=1 https://github.com/centminmod/centminmod.git centminmod
    cd centminmod
    ./centmin.sh