{"thread":{"id":"24443","subject":"unpack failed --- is my repos broken?","startedAt":"2010-07-20T13:42:29Z","lastAt":"2010-07-23T10:43:10Z","messageCount":7,"participants":["Ivan Uemlianin","Jared Hance","Tay Ray Chuan","Ilari Liusvaara"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"145852","messageId":"4C45A7C5.1050601@llaisdy.com","threadId":"24443","inReplyTo":null,"subject":"unpack failed --- is my repos broken?","fromName":"Ivan Uemlianin","fromEmail":"ivan@llaisdy.com","sentAt":"2010-07-20T13:42:29Z","receivedAt":"2010-07-20T13:42:29Z","isPatch":false,"sender":{"key":"ivan@llaisdy.com","avatar":null},"body":"Dear All\n\nI have several git repositories on a server, with which I'm \ncommunicating using smart-http.  Push and pull is all going fine.  Until \nthis morning, one of the repositories is not allowing pushes:\n\n     $ git push\n     Password: ...\n     Counting objects: 5, done.\n     Delta compression using up to 2 threads.\n     Compressing objects: 100% (3/3), done.\n     Writing objects: 100% (3/3), 410 bytes, done.\n     Total 3 (delta 2), reused 0 (delta 0)\n     error: unpack failed: unpack-objects abnormal exit\n\nOther repositories on the same server (and under the same /var/www/git/ \ndirectory) are working fine.\n\nI have googled around and this doesn't seem to be an uncommon problem, \nbut I haven't found a solution.\n\nDoes the above mean this repository is broken and I should rescue or \nreplace it (as in \"How to fix a broken repository?\" on the git wiki [1])?\n\nIs smart-http not entirely reliable?  In which case what is the \npreferred way to communicate remotely (we need to push as well as pull; \nthere are a very small number of active developers)?\n\nWith thanks and best wishes\n\nIvan\n\n\n[1] How to fix a broken repository?\n     \nhttp://git.wiki.kernel.org/index.php/GitFaq#How_to_fix_a_broken_repository.3F\n\n\n-- \n============================================================\nIvan A. Uemlianin\nSpeech Technology Research and Development\n\n                     ivan@llaisdy.com\n                      www.llaisdy.com\n                          llaisdy.wordpress.com\n                      www.linkedin.com/in/ivanuemlianin\n\n     \"Froh, froh! Wie seine Sonnen, seine Sonnen fliegen\"\n                      (Schiller, Beethoven)\n============================================================\n"},{"id":"145855","messageId":"20100720153553.GA2931@localhost.localdomain","threadId":"24443","inReplyTo":"4C45A7C5.1050601@llaisdy.com","subject":"Re: unpack failed --- is my repos broken?","fromName":"Jared Hance","fromEmail":"jaredhance@gmail.com","sentAt":"2010-07-20T15:35:53Z","receivedAt":"2010-07-20T15:35:53Z","isPatch":false,"sender":{"key":"jaredhance@gmail.com","avatar":"https://avatars.githubusercontent.com/u/170192?v=4"},"body":"On Tue, Jul 20, 2010 at 02:42:29PM +0100, Ivan Uemlianin wrote:\n> Is smart-http not entirely reliable?  In which case what is the\n> preferred way to communicate remotely (we need to push as well as\n> pull; there are a very small number of active developers)?\n\nI'm not entirely sure why the error is occuring, but the preferred way\nto communicate is over SSH. You can use the git protocol for anonymous\npulling (but not pushing).\n"},{"id":"145942","messageId":"AANLkTimhS92IX7knat-1hQeGzCuJ1qMLVzwdvlST7kWO@mail.gmail.com","threadId":"24443","inReplyTo":"4C45A7C5.1050601@llaisdy.com","subject":"Re: unpack failed --- is my repos broken?","fromName":"Tay Ray Chuan","fromEmail":"rctay89@gmail.com","sentAt":"2010-07-21T16:12:41Z","receivedAt":"2010-07-21T16:12:41Z","isPatch":false,"sender":{"key":"rctay89@gmail.com","avatar":"https://avatars.githubusercontent.com/u/61553?v=4"},"body":"Hi,\n\nOn Tue, Jul 20, 2010 at 9:42 PM, Ivan Uemlianin <ivan@llaisdy.com> wrote:\n>    $ git push\n>    Password: ...\n>    Counting objects: 5, done.\n>    Delta compression using up to 2 threads.\n>    Compressing objects: 100% (3/3), done.\n>    Writing objects: 100% (3/3), 410 bytes, done.\n>    Total 3 (delta 2), reused 0 (delta 0)\n>    error: unpack failed: unpack-objects abnormal exit\n\nHave you checked for repository corruption on the local side? You\nmight be pushing bad stuff to the server.\n\n-- \nCheers,\nRay Chuan\n"},{"id":"146047","messageId":"4C496307.9080704@llaisdy.com","threadId":"24443","inReplyTo":"AANLkTimhS92IX7knat-1hQeGzCuJ1qMLVzwdvlST7kWO@mail.gmail.com","subject":"Re: unpack failed --- is my repos broken?","fromName":"Ivan Uemlianin","fromEmail":"ivan@llaisdy.com","sentAt":"2010-07-23T09:38:15Z","receivedAt":"2010-07-23T09:38:15Z","isPatch":false,"sender":{"key":"ivan@llaisdy.com","avatar":null},"body":"Dear All\n\nThank you for your comments.  I apologise for my delayed response.\n\nI think the local side is not the problem:  if I do a fresh clone, then \nwhen I try a push I get the same error.\n\nFor the moment I have deleted and recreated the git repos on the server \n(tedious but quick), and all seems well.  Is this an occasional fault I \ncan expect with the smart-http backend?\n\nSee query about ssh under separate title.\n\nWith thanks and best wishes\n\nIvan\n\nOn 21/07/2010 17:12, Tay Ray Chuan wrote:\n> Hi,\n>\n> On Tue, Jul 20, 2010 at 9:42 PM, Ivan Uemlianin<ivan@llaisdy.com>  wrote:\n>    \n>>     $ git push\n>>     Password: ...\n>>     Counting objects: 5, done.\n>>     Delta compression using up to 2 threads.\n>>     Compressing objects: 100% (3/3), done.\n>>     Writing objects: 100% (3/3), 410 bytes, done.\n>>     Total 3 (delta 2), reused 0 (delta 0)\n>>     error: unpack failed: unpack-objects abnormal exit\n>>      \n> Have you checked for repository corruption on the local side? You\n> might be pushing bad stuff to the server.\n>\n>    \n\n\n-- \n============================================================\nIvan A. Uemlianin\nSpeech Technology Research and Development\n\n                     ivan@llaisdy.com\n                      www.llaisdy.com\n                          llaisdy.wordpress.com\n                      www.linkedin.com/in/ivanuemlianin\n\n     \"Froh, froh! Wie seine Sonnen, seine Sonnen fliegen\"\n                      (Schiller, Beethoven)\n============================================================\n"},{"id":"146048","messageId":"4C496419.5070902@llaisdy.com","threadId":"24443","inReplyTo":"20100720153553.GA2931@localhost.localdomain","subject":"ssh communication not working","fromName":"Ivan Uemlianin","fromEmail":"ivan@llaisdy.com","sentAt":"2010-07-23T09:42:49Z","receivedAt":"2010-07-23T09:42:49Z","isPatch":false,"sender":{"key":"ivan@llaisdy.com","avatar":null},"body":"Dear All\n\nThank you for your comments.  I apologise for my delayed response.\n\nI can't remember why I set up smart-http.  There was a good reason at \nthe time, but it's possible that the reason is no longer in effect.\n\nI tried cloning over ssh and got an error:\n\n     $ git clone ivan@myserver.com:/path/to/git/myproject.git\n     Initialized empty Git repository in /Users/ivan/.git/\n     ivan@85.92.88.62's password: ...\n     bash: git-upload-pack: command not found\n     fatal: The remote end hung up unexpectedly\n\nI have ssh access to the server, but it's possible that I haven't set up \nthe server to serve git over ssh.  Please could someone point me to the \nappropriate place in the documentation?  The command git upload-pack is \navailable on the client and on the server.\n\nWith thanks and best wishes\n\nIvan\n\n\nOn 20/07/2010 16:35, Jared Hance wrote:\n> On Tue, Jul 20, 2010 at 02:42:29PM +0100, Ivan Uemlianin wrote:\n>    \n>> Is smart-http not entirely reliable?  In which case what is the\n>> preferred way to communicate remotely (we need to push as well as\n>> pull; there are a very small number of active developers)?\n>>      \n> I'm not entirely sure why the error is occuring, but the preferred way\n> to communicate is over SSH. You can use the git protocol for anonymous\n> pulling (but not pushing).\n>    \n\n-- \n============================================================\nIvan A. Uemlianin\nSpeech Technology Research and Development\n\n                     ivan@llaisdy.com\n                      www.llaisdy.com\n                          llaisdy.wordpress.com\n                      www.linkedin.com/in/ivanuemlianin\n\n     \"Froh, froh! Wie seine Sonnen, seine Sonnen fliegen\"\n                      (Schiller, Beethoven)\n============================================================\n"},{"id":"146049","messageId":"20100723100712.GA11889@LK-Perkele-V2.elisa-laajakaista.fi","threadId":"24443","inReplyTo":"4C496419.5070902@llaisdy.com","subject":"Re: ssh communication not working","fromName":"Ilari Liusvaara","fromEmail":"ilari.liusvaara@elisanet.fi","sentAt":"2010-07-23T10:07:12Z","receivedAt":"2010-07-23T10:07:12Z","isPatch":false,"sender":{"key":"ilari.liusvaara@elisanet.fi","avatar":null},"body":"On Fri, Jul 23, 2010 at 10:42:49AM +0100, Ivan Uemlianin wrote:\n> \n> I tried cloning over ssh and got an error:\n> \n>     $ git clone ivan@myserver.com:/path/to/git/myproject.git\n>     Initialized empty Git repository in /Users/ivan/.git/\n>     ivan@85.92.88.62's password: ...\n>     bash: git-upload-pack: command not found\n>     fatal: The remote end hung up unexpectedly\n\nYou don't have git-upload-pack in non-interactive $PATH (it is not the same\nas $PATH for interactive logins). Edit ~/.bashrc on remote side?\n\n-Ilari\n"},{"id":"146064","messageId":"4C49723E.2080507@llaisdy.com","threadId":"24443","inReplyTo":"20100723100712.GA11889@LK-Perkele-V2.elisa-laajakaista.fi","subject":"Re: ssh communication not working","fromName":"Ivan Uemlianin","fromEmail":"ivan@llaisdy.com","sentAt":"2010-07-23T10:43:10Z","receivedAt":"2010-07-23T10:43:10Z","isPatch":false,"sender":{"key":"ivan@llaisdy.com","avatar":null},"body":"Aha!  It works!\n\nDear Ilari\n\nThanks very much!\n\nBest wishes\n\nIvan\n\nOn 23/07/2010 11:07, Ilari Liusvaara wrote:\n> On Fri, Jul 23, 2010 at 10:42:49AM +0100, Ivan Uemlianin wrote:\n>    \n>> I tried cloning over ssh and got an error:\n>>\n>>      $ git clone ivan@myserver.com:/path/to/git/myproject.git\n>>      Initialized empty Git repository in /Users/ivan/.git/\n>>      ivan@85.92.88.62's password: ...\n>>      bash: git-upload-pack: command not found\n>>      fatal: The remote end hung up unexpectedly\n>>      \n> You don't have git-upload-pack in non-interactive $PATH (it is not the same\n> as $PATH for interactive logins). Edit ~/.bashrc on remote side?\n>\n> -Ilari\n>    \n\n\n-- \n============================================================\nIvan A. Uemlianin\nSpeech Technology Research and Development\n\n                     ivan@llaisdy.com\n                      www.llaisdy.com\n                          llaisdy.wordpress.com\n                      www.linkedin.com/in/ivanuemlianin\n\n     \"Froh, froh! Wie seine Sonnen, seine Sonnen fliegen\"\n                      (Schiller, Beethoven)\n============================================================\n"}]}