Welcome to Centmin Mod Community
Register Now

Install Github Environment error

Discussion in 'Install & Upgrades or Pre-Install Questions' started by pamamolf, May 16, 2017.

  1. pamamolf

    pamamolf Well-Known Member

    2,824
    253
    83
    May 31, 2014
    Ratings:
    +448
    Local Time:
    3:03 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7.3 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: i.e. 1.11.10
    • PHP Version Installed: i.e. 5.6.30 or 7.0.15
    • MariaDB MySQL Version Installed: i.e. 10.0.21 or 10.1.21
    • When was last time updated Centmin Mod code base ? : i.e. run centmin.sh menu option 23 submenu option 2


    I was install Centminmod with the one line installer and then i try to install the github environment and i got this error at the end:

    Code:
    --------------------------------------------------------
    Enter option [ 1 - 4 ] 1
    --------------------------------------------------------
    
    setup Centmin Mod git sourced install...
    
    download github.com centmin mod 123.09beta01 branch repo
    time git clone -b 123.09beta01 --depth=1 https://github.com/centminmod/centminmod.git centminmod
    Cloning into 'centminmod'...
    
    real    0m2.830s
    user    0m0.284s
    sys     0m0.142s
    
    list all available local branches
            git branch -a
    * 123.09beta01
      remotes/origin/123.09beta01
    
    list git log last commit
            git log -a
    commit 7be4f430e29b26a615afd2fb425007d71c9edcfd
    Author: George Liu <snipped>
    Date:   Mon May 15 22:55:35 2017 +1000
    
        switch back from custom nginx main_ext log format to default combined
    
    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 #####################
    
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    sh: centmin.sh: No such file or directory
    [root@dev ~]#
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,961
    6,918
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,420
    Local Time:
    11:03 PM
    Nginx 1.13.x
    MariaDB 5.5
    did you do that first ?
     
  3. pamamolf

    pamamolf Well-Known Member

    2,824
    253
    83
    May 31, 2014
    Ratings:
    +448
    Local Time:
    3:03 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    The error was before i got the command prompt....

    Code:
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    sh: centmin.sh: No such file or directory
    [root@dev ~]#
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,961
    6,918
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,420
    Local Time:
    11:03 PM
    Nginx 1.13.x
    MariaDB 5.5
    oh how you launching centmin.sh via = centmin command ? or

    Code (Text):
    cd /usr/local/src/centminmod
    ./centmin.sh

    OR
    Code (Text):
    cmdir
    ./centmin.sh
     
  5. pamamolf

    pamamolf Well-Known Member

    2,824
    253
    83
    May 31, 2014
    Ratings:
    +448
    Local Time:
    3:03 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    After centminmod installation on the server i just run "centmin".

    No path given before as the menu was launch with no issues....
     
  6. eva2000

    eva2000 Administrator Staff Member

    30,961
    6,918
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,420
    Local Time:
    11:03 PM
    Nginx 1.13.x
    MariaDB 5.5
    was centmin mod installed via curl installer method ? you probably need to ssh log out and log back in before centmin command works as it's in /root/.bashrc that only registers after first log in again
     
  7. eva2000

    eva2000 Administrator Staff Member

    30,961
    6,918
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,420
    Local Time:
    11:03 PM
    Nginx 1.13.x
    MariaDB 5.5
  8. pamamolf

    pamamolf Well-Known Member

    2,824
    253
    83
    May 31, 2014
    Ratings:
    +448
    Local Time:
    3:03 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    yum -y update; curl -O https://centminmod.com/betainstaller.sh && chmod 0700 betainstaller.sh && bash betainstaller.sh

    OK....

    But i was never do that and i didn't notice any issues on any server....
     
  9. eva2000

    eva2000 Administrator Staff Member

    30,961
    6,918
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,420
    Local Time:
    11:03 PM
    Nginx 1.13.x
    MariaDB 5.5
    i've always had to do it :)