threads / discuss / 35323

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

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

## tl;dr

9 messages between Nov 12, 2013 and Nov 13, 2013.

replies: 8people: 4as markdown or json

Konstantin Khomoutov· Nov 12, 2013, 09:34 UTC · re: Лежанкин Иван · lore

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

On Tue, 12 Nov 2013 12:02:38 +0400 Лежанкин Иван <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 does ulimit -n tells to you when you run it before executing `git push`?

Лежанкин Иван· Nov 12, 2013, 09:37 UTC · re: Konstantin Khomoutov · lore

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

1024

On 12 November 2013 13:34, Konstantin Khomoutov <flatworm@users.sourceforge.net> wrote:

Show 11 quoted lines
> On Tue, 12 Nov 2013 12:02:38 +0400
> Лежанкин Иван  <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 does
> ulimit -n
> tells to you when you run it before executing `git push`?
Duy Nguyen· Nov 12, 2013, 14:19 UTC · re: Лежанкин Иван · lore

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

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
Лежанкин Иван· Nov 12, 2013, 14:38 UTC · re: Duy Nguyen · lore

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

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.

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:
Show 12 quoted lines
> 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 Nguyen· Nov 13, 2013, 02:48 UTC · re: Лежанкин Иван · lore

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

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
Bryan Turner· Nov 13, 2013, 03:04 UTC · re: Duy Nguyen · lore

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

On 13 November 2013 13:48, Duy Nguyen <pclouds@gmail.com> wrote:
Show 14 quoted lines
> On Tue, Nov 12, 2013 at 9:38 PM, Лежанкин Иван <abyss.7@gmail.com> wrote:
>> 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?
I believe you mean 1.8.5-rc0 or 1.8.5-rc1, is that correct?
Show 27 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
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
Duy Nguyen· Nov 13, 2013, 03:32 UTC · re: Bryan Turner · lore

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

On Wed, Nov 13, 2013 at 10:04 AM, Bryan Turner <bturner@atlassian.com> wrote:
>> but it's only available in v1.5.0-rc0 or rc1. Could you try that
>> version?
>
> I believe you mean 1.8.5-rc0 or 1.8.5-rc1, is that correct?
Yes. Looks like my fingers are not controlled by my mind anymore.
-- 
Duy
Лежанкин Иван· Nov 13, 2013, 07:00 UTC · re: Duy Nguyen · lore

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

I've tried your commit. No more error messages.

Looking forward to the next git version. Thanks.

On 13 November 2013 07:32, Duy Nguyen <pclouds@gmail.com> wrote:
Show 9 quoted lines
> On Wed, Nov 13, 2013 at 10:04 AM, Bryan Turner <bturner@atlassian.com> wrote:
>>> but it's only available in v1.5.0-rc0 or rc1. Could you try that
>>> version?
>>
>> I believe you mean 1.8.5-rc0 or 1.8.5-rc1, is that correct?
>
> Yes. Looks like my fingers are not controlled by my mind anymore.
> --
> Duy

← back to recent threads