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

minikube service <service-name> --url panics #14307

Closed
only-a-user opened this issue Jun 9, 2022 · 8 comments
Closed

minikube service <service-name> --url panics #14307

only-a-user opened this issue Jun 9, 2022 · 8 comments
Labels
co/service issues related to the service feature kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. triage/duplicate Indicates an issue is a duplicate of other open issue.

Comments

@only-a-user
Copy link

What Happened?

When trying to get the url of a ClusterIP service with

minikube service <service-name> --url

I get the following output:

😿 service default/SERVICE_NAME has no node port
panic: runtime error: index out of range [3] with length 3

goroutine 1 [running]:
k8s.io/minikube/cmd/minikube/cmd.glob..func35(0x1073a1800, {0x140000a7400, 0x1, 0x2})
/private/tmp/minikube-20220224-22619-1l4wp0k/cmd/minikube/cmd/service.go:138 +0x6a8
github.com/spf13/cobra.(*Command).execute(0x1073a1800, {0x140000a73e0, 0x2, 0x2})
/Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/spf13/cobra@v1.3.0/command.go:860 +0x640
github.com/spf13/cobra.(*Command).ExecuteC(0x1073a1300)
/Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/spf13/cobra@v1.3.0/command.go:974 +0x410
github.com/spf13/cobra.(*Command).Execute(...)
/Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/spf13/cobra@v1.3.0/command.go:902
k8s.io/minikube/cmd/minikube/cmd.Execute()
/private/tmp/minikube-20220224-22619-1l4wp0k/cmd/minikube/cmd/root.go:157 +0xdb8
main.main()
/private/tmp/minikube-20220224-22619-1l4wp0k/cmd/minikube/main.go:86 +0x2a0

I already tried the solve described here with the binary for darwin-arm64 as I'm on a apple silicon, but the result remained the same.

Attach the log file

...

Operating System

macOS (Default)

Driver

Docker

@spowelljr
Copy link
Member

spowelljr commented Jun 9, 2022

Duplicate #13736

Hi @only-a-user, thanks for reporting your issue with minikube.

I also noticed this recently, I'm going to look into this.

I think I was on an old branch when I ran into this. Can you run minikube version and paste the result, thanks

@spowelljr spowelljr added kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. co/service issues related to the service feature labels Jun 9, 2022
@only-a-user
Copy link
Author

The result is:

minikube version: v1.25.2
commit: 362d5fdc0a3dbee389b3d3f1034e8023e72bd3a7

@spowelljr
Copy link
Member

spowelljr commented Jun 10, 2022

362d5fdc0a3dbee389b3d3f1034e8023e72bd3a7 doesn't have #13756 in it, you want 9d8634cd018dc9ed32c83f86917b202e5450409b.

Make sure you're using https://storage.googleapis.com/minikube-builds/13756/minikube-linux-arm64

@spowelljr spowelljr added the triage/duplicate Indicates an issue is a duplicate of other open issue. label Jun 10, 2022
@only-a-user
Copy link
Author

As I am on mac the linux binary doesn't work, so i tried with the darwin one (https://storage.googleapis.com/minikube-builds/13756/minikube-darwin-arm64). Problem is it doesn't do anything. The commit doesn't change and the result is still the same.

@spowelljr
Copy link
Member

I just tried downloading that binary and I'm getting 9d8634cd018dc9ed32c83f86917b202e5450409b when I do a version check. It sounds like you're still using the existing binary, did you install the binary to /usr/local/bin/minikube?

@only-a-user
Copy link
Author

that dir doesn't exist, because i installed with brew.

@spowelljr
Copy link
Member

If you want to use brew you'll have to wait for the next release, otherwise you'll have to uninstall the brew version and manually install the version linked.

@only-a-user
Copy link
Author

ok thanks for your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/service issues related to the service feature kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. triage/duplicate Indicates an issue is a duplicate of other open issue.
Projects
None yet
Development

No branches or pull requests

2 participants