-
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 hanging on a lot of subccommands without logs #9228
Comments
After a bit of playing around with podman, I noticed that running those commands as root seems to work, |
Do you have the |
Yes, I have them installed. I took advantage of the description of the issue you mentioned and did an strace :
(line 2405 in the paste, the next lines are from me pressing ^C) |
I have tried to reproduce this on my deskop (which runs the same distro) and it works fine |
Does this hang? $ podman unshare cat /proc/self/uid_map |
Hi, sorry for the late answer, yes it does |
Well I have no idea what is going on. Have you tried to reboot this system, or have you tried this with a different account? |
Is there anything special about your homedir? IE NFS based? |
Yes, I have tried rebooting (multiples times even), I haven't tried using another user, will report back on that. I have a regular btrfs root partition with nothing special about my homedir |
Perhaps this has something to do with btrfs. @giuseppe Any ideas? |
it does run on another user. |
Does |
Something in your homedir setup is causing this to fail. |
I haven't done anything particular in my home that could be causing this to fail, in fact I didn't even have podman installed before I had this bug, I got podman pulled when installing toolbox. Is there a set of files / configs that are related to podman I could check ? |
I do not have have the buildah command accessible under neither of my users (test and infrandomness), yet pulling (and all the other subcommands) works under the test user, nor do I have the skopeo command |
Could you rm -rf ~/.config/containers ~/.local/share/containers And see if it still hangs. |
Also could you show the output of printenv in your user account that does not work, perhaps there is some setting in environment that is causing this to hang. |
I tried to remove ~/.config/containers and ~/.local/share/containers, it didn't help here's my env : https://susepaste.org/86410544 |
Vague theory: remove anything with |
|
Interesting. Does your user have a valid entry in |
|
Is newgidmap setuid or getcap? $ getcap /usr/bin/newgidmap @saschagrunert @vrothberg Any ideas? |
The error message points to gid. @InfRandomness can you also share |
Yes it means its is setuid (or has file caps) in this case it is setuid. Could you change the range to see if having duplicate ranges in the /etc/subuid is being rejected? |
Here are my new ranges :
I logged out and logged back in after changing those and the issue is still happening |
Uh, I did not test it on Leap for quite a while. I think we have to debug it within a VM if it's reproducible. |
I can test it out in a VM a bit later on |
Unfortunately I wasn't able to reproduce this |
I think I'm just gonna reinstall my system and see how it goes after |
I think this issue can be closed now ever since it is coming from something in my home folder and not the binary itself |
Thanks for the report and working with us, @InfRandomness ! |
I am coming back to you guys because, since an update of podman I got not so long ago, it appears I've got more information about the situation : "podman pull opensuse/tumbleweed" now stopped from hanging and prints : I have also tried "buildah --debug unshare", here's what I get :
The last two warnings looks interesting to me 🤔 |
as the logged in user do |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Podman looks like it hangs on my system when typing those commands :
podman auto-update
podman build
podman events
podman exec
podman images
podman import
podman info
podman inspect
podman load
podman login
podman logout
podman mount
podman pause
podman port
podman ps
podman pull
podman rmi
podman run
podman start
podman stats
podman top
podman unpause
podman unshare
podman version
podman wait
Steps to reproduce the issue:
(Haven't tried to reproduce this anywhere else)
Describe the results you received:
all those sub commands I mentioned hangs without printing logs inside in the journals
Describe the results you expected:
I expected everything to work correctly, I originally experienced this bug while manually trying to run "podman pull registry.opensuse.org/opensuse/toolbox:latest" and then I noticed that podman wasn't working fine at all
Additional information you deem important (e.g. issue happens only occasionally):
happens all the times, I have attempted a restart but this does not fix the issue.
I have checked if I had virtualization enabled in my BIOS (which I indeed have, I also am able to run virtual machines using virsh successfully)
Output of
podman version
:podman version hangs but here is the version reported by zypper info podman :
Output of
podman info --debug
:(hangs...)
Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
No
Additional environment details (AWS, VirtualBox, physical, etc.):
Physical (my laptop)
OS/Distro : Linux/openSUSE leap 15.2
Kernel : Linux inftop 5.3.18-lp152.60-default #1 SMP Tue Jan 12 23:10:31 UTC 2021 (9898712) x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: