Learn about Centmin Mod LEMP Stack today
Become a Member

Upgrade Error when typing cmupdate

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

  1. huaanhhuy

    huaanhhuy New Member

    Jun 10, 2020
    Local Time:
    7:33 AM
    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

    May 24, 2014
    Brisbane, Australia
    Local Time:
    10:33 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    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

    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):
    cd /usr/local/src
    rm -rf centminmod*
    git clone -b ${branchname} --depth=1 https://github.com/centminmod/centminmod.git centminmod
    cd centminmod