-
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
Rootless Containers: no such file or directory: OCI not found #11197
Comments
Missing PID cgroup controller, possibly? @giuseppe Haven't we dealt with this one recently? |
Can you install the |
Hi All, I used crun, that made no diffrence (the error message changed slighly), after a bit of redhat support and some digging i found out that our systemd user sessions where not starting with the error: Aug 11 11:34:05 svd-log-01 systemd[1893]: PAM failed: Conversation error It turned out to be this specific entry in the pam that was causing it: session required pam_lastlog.so showfailed in system-auth This being disabled, the user sessions now work and the podman commands run as expected. We've had this config in our system-auth for years, so i'm a bit suprised about this. I also had no idea that podman required systemd user sessions (but it makes sense) The actual issue is a bit bizarre and i've raised a redhat support request on it and will get them to create a bug. Thanks Joe. |
Hm. That's actually a very strange error message for a missing systemd user session - I would have expected us to blow up trying to talk to the systemd dbus session in order to create a cgroup (which would also be a bad error message, but would provide a lot more breadcrumbs than this one). |
As Requested cat /proc/self/cgroup |
ah i missed reading #11197 (comment) , but indeed error message does not seems related at all 😕 . @Hyper200 is this resolved for you by making sure user sessions are up. @mheon @giuseppe I am not sure but should we check at podman layer if there are no sessions available and end early with more intuitive error message ? |
@flouthoc no worries - Sorry i though that infomation was helpful for you in another way! I would welcome a better error message (having had to figure out on my own that it was related) |
I think the issue on RHEL could be: https://bugzilla.redhat.com/show_bug.cgi?id=1897579 |
I had the same issue. How do you actually disable the system-auth pam issue? |
@jeremy-chua You need to reset systemd session if systemd is being used please check resolution steps here https://github.com/containers/podman/blob/main/troubleshooting.md#30-podman-run-fails-with-erro0000-xdg_runtime_dir-directory-runuser0-is-not-owned-by-the-current-user-or-error-error-creating-tmpdir-mkdir-runuser1000-permission-denied |
I think its a separate error. [admin@one-system one-system]$ loginctl enable-linger admin |
@jeremy-chua I think this is dup of #11632 |
i reloaded systemd deamon and it worked. sudo systemctl daemon-reload |
@jeremy-chua Would you like to add this to resolution steps in troubleshooting docs ? |
my bad, it doesn't seem to work after i restarted the OS. |
Any luck further on this @jeremy-chua? |
My bad for not responding as i shifted to FCOS. which comes with podman/docker and kubermetes. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Steps to reproduce the issue:
Install RHEL 8.4
Install Podman
reboot
podman create docker.io/library/registry:2
podman start container_name
Describe the results you received:
Error: unable to start container "2820a02215ef24c41d2eee82167c1a911cbfd44e6b8d9649295dcdacf4639d0b": container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: process_linux.go:508: setting cgroup config for procHooks process caused: open /sys/fs/cgroup/user.slice/user-1007.slice/[email protected]/user.slice/libpod-2820a02215ef24c41d2eee82167c1a911cbfd44e6b8d9649295dcdacf4639d0b.scope/pids.max: no such file or directory: OCI runtime attempted to invoke a command that was not found
Describe the results you expected:
Expected the system to start the container
Additional information you deem important (e.g. issue happens only occasionally):
Allways - On around 4 identical machines
Output of
podman version
:Output of
podman info --debug
: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? (https://github.com/containers/podman/blob/master/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
Virtual machine, loginctl enable-linger for user enabled
The text was updated successfully, but these errors were encountered: