Subject: Unable to fetch from private repo "bad tree object"

Original Post Kim Pepper's Avatar

Kim Pepper

09 Jun, 2009 10:58 PM

I'm having trouble fetching from a private repo. I get the following error message:

git fetch -v
error: Could not read b6648eac1dc57694b1de43ab9176277751d76afc
fatal: bad tree object b6648eac1dc57694b1de43ab9176277751d76afc
remote: Counting objects: 4, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 0 (delta 0)
remote: aborting due to possible repository corruption on the remote side.
error: waitpid (async) failed
fatal: git-upload-pack: aborting due to possible repository corruption on the remote side.
Unpacking objects: 100% (3/3), done.
error: waitpid (async) failed
fatal: error in sideband demultiplexer
  1. 2 Posted by Kim Pepper on 09 Jun, 2009 11:06 PM

    Kim Pepper's Avatar

    Repo is at https://github.com/previousnext/nsw-works/tree

  2. 3 Posted by Lukas Fittl on 18 Jun, 2009 10:27 PM

    Lukas Fittl's Avatar

    We're having the same problem with the public repository http://github.com/soup/rails/tree/2-3-stable (although we're fetching through the private clone url)

    Log: http://gist.github.com/132247

  3. Support Staff 4 Posted by Tom Preston-Werner on 19 Jun, 2009 03:02 AM

    Tom Preston-Werner's Avatar

    Kim, can you re-push your repo with tags? It looks like a server side corruption is causing a missing link. We're looking into the possible causes of this.

  4. Support Staff 5 Posted by Tom Preston-Werner on 19 Jun, 2009 03:04 AM

    Tom Preston-Werner's Avatar

    Lukas, can you re-push your repo with tags? It looks like a server side corruption is causing a broken link. We're looking into the possible causes of this.

  5. 6 Posted by Lukas Fittl on 19 Jun, 2009 03:41 AM

    Lukas Fittl's Avatar

    Tom, doing a "git push --tags" results in the following errors: http://gist.github.com/132390

  6. 7 Posted by Lukas Fittl on 19 Jun, 2009 03:55 AM

    Lukas Fittl's Avatar

    Interestingly, doing a git-clone now resuls in a different error: http://gist.github.com/132401

    And doing another "git push" returns the following: http://gist.github.com/132404

    Thanks for your help!

  7. Support Staff 8 Posted by Tekkub on 19 Jun, 2009 10:49 PM

    Tekkub's Avatar

    Lukas, your issue is actually different from the original poster's. I applied a fix, but I'm not sure if your push before the fix caused issues. Are you able to push or pull now?

  8. 9 Posted by Lukas Fittl on 21 Jun, 2009 07:14 AM

    Lukas Fittl's Avatar

    Unfortunately there are still problems with the wip_abstract_controller branch: http://gist.github.com/133435

    Interestingly there also was an 404 when accessing http://github.com/soup/rails/tree/2-3-stable before I issued "git push origin 2-3-stable".

    http://github.com/soup/rails/tree/wip_abstract_controller still returns 404, "git push origin wip_abstract_controller" does not work (see pasted shell output).

  9. 10 Posted by Kim Pepper on 21 Jun, 2009 10:59 PM

    Kim Pepper's Avatar

    We have abandoned the repo as it was for a project that need to go live quickly. Will there be any problems if I just delete the repo?

  10. Support Staff 11 Posted by Tekkub on 22 Jun, 2009 07:16 AM

    Tekkub's Avatar

    There shouldn't be an issue Kim. Sorry about the troubles, I'm not sure if Tom has found the cause yet.

    Lukas, do you have a full clone of your fork locally? It might just be simplest at this point to re-fork and re-push.

  11. 12 Posted by Lukas Fittl on 22 Jun, 2009 06:22 PM

    Lukas Fittl's Avatar

    Did a re-fork, and re-push, works again (as expected).

    Thanks for your help!

    PS: Is there a particular reason why the rails/rails repository has a HEAD branch on github? That caused weird errors when cloning, until I deleted that branch on our fork.

  12. Support Staff 13 Posted by Tekkub on 22 Jun, 2009 06:46 PM

    Tekkub's Avatar

    It looks like HEAD is pointing to a branch, not a commit, as it should be. What error was it causing?

  13. 14 Posted by Lukas Fittl on 22 Jun, 2009 07:17 PM

    Lukas Fittl's Avatar

    Steps to repeat:

    1. Fork rails/rails on github.com
    2. Execute the following steps on the existing repository (from before re-fork)
    3. git fetch From git@github.com:soup/rails
    • bb1eb07...4851ca9 HEAD -> origin/HEAD (forced update)
    1. git fetch From git@github.com:soup/rails
    • 4851ca9...bb1eb07 2-3-stable -> origin/2-3-stable (forced update)
    1. git fetch From git@github.com:soup/rails
    • bb1eb07...4851ca9 HEAD -> origin/HEAD (forced update)
    1. The above keeps repeating when running git fetch, with HEAD/2-3-stable changing each time
    2. git push origin :HEAD
    3. git pull Already up-to-date.
  14. Support Staff 15 Posted by defunkt on 10 Jul, 2009 05:57 PM

    defunkt's Avatar

    We recently tweaked the Rails repo - this problem shouldn't happen anymore.

    Cheers,

    Chris

Comments are currently closed for this discussion. You can start a new one.

Recent Discussions

10 Feb, 2010 02:58 AM
10 Feb, 2010 01:30 AM
10 Feb, 2010 01:22 AM
10 Feb, 2010 01:15 AM
10 Feb, 2010 12:15 AM

 

10 Feb, 2010 12:04 AM
09 Feb, 2010 10:54 PM
09 Feb, 2010 10:44 PM
09 Feb, 2010 09:45 PM
09 Feb, 2010 08:48 PM