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

Loading kicbase from cache to daemon outputs confusing loading progress #13509

Closed
nagnampalli opened this issue Jan 28, 2022 · 17 comments
Closed
Labels
co/kic-base kind/bug Categorizes issue or PR as related to a bug. priority/backlog Higher priority than priority/awaiting-more-evidence.

Comments

@nagnampalli
Copy link

What Happened?

πŸ˜„ minikube v1.25.1 on Darwin 11.6
✨ Automatically selected the docker driver. Other choices: virtualbox, ssh
πŸ‘ Starting control plane node minikube in cluster minikube
🚜 Pulling base image ...
> gcr.io/k8s-minikube/kicbase: 0 B [] ?% ? p/s ?
> gcr.io/k8s-minikube/kicbase: 0 B [
] ?% ? p/s ?

Attach the log file

πŸ˜„ minikube v1.25.1 on Darwin 11.6
✨ Automatically selected the docker driver. Other choices: virtualbox, ssh
πŸ‘ Starting control plane node minikube in cluster minikube
🚜 Pulling base image ...
> gcr.io/k8s-minikube/kicbase: 0 B [] ?% ? p/s ?
> gcr.io/k8s-minikube/kicbase: 0 B [
] ?% ? p/s ?

Operating System

macOS (Default)

Driver

Docker

@RA489
Copy link

RA489 commented Feb 1, 2022

/kind support

@k8s-ci-robot k8s-ci-robot added the kind/support Categorizes issue or PR as a support question. label Feb 1, 2022
@siikanen
Copy link

Same issue here. Seems like there has been issues with minikube when it tries to connect to gcr.io. However seems the issue fixes itself by just waiting along

@floka94
Copy link

floka94 commented Mar 3, 2022

Same issue here :-(

@sharifelgamal
Copy link
Collaborator

Yeah this definitely strikes me as a connectivity issue. Do you end up getting a timeout or does it eventually resolve itself?

@sharifelgamal sharifelgamal added priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done. co/kic-base labels Apr 6, 2022
@siikanen
Copy link

siikanen commented Apr 7, 2022

Usually just restarting minikube (or deleting it) couple of times fixes it. Defeneitly something related to minikube/docker(?) because other applications seem to be functioning fine

@ckarageorgkaneen
Copy link

I had the same issue with minikube v1.24.0. It was fixed after upgrading to v1.25.0. OS: Ubuntu 20.10

@spowelljr
Copy link
Member

@nagnampalli @siikanen @floka94 Can any of you confirm if updating to minikube v1.25.0 resolves this issue?

@spowelljr spowelljr added the long-term-support Long-term support issues that can't be fixed in code label May 18, 2022
@ZCJ
Copy link

ZCJ commented Jun 26, 2022

@spowelljr I am on 1.26.0 and recently started seeing this issue
image

@spowelljr
Copy link
Member

Thanks for the confirmation @ZCJ. I just discovered that this occurs when you have the kicbase image stored in your minikube home folder cache, but it's not loaded into Docker, so it's copying the image from your file system into Docker.

This will likely occur if you clean out docker using docker system prune.

I'm assuming there's no % being shown because it's not a network activity, it's just writing the tarbar into the daemon and I'm assuming we don't get feedback on what the completion progress is.

I think the next steps are:

  1. Check to see if there is a way to get progress back from the command doing the copy
  2. If not, we should change this to use the loading circles used for Creating docker container & Preparing Kubernetes

@spowelljr spowelljr changed the title minikube stuck starting Loading kicbase from cache to daemon outputs confusing loading progress Jun 27, 2022
@spowelljr spowelljr added kind/bug Categorizes issue or PR as related to a bug. priority/backlog Higher priority than priority/awaiting-more-evidence. and removed kind/support Categorizes issue or PR as a support question. priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done. long-term-support Long-term support issues that can't be fixed in code labels Jun 27, 2022
@hemanthkotaprolu
Copy link

Somebody help me here please!Did anyone able to get pass through this issue. Thanks

Screenshot_20220825_104655

@spowelljr
Copy link
Member

@hemanthkotaprolu it usually takes around 50 seconds for me, did it end up completing?

@afbjorklund
Copy link
Collaborator

@spowelljr Currently the hack done by go-containerregistry only has network progress (and doesn't support podman)

https://github.com/google/go-containerregistry/blob/main/pkg/v1/tarball/write.go ("docker save", with progress)

https://github.com/google/go-containerregistry/blob/main/pkg/v1/daemon/write.go ("docker load", without progress)

I'm not sure they will fix it, so one workaround is to call the docker and podman clients directly instead of using daemon

@Nelgit007
Copy link

Somebody help me here please!Did anyone able to get pass through this issue. Thanks

Screenshot_20220825_104655

Yeah. If its on windows like mine. You just have to wait a bit longer for it to begin pulling the image. 5 to 10min

@hemanthkotaprolu
Copy link

@hemanthkotaprolu it usually takes around 50 seconds for me, did it end up completing?

Thanks @spowelljr . After sometime it got worked. Thanks,

@emreigrek
Copy link

took 2mins for me, thank you

@Elias-Yona
Copy link

took 2mins for me, thank you

20 mins for me. I almost deleted minikube.

@spowelljr
Copy link
Member

This is fixed by #15528

The problem is it was downloading the kicbase image twice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/kic-base kind/bug Categorizes issue or PR as related to a bug. priority/backlog Higher priority than priority/awaiting-more-evidence.
Projects
None yet
Development

Successfully merging a pull request may close this issue.