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

Exiting due to GUEST_START: failed to start node: Failed kubeconfig update: writing kubeconfig: Error creating directory: /home/venkatesh/.kube: mkdir /home/venkatesh/.kube: permission denied #18766

Closed
VenkateshGangitla05 opened this issue Apr 29, 2024 · 2 comments

Comments

@VenkateshGangitla05
Copy link

VenkateshGangitla05 commented Apr 29, 2024

What Happened?

while starting minikube in WSL I am getting error that :- Exiting due to GUEST_START: failed to start node: Failed kubeconfig update: writing kubeconfig: Error creating directory: /home/venkatesh/.kube: mkdir /home/venkatesh/.kube: permission denied

Note :- I am new to docker and kubernetes and even I am not seeing config file under /home/venkatesh/.kube

versions:-
kubectl version
Client Version: v1.30.0

minikube version: v1.33.0

docker version
Client: Docker Engine - Community
Version: 26.1.0
API version: 1.45
Go version: go1.21.9
Git commit: 9714adc
Built: Mon Apr 22 17:07:12 2024
OS/Arch: linux/amd64
Context: default

Server: Docker Engine - Community
Engine:
Version: 26.1.0
API version: 1.45 (minimum version 1.24)
Go version: go1.21.9
Git commit: c8af8eb
Built: Mon Apr 22 17:07:12 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.31
GitCommit: e377cd56a71523140ca6ae87e30244719194a521
runc:
Version: 1.1.12
GitCommit: v1.1.12-0-g51d5e94
docker-init:
Version: 0.19.0
GitCommit: de40ad0

Attach the log file

logs.txt
logs.txt

Operating System

Windows

Driver

None

@VenkateshGangitla05
Copy link
Author

hi,

After I have created directory, I am getting error that: -
command I used :- minikube start
😄 minikube v1.33.0 on Ubuntu 20.04 (amd64)
✨ Using the docker driver based on existing profile
👍 Starting "minikube" primary control-plane node in "minikube" cluster
🚜 Pulling base image v0.0.43 ...
🏃 Updating the running docker "minikube" container ...
🐳 Preparing Kubernetes v1.30.0 on Docker 26.0.1 ...
🤦 Unable to restart control-plane node(s), will reset cluster:
▪ Generating certificates and keys ...
▪ Booting up control plane ...
▪ Configuring RBAC rules ...
🔗 Configuring bridge CNI (Container Networking Interface) ...

🚫 Exiting due to HOST_KUBECONFIG_PERMISSION: Failed kubeconfig update: writing kubeconfig: Error writing file /home/venkatesh/.kube/config: open /home/venkatesh/.kube/config: permission denied
Suggestion: Run: 'sudo chown $USER $HOME/.kube/config && chmod 600 $HOME/.kube/config'

I followed suggestion and executed this command:-
sudo chown $USER $HOME/.kube/config && chmod 600 $HOME/.kube/config
but getting error that: - chown: cannot access '/home/venkatesh/.kube/config': No such file or directory

will someone help me on this

#Exiting due to GUEST_START: failed to start node: Failed kubeconfig update: writing kubeconfig:

@VenkateshGangitla05
Copy link
Author

sudo chown $USER $HOME/.kube && chmod 700 $HOME/.kube
sudo chmod 777 $HOME/.kube

these two commands help me to fix the issue.

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

1 participant