Skip to content
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

"jx create cluster minikube" fails on mac with git 2.16.1 #176

Closed
cyrille-leclerc opened this issue Jan 30, 2018 · 6 comments
Closed

"jx create cluster minikube" fails on mac with git 2.16.1 #176

cyrille-leclerc opened this issue Jan 30, 2018 · 6 comments

Comments

@cyrille-leclerc
Copy link

cyrille-leclerc commented Jan 30, 2018

Error description

jx create cluster minikube fails on MacOSX with

See https://gist.github.com/cyrille-leclerc/175fa79ea2055a588c7b41d1f4fc1f2f

...

Installing pack repo from https://github.com/jenkins-x/draft-repo
Error: Unable to update checked out version: exit status 128
Error: exit status 1
Error: Command failed  draft pack-repo add https://github.com/jenkins-x/draft-repo
draft init failed: exit status 1

.draft folder content: https://gist.github.com/cyrille-leclerc/175fa79ea2055a588c7b41d1f4fc1f2f#file-1-tree-dot-draft-log

Environment

# https://github.com/jenkins-x/jx/releases/tag/v1.0.26
sha1sum jx
f5b520268870c5e639063bfde1fbf3fc7a3c040a  jx
draft version
Client: &version.Version{SemVer:"v0.9.0", GitCommit:"6a6b387d84cc7530b45bfff704bd1d71e36082ed", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v0.9.0", GitCommit:"6a6b387d84cc7530b45bfff704bd1d71e36082ed", GitTreeState:"clean"}
helm version
Client: &version.Version{SemVer:"v2.8.0", GitCommit:"14af25f1de6832228539259b821949d20069a222", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.8.0", GitCommit:"14af25f1de6832228539259b821949d20069a222", GitTreeState:"clean"}
kubectl version
Client Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.2", GitCommit:"5fa2db2bd46ac79e5e00a4e6ed24191080aa463b", GitTreeState:"clean", BuildDate:"2018-01-18T21:12:46Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"", Minor:"", GitVersion:"v1.9.0", GitCommit:"925c127ec6b946659ad0fd596fa959be43f0cc05", GitTreeState:"clean", BuildDate:"2018-01-26T19:04:38Z", GoVersion:"go1.9.1", Compiler:"gc", Platform:"linux/amd64"}
minikube version
minikube version: v0.25.0
@rawlingsj
Copy link
Member

I'm not too sure why draft barfs yet but I am wondering if instead jx removes the cached draft packs before cloning the latest. There needs to be a bit of work with draft on this but for now could you try..

rm -rf ~/.draft

And re-run jx create cluster minikube - if this works then as a work around we can put this is jx to avoid this for initial users.

@cyrille-leclerc
Copy link
Author

@rawlingsj thanks, I am confused, my setup seems to be corrupted. I'll restart the installation from scratch tomorrow.

@rawlingsj
Copy link
Member

@cyrille-leclerc ok sure thing - FWIW I raised this issue recently #168 to make situations like this easier to reset. If I get time tomorrow I'll have a crack at it unless you or someone else fancies having a go, I can help out on IRC / hipchat if someones's up for it? Don't worry if not though as I know folks are busy, just thought I'd mention it.

@cyrille-leclerc cyrille-leclerc changed the title "jx create cluster minikube" fails on mac with "jx create cluster minikube" fails on mac with git 2.16.1 Jan 31, 2018
@cyrille-leclerc
Copy link
Author

workaround: switch git to 2.15.1

Reproduce the problem

$ draft pack-repo add https://github.com/jenkins-x/draft-repo
Installing pack repo from https://github.com/jenkins-x/draft-repo
Error: Unable to update checked out version: exit status 128
Error: exit status 1

Switch to git 2.15.1

$ cd "$(brew --repo homebrew/core)"
$ git checkout d6bf34aca4a9cedd95c2c5fc647f3051ee5578fa
$ brew reinstall git
$ git version
git version 2.15.1

Verify that the problem is fixed

$ draft pack-repo add https://github.com/jenkins-x/draft-repo
Installing pack repo from https://github.com/jenkins-x/draft-repo
Installed pack repository github.com/jenkins-x/draft-repo

@rawlingsj
Copy link
Member

Raised an issue on draft to track the 2.16.1 problem https://github.com/Azure/draft/issues/522

@rawlingsj
Copy link
Member

this was resolved upstream https://github.com/Azure/draft/issues/522

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants