Want to subscribe to topics you're interested in?
Become a Member

Upgrade centmin command doesn't work and /usr/local/src/centminmod doesn't exist

Discussion in 'Install & Upgrades or Pre-Install Questions' started by negative, Apr 3, 2019.

  1. negative

    negative Active Member

    415
    50
    28
    Apr 11, 2015
    Ratings:
    +98
    Local Time:
    10:05 AM
    1.9.10
    10.1.11
    • CentOS Version:CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01

    Today, i got some network problems and i have tried to login the ssh while this connection issues.

    When login to ssh successfully, i type "cmupdate" command but it failed and lines are here:



    Code (Text):
    [21:10][root@server ~]# cmupdate
    Detected Centmin Mod Github Remote Repo Changes
    setting up fresh /usr/local/src/centminmod code base to match
    
    Cloning into 'centminmod'...
    
    fatal: unable to access 'https://github.com/centminmod/centminmod.git/': Could not resolve host: github.com; Unknown error
    
    Completed. Fresh /usr/local/src/centminmod code base in place
    
    To run centmin.sh again, you need to change into directory: /usr/local/src/centminmod
    
    cd /usr/local/src/centminmod
    
    /var/spool/mail/root'de yeni postanız var


    And now, all of commands related with centminmod like "centmin, cmupdate" doesn't work. Also,

    Code (Text):
    [21:14][root@server]# centmin
    /usr/bin/centmin: line 2: pushd: /usr/local/src/centminmod: Böyle bir dosya ya da dizin yok
    bash: centmin.sh: Böyle bir dosya ya da dizin yok
    [21:23][root@server]# cmupdate
    -bash: cmupdate: komut yok
    


    usr/local/src/centminmod folder doesn't seems anymore
    Code (Text):
    [21:14][root@server ~]# cd /usr/local/src/
    [21:14][root@server src]# ls -la
    toplam 32
    drwxr-xr-x.  2 root root    41 Nis  2 21:11 .
    drwxr-xr-x. 20 root root   239 Eyl 30  2018 ..
    -rwxrwxrwx.  1 root root 21137 Şub 12  2014 smem
    -rw-r--r--.  1 root root  5441 Tem 11  2015 smem-1.4.tar.gz
    


    errors are there is no any folder or file, no command etc. in English.

    I think it bugged because of server connection issues and now it looks like centmin has gone from server. Even i don't show the centmin lines when first login to server (like nginx version, update status and server stats etc)

    How can i fix that ? Especially @eva2000
     
    Last edited: Apr 3, 2019
  2. eva2000

    eva2000 Administrator Staff Member

    58,894
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    5:05 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    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
    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. negative

    negative Active Member

    415
    50
    28
    Apr 11, 2015
    Ratings:
    +98
    Local Time:
    10:05 AM
    1.9.10
    10.1.11
    Problem is solved, thank you.

    However, i though you need to fix that problem because that problem occurring if server have any connection problem when run the cmupdate command. Need a control mechanism. Am i right?
     
  4. eva2000

    eva2000 Administrator Staff Member

    58,894
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    5:05 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    a smarter routine was added as a fix for centmin.sh for a similar issue that cmupdate has so will look into doing the same for cmupdate
     
  5. eva2000

    eva2000 Administrator Staff Member

    58,894
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    5:05 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    a smarter routine was added as a fix for centmin.sh for a similar issue https://community.centminmod.com/th...-routine-to-be-smarter-in-123-09beta01.16670/. For cmupdate, will look into doing the same for cmupdate