{"thread":{"id":"7777","subject":"fetch failure from git2.kernel.org?","startedAt":"2007-04-22T10:03:45Z","lastAt":"2007-04-22T18:26:01Z","messageCount":6,"participants":["Randal L. Schwartz","Alex Riesen","Petr Baudis","Linus Torvalds","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"40110","messageId":"86fy6ssp32.fsf@blue.stonehenge.com","threadId":"7777","inReplyTo":null,"subject":"fetch failure from git2.kernel.org?","fromName":"Randal L. Schwartz","fromEmail":"merlyn@stonehenge.com","sentAt":"2007-04-22T10:03:45Z","receivedAt":"2007-04-22T10:03:45Z","isPatch":false,"sender":{"key":"merlyn@stonehenge.com","avatar":"https://gravatar.com/avatar/dc528d210743ff0333e6213f9ee7b33b23f1b7bc1f3c5a8c2d819074ecd7ab19?d=mp&s=160"},"body":"\nis this known?  transient?\n\n    $ git-fetch\n    warning: no common commits\n    remote: Generating pack...\n    remote: Done counting 0 objects.\n    remote: aborting due to possible repository corruption on the remote side.\n    fatal: protocol error: bad pack header\n    fatal: Fetch failure: git://git2.kernel.org/pub/scm/git/git.git\n    $\n\n-- \nRandal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095\n<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>\nPerl/Unix/security consulting, Technical writing, Comedy, etc. etc.\nSee PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!\n"},{"id":"40113","messageId":"20070422125307.GA2431@steel.home","threadId":"7777","inReplyTo":"86fy6ssp32.fsf@blue.stonehenge.com","subject":"Re: fetch failure from git2.kernel.org?","fromName":"Alex Riesen","fromEmail":"raa.lkml@gmail.com","sentAt":"2007-04-22T12:53:07Z","receivedAt":"2007-04-22T12:53:07Z","isPatch":false,"sender":{"key":"raa.lkml@gmail.com","avatar":"https://avatars.githubusercontent.com/u/324101?v=4"},"body":"Randal L. Schwartz, Sun, Apr 22, 2007 12:03:45 +0200:\n> \n> is this known?  transient?\n> \n>     $ git-fetch\n>     warning: no common commits\n>     remote: Generating pack...\n>     remote: Done counting 0 objects.\n>     remote: aborting due to possible repository corruption on the remote side.\n>     fatal: protocol error: bad pack header\n>     fatal: Fetch failure: git://git2.kernel.org/pub/scm/git/git.git\n>     $\n> \n\nConfirm this. BTW, git1 and git2 point to the same 140.211.167.38\n(poseidon.kernel.org). It used to be different addresses\n"},{"id":"40114","messageId":"86ps5wr2id.fsf@blue.stonehenge.com","threadId":"7777","inReplyTo":"20070422125307.GA2431@steel.home","subject":"Re: fetch failure from git2.kernel.org?","fromName":"Randal L. Schwartz","fromEmail":"merlyn@stonehenge.com","sentAt":"2007-04-22T12:56:42Z","receivedAt":"2007-04-22T12:56:42Z","isPatch":false,"sender":{"key":"merlyn@stonehenge.com","avatar":"https://gravatar.com/avatar/dc528d210743ff0333e6213f9ee7b33b23f1b7bc1f3c5a8c2d819074ecd7ab19?d=mp&s=160"},"body":">>>>> \"Alex\" == Alex Riesen <raa.lkml@gmail.com> writes:\n\nAlex> Confirm this. BTW, git1 and git2 point to the same 140.211.167.38\nAlex> (poseidon.kernel.org). It used to be different addresses\n\nAhh, that's why it didn't help to try changing it. :)\n\n-- \nRandal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095\n<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>\nPerl/Unix/security consulting, Technical writing, Comedy, etc. etc.\nSee PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!\n"},{"id":"40121","messageId":"20070422142020.GR4489@pasky.or.cz","threadId":"7777","inReplyTo":"20070422125307.GA2431@steel.home","subject":"Re: fetch failure from git2.kernel.org?","fromName":"Petr Baudis","fromEmail":"pasky@suse.cz","sentAt":"2007-04-22T14:20:20Z","receivedAt":"2007-04-22T14:20:20Z","isPatch":false,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"On Sun, Apr 22, 2007 at 02:53:07PM CEST, Alex Riesen wrote:\n> Randal L. Schwartz, Sun, Apr 22, 2007 12:03:45 +0200:\n> > \n> > is this known?  transient?\n> > \n> >     $ git-fetch\n> >     warning: no common commits\n\nThis in itself is weird. :-)\n\n> >     remote: Generating pack...\n> >     remote: Done counting 0 objects.\n> >     remote: aborting due to possible repository corruption on the remote side.\n> >     fatal: protocol error: bad pack header\n> >     fatal: Fetch failure: git://git2.kernel.org/pub/scm/git/git.git\n> >     $\n> > \n> \n> Confirm this. BTW, git1 and git2 point to the same 140.211.167.38\n> (poseidon.kernel.org). It used to be different addresses\n\nCuriously enough, I have hit no problems with fetching from the\nrepo.or.cz mirror (which is using several months old git version, if\nthat might matter).\n\n-- \n\t\t\t\tPetr \"Pasky\" Baudis\nStuff: http://pasky.or.cz/\nEver try. Ever fail. No matter. // Try again. Fail again. Fail better.\n\t\t-- Samuel Beckett\n"},{"id":"40132","messageId":"alpine.LFD.0.98.0704221050350.9964@woody.linux-foundation.org","threadId":"7777","inReplyTo":"86fy6ssp32.fsf@blue.stonehenge.com","subject":"Re: fetch failure from git2.kernel.org?","fromName":"Linus Torvalds","fromEmail":"torvalds@linux-foundation.org","sentAt":"2007-04-22T17:53:13Z","receivedAt":"2007-04-22T17:53:13Z","isPatch":false,"sender":{"key":"torvalds@linux-foundation.org","avatar":"https://avatars.githubusercontent.com/u/1024025?v=4"},"body":"\n\nOn Sun, 22 Apr 2007, Randal L. Schwartz wrote:\n> \n> is this known?  transient?\n\nJunio seems to have tightened his permissions on kernel.org, and as a \nresult the most recent pack is unreadable by anybody but him (I'm not sure \nif such private files even get mirrored out - but even if they do, they \nwill get mirrored out with the same tight permissions and won't be \nreadable).\n\n\t\tLinus\n"},{"id":"40138","messageId":"7virbonu4m.fsf@assigned-by-dhcp.cox.net","threadId":"7777","inReplyTo":"alpine.LFD.0.98.0704221050350.9964@woody.linux-foundation.org","subject":"Re: fetch failure from git2.kernel.org?","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2007-04-22T18:26:01Z","receivedAt":"2007-04-22T18:26:01Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Linus Torvalds <torvalds@linux-foundation.org> writes:\n\n> On Sun, 22 Apr 2007, Randal L. Schwartz wrote:\n>> \n>> is this known?  transient?\n>\n> Junio seems to have tightened his permissions on kernel.org, and as a \n> result the most recent pack is unreadable by anybody but him (I'm not sure \n> if such private files even get mirrored out - but even if they do, they \n> will get mirrored out with the same tight permissions and won't be \n> readable).\n\nThat's not *me* per-se, it's Nico ;-). \n\nAnybody who runs the new pack-objects that has been cooking in\n'next' would get this.\n\nI think this patch minimally fixes it, but some existing tests\n(e.g. t5300) assume that pack/idx are writable which makes them\nbreak.\n\n\ndiff --git a/builtin-pack-objects.c b/builtin-pack-objects.c\nindex c72e07a..4eb88e8 100644\n--- a/builtin-pack-objects.c\n+++ b/builtin-pack-objects.c\n@@ -1783,11 +1783,17 @@ int cmd_pack_objects(int argc, const char **argv, const char *prefix)\n \t\twrite_index_file(last_obj_offset, object_list_sha1);\n \t\tsnprintf(tmpname, sizeof(tmpname), \"%s-%s.pack\",\n \t\t\t base_name, sha1_to_hex(object_list_sha1));\n+\t\tif (chmod(pack_tmp_name, 0444))\n+\t\t\tdie(\"unable to make temporary pack file readable: %s\",\n+\t\t\t    strerror(errno));\n \t\tif (rename(pack_tmp_name, tmpname))\n \t\t\tdie(\"unable to rename temporary pack file: %s\",\n \t\t\t    strerror(errno));\n \t\tsnprintf(tmpname, sizeof(tmpname), \"%s-%s.idx\",\n \t\t\t base_name, sha1_to_hex(object_list_sha1));\n+\t\tif (chmod(idx_tmp_name, 0444))\n+\t\t\tdie(\"unable to make temporary index file readable: %s\",\n+\t\t\t    strerror(errno));\n \t\tif (rename(idx_tmp_name, tmpname))\n \t\t\tdie(\"unable to rename temporary index file: %s\",\n \t\t\t    strerror(errno));\n"}]}