Welcome to Centmin Mod Community
Become a Member

cmupdate command not found?

Discussion in 'Install & Upgrades or Pre-Install Questions' started by tonmo, Aug 6, 2020.

  1. tonmo

    tonmo Member

    50
    1
    8
    Jul 20, 2019
    Ratings:
    +5
    Local Time:
    9:20 PM
    1.17.1
    5.5.5 (10.3.16-MariaDB)
    not sure what happened but I can't seem to run cmupdate or centmin ... troubleshooting steps for this? My server / site seems to be operating. But I can't seem to get here:


    /usr/local/src/centminmod: No such file or directory
     
  2. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    11:20 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    how you ever ran centmin.sh menu option 23 subemnu options 2 or 3 ? they can clear /usr/local/src/centminmod for fresh version re-populating but it you ended the process before re-populating, they may not have been re-setup

    when was last time you ran cmupdate ? you can check the last 50 command history entries matching keyword = cmupdate via command below
    Code (Text):
    history | grep cmupdate | tail -50

    example
    Code (Text):
    history | grep cmupdate | tail -50
     4206  [15.04.20] 05:04:29   cmupdate
     4274  [15.04.20] 21:00:55   cmupdate
     4315  [16.04.20] 00:05:47   cmupdate
     4318  [16.04.20] 00:12:09   cmupdate
     4407  [16.04.20] 02:16:54   cmupdate
     4442  [16.04.20] 02:59:29   cmupdate
     4447  [16.04.20] 09:45:22   cmupdate
     4451  [16.04.20] 09:58:18   cmupdate
     4592  [17.04.20] 16:29:28   cmupdate
     4603  [17.04.20] 16:58:43   cmupdate
     4718  [19.04.20] 10:45:58   cmupdate
     5029  [21.04.20] 19:26:21   cmupdate
     5236  [24.04.20] 15:26:22   cmupdate
     5717  [28.04.20] 23:51:28   cmupdate
     5754  [01.05.20] 20:43:37   cmupdate
     5975  [05.05.20] 02:47:59   cmupdate
     6243  [10.05.20] 01:33:27   cmupdate
     6248  [10.05.20] 01:37:11   cmupdate
     6254  [10.05.20] 01:44:47   cmupdate
     6279  [10.05.20] 02:01:58   cmupdate
     6284  [10.05.20] 02:08:55   cmupdate
     6291  [10.05.20] 02:16:31   cmupdate
     6366  [10.05.20] 12:58:16   cmupdate
     6722  [11.05.20] 13:44:14   cmupdate
     6819  [12.05.20] 21:53:34   cmupdate
     6865  [13.05.20] 17:15:03   cmupdate
     6889  [14.05.20] 18:57:24   cmupdate
     6980  [14.05.20] 23:32:35   cmupdate
     7044  [15.05.20] 17:44:34   cmupdate
     7115  [22.05.20] 08:35:17   cmupdate
     7196  [26.05.20] 16:14:51   cmupdate
     7205  [26.05.20] 16:30:45   cmupdate
     7209  [26.05.20] 16:39:30   cmupdate
     8194  [10.06.20] 23:14:48   cmupdate
     8196  [10.06.20] 23:14:57   cmupdate
     8198  [10.06.20] 23:16:07   cmupdate
     8224  [11.06.20] 20:35:35   cmupdate
     8674  [20.06.20] 20:23:11   cmupdate
     8778  [02.07.20] 02:56:03   cmupdate
     8823  [02.07.20] 04:47:55   cmupdate
     8897  [04.07.20] 11:01:43   cmupdate
     9083  [07.07.20] 18:25:50   cmupdate
     9100  [07.07.20] 19:54:45   cmupdate
     9400  [17.07.20] 05:40:03   cmupdate
     9871  [24.07.20] 11:23:02   cmupdate
     9957  [29.07.20] 07:29:30   cmupdate
     9993  [04.08.20] 12:03:12   cmupdate
    10011  [05.08.20] 17:19:52   cmupdate
    


    If it's just the directory, the 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. tonmo

    tonmo Member

    50
    1
    8
    Jul 20, 2019
    Ratings:
    +5
    Local Time:
    9:20 PM
    1.17.1
    5.5.5 (10.3.16-MariaDB)
    That is exactly what happened. I was in that menu, but tried to exit out with ctrl-c / ctrl-x, and nothing was working. I didn't want to change anything so I just tried entering "x" hoping it would gracefully exit.
    cmupdate history:
    Code:
    [21:44][root@web.tonmo.com centos]# history | grep cmupdate | tail -50
      587  [16.09.19] 13:45:20   cmupdate
      623  [05.11.19] 14:15:39   cmupdate
      958  [31.12.19] 01:52:08   cmupdate
     1022  [05.01.20] 13:52:37   cmupdate
     1090  [05.01.20] 15:22:22   cmupdate
     1098  [05.01.20] 15:28:08   cmupdate
     1418  [21.04.20] 21:56:18   cmupdate
     1445  [25.04.20] 11:43:58   cmupdate
     2275  [09.05.20] 02:07:29   cmupdate
     2320  [14.05.20] 21:17:37   cmupdate
     2840  [20.05.20] 12:14:44   cmupdate
     3133  [22.05.20] 13:10:46   cmupdate
     3142  [11.06.20] 11:32:43   cmupdate
     3210  [12.07.20] 12:58:49   cmupdate
     3938  [05.08.20] 22:29:58   cmupdate
     3944  [05.08.20] 22:59:41   cmupdate
     3946  [05.08.20] 23:00:00   cmupdate
     3953  [05.08.20] 23:04:31   cmupdate
     3963  [06.08.20] 21:44:20   history | grep cmupdate | tail -50
    Everything else you laid out worked. Thank you!
     
  4. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    11:20 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    centmin mod was downloading the updated branch code so your abrupt exist prevented the download/update