# 'bad file' error updating from Linus

6 messages from 2005-09-22 to 2005-09-23. Participants: walt, porpen@gmail.com, Linus Torvalds, H. Peter Anvin.
Thread: https://gitlist.dev/t/1910

## walt, 2005-09-22 11:40

Subject: 'bad file' error updating from Linus
Message-ID: <dgu56t$d2p$1@sea.gmane.org>
URL: https://gitlist.dev/e/dgu56t%24d2p%241%40sea.gmane.org

```
cg-update this morning is giving me this error:

receiving file list ... done
v2.6.14-rc2

wrote 134 bytes  read 1116 bytes  833.33 bytes/sec
total size is 738  speedup is 0.59
Tree change: 044a500e46742d39d22f1781cfb64ba93b463e39:e98c07b9eabedfb1d7ebef61af475bdebe1dd64d
error: unable to find e98c07b9eabedfb1d7ebef61af475bdebe1dd64d
fatal: git-cat-file e98c07b9eabedfb1d7ebef61af475bdebe1dd64d: bad file
error: unable to find e98c07b9eabedfb1d7ebef61af475bdebe1dd64d
fatal: git-cat-file e98c07b9eabedfb1d7ebef61af475bdebe1dd64d: bad file
Invalid tree id: e98c07b9eabedfb1d7ebef61af475bdebe1dd64d

Is this a kernel.org rsync problem, perhaps?

(I'm running the latest releases of cogito and git from kernel.org.)

```

## porpen@gmail.com, 2005-09-22 12:42

Subject: Re: 'bad file' error updating from Linus
Message-ID: <509c8057050922054272b823fe@mail.gmail.com>
URL: https://gitlist.dev/e/509c8057050922054272b823fe%40mail.gmail.com
In-Reply-To: <dgu56t$d2p$1@sea.gmane.org>

```
You aren't alone.  I had a look at http://www.kernel.org/git/  only to
find that the 2.6 kernel has been taken off the list...  /me thinks
Linus is pushing an update as I type.

On a whim, I'll suggest we relax and go get some breakfast. ;-)   and
try again a little later...

Cheers!
-P

On 9/22/05, walt <wa1ter@myrealbox.com> wrote:
> cg-update this morning is giving me this error:
>
> receiving file list ... done
> v2.6.14-rc2
>
> wrote 134 bytes  read 1116 bytes  833.33 bytes/sec
> total size is 738  speedup is 0.59
> Tree change: 044a500e46742d39d22f1781cfb64ba93b463e39:e98c07b9eabedfb1d7ebef61af475bdebe1dd64d
> error: unable to find e98c07b9eabedfb1d7ebef61af475bdebe1dd64d

```

## walt, 2005-09-22 21:44

Subject: Re: 'bad file' error updating from Linus
Message-ID: <dgv8jv$amv$1@sea.gmane.org>
URL: https://gitlist.dev/e/dgv8jv%24amv%241%40sea.gmane.org
In-Reply-To: <509c8057050922054272b823fe@mail.gmail.com>

```
porpen@gmail.com wrote:
> You aren't alone.  I had a look at http://www.kernel.org/git/  only to
> find that the 2.6 kernel has been taken off the list...  /me thinks
> Linus is pushing an update as I type...

I think it was a disk failure, but no matter -- it's fixed now.

For the benefit of future googlers with the same 'bad file' error:

After I repeated the cg-update (successfully) I was still left with
the 'bad file' error.  I tried 'cg-restore' and the error went away.
Very nifty!

```

## Linus Torvalds, 2005-09-22 23:32

Subject: Re: 'bad file' error updating from Linus
Message-ID: <Pine.LNX.4.58.0509221630200.2553@g5.osdl.org>
URL: https://gitlist.dev/e/Pine.LNX.4.58.0509221630200.2553%40g5.osdl.org
In-Reply-To: <dgv8jv$amv$1@sea.gmane.org>

```


On Thu, 22 Sep 2005, walt wrote:
> 
> I think it was a disk failure, but no matter -- it's fixed now.

Nope, it's not.

It just depends on which IP address you happen to get when you look at 
www.kernel.org.

www.kernel.org resolves to two addresses:

	Name:   zeus-pub.kernel.org
	Address: 204.152.191.5
	Name:   zeus-pub.kernel.org
	Address: 204.152.191.37

and the .5 address is working, but the .37 address has the broken mirror.

I thought hpa took it out of service while it was re-syncing, but 
apparently not. 

		Linus

```

## walt, 2005-09-23 00:56

Subject: Re: 'bad file' error updating from Linus
Message-ID: <dgvjs3$4so$1@sea.gmane.org>
URL: https://gitlist.dev/e/dgvjs3%244so%241%40sea.gmane.org
In-Reply-To: <dgv8jv$amv$1@sea.gmane.org>

```
walt wrote:
[...]
> After I repeated the cg-update (successfully) I was still left with
> the 'bad file' error.  I tried 'cg-restore' and the error went away.

Oops -- correction!

After encountering the same problem on a different machine, I find
that 'cg-reset' is the one which fixed the error, not 'cg-restore'.

I believe that I tried both commands on the first machine, so I was
uncertain which one actually did the fix.

```

## H. Peter Anvin, 2005-09-23 19:43

Subject: Re: 'bad file' error updating from Linus
Message-ID: <43345ACB.1080201@zytor.com>
URL: https://gitlist.dev/e/43345ACB.1080201%40zytor.com
In-Reply-To: <Pine.LNX.4.58.0509221630200.2553@g5.osdl.org>

```
Linus Torvalds wrote:
> 
> Nope, it's not.
> 
> It just depends on which IP address you happen to get when you look at 
> www.kernel.org.
> 
> www.kernel.org resolves to two addresses:
> 
> 	Name:   zeus-pub.kernel.org
> 	Address: 204.152.191.5
> 	Name:   zeus-pub.kernel.org
> 	Address: 204.152.191.37
> 
> and the .5 address is working, but the .37 address has the broken mirror.
> 
> I thought hpa took it out of service while it was re-syncing, but 
> apparently not. 
> 

Well, it had resynched, but the time and date stamp on the 
refs/heads/master file were correct - just the data wrong - so rsync 
didn't flag the file.  I forced rsync --checksum and it's correct now.

	-hpa

```
