Learn about Centmin Mod LEMP Stack today
Become a Member

centmin.sh Can not update Centmin Mod code base

Discussion in 'Bug Reports' started by Sunka, Oct 6, 2021.

  1. Sunka

    Sunka Well-Known Member

    1,147
    317
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +515
    Local Time:
    3:49 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    centmin.sh menu option 23 submenu option 2
    and output is this:


    Code:
    --------------------------------------------------------
            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 ] 2
    --------------------------------------------------------
    
    Detected Centmin Mod Github Remote Repo Changes
    setting up fresh /usr/local/src/centminmod code base to match
    
    time git clone -b 123.09beta01 --depth=1  centminmod
    fatal: repository 'centminmod' does not exist
    
    real    0m0.002s
    user    0m0.002s
    sys     0m0.000s
    
    Error: wasn't able to successfully update /usr/local/src/centminmod code base
           restoring previous copy of /usr/local/src/centminmod code base
    
     
  2. eva2000

    eva2000 Administrator Staff Member

    47,498
    10,769
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,742
    Local Time:
    12:49 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    Seems like you might have accidentally wiped the local Centmin Mod directory at
    /usr/local/src/centminmod? Does it exist? With Centmin Mod 123.09beta01, you don't need to use centmin.sh menu option 23 submenu option 2 to do code updates. The SSH command shortcut = cmupdate should do the same.

    What output do you get for running the command = cmupdate.

    If the same reported issue says /usr/local/src/centminmod is missing, 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
     
  3. Sunka

    Sunka Well-Known Member

    1,147
    317
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +515
    Local Time:
    3:49 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    I tried today same way I did last time, and now it is working as usually.
    Strange.
     
  4. eva2000

    eva2000 Administrator Staff Member

    47,498
    10,769
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,742
    Local Time:
    12:49 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    Could be a local server temp DNS resolver issue? That can trigger the message for '
    Detected Centmin Mod Github Remote Repo Changes' too.