Discover Centmin Mod today
Register Now

Upgrade I update CMM white Github has 500 error

Discussion in 'Bug Reports' started by huaanhhuy, Jul 13, 2020.

  1. huaanhhuy

    huaanhhuy New Member

    22
    0
    1
    Jun 10, 2020
    Ratings:
    +1
    Local Time:
    10:48 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.19.1
    • PHP Version Installed: 7.4.8
    • MariaDB MySQL Version Installed: 10.4
    • When was last time updated Centmin Mod code base ? : run centmin.sh menu option 23 submenu option 2 or cmupdate command
    • Persistent Config: Do you have any persistent config file options set in /etc/centminmod/custom_config.inc ? You can check via this command:
      Code (Text):
      cat /etc/centminmod/custom_config.inc
      

      LETSENCRYPT_DETECT='y'
      RCLONE_ENABLE='y'
      ENABLE_MARIADBTENTWOUPGRADE='y'
      ENABLE_MARIADBTENTHREEUPGRADE='y'
      ENABLE_MARIADBTENFOURUPGRADE='y'
      MARCH_TARGETNATIVE='n'
    Hi I have update CMM via menu 23 option but at this time github.com have 500 error for fees minute so in /usr/local/src/ CMM folder is removed. Here is the code

    Code:
    ###############################################################
    * Getting Started Guide - http://centminmod.com/getstarted.html
    * Find the latest Centmin Mod version - http://centminmod.com
    * Centmin Mod FAQ - http://centminmod.com/faq.html
    * Change Log - http://centminmod.com/changelog.html
    * Google+ Page latest news http://centminmod.com/gpage
    * Community Forums https://community.centminmod.com (signup)
    ###############################################################
    # Cheap VPS Hosting at Digitalocean
    # https://www.digitalocean.com/?refcode=c1cb367108e8
    ###############################################################
    
     checking for YUM updates... please wait...
     no YUM updates available
    
    -------------------------------------------------------------
    * Current Nginx Version: 1.19.1 (080720-230828-centos7-kvm-bc2d510)
    * Latest Nginx Available: 1.19.1 (centminmod.com/nginxnews)
    -------------------------------------------------------------
    
    -------------------------------------------------------------
     Centmin Mod remote branch has changed
     from https://github.com/centminmod/centminmod.git
     to 500: Internal Server Error
    -------------------------------------------------------------
     Do you want to update the Centmin Mod Git repo url ? [y/n]: y
    
    setup Centmin Mod git sourced install...
    
    download github.com centmin mod 123.09beta01 branch repo
    time git clone -b 123.09beta01 --depth=1 500: Internal Server Error centminmod
    Too many arguments.
    
    usage: git clone [options] [--] <repo> [<dir>]
    
        -v, --verbose         be more verbose
        -q, --quiet           be more quiet
        --progress            force progress reporting
        -n, --no-checkout     don't create a checkout
        --bare                create a bare repository
        --mirror              create a mirror repository (implies bare)
        -l, --local           to clone from a local repository
        --no-hardlinks        don't use local hardlinks, always copy
        -s, --shared          setup as shared repository
        --recursive           initialize submodules in the clone
        --recurse-submodules  initialize submodules in the clone
        --template <template-directory>
                              directory from which templates will be used
        --reference <repo>    reference repository
        -o, --origin <name>   use <name> instead of 'origin' to track upstream
        -b, --branch <branch>
                              checkout <branch> instead of the remote's HEAD
        -u, --upload-pack <path>
                              path to git-upload-pack on the remote
        --depth <depth>       create a shallow clone of that depth
        --single-branch       clone only one branch, HEAD or --branch
        --separate-git-dir <gitdir>
                              separate git dir from working tree
        -c, --config <key=value>
                              set config inside the new repository
    
    
    real    0m0.002s
    user    0m0.000s
    sys     0m0.002s
    time git clone -b 123.09beta01 --depth=1 500: Internal Server Error centminmod
    Too many arguments.
    
    usage: git clone [options] [--] <repo> [<dir>]
    
        -v, --verbose         be more verbose
        -q, --quiet           be more quiet
        --progress            force progress reporting
        -n, --no-checkout     don't create a checkout
        --bare                create a bare repository
        --mirror              create a mirror repository (implies bare)
        -l, --local           to clone from a local repository
        --no-hardlinks        don't use local hardlinks, always copy
        -s, --shared          setup as shared repository
        --recursive           initialize submodules in the clone
        --recurse-submodules  initialize submodules in the clone
        --template <template-directory>
                              directory from which templates will be used
        --reference <repo>    reference repository
        -o, --origin <name>   use <name> instead of 'origin' to track upstream
        -b, --branch <branch>
                              checkout <branch> instead of the remote's HEAD
        -u, --upload-pack <path>
                              path to git-upload-pack on the remote
        --depth <depth>       create a shallow clone of that depth
        --single-branch       clone only one branch, HEAD or --branch
        --separate-git-dir <gitdir>
                              separate git dir from working tree
        -c, --config <key=value>
                              set config inside the new repository
    
    
    real    0m0.002s
    user    0m0.000s
    sys     0m0.002s
    inc/updater_submenu.inc: line 174: cd: centminmod: No such file or directory
    chmod: cannot access ‘centmin.sh’: No such file or directory
    
    list all available local branches
     git branch -a
    fatal: Not a git repository (or any of the parent directories): .git
    
    list git log last commit
     git log -a
    fatal: Not a git repository (or any of the parent directories): .git
    
    to update centmin mod 123.09beta01 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 #####################
    
    -------------------------------------------------------------
    fatal: Not a git repository (or any of the parent directories): .git
    fatal: Not a git repository (or any of the parent directories): .git
    -------------------------------------------------------------
     Centmin Mod local code is up to date at /usr/local/src/centminmod
     no available updates at this time...
    -------------------------------------------------------------
    You have new mail in /var/spool/mail/root
    [14:48][root@server.diencohuuthinh.com ~]# cmupdate
    -bash: cmupdate: command not found
    
    And now I can't use centmid mod menu. Please help me
     
  2. eva2000

    eva2000 Administrator Staff Member

    45,436
    10,312
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,992
    Local Time:
    1:48 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    Looks like github had issues today July 13 https://www.githubstatus.com/

    If you centmin.sh menu isn't working, try now doing a clean resetup via commands below

    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