Skip to content
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

changed uid is not recorded. #11646

Closed
hboetes opened this issue Sep 19, 2021 · 2 comments
Closed

changed uid is not recorded. #11646

hboetes opened this issue Sep 19, 2021 · 2 comments
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@hboetes
Copy link

hboetes commented Sep 19, 2021

OS: fedora 35 amd64
podman version: 3.3.1

I just changed my uid from 1000 to 1026, so it matches with my other systems and rebooted 3 times for good measure.

I got an error saying tmp file /run/user/1000 could not be created. To find out what was being written to that folder I created it, with my permissions and ran the same command podman image build -f Containerfile -t localhost/mg-static again and got:

% find /run/user/1000/
/run/user/1000/
/run/user/1000/containers
/run/user/1000/containers/overlay-layers
/run/user/1000/containers/overlay-layers/mountpoints.json
/run/user/1000/containers/overlay-layers/mountpoints.lock
/run/user/1000/containers/overlay-locks
/run/user/1000/containers/overlay-containers
/run/user/1000/containers/overlay
/run/user/1000/containers/overlay/volatile-true
/run/user/1000/containers/overlay/native-diff()-true
/run/user/1000/containers/overlay/metacopy()-false
/run/user/1000/containers/overlay/overlay-true
/run/user/1000/libpod
/run/user/1000/libpod/tmp
/run/user/1000/libpod/tmp/alive
/run/user/1000/libpod/tmp/pause.pid
/run/user/1000/libpod/tmp/alive.lck
/run/user/1000/libpod/tmp/exits
/run/user/1000/libpod/tmp/events

Now /run/user/1026/containers/overlay/overlay-true does exist, so not everything is writing to the old uid.

I checked all config files and none of them contain 1000 as my uid. I ran the same command with strace and that also didn't show the user id. journalctl --user -xe also gave no results. It's also not in my env.

Something is wrong here, but I don't know what. I hope someone can try to reproduce the problem, which should be fairly straightforward.

@Luap99
Copy link
Member

Luap99 commented Sep 20, 2021

I don't think changing the uid is supported by podman, please see this issue #11377

@Luap99 Luap99 closed this as completed Sep 20, 2021
@hboetes
Copy link
Author

hboetes commented Sep 20, 2021

The solution is mentioned here: #11377 (comment)

% sudo rm -rf ~/.local/share/containers

@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 21, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

No branches or pull requests

2 participants