podman-desktop: podman-desktop hangs upon startup
Bug description
podman-desktop hangs upon startup: not even able to get to the onboarding to install podman.
Operating system
Windows 11
Installation Method
Installer from website/GitHub releases
Version
1.12.0
Steps to reproduce
uninstall; delete all related folders; install 1.12.0
Relevant log output
Checking for update
Starting http server to handle webviews on port 44000
System ready. Loading extensions...
Activating extension (podman-desktop.compose) with max activation time of 20 seconds
Fetched https://registry.podman-desktop.io/api/extensions.json in 164.96519999999998ms
Activating extension (podman-desktop.compose) ended in 117 milliseconds
Activating extension (podman-desktop.docker) with max activation time of 20 seconds
Activating extension (podman-desktop.docker) ended in 4 milliseconds
Activating extension (podman-desktop.kind) with max activation time of 20 seconds
[kind] kind extension is active
Activating extension (podman-desktop.kind) ended in 361 milliseconds
Activating extension (podman-desktop.kube-context) with max activation time of 20 seconds
[kube-context] starting extension kube-context
Activating extension (podman-desktop.kube-context) ended in 11 milliseconds
Activating extension (podman-desktop.kubectl-cli) with max activation time of 20 seconds
Additional context
with help from discord @ScrewTSW we tried cleaning the system multiple times trying multiple installers with no luck.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 26 (14 by maintainers)
Thanks @polzka90 for this information. I can now reproduce the problem on my side. I’ll add more information to the issue, we should be able to work on fixing the problem
Hi @polzka90 I’m working on making the user experience better when using Azure cluster. A workaround for the moment would be to change in your kubeconfig file the lines
with the lines
This should, when you start Podman Desktop and your token for your azure cluster is expired, automatically open one (or several) browser tabs to help you authentify with Microsoft, and once you are authentified, Podman Desktop should start correctly.
Sure, here is my config masked `apiVersion: v1 clusters:
Thanks for this report @polzka90 this is very valuable. I’m opening the issue https://github.com/podman-desktop/podman-desktop/issues/9879 to track the problem
The Podman-Desktop core uses the kubernetes api to list the clusters and resources in it, it does not need the kubectl extensions to be running.
Podman-Desktop (core) manage the current context and this cannot be disabled. We are using the @kubernetes/client-node library.
Here is our workflow in podman-desktop
~/.kube/configif none provided)https://github.com/containers/podman-desktop/blob/49239338973f18887022b6ac00e27525f760d3a4/packages/main/src/plugin/kubernetes-client.ts#L466
https://github.com/containers/podman-desktop/blob/49239338973f18887022b6ac00e27525f760d3a4/packages/main/src/plugin/kubernetes-client.ts#L474
https://github.com/containers/podman-desktop/blob/49239338973f18887022b6ac00e27525f760d3a4/packages/main/src/plugin/kubernetes-client.ts#L488-L490
Probable problem
In the initialisation of podman-desktop we have a strict await on the kubernetes initialization
https://github.com/containers/podman-desktop/blob/9e77a7f6d3be727f25781aafcf069e4aea18e106/packages/main/src/plugin/index.ts#L493
which could be blocking if something is taking forever.
Narrowing the problem
Maybe there is something in the kubeconfig that makes podman-desktop or the kubernetes client freeze. Could you try to remove all the configurations (an empty config)
If this is working, do the following
Minimal reproduction
If you have node 20 installed, you may try the following
execute the following
I just renamed the .kube/config file and the podman proceed farther asking to install podman. whit this file renamed the system seems to work fine. I went and disable the plugins I don’t need but when I rename the file back the podman desktop hangs again: Checking for update Starting http server to handle webviews on port 44000 System ready. Loading extensions… Activating extension (podman-desktop.compose) with max activation time of 20 seconds Fetched https://registry.podman-desktop.io/api/extensions.json in 161.42280000000005ms Activating extension (podman-desktop.compose) ended in 122 milliseconds Activating extension (podman-desktop.docker) with max activation time of 20 seconds Activating extension (podman-desktop.docker) ended in 4 milliseconds Extension (podman-desktop.kind) not activated because it is disabled Extension (podman-desktop.kube-context) not activated because it is disabled Extension (podman-desktop.kubectl-cli) not activated because it is disabled Extension (podman-desktop.lima) not activated because it is disabled Activating extension (podman-desktop.podman) with max activation time of 20 seconds