-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On Mac, Running che command throws error /usr/local/bin/che: line 165: init_global_variables: command not found
#2890
Comments
So the Che script is a self-updating script. It connects to GitHub to download a "cli.sh" which actually has the commands, including the init_ command that is not found. This file is saved to ~/.che/cli. Can you check to see if any file is there? If it's not there, do you have access to github from where you ran the script? There are ways to work around this limitation, if it is still happening. |
@TylerJewell Thanks for looking into it. Yes cli-latest.sh file is at your mentioned location. |
Well that is interesting - that file should be automatically loaded. If you go into that file |
File has no contents. Zero bytes.
|
Inside the che.sh - it is downloading the CLI using curl. You can go to the master branch of the che repo, and download the cli.sh and save it as cli-latest.sh in that directory. If you do that it should run. But the issue is that something is preventing us from downloading the file using curl. |
Ok so I did what you suggesting and ran the script after and tried this few times and everytime getting error:- Segmentation fault: 11 |
One last test please and if this fails I may need access to your box to test. Can you try sudo before downloading the initial script and when running it? |
@TylerJewell You mean to try this
|
I did that and then removed it just to check again. And then as per guide, i fired Now its downloading the script to /usr/local/bin/che and then firing following changes its rights to execute
And now its started to download. I am not sure what changed here. |
Yeah, you go it. I wanted to know if you did sudo when you saved the first file if it would solve the problems. It sounds like that is the solution. I have to think about why this happened some more. |
Yeah, its strange. If I was using Windows, I would simply blame Microsoft :) Thanks man for the help ! |
Enjoy!! |
Running che command fires the error
/usr/local/bin/che: line 165: init_global_variables: command not found
Reproduction Steps:
Expected behavior:
Che should have been started
Observed behavior:
Everytime any che command is fired, it throws error
/usr/local/bin/che: line 165: init_global_variables: command not found
Che version: Cannot obtain che version as even firing che version throws the error.
OS and version: System Version: macOS 10.12 (16A323)
Kernel Version: Darwin 16.0.0
Boot Volume: OSX
Boot Mode: Normal
Docker version:
Client:
Version: 1.12.1
API version: 1.24
Go version: go1.7.1
Git commit: 6f9534c
Built: Thu Sep 8 10:31:18 2016
OS/Arch: darwin/amd64
Server:
Version: 1.12.1
API version: 1.24
Go version: go1.6.3
Git commit: 23cf638
Built: Thu Aug 18 17:52:38 2016
OS/Arch: linux/amd64
Che install: I followed the guide and installed docker first.
Additional information:
The text was updated successfully, but these errors were encountered: