-
-
Notifications
You must be signed in to change notification settings - Fork 10k
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
"too many open files" sometimes when installing a formula on Linux (same as #9120) #19177
Comments
Thanks for reopening. #19167 makes me think this may not be Linux or macOS-specific.
Just to confirm: you haven't personally changed the |
I haven't... it seems like Ubuntu has very low defaults for some reason
…On Fri, Jan 31, 2025, 9:42 AM Mike McQuaid ***@***.***> wrote:
Thanks for reopening. #19167
<#19167> makes me think this may
not be Linux or macOS-specific.
This is a standard install of Ubuntu 24.04, nothing spooky.
Just to confirm: you haven't personally changed the ulimit here as far as
you're aware?
—
Reply to this email directly, view it on GitHub
<#19177 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAALPHZ3WJJP2EKB2ULHIZT2NODU5AVCNFSM6AAAAABWGHZPZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMRXGUYTKMZZGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
We run CI on Ubuntu 22.04 which should have similar limits. macOS default is even lower at 256. macOS users usually hit the lock file error message early on rather than failing elsewhere: brew/Library/Homebrew/lock_file.rb Lines 31 to 33 in 4372fcf
From glance, 1024 per process seems enough for most formulae. In case of The previous issue analysis would be insufficient here. Even if you double the number for bottle files, it won't be near limit. This is going to be difficult to analyze without further information. If you can get the error output with Really need to figure out what is creating all the open file descriptors. If it is a leak, then looping on |
I admit I haven't looked at the CI setup, but is it running using docker? For some reason, the ubuntu:22.04 docker image has a quite high
...however, installing an actual Ubuntu 22.04 in Gnome Boxes shows 1024: Here is a messy Dockerfile which reliably reproduces the issue: (just run
|
brew doctor
outputVerification
brew doctor
output" above saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
twice and am still able to reproduce my issue.brew install wget
. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.brew config
outputWhat were you trying to do (and why)?
I was trying to install the
qemu
formula.What happened (include all command output)?
Homebrew downloaded quite a few bottles, and started installing them, but failed along the way with "too many open files".
Now, it says all over this page that my issue will be immediately closed if I can't reproduce it, so maybe you're going to close this, since the issue usually resolves by re-running the same
brew install
command. Sometimes it gets further, then still fails, and a third try is necessary.Note that is a duplicate of #9120, but I can't reopen that. It was closed saying only 1 person has ever complained, so let me add my voice as a complainant. This doesn't happen every time, but it does happen frequently.
Following a comment there, I can see that my ulimit is low:
This is a standard install of Ubuntu 24.04, nothing spooky.
What did you expect to happen?
The install process should have completed.
Step-by-step reproduction instructions (by running
brew
commands)1. `brew install qemu`
The text was updated successfully, but these errors were encountered: