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

Podman Desktop 1.8.0 is broken since updating to Podman 5.0.0 via winget #516

Closed
kachick opened this issue Mar 24, 2024 · 9 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@kachick
Copy link
Owner

kachick commented Mar 24, 2024

Cannot recreate podman machines

Error: Command execution failed with exit code 125 Command execution failed with exit code 125 Error: unable to load machine config file: "json: cannot unmarshal string into Go struct field MachineConfig.ImagePath of type define.VMFile"

containers/podman#22144
microsoft/winget-pkgs#145266

@kachick kachick added the bug Something isn't working label Mar 24, 2024
@kachick kachick self-assigned this Mar 24, 2024
@kachick kachick added this to 🛸 Mar 24, 2024
@github-project-automation github-project-automation bot moved this to 😩 in 🛸 Mar 24, 2024
@kachick kachick changed the title Podman Desktop is broken since updating to 5.0.0 via winget Podman Desktop is broken since updating to Podman 5.0.0 via winget Mar 24, 2024
@kachick kachick changed the title Podman Desktop is broken since updating to Podman 5.0.0 via winget Podman Desktop 1.8.0 is broken since updating to Podman 5.0.0 via winget Mar 24, 2024
@kachick kachick moved this from 😩 to 💪 in 🛸 Mar 24, 2024
@kachick
Copy link
Owner Author

kachick commented Mar 24, 2024

uninstall and re-install didn't fix 🤔

@kachick
Copy link
Owner Author

kachick commented Mar 24, 2024

Similar podman-desktop/podman-desktop#6495

@kachick
Copy link
Owner Author

kachick commented Mar 24, 2024

Same error even after wsl --unregister podman-machine-default

@kachick
Copy link
Owner Author

kachick commented Mar 24, 2024

containers/podman#22144 (comment)

cd ${Env:USERPROFILE}\.config\containers\podman\machine\wsl\

Remove-Item .\podman-machine-*

After this, I can create podman-machine

@github-project-automation github-project-automation bot moved this from 💪 to 🎉 in 🛸 Mar 24, 2024
@alisonatwork
Copy link

Was it sufficient to delete the machines using WSL and then just remove the matching JSON files from .config, or was there some other dangling data that needed to be cleaned?

@kachick
Copy link
Owner Author

kachick commented Mar 24, 2024

For now and for me, removing the json and lock file looks like the crucial part. Now it seems to work.

But first I uninstalled podman, podman desktop and podman-machine. I don't know which step I could skip 🤔.

@alisonatwork
Copy link

Thanks, I'll try a quick experiment on my home computer right now before getting into work tomorrow, where this would cause a much bigger headache...

@kachick
Copy link
Owner Author

kachick commented Mar 24, 2024

Your research and report containers/podman#22144 (comment) helped me a lot, thank you!

@xaocon
Copy link

xaocon commented Apr 2, 2024

Was it sufficient to delete the machines using WSL and then just remove the matching JSON files from .config, or was there some other dangling data that needed to be cleaned?

I ran into the same problem and deleting the config files and wsl machine was enough. I did it while podman desktop was not running if that helps any.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

3 participants