-
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 rm (--force) does not work anymore ("container state improper"/"invalid argument" when unmounting) and start neither #19913
Comments
Did you try to remove them with |
the nuclear option might be |
Since yesterday I have been experiencing similar issues (couldn't delete or start containers). I am only using 2 containers, After some googling, yesterday I solved the issues by running Today (after rebooting) the same issue occurred. I haven't done the auto relabeling yet but I saw that the podman service is not running. I started it again and it stopped on its own a few seconds after it started.
|
This issue is not similar ,please open a different issue. or discussion |
Manually checking the dir
Uhm I do like to retain container volumes 👀 |
run |
I ran |
Ahhh you probably meant This worked and Thaat works, thanks a lot! Anyway, I assume this should have never happened, also that like three commands that usually help did not help is bad IMHO: Not a good experience, whatever went wrong here… |
Damn, the issue has happened again. I again have this crazy behavior and I have no idea what caused this.
Actually only Redis and the DB container were affected by the issue. |
As you saw I executed the commands, though the container state was still “improper” afterwards. Anyway, after rebooting I executed I'll see whether it works later maybe. |
Okay so after a reboot (which also starts/tries to start all containers I have to say) it first seemed to work (workaround worked for removing redis worked, but failed for the DB (MariaDB) container again due to the directory not being empty. In the end I could "solve" the issue by deleting the directory it mentions respectively just renaming it (to have a backup, just in case), then the container could be removed. Anyway, this workaround just got even harder and I have no clue what the root case is. |
Aaand had it again. Could it be related to increased disk I/P (have stuff running in my Nextcloud now) or maybe DB connections? (I frequently have DB timeout issues like these). But this thing is new here… Could fix it again, but this is annoying. Frustrated I asked ChatGPT to automate this and it also gave me more hints to check stuff: It seems like you're facing issues with removing containers in Podman due to "container state improper" errors. This can be a frustrating problem, but let's try to address it. First, it's important to note that these issues might be specific to your environment or the specific containers you're running. However, there are some general troubleshooting steps you can take:
Remember that forcefully removing containers can lead to data loss, so make sure you understand the consequences before proceeding. Edit: Just saw now BTW ChatGPT titled the topic/conversation as being „Covid-19 Vaccine Priority List” lol what… 🤣 When asked again it also gave me a workaround shell script to automate the manual unshare etc. steps. While cumbersome, I may try this the next time this happens and report back whether it works. BTW checked the disk space ( |
Updated https://gist.github.com/rugk/aab9539f689962ed8ff78ec5b5c94918 with script that works now. Anyway, how does this happen in the first place and how can I prevent it? |
Please update to 4.7 and see if you can reproduce there. |
A friendly reminder that this issue had no activity for 30 days. |
We believe this is fixed in current version. |
Issue Description
Describe the bug
Somehow I get the error:
…when trying to remove containers.
Steps to reproduce the issue
When trying to start the container I get this error then:
Then there are dependency errors depending on the mentioned containers to start.
The thing is I see nothing of that running?
Also the container that is said to use the name, is not there?
I can remove the pod, but it does not help:
Describe the results you received
I cannot stop or start the containers.
Describe the results you expected
I should somehow be able to force/fix that. I have no idea what is "improper" nor how to fix it.
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes kinda
Additional environment details
Additional information
Docker-compose v'3.7' – exact same YAML started before without any problems.
I tested the echo example here and it did work, I have no idea what's wrong.
Cross-posted as containers/podman-compose#767 and coreos/fedora-coreos-tracker#1572
The text was updated successfully, but these errors were encountered: