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

Too many open files (os error 24) #5908

Open
ionTea opened this issue Jan 9, 2025 · 2 comments
Open

Too many open files (os error 24) #5908

ionTea opened this issue Jan 9, 2025 · 2 comments
Labels
bug Something isn't working 🦀gitoxide🦀 `gitoxide` might help here

Comments

@ionTea
Copy link

ionTea commented Jan 9, 2025

Version

0.14.4

Operating System

macOS

Distribution Method

dmg (Apple Silicon)

Describe the issue

I'm unable to fetch from upstream, gitbutler errors with two errors:

Error: Too many open files (os error 24)

and

Error: Object not found - no match for id (5d200068ed30a0af199fa20491f3e9ba2fcb158); class=Odb (9)
Screenshot 2025-01-09 at 09 38 33 Screenshot 2025-01-09 at 09 38 03 Screenshot 2025-01-09 at 09 30 34 Screenshot 2025-01-09 at 09 29 54

How to reproduce

No response

Expected behavior

No response

Relevant log output

No response

@ionTea ionTea added the bug Something isn't working label Jan 9, 2025
@ionTea
Copy link
Author

ionTea commented Jan 9, 2025

I fixed it by running git gc 🤷

@Byron Byron added the 🦀gitoxide🦀 `gitoxide` might help here label Jan 9, 2025
@Byron
Copy link
Collaborator

Byron commented Jan 9, 2025

Thanks a lot for reporting, and I am glad git gc fixed it!

When traversing Git commit graphs and reading objects, pack files will have to be mapped which takes away file handles. git2 will fail, but gitoxide should eventually be able to unmap less recently used pack files to free file handles, and have a better chance of working around that problem.

There are also no-win scenarios where the file handle limit is too low to get the work done, and maybe there could also be a way to warn about it if the issue arises, or at least point out possible solutions more clearly in the user interface as certain classes of errors are hit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 🦀gitoxide🦀 `gitoxide` might help here
Projects
None yet
Development

No branches or pull requests

2 participants