-
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 set RLIMITS_NOFILE: setting new RLIMITS_NOFILE: invalid argument #21589
Comments
What are your limits ( Most likely this is the change which is causing that for you 5e0471b, however it is not clear why that would fail for you and not others. |
❯ ulimit -S -n
256
❯ ulimit -H -n
unlimited 5e0471b is a possibility since 4.7.2 is the most recent release where I don't experience this issue. Maybe #16106 (comment) will do the trick? |
This will change nothing here. So your hard limit is unlimited but we cannot set he soft limit to unlimited that seem rather odd. This apple bug sounds relevant: https://forums.developer.apple.com/forums/thread/735798 @baude @ashley-cui @jakecorrenti Did you ever saw such problems on your macs? |
I have not run into this before on my side |
( face palm ) My need for a container arises from a different macOS issue, where I can't develop with the latest Bun release because of a There are some other potential workarounds, but to save myself from having to reflect any further on the house of cards that comprises our entire digital infrastructure, for now I'll just sweep this under the rug and roll with v4.7.2. 🤝
I will try this later with a newer release and report back. 🙏 |
So reading more from the bug it seems apple does not allow setting the limit to greater than OPEN_MAX for some stupid reason even though the limit says it is unlimited we cannot set it to more than OPEN_MAX. So just need to figure out what value OPEN_MAX has on a mac and then not try to set something higher than that in the linked podman code. |
When I made the commit, think I was on a build of MacOS 13. A cursory search of MacOS 10 leads me to believe it's EOL. I'm not sure if it's worth patching podman, because EOL makes me think it isn't getting security patches. @theurgi I don't think bun takes long to compile. If you just need bun, have you tried installing it from source? Might get lucky and have a working bun binary. Can't say for sure what to expect. |
Perhaps this is a Go bug in this case? Here is a comment about the issue in the codebase: https://github.com/golang/go/blob/1c9c9c8412f7d650a543c31478a82b9d61d1dd14/src/syscall/rlimit_darwin.go#L11C1-L12C54 |
A friendly reminder that this issue had no activity for 30 days. |
Is this still an issue for you? |
It is. I tried upgrading to Podman v5.0.1 but still encounter the same error. Updating the I suspect the issue is related to macOS v10 and I'm in the process of migrating to Linux. Feel free to close this issue if it's open only for my sake. Thanks for your help. |
This is an issue for me as well; and I have the same setup as @theurgi |
This is an issue for me as well; and I have the same setup as @theurgi MacOS Catalina 10.15.7 |
Then update to a newer version, Catalina has been EOL for almost two years now and podman machine since 5.0 doesn't support it anyway. #22121 |
MacBook-Pro:~ mymac$ podman machine init MacBook-Pro:~ mymac$ podman info Cannot connect to Podman. Please verify your connection to the Linux system using macOS Mojave |
Same here... Mac OS 10.13.6 |
Also experiencing this issue. I know Catalina is EOL, but the hardware works. Is the the only fix for us to throw out the hardware and buy new, not use Podman, or wipe the machine and not use macOS? OS:darwin/amd64 |
Issue Description
Every
podman
command's output includes:I was not experiencing this before upgrading to 4.9.2 from ~4.7
Steps to reproduce the issue
Steps to reproduce the issue
podman machine init
or anypodman [options] [command]
Failed to set RLIMITS_NOFILE: setting new RLIMITS_NOFILE: invalid argument
messageDescribe the results you received
.
Describe the results you expected
.
podman info output
Podman in a container
Yes
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: