-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
minikube start: kubectl info: exec: exit status 2 #9976
Comments
The log line is: minikube/cmd/minikube/cmd/start.go Line 271 in fdab252
minikube is trying to exec
|
Installing the Homebrew formula |
It is supposed to be possible to run "minikube kubectl" using a symlink like that. Looks like something went wrong, when calling the actual Try something like:
It should have more info. Like |
The command (from start) works OK on linux:
Alternative invocation (without symlink):
It should not return "exit status 2" |
@afbjorklund Relevent logs from
|
Hmm, that command looks happy enough. How did we end up with the error ?
|
The following simple program works, with package main
import (
"fmt"
"os/exec"
)
func main() {
out, err := exec.Command("./symlink").Output()
if err != nil {
fmt.Printf("%v", err)
return
}
fmt.Printf(string(out))
} Let me investigate. |
This is certainly some kind of bug. |
Hi @bl-ue! Any update on this issue? |
Oh, I forgot about this one. Let me see... |
Hi @bl-ue c, I haven't heard back from you, I wonder if you still have this issue? I will close this issue for now but please feel free to reopen whenever you feel ready to provide more information. |
Hi @medyagh! Yes, I'm still having the issue and it's still repeatable using the steps given above. I haven't had much time lately to investigate, and I also wouldn't consider myself a Go expertβtherefore I haven't been able to take care of it. |
I can't reopen this issue, because once a collaborator closes it, the OP can't reopen it π |
FYIβit's not imparing usablity in the slightest bit; but the I opened an issue about it because it's a defect in the product, but a slight, hidden defect that's not likely to be noticed. |
/reopen @bl-ue we can reopen if you have time to continue working on this issue with us - thanks! can you please confirm (#9976 (comment)):
this does not look right
|
@prezha: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Okay @prezha I'll take a look. ππ» |
It's not possible to reproduce this issue on linux, but it would be nice to re-visit after fixing #9593 There you would have a linux-amd64 client talking to a linux-arm64 server, maybe similar issues ? |
So I tried it again, here's the output:
I was doing some experimenting a few months ago but I didn't come to the slightest conclusion other than the symlinking is causing an issue, because |
@bl-ue thank you for your reply i'm still a bit confused why are you linking kubectl to minikube - the error seems to root to then when, at the end (as shown in your logs), calling effectively minikube/cmd/minikube/cmd/start.go Lines 269 to 271 in 18e215f
-> minikube/cmd/minikube/cmd/start.go Lines 448 to 451 in 18e215f
-> minikube/cmd/minikube/cmd/start.go Lines 520 to 526 in 18e215f
why do you link them? can you please try w/o linking and see if you still have the issue |
@prezha I'm linking them per here: https://minikube.sigs.k8s.io/docs/handbook/kubectl/ Quoting:
Yep. I don't have the issue when kubectl is an actual binary. |
thanks for confirming, that's great, and also for referencing where the linking part comes from :) there, if you don't have (or don't want to download) kubectl, |
Sure. I'll just use the binary. But I just verified: this does not happen when I specify |
great you can also use the alias, that should work too if you don't mind we can close this issue now and check separately about the advice given in the handbook |
No, I don't mind at all. Thank you for your help @prezha! β€οΈ It's a little odd that it started with k8s v1.20, but...:shrug: |
minikube start guves this error. it was working fine and all of the sudden it started giving this error π minikube v1.28.0 on Microsoft Windows 10 Pro 10.0.19044 Build 19044
π Enabled addons: storage-provisioner, default-storageclass, dashboard |
Steps to reproduce the issue:
minikube start --vm=true --kubernetes-version='v1.20.0'
Full output of failed command:
--alsologtostderr
didn't help clarify this error. Last few lines of run with--alsologtostderr
:If neccessary I can attach the full log with
--alsologtostderr
.Optional: Full output of
minikube logs
command:logs.zip
The text was updated successfully, but these errors were encountered: