Discover Centmin Mod today
Register Now

centmin.sh Error after recommended upgrade

Discussion in 'Bug Reports' started by tkptonypark, Apr 3, 2020.

  1. tkptonypark

    tkptonypark New Member

    4
    1
    3
    Mar 9, 2020
    Ratings:
    +1
    Local Time:
    6:44 AM
    1.17.9
    10
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: i.e. 1.17.9
    • PHP Version Installed: 7.3
    • MariaDB MySQL Version Installed: i.e. 10.0.x or 10.1.xx or 10.2.xx
    • When was last time updated Centmin Mod code base ? : This was where the error started.
    • 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):
      LETSENCRYPT_DETECT='y'
      MARCH_TARGETNATIVE='n'
      

    Code (Text):
    ===============================================================================
     Centmin Mod remote branch has changed
     from https://github.com/centminmod/centminmod.git
     to 500: Internal Server Error
     to update re-run centmin.sh menu option 23 submenu option 1
    ===============================================================================
    ===============================================================================
     Centmin Mod code updates available for /usr/local/src/centminmod
     to update re-run centmin.sh menu option 23 submenu option 1
    ===============================================================================
    


    I ran this command now my centmin doesn't exist.

    Code (Text):
    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.001s
    sys     0m0.000s
    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 #####################
    
    [20:53][root@league ~]# cd /usr/local/src/centminmod
    -bash: cd: /usr/local/src/centminmod: No such file or directory
    [20:54][root@league ~]# cd /usr/local/src/centminmod/
    -bash: cd: /usr/local/src/centminmod/: No such file or directory
    [20:54][root@league ~]# cd /usr/local/src/
    [20:55][root@league src]# ls
    [20:55][root@league src]# centmin
    /usr/bin/centmin: line 2: pushd: /usr/local/src/centminmod: No such file or dire                                                                                                                                                             ctory
    /usr/bin/centmin: line 2: ./centmin.sh: No such file or directory
    [20:55][root@league src]# centmin.sh
    
    
     
  2. pamamolf

    pamamolf Premium Member Premium Member

    3,842
    377
    83
    May 31, 2014
    Ratings:
    +722
    Local Time:
    1:44 PM
    Nginx-1.17.x
    MariaDB 10.3.x
    Please first backup and be sure that you know what you do before you run the bellow commands as i am not an expert also.....

    I think that should fix it for you...

    Run all commands one by one:

    Code:
    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. eva2000

    eva2000 Administrator Staff Member

    45,158
    10,273
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,922
    Local Time:
    8:44 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    How did you update 123.09beta01 ? via cmupdate command or centmin.sh menu option 23 submenu option 2 ? or submenu option 1 - if you did submenu option 1 you could of aborted before it resetup the directory. In which case, you can try fresh install of centminmod directory code as per @pamamolf SSH command instructions
     
  4. tkptonypark

    tkptonypark New Member

    4
    1
    3
    Mar 9, 2020
    Ratings:
    +1
    Local Time:
    6:44 AM
    1.17.9
    10
    @eva2000 I used what it said and did 23 submenu option 1

    I'm just worried reinstalling will get rid of all my configs, and installs? If I'm assured it doesn't then I'll redo it.
     
  5. eva2000

    eva2000 Administrator Staff Member

    45,158
    10,273
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,922
    Local Time:
    8:44 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    the commands only reinstalls the centmin mod code in /usr/local/src/centminmod which is what centmin.sh menu uses. It doesn't touch any of your config files for nginx, php and mariadb.
     
  6. tkptonypark

    tkptonypark New Member

    4
    1
    3
    Mar 9, 2020
    Ratings:
    +1
    Local Time:
    6:44 AM
    1.17.9
    10