index file open failed: Too many open files

115 views
Skip to first unread message

Anjan Tummalapalli

unread,
Feb 20, 2017, 8:35:24 PM2/20/17
to Repo and Gerrit Discussion
Hi Team,

It seems one of my projects in Gerrit instance got corrupted. Here are my instance details

Gerrit Version: V2.11
Git Version: 1.7.1

I tried "git gc --prune=now"

error: packfile ./objects/pack/pack-6cbafe4268407988e30a6905b481c78b027c76e3.pack cannot be accessed
error: refs/changes/29/59129/1 does not point to a valid object!
error: packfile ./objects/pack/pack-d5f2ae222f90e5d754fa2ea581e62aed4093b8d2.pack cannot be accessed
error: refs/changes/29/59329/1 does not point to a valid object!
error: packfile ./objects/pack/pack-39261b25a64134496c508e1ef32f7f8f98bdd8e8.pack cannot be accessed
error: refs/changes/29/59329/4 does not point to a valid object!
error: packfile ./objects/pack/pack-f98a5da576563ace59250a16fb18268b56771d77.pack cannot be accessed
error: refs/changes/29/59329/6 does not point to a valid object!
error: packfile ./objects/pack/pack-ded0538dc242f648703eb2cece9dd79e8ebdd6b0.pack cannot be accessed
error: refs/changes/29/59329/9 does not point to a valid object!
error: packfile ./objects/pack/pack-e8e9cd64ffc1b05b05d88f2a53d4de1aeeeae3ce.pack cannot be accessed
error: refs/changes/29/59429/1 does not point to a valid object!
...
...
(truncated many errors here due to big size. Also pointing to every branch in refs/heads)
fatal: object fcee0cdfdd31f60d6f9290be3fd0d0b127eb070a is corrupted
error: failed to run pack-refs

Tried "git fsck"
fatal: index file open failed: Too many open files

How i identified there is some issue with repo?
clone time got slow than any other project from Gerrit.

Can someone please let me know steps to get rid out of this error. This is my production instance.

Best Regards
Anjan

David Pursehouse

unread,
Feb 20, 2017, 11:24:16 PM2/20/17
to Anjan Tummalapalli, Repo and Gerrit Discussion
Have you checked what the open file limit is on your system, and tried to increase it?

 
How i identified there is some issue with repo?
clone time got slow than any other project from Gerrit.

Can someone please let me know steps to get rid out of this error. This is my production instance.

Best Regards
Anjan

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Anjan Tummalapalli

unread,
Feb 20, 2017, 11:45:02 PM2/20/17
to Repo and Gerrit Discussion, anjan.tum...@gmail.com
Hi David,

Thanks for quick response.

Initially there is no flag set for limit of open files. To solve this issue, i have enabled below flag

core.packedGitOpenFiles = 512

But no luck.!!

Best Regards,
Anjan

David Pursehouse

unread,
Feb 21, 2017, 2:09:38 AM2/21/17
to Anjan Tummalapalli, Repo and Gerrit Discussion
On Tue, Feb 21, 2017 at 1:45 PM Anjan Tummalapalli <anjan.tum...@gmail.com> wrote:
Hi David,

Thanks for quick response.

Initially there is no flag set for limit of open files. To solve this issue, i have enabled below flag

core.packedGitOpenFiles = 512


I meant a system limit on open files.  Check for example with `ulimit -a` or whatever is the equivalent on your system.

Anjan Tummalapalli

unread,
Feb 21, 2017, 2:16:26 AM2/21/17
to David Pursehouse, Repo and Gerrit Discussion
System limit is 1024 for open files.


More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss+unsubscribe@googlegroups.com.

David Pursehouse

unread,
Feb 21, 2017, 2:50:25 AM2/21/17
to Anjan Tummalapalli, Repo and Gerrit Discussion
On Tue, Feb 21, 2017 at 4:16 PM Anjan Tummalapalli <anjan.tum...@gmail.com> wrote:
System limit is 1024 for open files.


That's quite low.  On my macbook it's 4864.

Anjan Tummalapalli

unread,
Feb 21, 2017, 2:53:22 AM2/21/17
to David Pursehouse, Repo and Gerrit Discussion
Thanks David, will try to modify limit accordingly and verify the issue.

Will get back to you with the status.

Best Regards,
Anjan


More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages