-
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: permission denied when trying to write to /run/user #5049
Comments
Looks like a regression, but it does not solve the problem. |
I fixed it: Damn you, cgroupfs v2! doesn't work
works
Should we add this to https://github.com/containers/libpod/blob/master/troubleshooting.md ? |
How did cgroupv2 get in the way? |
su tobwen would either not set the environment of the user or the environment would stay the same as the caller. I would figure the former. So since the environ was not set, then podman is blowing up since it is thinking that the container is running as root? |
Before switching to cgroupv2, I didn't need to use
No, I think the latter, since:
But the DBUS (I think it was DBUS) env variables are missing. Those get populated only with linger + su -l.
Exactly. So two things are needed when not login directly to the user:
Shall I add it to troubleshooting.md via PR? |
Loginctl I believe is already mentioned; if it's not, it needs to be. |
Linger is covered in the troubleshooting @tobwen if you want to add more detail, please open a PR. |
Hi, I cannot find anything in the troubleshooting guide mentioned above for solving this problem. (Error: mkdir /run/user/1001/containers: permission denied). I'm having the same problem on Ubuntu 18.04. What is the correct solution? |
I also do not understand, I am seeing the same behavior on Fedora 34 Server when I am signed in as a regular user with uid/gid of 1001:
I could workaround it by creating |
Did you copy a Podman configuration from another machine? Alternatively, is it possible that the XDG_RUNTIME_DIR environment variable is set incorrectly (to another user's UID)? |
I did reinstall of F33 and then upgrade to F34. However I carried my home directory from the old installation over, so yes, there could be some leftovers in |
Unfortunately we don't provide an easy way of migrating from one UID to another - the best way is probably to |
Quick and dirty workaround, for someone else landing here: |
Would setup the proper shell environment also. |
@axelsimon wrote:
If you can not delete the files because of permission issues and can not use
|
Simply running |
/kind bug
Description
When running podman from an unprivileged user (
uid=1001(tobwen) gid=1001(tobwen) groups=1001(tobwen)
), podman tried to write to /run/user, where the user doesn't have permission on Debian.Steps to reproduce the issue:
Describe the results you received:
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Additional environment details (AWS, VirtualBox, physical, etc.):
Debian 10 on Virtual Box 6 on Windows 10 (all 64-bit)
The text was updated successfully, but these errors were encountered: