question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

too many open files

See original GitHub issue

I’m worried that Scalar is causing me to not be running git gc enough. Is there something I can do to check?

The symptom I’m seeing, is after a while, I get this failure when git pushing:

$ git push
...
ref <sha>:: open <path>git/objects/pack/pack-<sha>.pack: too many open files

Then if I run

$ git gc
Enumerating objects: 1395635, done.
Counting objects: 100% (1395635/1395635), done.
Delta compression using up to 12 threads
Compressing objects: 100% (325900/325900), done.
Writing objects: 100% (1395635/1395635), done.
Total 1395635 (delta 938477), reused 1390778 (delta 933690), pack-reused 0
Checking connectivity: 1395929, done.

It starts to work again.

I do see scalar running in my repo:

$ scalar list
/Users/paul.tarjan/robinhood/rh-staging
/Users/paul.tarjan/robinhood/rh

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
ptarjancommented, Jan 19, 2021

This just happened to me personally. Then by running:

$ git maintenance run --task=incremental-repack
Enumerating objects: 89559, done.
Counting objects: 100% (89559/89559), done.
Delta compression using up to 12 threads
Compressing objects: 100% (63722/63722), done.
Writing objects: 100% (89559/89559), done.
Total 89559 (delta 23834), reused 83651 (delta 17987), pack-reused 0

it resolved it.

I have:

$ scalar --version
scalar 20.10.178.7
$ git --version
git version 2.30.0
0reactions
ptarjancommented, May 26, 2021

Why did this close?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Solve the "Too Many Open Files" Error on Linux
If you've ever seen the "Too many files open" error message in a terminal window or found it in your system logs, it...
Read more >
Fixing the "Too many open files" Error in Linux
On Linux servers under heavy load, "too many open files" problems occur frequently. It denotes that a process is unable to open new...
Read more >
In Linux I got Too many open files issue
When the “Too Many Open Files” error message is written to the logs, it indicates that all available file handles for the process...
Read more >
How to Fix the 'Too Many Open Files' Error in Linux
It means that a process has opened too many files (file descriptors) and cannot open new ones. On Linux, the “max open file...
Read more >
Fixing the “Too many open files” Error in Linux
Fixing the “Too many open files” Error in Linux ; A process has three file descriptors open by default, denoted by 0 for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found