{"thread":{"id":"20189","subject":"push fails -- temporary sha1, no such file / corruptiion ???","startedAt":"2009-07-22T02:21:59Z","lastAt":"2009-07-22T17:55:14Z","messageCount":3,"participants":["lytles","Tay Ray Chuan","seth's list"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"118441","messageId":"1248229319591-3297467.post@n2.nabble.com","threadId":"20189","inReplyTo":null,"subject":"push fails -- temporary sha1, no such file / corruptiion ???","fromName":"lytles","fromEmail":"srlytle.list@gmail.com","sentAt":"2009-07-22T02:21:59Z","receivedAt":"2009-07-22T02:21:59Z","isPatch":false,"sender":{"key":"srlytle.list@gmail.com","avatar":null},"body":"\ni have a \"centralized\" bare repository, and 2 local clones. i make changes on\nthe local clones and push the changes (to origin). i'm using ssh as my\ntransport. this has been working for about a year, but i don't make frequent\ncommits\n\ntoday i tried to push to origin (from both a remote machine, and the machine\non which the central repo lives), and the push failed:\n\n--------------------------------------------------------------------------------------------------------------------------------\n# git push\nCounting objects: 3, done.\nCompressing objects: 100% (2/2), done.\nerror: unable to create temporary sha1 filename ./objects/2f: No such file\nor directory\n\nfatal: failed to write object\nWriting objects: 100% (2/2), 260 bytes, done.\nTotal 2 (delta 1), reused 0 (delta 0)\nerror: unpack failed: unpacker exited with error code\nTo /home/*****/repos/git/home.git\n ! [remote rejected] master -> master (n/a (unpacker error))\nerror: failed to push some refs to '/home/*******/repos/git/home.git'\n--------------------------------------------------------------------------------------------------------------------------------\n\nthe \"object/2f\" varies with attempts to push from different remote repos,\nbut it's always an \"object/??\". multiple attempts to push from the same\nremote repo always results in the same \"object/??\"\n\ngit version 1.6.0.4\nubuntu 9.04 (jaunty)\namd64\n\n\"git fsck --full\" doesn't return any errors for either the remote or the\ncentral repos. a fresh clone of the central repo results in the same error\nwhen i attempt to push. cloning the remote repos works, and pushes succeed.\ni did a /forcefsck and didn't see any errors (but also couldn't find any\nreal logs - hidden by the splash screen i guess)\n\ni'm not sure which version of git was used to create the repository, but it\nwas probably 1.5.4 (ie, ubuntu hardy). incidentally, i have another\nrepository \"triplet\" that i use for a different set of code that is working\nfine, that was created and used with the same machines/toolchains/versions\n\nany idea what is going wrong ???\n\n\n-- \nView this message in context: http://n2.nabble.com/push-fails----temporary-sha1%2C-no-such-file---corruptiion-----tp3297467p3297467.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"118450","messageId":"be6fef0d0907220004n70c583f9u1852871df7686ed1@mail.gmail.com","threadId":"20189","inReplyTo":"1248229319591-3297467.post@n2.nabble.com","subject":"Re: push fails -- temporary sha1, no such file / corruptiion ???","fromName":"Tay Ray Chuan","fromEmail":"rctay89@gmail.com","sentAt":"2009-07-22T07:04:28Z","receivedAt":"2009-07-22T07:04:28Z","isPatch":false,"sender":{"key":"rctay89@gmail.com","avatar":"https://avatars.githubusercontent.com/u/61553?v=4"},"body":"Hi,\n\nOn Wed, Jul 22, 2009 at 10:21 AM, lytles<srlytle.list@gmail.com> wrote:\n> the \"object/2f\" varies with attempts to push from different remote repos,\n> but it's always an \"object/??\". multiple attempts to push from the same\n> remote repo always results in the same \"object/??\"\n\nhave you checked the permissions on your remote repo, particularly the\nobjects/ directory?\n\nThis is just a shot in the dark. I used to have pushes failing due to\nstricter permissions on the remote side.\n\n-- \nCheers,\nRay Chuan\n"},{"id":"118471","messageId":"5656c890907221055s69416174h81a76902156b6f45@mail.gmail.com","threadId":"20189","inReplyTo":"be6fef0d0907220004n70c583f9u1852871df7686ed1@mail.gmail.com","subject":"Re: push fails -- temporary sha1, no such file / corruptiion ???","fromName":"seth's list","fromEmail":"srlytle.list@gmail.com","sentAt":"2009-07-22T17:55:14Z","receivedAt":"2009-07-22T17:55:14Z","isPatch":false,"sender":{"key":"srlytle.list@gmail.com","avatar":null},"body":"(sorry for the dup Tay)\n\nthe permissions look ok to me. what should they be ?\n\ndrwxr-xr-x 8 lytles lytles     4096 2009-07-21 20:06 .\ndrwxr-xr-x 4 lytles lytles     4096 2009-07-21 20:06 objects/\n-rw-r--r-- 2 lytles lytles       54 2009-07-21 20:06 objects/info/packs\ndrwxr-xr-x 2 lytles lytles     4096 2009-07-21 20:06 objects/pack\n-r--r--r-- 2 lytles lytles    18208 2009-07-21 20:06 objects/pack/pack-\n9f4893584105c3f5b62cb9ff05e3d4d1f495a9f8.idx\n-r--r--r-- 2 lytles lytles 34209770 2009-07-21 20:06\nobjects/pack/pack-9f4893584105c3f5b62cb9ff05e3d4d1f495a9f8.pack\n\n\n\nany other thoughts on what caused the errors / corruption ?\n\nOn Wed, Jul 22, 2009 at 3:04 AM, Tay Ray Chuan <rctay89@gmail.com> wrote:\n>\n> Hi,\n>\n> On Wed, Jul 22, 2009 at 10:21 AM, lytles<srlytle.list@gmail.com> wrote:\n> > the \"object/2f\" varies with attempts to push from different remote repos,\n> > but it's always an \"object/??\". multiple attempts to push from the same\n> > remote repo always results in the same \"object/??\"\n>\n> have you checked the permissions on your remote repo, particularly the\n> objects/ directory?\n>\n> This is just a shot in the dark. I used to have pushes failing due to\n> stricter permissions on the remote side.\n>\n> --\n> Cheers,\n> Ray Chuan\n"}]}