# unexpected EOF?

3 messages from 2005-12-01 to 2005-12-01. Participants: Jon Loeliger, Tim O'Callaghan, Linus Torvalds.
Thread: https://gitlist.dev/t/2722

## Jon Loeliger, 2005-12-01 13:42

Subject: unexpected EOF?
Message-ID: <E1EhohG-0001iZ-IB@jdl.com>
URL: https://gitlist.dev/e/E1EhohG-0001iZ-IB%40jdl.com

```

I thought I had imagined this last time, but now 
that it has happened twice, I'm not so sure what
is going on.  First pull attempt garners an
unexpected EOF message; immediately pull again
seems to work.

Some state:

jdl@ubuntu:/usr/src/git-core$ git --version
git version 0.99.9j

jdl@ubuntu:/usr/src/git-core$ cat .git/remotes/origin
URL: git://git.kernel.org/pub/scm/git/git.git/
Pull: master:origin
Pull: todo:todo
Pull: maint:maint
Pull: pu:pu

And the error capture:

jdl@ubuntu:/usr/src/git-core$ git pull origin
fatal: unexpected EOF
Fetch failure: git://git.kernel.org/pub/scm/git/git.git/
jdl@ubuntu:/usr/src/git-core$ git pull origin
Unpacking 17 objects
 100% (17/17) done
* committish: d175455acaaba6bd39dd2d5ec71961bf238f06d4
  branch 'todo' of git://git.kernel.org/pub/scm/git/git
* refs/heads/todo: same as branch 'todo' of git://git.kernel.org/pub/scm/git/git* committish: 93dcab2937624ebb97f91807576cddb242a55a46
  branch 'maint' of git://git.kernel.org/pub/scm/git/git
* refs/heads/maint: same as branch 'maint' of git://git.kernel.org/pub/scm/git/git
* committish: b34403aa97047f90c0cdd5177e63a8e7530e3388
  branch 'master' of git://git.kernel.org/pub/scm/git/git
* refs/heads/origin: same as branch 'master' of git://git.kernel.org/pub/scm/git/git
* committish: 6e35634a4d595d554423b04438bfa8b523414c54
  branch 'pu' of git://git.kernel.org/pub/scm/git/git
* refs/heads/pu: does not fast forward to branch 'pu' of git://git.kernel.org/pub/scm/git/git;
  not updating.
Already up-to-date.

```

## Tim O'Callaghan, 2005-12-01 13:49

Subject: Re: unexpected EOF?
Message-ID: <20051201134917.GH2188@ELSAMSW37164>
URL: https://gitlist.dev/e/20051201134917.GH2188%40ELSAMSW37164
In-Reply-To: <E1EhohG-0001iZ-IB@jdl.com>

```
On Thu, Dec 01, 2005 at 07:42:02AM -0600, Jon Loeliger wrote:
> 
> I thought I had imagined this last time, but now 
> that it has happened twice, I'm not so sure what
> is going on.  First pull attempt garners an
> unexpected EOF message; immediately pull again
> seems to work.
> 
> Some state:
> 
> jdl@ubuntu:/usr/src/git-core$ git --version
> git version 0.99.9j
> 
> jdl@ubuntu:/usr/src/git-core$ cat .git/remotes/origin
> URL: git://git.kernel.org/pub/scm/git/git.git/
> Pull: master:origin
> Pull: todo:todo
> Pull: maint:maint
> Pull: pu:pu
> 
> And the error capture:
> 
> jdl@ubuntu:/usr/src/git-core$ git pull origin
> fatal: unexpected EOF
> Fetch failure: git://git.kernel.org/pub/scm/git/git.git/
> jdl@ubuntu:/usr/src/git-core$ git pull origin
> Unpacking 17 objects
>  100% (17/17) done
> * committish: d175455acaaba6bd39dd2d5ec71961bf238f06d4
>   branch 'todo' of git://git.kernel.org/pub/scm/git/git
> * refs/heads/todo: same as branch 'todo' of git://git.kernel.org/pub/scm/git/git* committish: 93dcab2937624ebb97f91807576cddb242a55a46
>   branch 'maint' of git://git.kernel.org/pub/scm/git/git
> * refs/heads/maint: same as branch 'maint' of git://git.kernel.org/pub/scm/git/git
> * committish: b34403aa97047f90c0cdd5177e63a8e7530e3388
>   branch 'master' of git://git.kernel.org/pub/scm/git/git
> * refs/heads/origin: same as branch 'master' of git://git.kernel.org/pub/scm/git/git
> * committish: 6e35634a4d595d554423b04438bfa8b523414c54
>   branch 'pu' of git://git.kernel.org/pub/scm/git/git
> * refs/heads/pu: does not fast forward to branch 'pu' of git://git.kernel.org/pub/scm/git/git;
>   not updating.
> Already up-to-date.


I noticed this myself this morning. It happened twice, then after leaving it
for a minute or two, it worked. Possibly traffic problems to kernel.org?


I should also report that if a spurious lockfile exists (under cygwin at
least), git just dies with the cryptic "unable to create new cachefile".

Tim.
"I've worked myself up from nothing to a state of supreme poverty."
-- Groucho Marx

```

## Linus Torvalds, 2005-12-01 18:40

Subject: Re: unexpected EOF?
Message-ID: <Pine.LNX.4.64.0512011036120.3099@g5.osdl.org>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0512011036120.3099%40g5.osdl.org
In-Reply-To: <E1EhohG-0001iZ-IB@jdl.com>

```


On Thu, 1 Dec 2005, Jon Loeliger wrote:
> 
> I thought I had imagined this last time, but now 
> that it has happened twice, I'm not so sure what
> is going on.  First pull attempt garners an
> unexpected EOF message; immediately pull again
> seems to work.
> 
> jdl@ubuntu:/usr/src/git-core$ git pull origin
> fatal: unexpected EOF
> Fetch failure: git://git.kernel.org/pub/scm/git/git.git/
> jdl@ubuntu:/usr/src/git-core$ git pull origin
> Unpacking 17 objects

The public kernel.org machines are actually _two_ different machines, and 
have two different addresses:

	Non-authoritative answer:
	git.kernel.org  canonical name = zeus-pub.kernel.org.
	Name:   zeus-pub.kernel.org
	Address: 204.152.191.5
	Name:   zeus-pub.kernel.org
	Address: 204.152.191.37

so with a round-robin kind of DNS resolution, you'd get alternate 
machines. Maybe one of them isn't up-to-date due to mirroring problems?

You can test by using the IP addresses explicitly, of course.

In particular, if the directory doesn't exist at all, or if the directory 
doesn't have the "git-daemon-export-ok" flag, the git daemon on the other 
end will just close the connection and refuse to talk to you (I thought 
that was preferable to give any indication of why it fails: from a 
security standpoint, you do _not_ want to be able to test if a random 
directory exists by looking at the return value of git-daemon).

			Linus

```
