-
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
failed to write to /proc/self/oom_score_adj: Permission denied #3024
Comments
Rootless? |
Not an SELinux issue: I'm seeing it on my Gentoo laptop, which (I know, I know!) does not have SELinux enabled. |
It's rootless. |
I tried on Fedora and it is allowed. |
It it works with --privileged then try without --privileged and try |
Same error for both options. |
Same here (i.e. |
I bet this is Conmon. We put an OOM adjust in there that isn't fatal if it
fails, but for some time it logged errors every time it did. I believe it's
since been changed to do so only with debug level logging.
…On Fri, Apr 26, 2019, 09:19 dac[73] ***@***.***> wrote:
Same error for both options.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3024 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB3AOCHFQQBJMJVN4ULDB6LPSL6MXANCNFSM4HIVPOHA>
.
|
@mheon, do you know when it has been changed? The podman v1.2.0 package in openSUSE is using conmon from CRI-O 1.14.0. |
I'm pretty sure @haircommander made the change in question, so I'll tag him in for that one |
this is conmon, I didn't know any podman was shipping with that updated of a CRI-O version. We expect this debug message, though I actually think conmon's log handling is weird at the moment. (note, the change I made just made this error non fatal) |
I feel like this should just silently happen tbh |
Looking forward to c/conmon kicking off :) @sysrich, I think the openSUSE could downgrade to an older conmon for podman to quick-fix the issue. |
@sysrich @vrothberg release 1.13.3 should not have this problem |
ah actually, we did fix this problem upstream, but haven't cut a new release on 1.14 with the updates yet. I will look into it, but for the time being I'd go back to 1.13.3 so users don't think rootless is failing |
My laptop updated cri-o this morning, 1.13.5 to 1.13.7, and the |
are we good to close this? |
yes--people will need to use containers/conmon 0.2.0 |
This was fixed for me with the last TW update. |
Problem returned in rootless :( Describe the results you received:
Output of
Output of
|
@tobwen what command were you executing when you saw this error? If you turn on debug logging you will still see it. |
Due to bugs with the local config, I have to use this commandline
When not using debug logging, I don't see it. But that's interesting:
This file seems to belong to the current use. Or does conmon try to read/write from within a namespace? |
It might be happening within a user namespace. Both of these are successful
|
Conmon is attempting to set this score on rootless which is not allowed.
|
I'm trying to get toolbox running in silverblue 31. It fails with:
Elsewhere, I saw a suggestion about running with:
|
@jasonbrooks that message is expected, it won't be printed without |
@haircommander Ah, so not related to my toolbox issue |
Update: This solved it for me: edit /usr/lib/systemd/system/[email protected] and remove the following line.
Reboot Source: https://bbs.archlinux.org/viewtopic.php?pid=2012166#p2012166 |
In case this helps determine the issue, I have attached two inspect outputs, one for run and one from the (failing) start. They aren't quite the same image, due to the start being created from the java api for Docker, but they are close. |
@bosd thank you for the fix, this worked for me, but this fix is not optimal, this makes user processes get oom killed with the same priority as if they were root processes , while they should be prioritized by my understanding. |
I have updated to Podman 4.6.2 and noticed the regression. The workaround from @bosd worked on my box - but not sure that's really optimal, as @MaximilianGaedig states in his comment |
I recently updated to podman 4.6.2 on fedora 38 and noticed this issue as well. |
MacOS with latest podman here. I remove provided line via podman machine ssh connection however after restart of the VM, this property of OOMScoreAdjust=100 appears to be there again and error expectedly repeats, is there any workaround in that case? Thank you |
UPD: rebooting via ssh sudo prevents overwrting this file, but problem still remains even without OOMScoreAdjust=100 |
4 years later? The old bug should be locked and a new bug should be opened 🙏 |
chmod: changing permissions of '/usr/lib/systemd/system/[email protected]': Read-only file system. Sudo doesn't work, how do we write this file to remove that property ? |
|
I fixed it below the link(#19930 (comment)). You can try it. |
This doesn't help me. |
I ran into the same issue on Fedora 38. Per a comment in #19930 I downgraded crun |
Was able to solve this by upgrading to Fedora v38.20230902.3.0 |
I have updated from Fedora Silverblue 38 to 39 and one of the first things I did was to check whether podman is still working. Nope! All rootless containers fail with
Since /usr is write protected in Fedora Silverblue I have copied [email protected]:
I can confirm that after a reboot rootless container start again. podman version 4.6.2 |
Since this thread comes up on Google I just want to add that this helped me with running Gitlab Runner in a rootless podman on CoreOS. Since /usr is write protected, I copied [email protected] to /etc/systemd/system, and removed that one line, rebooted and now Gitlab runner can run jobs again. Just two releases ago I did not have this issue, so it must be a very recent bug in CoreOS 38. |
@stemid appreciate that comment, I've not attempted this yet on my systems (which are centos9stream gitlab runners)... wondering if it would be better to consider the override mechanism within systemd. |
Yeah that is actually what I ended up doing, my comment was a bit premature. I ended up using the equivalent of systemctl edit [email protected] but since I deploy on CoreOS with Ignition that means I created the directory /etc/systemd/system/[email protected] with the file override.conf and just two lines;
|
Hi @stemid Here is my configuration. Fedora Linux 39 (Server Edition) crun version 1.11.2 Any advice? Thanks, |
Could this be due (also) to ACLs ? Specifically in my case, I had to set ZFS acltype=posix in order to NOT encounter issues while trying to spin up e.g. Mosquitto MQTT Container (otherwise I'd get mkdir - operation not permitted). See #11213. However, now that ACLs are enabled in ZFS, it became much slower. I tried to set xattr=sa to make it faster by storing extended attributes in the inode/dnode directly, but that didn't really help.
Then the hanging/freezing stopped and now I get this
I also tried the previous fixes, both in /etc/systemd/system/[email protected] and /etc/systemd/system/[email protected]/override.conf but it doesn't help. I have a much older version of Podman being on Debian Linux but still ...
Strangely it doesn't happen with all containers. I could get (again) podman-compose to bring down (destroy) & up (recreate) an instance of Home Assistant, while Mosquitto MQTT Container Image stubbornly refuses to work. |
Hi there,
|
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
When running rootless podman I'm getting
failed to write to /proc/self/oom_score_adj: Permission denied
error, but container runs after it.Steps to reproduce the issue:
podman run -it --rm anycontainer
Describe the results you received:
The container runs, but after I get an error message in the terminal
Describe the results you expected:
The container should start without error message.
Additional information you deem important (e.g. issue happens only occasionally):
Error message:
failed to write to /proc/self/oom_score_adj: Permission denied
Output of
podman version
:Output of
podman info --debug
:Additional environment details (AWS, VirtualBox, physical, etc.):
physical
The text was updated successfully, but these errors were encountered: