-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 errors after unclean shutdown #9824
Comments
As that got too annoying I manually cleaned up my containers storage: a few big bad One of them was a pod according to error on podman rm (as expected), so podman pod rm for that one and it worked. Also some containers refused to be removed because supposedly running, so I had to pass force -- I don't think they were still running after a hard reset...
Now everything's been cleaned up commands work as normal again. |
Thanks for reaching out and providing all the date, @martinetd. @mheon PTAL. Are the containers in the wrong state? |
From his later description, yes. It looks like Podman failed to detect a restart and clean the state (usually, we get the opposite of this, with systemd or others cleaning out the state even when a restart did not occur). Best guess: Podman is using |
@martinetd If your /tmp is, indeed, not a tmpfs, you can verify what temporary files directory we are using with
|
@mheon thanks - I have the same tmpdir (/run/usr/../libpod/tmp), which is a tmpfs. So if I understand what you said, podman is supposed to detect that this directory is empty immediately after a restart and clean up things in home dir/persistent data for futher commands? Would it be possible that the first command I ran after reboot populated that directory without checking if it was empty, and following commands then couldn't follow up on cleanup? Unfortunately I don't remember what that would have been and can't think of a way to check now... Probably an interactive |
Shouldn't be possible for us to populate without checking. All Podman commands begin by performing a check of the directory (really, a single file in said directory, named |
hm; that alive file is there alright now; looking at its mtime it was likely created just after reboot a few days ago, so I'll take your guess on that db update somehow failed. I'm sure I'll fail to notice the AC isn't plugged in correctly again and will try to remember to take more traces on the first podman command I run after that next time.. Don't think there's much we can do until then. |
Just had another unexpected shutdown, but this time podman cleaned up properly on first execution with Anyway, I don't think this will be possible to reproduce in a timely manner -- it could also have been fixed by an update in the past ten days. I'll close for now and re-open if it ever happens again, hopefully I'll think of taking traces when it does! |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Had an abrupt shutdown with containers running yesterday (rootless), now trying to do things like list containers fails quite verbosely:
Steps to reproduce the issue:
run containers with podman run? I guess. I had a few pods running too.
unplug PC, reboot
podman ps, podman kill -a all fail.
Describe the results you received:
plenty of errors, expected output not shown even if I run new containers (starting new containers works fine)
Describe the results you expected:
plenty of errors once with automatic cleanup of no longer existing containers perhaps? followed by normal output, then back to normal with no error.
Output of
podman version
:Output of
podman info --debug
:Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
The text was updated successfully, but these errors were encountered: