# packfile is unavailable/cannot be accessed

4 messages from 2011-04-06 to 2011-04-07. Participants: Enchanter, Jeff King.
Thread: https://gitlist.dev/t/27005

## Enchanter, 2011-04-06 00:09

Subject: packfile is unavailable/cannot be accessed
Message-ID: <loom.20110406T020617-993@post.gmane.org>
URL: https://gitlist.dev/e/loom.20110406T020617-993%40post.gmane.org

```
Today I found these errors when I try to pull from remote:

$ git fetch origin
error: end of packfile
./objects/pack/pack-0bb4b0fb14801efb46a7cb9aab64add08620c0b1.pack
 is unavailable error: packfile
./objects/pack/pack-0bb4b0fb14801efb46a7cb9aab64add08620c0b1.pack
 cannot be accessed 
error: refs/heads/newGPMC does not point to a valid object!
error: end of packfile
./objects/pack/pack-bbb57cb715f61347809673448e9ab12084277090.pack
 is unavailable
error: packfile
./objects/pack/pack-bbb57cb715f61347809673448e9ab12084277090.pack
 cannot be accessed
error: end of packfile
./objects/pack/pack-bbb57cb715f61347809673448e9ab12084277090.pack
 is unavailable
error: packfile
./objects/pack/pack-bbb57cb715f61347809673448e9ab12084277090.pack
 cannot be accessed
fatal: failed to read object 8682d5d2ce5bbab82c9020a986d473aa2a97feb8:
 Illegal seek
fatal: The remote end hung up unexpectedly

Can anyone give me a hit on how to solve this problem? 

Thanks

```

## Jeff King, 2011-04-06 15:42

Subject: Re: packfile is unavailable/cannot be accessed
Message-ID: <20110406154208.GC1864@sigill.intra.peff.net>
URL: https://gitlist.dev/e/20110406154208.GC1864%40sigill.intra.peff.net
In-Reply-To: <loom.20110406T020617-993@post.gmane.org>

```
On Wed, Apr 06, 2011 at 12:09:59AM +0000, Enchanter wrote:

> Today I found these errors when I try to pull from remote:
> 
> $ git fetch origin
> error: end of packfile
> ./objects/pack/pack-0bb4b0fb14801efb46a7cb9aab64add08620c0b1.pack
>  is unavailable error: packfile
> ./objects/pack/pack-0bb4b0fb14801efb46a7cb9aab64add08620c0b1.pack
>  cannot be accessed 
> error: refs/heads/newGPMC does not point to a valid object!
> error: end of packfile
> ./objects/pack/pack-bbb57cb715f61347809673448e9ab12084277090.pack
>  is unavailable
> error: packfile
> ./objects/pack/pack-bbb57cb715f61347809673448e9ab12084277090.pack
>  cannot be accessed
> error: end of packfile
> ./objects/pack/pack-bbb57cb715f61347809673448e9ab12084277090.pack
>  is unavailable
> error: packfile
> ./objects/pack/pack-bbb57cb715f61347809673448e9ab12084277090.pack
>  cannot be accessed
> fatal: failed to read object 8682d5d2ce5bbab82c9020a986d473aa2a97feb8:
>  Illegal seek
> fatal: The remote end hung up unexpectedly
> 
> Can anyone give me a hit on how to solve this problem? 

Looking through the source code, the only way this message can be
generated is if lseek fails on the packfile. It looks like the messages
are coming from the remote end. Where is your remote located? Which
operating system is it running on? Is the repo on an exotic filesystem
that might not support seeking?

-Peff

```

## Enchanter, 2011-04-07 00:01

Subject: Re: packfile is unavailable/cannot be accessed
Message-ID: <loom.20110407T015644-337@post.gmane.org>
URL: https://gitlist.dev/e/loom.20110407T015644-337%40post.gmane.org
In-Reply-To: <20110406154208.GC1864@sigill.intra.peff.net>

```
Jeff King <peff <at> peff.net> writes:

> 
> Looking through the source code, the only way this message can be
> generated is if lseek fails on the packfile. It looks like the messages
> are coming from the remote end. Where is your remote located? Which
> operating system is it running on? Is the repo on an exotic filesystem
> that might not support seeking?
> 
> -Peff
> 

Jeff, thanks for you reply. 

1. the bare repository is on the windows server
2. One developer use ubuntu with git 1.7.4.1 (Has the error message)
3. Another developer use windows XP with git 1.7.4.msysgit.0 (there's no errors)

```

## Jeff King, 2011-04-07 00:47

Subject: Re: packfile is unavailable/cannot be accessed
Message-ID: <20110407004707.GA28813@sigill.intra.peff.net>
URL: https://gitlist.dev/e/20110407004707.GA28813%40sigill.intra.peff.net
In-Reply-To: <loom.20110407T015644-337@post.gmane.org>

```
On Thu, Apr 07, 2011 at 12:01:28AM +0000, Enchanter wrote:

> 1. the bare repository is on the windows server
> 2. One developer use ubuntu with git 1.7.4.1 (Has the error message)
> 3. Another developer use windows XP with git 1.7.4.msysgit.0 (there's no errors)

How are they accessing the bare repo? Directly via a CIFS share, or by
git:// running on the Windows server?

-Peff

```
