{"thread":{"id":"26040","subject":"Corruption in the repository","startedAt":"2010-12-13T15:59:50Z","lastAt":"2010-12-14T19:19:01Z","messageCount":12,"participants":["Sylvestre Ledru","Christian Couder","Jonathan Nieder"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"157964","messageId":"1292255990.25237.27642.camel@korcula.inria.fr","threadId":"26040","inReplyTo":null,"subject":"Corruption in the repository","fromName":"Sylvestre Ledru","fromEmail":"sylvestre.ledru@scilab.org","sentAt":"2010-12-13T15:59:50Z","receivedAt":"2010-12-13T15:59:50Z","isPatch":false,"sender":{"key":"sylvestre.ledru@scilab.org","avatar":"https://gravatar.com/avatar/fa5531c088178bd882546ba9fabd950fa74627c97ee5bb7337d8e21afe170ace?d=mp&s=160"},"body":"Hello guys,\n\nI have a small problem with a git repository and I haven't find a way to\nfix my problem.\nI am using git with gerrit [1] as frontend (even if I don't think it is\nrelated here).\nFor an unknown reason, the repository just became corrupted.\n\nWhen I try to clone the repository straight with the file system, the\nfollowing error is displayed:\nerror: refs/changes/98/398/1 does not point to a valid object!\nerror: refs/changes/98/398/2 does not point to a valid object!\nfatal: object cff52c24fba28408e7d021a8f35a717bef31521d is corrupted\nfatal: The remote end hung up unexpectedly\n\ngit-prune & git-fsck both fail.\n\nDoes anyone know how to repair this error ?\n\nThanks\nSylvestre\n\n[1] http://code.google.com/p/gerrit/\n"},{"id":"157968","messageId":"AANLkTimD6+CHofhbKvBPjHpcNUNusHOCHSQe+-J1ZA4F@mail.gmail.com","threadId":"26040","inReplyTo":"1292255990.25237.27642.camel@korcula.inria.fr","subject":"Re: Corruption in the repository","fromName":"Christian Couder","fromEmail":"christian.couder@gmail.com","sentAt":"2010-12-13T16:34:57Z","receivedAt":"2010-12-13T16:34:57Z","isPatch":false,"sender":{"key":"christian.couder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/208954?v=4"},"body":"Hi,\n\nOn Mon, Dec 13, 2010 at 4:59 PM, Sylvestre Ledru\n<sylvestre.ledru@scilab.org> wrote:\n> Hello guys,\n>\n> I have a small problem with a git repository and I haven't find a way to\n> fix my problem.\n> I am using git with gerrit [1] as frontend (even if I don't think it is\n> related here).\n> For an unknown reason, the repository just became corrupted.\n>\n> When I try to clone the repository straight with the file system, the\n> following error is displayed:\n> error: refs/changes/98/398/1 does not point to a valid object!\n> error: refs/changes/98/398/2 does not point to a valid object!\n> fatal: object cff52c24fba28408e7d021a8f35a717bef31521d is corrupted\n> fatal: The remote end hung up unexpectedly\n>\n> git-prune & git-fsck both fail.\n>\n> Does anyone know how to repair this error ?\n\nDid you try what the FAQ suggests:\n\nhttps://git.wiki.kernel.org/index.php/GitFaq#How_to_fix_a_broken_repository.3F\n\n?\n\nRegards,\nChristian.\n"},{"id":"157969","messageId":"1292258845.25237.27680.camel@korcula.inria.fr","threadId":"26040","inReplyTo":"AANLkTimD6+CHofhbKvBPjHpcNUNusHOCHSQe+-J1ZA4F@mail.gmail.com","subject":"Re: Corruption in the repository","fromName":"Sylvestre Ledru","fromEmail":"sylvestre.ledru@scilab.org","sentAt":"2010-12-13T16:47:25Z","receivedAt":"2010-12-13T16:47:25Z","isPatch":false,"sender":{"key":"sylvestre.ledru@scilab.org","avatar":"https://gravatar.com/avatar/fa5531c088178bd882546ba9fabd950fa74627c97ee5bb7337d8e21afe170ace?d=mp&s=160"},"body":"\nLe lundi 13 décembre 2010 à 17:34 +0100, Christian Couder a écrit :\n> Hi,\n> \n> On Mon, Dec 13, 2010 at 4:59 PM, Sylvestre Ledru\n> <sylvestre.ledru@scilab.org> wrote:\n> > Hello guys,\n> >\n> > I have a small problem with a git repository and I haven't find a way to\n> > fix my problem.\n> > I am using git with gerrit [1] as frontend (even if I don't think it is\n> > related here).\n> > For an unknown reason, the repository just became corrupted.\n> >\n> > When I try to clone the repository straight with the file system, the\n> > following error is displayed:\n> > error: refs/changes/98/398/1 does not point to a valid object!\n> > error: refs/changes/98/398/2 does not point to a valid object!\n> > fatal: object cff52c24fba28408e7d021a8f35a717bef31521d is corrupted\n> > fatal: The remote end hung up unexpectedly\n> >\n> > git-prune & git-fsck both fail.\n> >\n> > Does anyone know how to repair this error ?\n> \n> Did you try what the FAQ suggests:\n> \n> https://git.wiki.kernel.org/index.php/GitFaq#How_to_fix_a_broken_repository.3F\nYes. It shows an other error and it doesn't match the error described on\nthis URL [1].\n\nI get the following:\nerror: refs/tags/5.3.0-beta-4 does not point to a valid object!\nfatal: object 555a7c359b2e589ec10822d9b56cdfeee0105fe0 is corrupted\n\nSylvestre\n\n[1]\n$ git fsck --full\n> broken link from    tree 2d9263c6d23595e7cb2a21e5ebbb53655278dff8\n>              to    blob 4b9458b3786228369c63936db65827de3cc06200\n> missing blob 4b9458b3786228369c63936db65827de3cc06200\n"},{"id":"157970","messageId":"AANLkTimgLhQMUGmC=W5wpcAvb07faw4HOzPgWXpFA4u1@mail.gmail.com","threadId":"26040","inReplyTo":"1292258845.25237.27680.camel@korcula.inria.fr","subject":"Re: Corruption in the repository","fromName":"Christian Couder","fromEmail":"christian.couder@gmail.com","sentAt":"2010-12-13T17:02:06Z","receivedAt":"2010-12-13T17:02:06Z","isPatch":false,"sender":{"key":"christian.couder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/208954?v=4"},"body":"On Mon, Dec 13, 2010 at 5:47 PM, Sylvestre Ledru\n<sylvestre.ledru@scilab.org> wrote:\n>\n> Le lundi 13 décembre 2010 à 17:34 +0100, Christian Couder a écrit :\n>> Hi,\n>>\n>> On Mon, Dec 13, 2010 at 4:59 PM, Sylvestre Ledru\n>> <sylvestre.ledru@scilab.org> wrote:\n>> > Hello guys,\n>> >\n>> > I have a small problem with a git repository and I haven't find a way to\n>> > fix my problem.\n>> > I am using git with gerrit [1] as frontend (even if I don't think it is\n>> > related here).\n>> > For an unknown reason, the repository just became corrupted.\n>> >\n>> > When I try to clone the repository straight with the file system, the\n>> > following error is displayed:\n>> > error: refs/changes/98/398/1 does not point to a valid object!\n>> > error: refs/changes/98/398/2 does not point to a valid object!\n>> > fatal: object cff52c24fba28408e7d021a8f35a717bef31521d is corrupted\n>> > fatal: The remote end hung up unexpectedly\n>> >\n>> > git-prune & git-fsck both fail.\n>> >\n>> > Does anyone know how to repair this error ?\n>>\n>> Did you try what the FAQ suggests:\n>>\n>> https://git.wiki.kernel.org/index.php/GitFaq#How_to_fix_a_broken_repository.3F\n> Yes. It shows an other error and it doesn't match the error described on\n> this URL [1].\n>\n> I get the following:\n> error: refs/tags/5.3.0-beta-4 does not point to a valid object!\n> fatal: object 555a7c359b2e589ec10822d9b56cdfeee0105fe0 is corrupted\n\nThe FAQ says that you should try to replace any broken and/or missing\nobjects, so you should try to do that with object\n555a7c359b2e589ec10822d9b56cdfeee0105fe0 (as described in the FAQ)\neven if the error message is not exactly the same.\n\nRegards,\nChristian.\n"},{"id":"157981","messageId":"1292263868.25237.27772.camel@korcula.inria.fr","threadId":"26040","inReplyTo":"AANLkTimgLhQMUGmC=W5wpcAvb07faw4HOzPgWXpFA4u1@mail.gmail.com","subject":"Re: Corruption in the repository","fromName":"Sylvestre Ledru","fromEmail":"sylvestre.ledru@scilab.org","sentAt":"2010-12-13T18:11:08Z","receivedAt":"2010-12-13T18:11:08Z","isPatch":false,"sender":{"key":"sylvestre.ledru@scilab.org","avatar":"https://gravatar.com/avatar/fa5531c088178bd882546ba9fabd950fa74627c97ee5bb7337d8e21afe170ace?d=mp&s=160"},"body":"Le lundi 13 décembre 2010 à 18:02 +0100, Christian Couder a écrit :\n> On Mon, Dec 13, 2010 at 5:47 PM, Sylvestre Ledru\n> <sylvestre.ledru@scilab.org> wrote:\n> >\n> > Le lundi 13 décembre 2010 à 17:34 +0100, Christian Couder a écrit :\n> >> Hi,\n> >>\n> >> On Mon, Dec 13, 2010 at 4:59 PM, Sylvestre Ledru\n> >> <sylvestre.ledru@scilab.org> wrote:\n> >> > Hello guys,\n> >> >\n> >> > I have a small problem with a git repository and I haven't find a way to\n> >> > fix my problem.\n> >> > I am using git with gerrit [1] as frontend (even if I don't think it is\n> >> > related here).\n> >> > For an unknown reason, the repository just became corrupted.\n> >> >\n> >> > When I try to clone the repository straight with the file system, the\n> >> > following error is displayed:\n> >> > error: refs/changes/98/398/1 does not point to a valid object!\n> >> > error: refs/changes/98/398/2 does not point to a valid object!\n> >> > fatal: object cff52c24fba28408e7d021a8f35a717bef31521d is corrupted\n> >> > fatal: The remote end hung up unexpectedly\n> >> >\n> >> > git-prune & git-fsck both fail.\n> >> >\n> >> > Does anyone know how to repair this error ?\n> >>\n> >> Did you try what the FAQ suggests:\n> >>\n> >> https://git.wiki.kernel.org/index.php/GitFaq#How_to_fix_a_broken_repository.3F\n> > Yes. It shows an other error and it doesn't match the error described on\n> > this URL [1].\n> >\n> > I get the following:\n> > error: refs/tags/5.3.0-beta-4 does not point to a valid object!\n> > fatal: object 555a7c359b2e589ec10822d9b56cdfeee0105fe0 is corrupted\n> \n> The FAQ says that you should try to replace any broken and/or missing\n> objects, so you should try to do that with object\n> 555a7c359b2e589ec10822d9b56cdfeee0105fe0 (as described in the FAQ)\n> even if the error message is not exactly the same.\nWell, after clean the error about the tags, it does not provide any\ninteresting feedbacks like in the FAQ.\n\nJust some information [1] about some dangling commits (probably commit\nunder review in gerrit). Nothing valuable and the problem still occurs\non the client side.\n\nSylvestre\n[1] http://paste.debian.net/102297/\n"},{"id":"158043","messageId":"AANLkTikP3CTNX_S=fAWTBVbt0OwQMLr+mq8f72OFd0j6@mail.gmail.com","threadId":"26040","inReplyTo":"1292263868.25237.27772.camel@korcula.inria.fr","subject":"Re: Corruption in the repository","fromName":"Christian Couder","fromEmail":"christian.couder@gmail.com","sentAt":"2010-12-14T09:29:39Z","receivedAt":"2010-12-14T09:29:39Z","isPatch":false,"sender":{"key":"christian.couder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/208954?v=4"},"body":"On Mon, Dec 13, 2010 at 7:11 PM, Sylvestre Ledru\n<sylvestre.ledru@scilab.org> wrote:\n> Le lundi 13 décembre 2010 à 18:02 +0100, Christian Couder a écrit :\n>> On Mon, Dec 13, 2010 at 5:47 PM, Sylvestre Ledru\n>> <sylvestre.ledru@scilab.org> wrote:\n>> >\n>> > Le lundi 13 décembre 2010 à 17:34 +0100, Christian Couder a écrit :\n>> >> Hi,\n>> >>\n>> >> On Mon, Dec 13, 2010 at 4:59 PM, Sylvestre Ledru\n>> >> <sylvestre.ledru@scilab.org> wrote:\n>> >> > Hello guys,\n>> >> >\n>> >> > I have a small problem with a git repository and I haven't find a way to\n>> >> > fix my problem.\n>> >> > I am using git with gerrit [1] as frontend (even if I don't think it is\n>> >> > related here).\n>> >> > For an unknown reason, the repository just became corrupted.\n>> >> >\n>> >> > When I try to clone the repository straight with the file system, the\n>> >> > following error is displayed:\n>> >> > error: refs/changes/98/398/1 does not point to a valid object!\n>> >> > error: refs/changes/98/398/2 does not point to a valid object!\n>> >> > fatal: object cff52c24fba28408e7d021a8f35a717bef31521d is corrupted\n>> >> > fatal: The remote end hung up unexpectedly\n>> >> >\n>> >> > git-prune & git-fsck both fail.\n>> >> >\n>> >> > Does anyone know how to repair this error ?\n>> >>\n>> >> Did you try what the FAQ suggests:\n>> >>\n>> >> https://git.wiki.kernel.org/index.php/GitFaq#How_to_fix_a_broken_repository.3F\n>> > Yes. It shows an other error and it doesn't match the error described on\n>> > this URL [1].\n>> >\n>> > I get the following:\n>> > error: refs/tags/5.3.0-beta-4 does not point to a valid object!\n>> > fatal: object 555a7c359b2e589ec10822d9b56cdfeee0105fe0 is corrupted\n>>\n>> The FAQ says that you should try to replace any broken and/or missing\n>> objects, so you should try to do that with object\n>> 555a7c359b2e589ec10822d9b56cdfeee0105fe0 (as described in the FAQ)\n>> even if the error message is not exactly the same.\n> Well, after clean the error about the tags, it does not provide any\n> interesting feedbacks like in the FAQ.\n>\n> Just some information [1] about some dangling commits (probably commit\n> under review in gerrit). Nothing valuable and the problem still occurs\n> on the client side.\n\nSo you say that \"git fsck --full\" gives only dangling commits on the\nserver, and you still get messages like \"fatal: object XXXXX is\ncorrupted\" on the client when you try to clone with gerrit? Did you\ntry to clone using git? Please try it and give us the exact command\nand result that you get.\n\nBy the way could you tell us which version of git and gerrit you are using?\nWhen I try \"git grep corrupted\" on the git and gerrit sources I don't\nfind anything relevant.\n\nRegards,\nChristian.\n"},{"id":"158044","messageId":"20101214094601.GA21755@burratino","threadId":"26040","inReplyTo":"AANLkTikP3CTNX_S=fAWTBVbt0OwQMLr+mq8f72OFd0j6@mail.gmail.com","subject":"Re: Corruption in the repository","fromName":"Jonathan Nieder","fromEmail":"jrnieder@gmail.com","sentAt":"2010-12-14T09:46:01Z","receivedAt":"2010-12-14T09:46:01Z","isPatch":false,"sender":{"key":"jrnieder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/281595?v=4"},"body":"Christian Couder wrote:\n\n> When I try \"git grep corrupted\" on the git and gerrit sources I don't\n> find anything relevant.\n\nThe error message was changed by b6c4cec (read_sha1_file(): report\ncorrect name of packfile with a corrupt object, 2010-10-28) and\nespecially v1.7.3-rc0~73^2 (sha1_file: Show the the type and path to\ncorrupt objects, 2010-06-10).\n\nRandom guess: maybe a corrupt but redundant packed object was removed\nin the course of investigation?  Sylvestre, are you still able to get\nerrors from the repository?  If you still have a copy of the original\ncorrupt version of the repository, I would be interested (to learn\nsomething about how it got damaged in the first place).\n"},{"id":"158045","messageId":"1292320068.25237.28773.camel@korcula.inria.fr","threadId":"26040","inReplyTo":"AANLkTikP3CTNX_S=fAWTBVbt0OwQMLr+mq8f72OFd0j6@mail.gmail.com","subject":"Re: Corruption in the repository","fromName":"Sylvestre Ledru","fromEmail":"sylvestre.ledru@scilab.org","sentAt":"2010-12-14T09:47:48Z","receivedAt":"2010-12-14T09:47:48Z","isPatch":false,"sender":{"key":"sylvestre.ledru@scilab.org","avatar":"https://gravatar.com/avatar/fa5531c088178bd882546ba9fabd950fa74627c97ee5bb7337d8e21afe170ace?d=mp&s=160"},"body":"Le mardi 14 décembre 2010 à 10:29 +0100, Christian Couder a écrit :\n> On Mon, Dec 13, 2010 at 7:11 PM, Sylvestre Ledru\n> <sylvestre.ledru@scilab.org> wrote:\n> > Le lundi 13 décembre 2010 à 18:02 +0100, Christian Couder a écrit :\n> >> On Mon, Dec 13, 2010 at 5:47 PM, Sylvestre Ledru\n> >> <sylvestre.ledru@scilab.org> wrote:\n> >> >\n> >> > Le lundi 13 décembre 2010 à 17:34 +0100, Christian Couder a écrit :\n> >> >> Hi,\n> >> >>\n> >> >> On Mon, Dec 13, 2010 at 4:59 PM, Sylvestre Ledru\n> >> >> <sylvestre.ledru@scilab.org> wrote:\n> >> >> > Hello guys,\n> >> >> >\n> >> >> > I have a small problem with a git repository and I haven't find a way to\n> >> >> > fix my problem.\n> >> >> > I am using git with gerrit [1] as frontend (even if I don't think it is\n> >> >> > related here).\n> >> >> > For an unknown reason, the repository just became corrupted.\n> >> >> >\n> >> >> > When I try to clone the repository straight with the file system, the\n> >> >> > following error is displayed:\n> >> >> > error: refs/changes/98/398/1 does not point to a valid object!\n> >> >> > error: refs/changes/98/398/2 does not point to a valid object!\n> >> >> > fatal: object cff52c24fba28408e7d021a8f35a717bef31521d is corrupted\n> >> >> > fatal: The remote end hung up unexpectedly\n> >> >> >\n> >> >> > git-prune & git-fsck both fail.\n> >> >> >\n> >> >> > Does anyone know how to repair this error ?\n> >> >>\n> >> >> Did you try what the FAQ suggests:\n> >> >>\n> >> >> https://git.wiki.kernel.org/index.php/GitFaq#How_to_fix_a_broken_repository.3F\n> >> > Yes. It shows an other error and it doesn't match the error described on\n> >> > this URL [1].\n> >> >\n> >> > I get the following:\n> >> > error: refs/tags/5.3.0-beta-4 does not point to a valid object!\n> >> > fatal: object 555a7c359b2e589ec10822d9b56cdfeee0105fe0 is corrupted\n> >>\n> >> The FAQ says that you should try to replace any broken and/or missing\n> >> objects, so you should try to do that with object\n> >> 555a7c359b2e589ec10822d9b56cdfeee0105fe0 (as described in the FAQ)\n> >> even if the error message is not exactly the same.\n> > Well, after clean the error about the tags, it does not provide any\n> > interesting feedbacks like in the FAQ.\n> >\n> > Just some information [1] about some dangling commits (probably commit\n> > under review in gerrit). Nothing valuable and the problem still occurs\n> > on the client side.\n> \n> So you say that \"git fsck --full\" gives only dangling commits on the\n> server, and you still get messages like \"fatal: object XXXXX is\n> corrupted\" on the client when you try to clone with gerrit?\nNot exactly, when I try to clone it through gerrit, it is working:\ngit clone ssh://sylvestre.ledru@git.scilab.org:29418/scilab\nA bare clone works also.\n\nIt is failing when I am using git-daemon (git clone\ngit://git.scilab.org/scilab) or a straight clone (git\nclone /home/git/repositories/repo.git).\nBoth with the same error:\nerror: refs/changes/98/398/1 does not point to a valid object!\nerror: refs/changes/98/398/2 does not point to a valid object!\n\n\n> By the way could you tell us which version of git and gerrit you are using?\ngit 1.7.2.3 & gerrit 2.1.5\n\nSylvestre\n"},{"id":"158046","messageId":"1292320780.25237.28797.camel@korcula.inria.fr","threadId":"26040","inReplyTo":"20101214094601.GA21755@burratino","subject":"Re: Corruption in the repository","fromName":"Sylvestre Ledru","fromEmail":"sylvestre.ledru@scilab.org","sentAt":"2010-12-14T09:59:40Z","receivedAt":"2010-12-14T09:59:40Z","isPatch":false,"sender":{"key":"sylvestre.ledru@scilab.org","avatar":"https://gravatar.com/avatar/fa5531c088178bd882546ba9fabd950fa74627c97ee5bb7337d8e21afe170ace?d=mp&s=160"},"body":"Le mardi 14 décembre 2010 à 03:46 -0600, Jonathan Nieder a écrit :\n> Christian Couder wrote:\n> \n> > When I try \"git grep corrupted\" on the git and gerrit sources I don't\n> > find anything relevant.\n> \n> The error message was changed by b6c4cec (read_sha1_file(): report\n> correct name of packfile with a corrupt object, 2010-10-28) and\n> especially v1.7.3-rc0~73^2 (sha1_file: Show the the type and path to\n> corrupt objects, 2010-06-10).\n> \n> Random guess: maybe a corrupt but redundant packed object was removed\n> in the course of investigation?  \nWe haven't tried to delete files. We have been careful (at least, try\nto)\n\n> Sylvestre, are you still able to get errors from the repository?  \nSure\n\n> If you still have a copy of the original\n> corrupt version of the repository, I would be interested (to learn\n> something about how it got damaged in the first place).\nMe too. \nI send you the URL in private (it is 344M).\n\nSylvestre\n"},{"id":"158047","messageId":"AANLkTinoD2qn7ZqMtGbSjJgkVUNE--fOsrSKzqTLCLpP@mail.gmail.com","threadId":"26040","inReplyTo":"1292320068.25237.28773.camel@korcula.inria.fr","subject":"Re: Corruption in the repository","fromName":"Christian Couder","fromEmail":"christian.couder@gmail.com","sentAt":"2010-12-14T11:59:21Z","receivedAt":"2010-12-14T11:59:21Z","isPatch":false,"sender":{"key":"christian.couder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/208954?v=4"},"body":"On Tue, Dec 14, 2010 at 10:47 AM, Sylvestre Ledru\n<sylvestre.ledru@scilab.org> wrote:\n> Le mardi 14 décembre 2010 à 10:29 +0100, Christian Couder a écrit :\n>> On Mon, Dec 13, 2010 at 7:11 PM, Sylvestre Ledru\n>> <sylvestre.ledru@scilab.org> wrote:\n>> > Le lundi 13 décembre 2010 à 18:02 +0100, Christian Couder a écrit :\n>> >> On Mon, Dec 13, 2010 at 5:47 PM, Sylvestre Ledru\n>> >> <sylvestre.ledru@scilab.org> wrote:\n>> >> >\n>> >> > Le lundi 13 décembre 2010 à 17:34 +0100, Christian Couder a écrit :\n>> >> >> Hi,\n>> >> >>\n>> >> >> On Mon, Dec 13, 2010 at 4:59 PM, Sylvestre Ledru\n>> >> >> <sylvestre.ledru@scilab.org> wrote:\n>> >> >> > Hello guys,\n>> >> >> >\n>> >> >> > I have a small problem with a git repository and I haven't find a way to\n>> >> >> > fix my problem.\n>> >> >> > I am using git with gerrit [1] as frontend (even if I don't think it is\n>> >> >> > related here).\n>> >> >> > For an unknown reason, the repository just became corrupted.\n>> >> >> >\n>> >> >> > When I try to clone the repository straight with the file system, the\n>> >> >> > following error is displayed:\n>> >> >> > error: refs/changes/98/398/1 does not point to a valid object!\n>> >> >> > error: refs/changes/98/398/2 does not point to a valid object!\n>> >> >> > fatal: object cff52c24fba28408e7d021a8f35a717bef31521d is corrupted\n>> >> >> > fatal: The remote end hung up unexpectedly\n>> >> >> >\n>> >> >> > git-prune & git-fsck both fail.\n>> >> >> >\n>> >> >> > Does anyone know how to repair this error ?\n>> >> >>\n>> >> >> Did you try what the FAQ suggests:\n>> >> >>\n>> >> >> https://git.wiki.kernel.org/index.php/GitFaq#How_to_fix_a_broken_repository.3F\n>> >> > Yes. It shows an other error and it doesn't match the error described on\n>> >> > this URL [1].\n>> >> >\n>> >> > I get the following:\n>> >> > error: refs/tags/5.3.0-beta-4 does not point to a valid object!\n>> >> > fatal: object 555a7c359b2e589ec10822d9b56cdfeee0105fe0 is corrupted\n>> >>\n>> >> The FAQ says that you should try to replace any broken and/or missing\n>> >> objects, so you should try to do that with object\n>> >> 555a7c359b2e589ec10822d9b56cdfeee0105fe0 (as described in the FAQ)\n>> >> even if the error message is not exactly the same.\n>> > Well, after clean the error about the tags, it does not provide any\n>> > interesting feedbacks like in the FAQ.\n>> >\n>> > Just some information [1] about some dangling commits (probably commit\n>> > under review in gerrit). Nothing valuable and the problem still occurs\n>> > on the client side.\n>>\n>> So you say that \"git fsck --full\" gives only dangling commits on the\n>> server, and you still get messages like \"fatal: object XXXXX is\n>> corrupted\" on the client when you try to clone with gerrit?\n> Not exactly, when I try to clone it through gerrit, it is working:\n> git clone ssh://sylvestre.ledru@git.scilab.org:29418/scilab\n> A bare clone works also.\n>\n> It is failing when I am using git-daemon (git clone\n> git://git.scilab.org/scilab) or a straight clone (git\n> clone /home/git/repositories/repo.git).\n\nThis is very strange, are you sure you cannot use the resulting repo\nwhen it \"fails\"?\nWhat happens when you run \"git fsck --full\" on the resulting repos?\n\n> Both with the same error:\n> error: refs/changes/98/398/1 does not point to a valid object!\n> error: refs/changes/98/398/2 does not point to a valid object!\n\nDid you try to see which objects these refs are pointing to, and if\nthey are on the server?\n\nRegards,\nChristian.\n"},{"id":"158053","messageId":"1292337456.25237.29023.camel@korcula.inria.fr","threadId":"26040","inReplyTo":"AANLkTinoD2qn7ZqMtGbSjJgkVUNE--fOsrSKzqTLCLpP@mail.gmail.com","subject":"Re: Corruption in the repository","fromName":"Sylvestre Ledru","fromEmail":"sylvestre.ledru@scilab.org","sentAt":"2010-12-14T14:37:36Z","receivedAt":"2010-12-14T14:37:36Z","isPatch":false,"sender":{"key":"sylvestre.ledru@scilab.org","avatar":"https://gravatar.com/avatar/fa5531c088178bd882546ba9fabd950fa74627c97ee5bb7337d8e21afe170ace?d=mp&s=160"},"body":"Le mardi 14 décembre 2010 à 12:59 +0100, Christian Couder a écrit :\n> On Tue, Dec 14, 2010 at 10:47 AM, Sylvestre Ledru\n> <sylvestre.ledru@scilab.org> wrote:\n> > Le mardi 14 décembre 2010 à 10:29 +0100, Christian Couder a écrit :\n> >> On Mon, Dec 13, 2010 at 7:11 PM, Sylvestre Ledru\n> >> <sylvestre.ledru@scilab.org> wrote:\n> >> > Le lundi 13 décembre 2010 à 18:02 +0100, Christian Couder a écrit :\n> >> >> On Mon, Dec 13, 2010 at 5:47 PM, Sylvestre Ledru\n> >> >> <sylvestre.ledru@scilab.org> wrote:\n> >> >> >\n> >> >> > Le lundi 13 décembre 2010 à 17:34 +0100, Christian Couder a écrit :\n> >> >> >> Hi,\n> >> >> >>\n> >> >> >> On Mon, Dec 13, 2010 at 4:59 PM, Sylvestre Ledru\n> >> >> >> <sylvestre.ledru@scilab.org> wrote:\n> >> >> >> > Hello guys,\n> >> >> >> >\n> >> >> >> > I have a small problem with a git repository and I haven't find a way to\n> >> >> >> > fix my problem.\n> >> >> >> > I am using git with gerrit [1] as frontend (even if I don't think it is\n> >> >> >> > related here).\n> >> >> >> > For an unknown reason, the repository just became corrupted.\n> >> >> >> >\n> >> >> >> > When I try to clone the repository straight with the file system, the\n> >> >> >> > following error is displayed:\n> >> >> >> > error: refs/changes/98/398/1 does not point to a valid object!\n> >> >> >> > error: refs/changes/98/398/2 does not point to a valid object!\n> >> >> >> > fatal: object cff52c24fba28408e7d021a8f35a717bef31521d is corrupted\n> >> >> >> > fatal: The remote end hung up unexpectedly\n> >> >> >> >\n> >> >> >> > git-prune & git-fsck both fail.\n> >> >> >> >\n> >> >> >> > Does anyone know how to repair this error ?\n> >> >> >>\n> >> >> >> Did you try what the FAQ suggests:\n> >> >> >>\n> >> >> >> https://git.wiki.kernel.org/index.php/GitFaq#How_to_fix_a_broken_repository.3F\n> >> >> > Yes. It shows an other error and it doesn't match the error described on\n> >> >> > this URL [1].\n> >> >> >\n> >> >> > I get the following:\n> >> >> > error: refs/tags/5.3.0-beta-4 does not point to a valid object!\n> >> >> > fatal: object 555a7c359b2e589ec10822d9b56cdfeee0105fe0 is corrupted\n> >> >>\n> >> >> The FAQ says that you should try to replace any broken and/or missing\n> >> >> objects, so you should try to do that with object\n> >> >> 555a7c359b2e589ec10822d9b56cdfeee0105fe0 (as described in the FAQ)\n> >> >> even if the error message is not exactly the same.\n> >> > Well, after clean the error about the tags, it does not provide any\n> >> > interesting feedbacks like in the FAQ.\n> >> >\n> >> > Just some information [1] about some dangling commits (probably commit\n> >> > under review in gerrit). Nothing valuable and the problem still occurs\n> >> > on the client side.\n> >>\n> >> So you say that \"git fsck --full\" gives only dangling commits on the\n> >> server, and you still get messages like \"fatal: object XXXXX is\n> >> corrupted\" on the client when you try to clone with gerrit?\n> > Not exactly, when I try to clone it through gerrit, it is working:\n> > git clone ssh://sylvestre.ledru@git.scilab.org:29418/scilab\n> > A bare clone works also.\n> >\n> > It is failing when I am using git-daemon (git clone\n> > git://git.scilab.org/scilab) or a straight clone (git\n> > clone /home/git/repositories/repo.git).\n> \n> This is very strange, are you sure you cannot use the resulting repo\n> when it \"fails\"?\n> What happens when you run \"git fsck --full\" on the resulting repos?\n> \n> > Both with the same error:\n> > error: refs/changes/98/398/1 does not point to a valid object!\n> > error: refs/changes/98/398/2 does not point to a valid object!\n> \n> Did you try to see which objects these refs are pointing to, and if\n> they are on the server?\nIn fact, we have some progress on the issue. \nIt looks like, at some point, two tags have been badly created [1].\n\nHere is what Bruno did to fix the issue:\n1 - Add valid references\nI put some valid commit id in refs/changes/98/398/{1,2}\n\n2 - Find out what the corrupted object was for\n$> git cat-file -t cff52c24fba28408e7d021a8f35a717bef31521d\ntag\n$> cat refs/tags/5.3.0-beta-4\ncff52c24fba28408e7d021a8f35a717bef31521d\n$> git tag -d 5.3.0-beta-4\n\n3 - Server complains :\nfatal: git upload-pack: unable to fork git-pack-objects\n$> git gc (on the server)\nSolved this problem.\n\nHope this helps for others,\nSylvestre\n\n[1] Looks at my mail archive, the guy who created the tag did it this\nway:\n[$SHELL] cd /home/git/repositories/scilab.git\n[$SHELL] git tag -d 5.3.0-beta-4\n[$SHELL] git tag -m \"Scilab 5.3.0 Beta 4 Version\" 5.3.0-beta-4 \n96b0b8e6d621a7ea7c88d63e10d57908689632ed\n"},{"id":"158082","messageId":"20101214191901.GA7257@burratino","threadId":"26040","inReplyTo":"1292255990.25237.27642.camel@korcula.inria.fr","subject":"Re: Corruption in the repository","fromName":"Jonathan Nieder","fromEmail":"jrnieder@gmail.com","sentAt":"2010-12-14T19:19:01Z","receivedAt":"2010-12-14T19:19:01Z","isPatch":false,"sender":{"key":"jrnieder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/281595?v=4"},"body":"Sylvestre Ledru wrote:\n\n> error: refs/changes/98/398/1 does not point to a valid object!\n> error: refs/changes/98/398/2 does not point to a valid object!\n> fatal: object cff52c24fba28408e7d021a8f35a717bef31521d is corrupted\n> fatal: The remote end hung up unexpectedly\n\nAh, should have thought of this sooner.  There doesn't seem to be\ncorruption involved after all.\n\n> Does anyone know how to repair this error ?\n\nUse git from the \"master\" branch to consolidate pack files:\n\n\t~/src/git/bin-wrappers/git repack -a -d\n\nDetails are in f2e872aa5 (Work around EMFILE when there are too many\npack files, 2010-11-01), which will likely be part of git 1.7.4.\nThanks for reporting and sorry for the trouble.\n\nJonathan\n"}]}