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 machine won't start due to corrupted config file #16550
Comments
@n1hility PTAL |
It would help if you could describe how you got into that situation? |
Unfortunately i can't. |
@gravityFlower Thanks for the report. The presence of NULLs in the file indicates an incomplete NTFS write. When NTFS allocates space for a new/overriten file it's a multi-step operation that first assigns the space, and later writes the data. If the data is not written reads on the file are zero-filled, leading to the NULLs you observe. While these steps are usually immediate, there is a slight delay from write caching/buffer, and a power failure, or hard reboot in between them would lead to this observed corruption. We can improve this with a different approach which is atomic. |
I just got the same error, how do I get out of it? I did a reinstall, didn't help |
You can do a podman machine rm command to get rid of the state and podman machine init to recreate |
Hmm, sorry, but
So does
|
same here in my Windows 11, can't resolve the issue in this way |
Look into the folder |
thanks @gravityFlower ! After above steps can init a new podman machine! But there are additional issues in my case, can't build connection to the machine when pull image. I deleted the related .ssh file and execute "podman system connection remove *", all works now~ |
Thanks @gravityFlower! I tried something else! You can just recreate the file podman-machine-default.json and put the same parameters on it with this template : { You can find the port by searching it with the command "podman system connection list". And then you can start again your machine without creating a new one! |
I had the same issue: Today, the |
Full cleanup procedure:
Now you can initialize a new Podman machine. I could reproduce the issue on a Windows 10 libvirt instance:
|
@n1hility Thank you! That's exactly that. I could reproduce the issue today again after an unclean shutdown (press the power button on the laptop while the Windows VM is running). |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
This problem concerns Podman on Windows. I have seen this problem occur on other occations with other programs on Windows. The content of the original (or changed) config file, every char is replaced with the value '\x00'.
Steps to reproduce the issue:
unknown
Describe the results you received:
Due to the corrupted configuration file the podman wsl container won't start.
Describe the results you expected:
Detect that the config file is corrupted, check for existing wsl containers and ask for permission to recreate the config for the machine.
Or maybe create backups of the config file and load the last one.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info
:Same as above.
Package info (e.g. output of
rpm -q podman
orapt list podman
orbrew info podman
):Installer used was podman-4.3.0-setup.exe
Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
No
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: