git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Error message: unable to open object pack directory: .git/objects/pack: Too many open files

From
Duy Nguyen <pclouds@gmail.com>
Date
Nov 13, 2013, 02:48 UTC
Message-ID
<CACsJy8AHjAgSFzZ2R2Nup=GcuQJdaedbGXhRpcCT6HuaaLUtaQ@mail.gmail.com>
In-Reply-To
<CAJc7Lbqaas0Czdvcfn8+iceoyxaVSHOaV9jCJsy4mWH+AbV41Q@mail.gmail.com>
On Tue, Nov 12, 2013 at 9:38 PM, Лежанкин Иван <abyss.7@gmail.com> wrote:
Show 8 quoted lines
> I use linux.
>
> I can't publish repo - it's proprietary, it weights ~300M unpacked,
> and it uses references ~3Gb.
> Error message doesn't contain "remote:" prefix.
> The majority of opened files have name like:
> objects/pack/pack-<hash>.[ pack | idx ]
> They all are from referenced repo.

There's a fix related to too many open packs, 88d0db5 (sha1_file: introduce close_one_pack() to close packs on fd pressure - 2013-08-01) but it's only available in v1.5.0-rc0 or rc1. Could you try that version?

Show 17 quoted lines
>
> I have disabled gc in the referenced repo - to prevent all local repos
> from breaking. May this be the cause of problem?
>
> On 12 November 2013 18:19, Duy Nguyen <pclouds@gmail.com> wrote:
>> On Tue, Nov 12, 2013 at 3:02 PM, Лежанкин Иван <abyss.7@gmail.com> wrote:
>>> I get this error message every time I want to do a `git push`.
>>> git version: 1.8.4.2
>>>
>>> Is it a known issue? Do you need additional info to investigate it?
>>
>> What OS do you use? If the repository can be published, please do.
>> Compress the whole .git directory, don't push or anything. Does the
>> error message begin with "remote: "? If not you could try strace and
>> at least identify what files are opened.
>> --
>> Duy
-- 
Duy
Previous: Лежанкин ИванNext: Bryan Turner
Message 6 of 9 in “Error message: unable to open object pack directory: .git/objects/pack: Too many open files”
  1. Лежанкин ИванNov 12, 2013
  2. Konstantin KhomoutovNov 12, 2013
  3. Лежанкин ИванNov 12, 2013
  4. Duy NguyenNov 12, 2013
  5. Лежанкин ИванNov 12, 2013
  6. Duy NguyenNov 13, 2013
  7. Bryan TurnerNov 13, 2013
  8. Duy NguyenNov 13, 2013
  9. Лежанкин ИванNov 13, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.