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

Add actionable error message if user does not have permission to write config.json #9165

Closed
tstromberg opened this issue Sep 2, 2020 · 0 comments · Fixed by #9177
Closed
Assignees

Comments

@tstromberg
Copy link
Contributor

As seen in this log:

I0817 14:49:10.446876    6686 exit.go:58] WithError(error provisioning host)=Failed to save config: writefile failed for /Users/conradwt/.minikube/profiles/gcloud-local-dev/config.json: open /Users/conradwt/.minikube/profiles/gcloud-local-dev/config.json: permission denied called from:
goroutine 1 [running]:
runtime/debug.Stack(0x0, 0x0, 0x100000000000000)
	/usr/local/go/src/runtime/debug/stack.go:24 +0x9d
k8s.io/minikube/pkg/minikube/exit.WithError(0x27c2b14, 0x17, 0x2ada260, 0xc0003d2840)
	/app/pkg/minikube/exit/exit.go:58 +0x34
k8s.io/minikube/cmd/minikube/cmd.runStart(0x38ead00, 0xc0008fd5e0, 0x0, 0xa)
	/app/cmd/minikube/cmd/start.go:172 +0xe12
github.com/spf13/cobra.(*Command).execute(0x38ead00, 0xc0008fd4a0, 0xa, 0xa, 0x38ead00, 0xc0008fd4a0)
	/go/pkg/mod/github.com/spf13/[email protected]/command.go:846 +0x29d
github.com/spf13/cobra.(*Command).ExecuteC(0x38e9d40, 0x0, 0x1, 0xc000537fc0)
	/go/pkg/mod/github.com/spf13/[email protected]/command.go:950 +0x349
github.com/spf13/cobra.(*Command).Execute(...)
	/go/pkg/mod/github.com/spf13/[email protected]/command.go:887
k8s.io/minikube/cmd/minikube/cmd.Execute()
	/app/cmd/minikube/cmd/root.go:106 +0x72c
main.main()
	/app/cmd/minikube/main.go:71 +0x11f
W0817 14:49:10.447311    6686 out.go:252] error provisioning host: Failed to save config: writefile failed for /Users/conradwt/.minikube/profiles/gcloud-local-dev/config.json: open /Users/conradwt/.minikube/profiles/gcloud-local-dev/config.json: permission denied
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

Successfully merging a pull request may close this issue.

1 participant