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

stop+start breaks addons: /etc/kubernetes/addons not recreated #6456

Closed
tstromberg opened this issue Feb 1, 2020 · 3 comments · Fixed by #6471
Closed

stop+start breaks addons: /etc/kubernetes/addons not recreated #6456

tstromberg opened this issue Feb 1, 2020 · 3 comments · Fixed by #6471
Assignees
Milestone

Comments

@tstromberg
Copy link
Contributor

If you attempt to start a started cluster, we output a warning:

🌟  Enabling addons: default-storageclass, storage-provisioner
⚠️  Enabling 'default-storageclass' returned an error: running callbacks: [sudo test -d /etc/kubernetes/addons && sudo scp -t /etc/kubernetes/addons && sudo touch -d "0001-01-01 00:00:00 +0000" /etc/kubernetes/addons/storageclass.yaml: Process exited with status 1
output: ]
⚠️  Enabling 'storage-provisioner' returned an error: running callbacks: [sudo test -d /etc/kubernetes/addons && sudo scp -t /etc/kubernetes/addons && sudo touch -d "0001-01-01 00:00:00 +0000" /etc/kubernetes/addons/storage-provisioner.yaml: Process exited with status 1

The root cause is unknown.

@tstromberg tstromberg added this to the v1.7.0 milestone Feb 1, 2020
@tstromberg
Copy link
Contributor Author

This only happens if you run minikube stop in between. It seems that the new code to call mkdir only once is not executed if the host is recreated.

@tstromberg tstromberg changed the title double start warning: Enabling 'storage-provisioner': Process exited with status 1 stop+start breaks addons: /etc/kubernetes/addons not recreated Feb 3, 2020
@tstromberg tstromberg self-assigned this Feb 3, 2020
@limbuu
Copy link

limbuu commented Feb 23, 2020

i am facing same issue. How to solve this??
image

@limbuu
Copy link

limbuu commented Feb 23, 2020

@tstromberg doing sudo minikube start --vm-driver=none solve this issue. But i want to run minikube using Virtual Box as VM. doing minikube start --vm-driver=virtualbox, this issue is also fixed and i can get access to dashboard using minikube dashboard --url but without driver in sudo mode, i cant get access to dashboard. Is it because minikube is running in sudo mode?

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.

2 participants