Join the community today
Register Now

warning: ignoring broken ref refs/remotes/origin/131.00stable

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Matt, Aug 16, 2024.

  1. Matt

    Matt Well-Known Member

    925
    414
    63
    May 25, 2014
    Rotherham, UK
    Ratings:
    +669
    Local Time:
    3:59 PM
    1.5.15
    MariaDB 10.2
    On one of my servers, I've started seeing the below error relating to the git updates of the CMM code:


    Code:
    warning: ignoring broken ref refs/remotes/origin/131.00stable
    warning: ignoring broken ref refs/remotes/origin/131.00stable
    fatal: ambiguous argument '@{u}': unknown revision or path not in the working tree.
    Use '--' to separate paths from revisions, like this:
    'git <command> [<revision>...] -- [<file>...]'
    -------------------------------------------------------------
     Centmin Mod code updates available for /usr/local/src/centminmod
     List of updates: community.centminmod.com/forums/41/?prefix_id=19
    -------------------------------------------------------------
     Do you want to update your local Centmin Mod Git code ? [y/n]: y
    
    Updating Current Centmin Mod code branch via git
    warning: ignoring broken ref refs/remotes/origin/131.00stable
    warning: ignoring broken ref refs/remotes/origin/131.00stable
    fatal: ambiguous argument '@{u}': unknown revision or path not in the working tree.
    Use '--' to separate paths from revisions, like this:
    'git <command> [<revision>...] -- [<file>...]'
     cd /usr/local/src/centminmod
     git stash
     git pull
     chmod +x centmin.sh
    No local changes to save
    error: object file .git/objects/89/c7740ee5e1ab69842ea11f50d9a22655720b03 is empty
    fatal: cannot read existing object info 89c7740ee5e1ab69842ea11f50d9a22655720b03
    fatal: fetch-pack: invalid index-pack output
    
    ##################### IMPORTANT #####################
     To complete update
    ##################### IMPORTANT #####################
     run:
    
      cd /usr/local/src/centminmod
    
     before invoking centmin.sh again
    ##################### IMPORTANT #####################
    
    I've attempted to update the codebase several times, but reports the same issue each time.
     
  2. eva2000

    eva2000 Administrator Staff Member

    53,142
    12,108
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,643
    Local Time:
    12:59 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Who's the web host/server specs? Could be possible local git repo corruption

    Just do a fresh Centmin Mod code replacement by wiping /usr/local/src/centminmod as outlined similar to update guide here for older releases.

    replace branchname with branch you want either 131.00stable or 140.00beta01

    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/2 200 
    server: GitHub.com
    date: Fri, 16 Aug 2024 09:50:08 GMT
    content-type: text/html; charset=utf-8
    

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

    Matt Well-Known Member

    925
    414
    63
    May 25, 2014
    Rotherham, UK
    Ratings:
    +669
    Local Time:
    3:59 PM
    1.5.15
    MariaDB 10.2
    That's fixed it :)