schacon / hg-git

mercurial to git bridge, pushed to directly from the hg-git plugin in Hg
GNU General Public License v2.0
620 stars 71 forks source link

Can't push to GitHub: error: index-pack died of signal 11 #216

Closed AlainODea closed 10 years ago

AlainODea commented 12 years ago

When I try to push to GitHub I get an error message error: index-pack died of signal 11. Here is a transcript:

$ hg --debug push git+ssh://git@github.com/zotonic/zotonic-test
pushing to git+ssh://git@github.com/zotonic/zotonic-test
creating and sending data
calling ssh: ssh git@github.com 'git-receive-pack '\''/zotonic/zotonic-test'\'''
["git-receive-pack '/zotonic/zotonic-test'"]
error: index-pack died of signal 11
broken pipe

This happens on both my laptop and the server from which I attempting to synchronize the Mercurial and Git repositories.

tathamoddie commented 12 years ago

I'm getting this same issue with de0b2661032f.

C:\Code\Neo4jClient>hg pus github
pushing to git+ssh://git@github.com/tathamoddie/Neo4jClient.git
exporting hg objects to git
creating and sending data
["git-receive-pack 'tathamoddie/Neo4jClient.git'"]
error: index-pack died of signal 11
tathamoddie commented 12 years ago

Updated to 413:b8eeabb61c7b and now getting a slightly different output:

C:\Code\Neo4jClient>hg pus github
pushing to git+ssh://git@github.com/tathamoddie/Neo4jClient.git
creating and sending data
["git-receive-pack 'tathamoddie/Neo4jClient.git'"]
error: index-pack died of signal 11
abort: Invalid argument

Only affects this particular repo.

denisdefreyne commented 12 years ago

Same issue here. For the nanoc repository, I am trying to push the release-3.1.x branch, but am getting this:

pushing to git+ssh://git@github.com/ddfreyne/nanoc.git importing Hg objects into Git creating and sending data ["git-receive-pack '/ddfreyne/nanoc.git'"] error: index-pack died of signal 11

reuben commented 12 years ago

I'm having the same problem, trying to push a good amount of commits to a GitHub repository (mirroring an existing repo).

denisdefreyne commented 12 years ago

Using the latest hg-git from github fixed the issue for me.

AlainODea commented 12 years ago

Using https://github.com/offbytwo/git-hg fixed the issue for me. It's an alternative implementation and runs much faster than hg-git. It's based on git-fast-import.

AlainODea commented 12 years ago

I didn't mean to close this. This bug isn't fixed. Sorry.

guetux commented 12 years ago

Having the same issue with the current master branch version. Where can i donate beer so this will be fixed soon? :D

testinfected commented 12 years ago

I have the same error with latest trunk, dulwich 0.7.1 and mercurial 1.9 on OSX 10.6.8. hg push worked fine for a number of changesets, then suddenly started failing with:

$ hg push github
pushing to git+ssh://git@github.com/testinfected/cuckoo.git
creating and sending data
["git-receive-pack '/testinfected/cuckoo.git'"]
error: index-pack died of signal 11
abort: git remote error: unpack index-pack abnormal exit

When I clone the same repo with git (1.7.1), I can push without problem.

rickchristie commented 12 years ago

Also have this issue, dulwich 0.7.1, mercurial 1.6.3 - pushing was fine and suddenly breaks. Error dump below:

["git-receive-pack '/rickchristie/Carrot.git'"]
error: index-pack died of signal 11
** unknown exception encountered, details follow
** report bug details to http://mercurial.selenic.com/bts/
** or mercurial@selenic.com
** Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) [GCC 4.2.1 (Apple Inc. build 5646)]
** Mercurial Distributed SCM (version 1.6.3+20100826)
** Extensions loaded: graphlog, extdiff, bookmarks, hggit
Traceback (most recent call last):
  File "/usr/local/bin/hg", line 27, in <module>
    mercurial.dispatch.run()
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 16, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 34, in dispatch
    return _runcatch(u, args)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 54, in _runcatch
    return _dispatch(ui, args)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 494, in _dispatch
    cmdpats, cmdoptions)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 355, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 545, in _runcommand
    return checkargs()
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 499, in checkargs
    return cmdfunc()
mperry8889 commented 12 years ago

same issue. dulwich 0.7.1, hg 1.9. pushing worked fine a couple weeks ago. various forms of re-cloning and updating have not helped

rickchristie commented 12 years ago

I have a sneaking suspicion that this happened because of case insensitive file system and renaming something to the same name just with different case.

jorrizza commented 12 years ago

No, it's no case sensitivity issue. I've got the same problem between a Linux box and Github.

testinfected commented 12 years ago

Latest dulwich trunk seems to fix the issue for me so far. Can somebody else confirm that?

vinc3m1 commented 12 years ago

Nope. Updated to dulwich 0.8.0 (with hg 1.9), still getting error:

error: index-pack died of signal 11
abort: git remote error: unpack index-pack abnormal exit
mperry8889 commented 12 years ago

same here. updated to dulwich trunk, still get signal 11. tried both normal installation and with setup.py --pure, which disables its C extensions.

it's worth noting that i'm able to push into local git repos, but not to github.

testinfected commented 12 years ago

Hum. I was able to push the same content to a new github repo, but it still fails on the original repo

toots commented 12 years ago

Updating to the latest dulwich git trunk fixed the issue for me..

guetux commented 12 years ago

dito for me: latest dulwich and life is easy again.

testinfected commented 12 years ago

Same here

mperry8889 commented 12 years ago

working fine here as well

eserge commented 12 years ago

New dulwich (0.8.3) fixes the problem for me.

bngsudheer commented 9 years ago

python-dulwich 0.9.7 latest hg-git from Github

Can't push to git repo. I get the error: abort: git remote error: unpack index-pack abnormal exit

Zogg commented 9 years ago

Experiencing same error as @bngsudheer .

bngsudheer commented 9 years ago

I figured out my problem. I had a '.git' directory in my Mercurial repository. Mercurial itself has no problem having a directory by name '.git'. However, github.com will not accept pushes if the repository contains a '.git' directory. hg-git has nothing to do with it, I guess.

My solution was to remove the offending directory from the Mercurial repository and its history.

Zogg commented 9 years ago

@bngsudheer Indeed, I also have .git directory in my repo history. Do you have any guidelines how to safely remove .git from (mercurial) repository history?

bngsudheer commented 9 years ago

Zogg, sorry, no. I wiped all the history(started a new repository).

Zogg commented 9 years ago

https://www.jitbit.com/alexblog/232-removing-files-from-mercurial-history/ is how to safely remove files from the history. Thanks for a tip, @bngsudheer , that solved the problem.

stvenyin commented 6 years ago

i.don't know