I have a new desktop running Ubuntu. I tried a bunch of git repositories from my previous computer to a new one. I can handle it without a problem. However, if I do git clone in a new repository (we use gitolite and gitflow), any git push hangs. Even if I can successfully promote the rsynced project, running the git clone project from gitolite will succeed, but will result in a project that I cannot click on. The .git/config files are identical.
My computer:
$ uname -a Linux ovid-desktop 3.0.0-16-generic
Git push output (or read strace output ):
GIT_TRACE=1 git push -vv origin users/ovid trace: built-in: git 'push' '-vv' 'origin' 'users/ovid' Pushing to gitolite:libs/perl/ThirdParty-Sync trace: run_command: 'ssh' 'gitolite' 'git-receive-pack '\''libs/perl/ThirdParty-Sync'\''' trace: run_command: 'pack-objects' '--all-progress-implied' '--revs' '--stdout' '--thin' '--delta-base-offset' '--progress' trace: exec: 'git' 'pack-objects' '--all-progress-implied' '--revs' '--stdout' '--thin' '--delta-base-offset' '--progress' trace: built-in: git 'pack-objects' '--all-progress-implied' '--revs' '--stdout' '--thin' '--delta-base-offset' '--progress' Counting objects: 53, done. Delta compression using up to 4 threads. Compressing objects: 100% (21/21), done. Writing objects: 100% (28/28), 2.59 KiB, done. Total 28 (delta 13), reused 0 (delta 0)
And it hangs forever after the line of Total 28 (delta...
Successfully clicking on the same project but from the rsynced directory looks like this:
To gitolite:libs/perl/ThirdParty-Sync 8c056a5..0321b35 users/ovid -> users/ovid
The only symptom (red herring?) I can think of what might be related to this:
$ ssh gitolite PTY allocation request failed on channel 0
I need to add -T for this to work.
Again, I can successfully click if I'm in rsynced ThirdPart-Sync . This is only if I try to clone this project again from the gitolite server, which it fails.
Update . It turns out that he does not hang forever. Some time after the line of Total 28 I get the following.
Write failed: Broken pipe fatal: The remote end hung up unexpectedly fatal: The remote end hung up unexpectedly
Update Running strace doesn't tell me what is happening. I can not click on the repo:
wait4(4122, Counting objects: 53, done. Delta compression using up to 4 threads. Compressing objects: 100% (18/18), done. Writing objects: 100% (28/28), 11.62 KiB, done. Total 28 (delta 3), reused 28 (delta 3) [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 4122 --- SIGCHLD (Child exited) @ 0 (0) --- read(3,
Running strace on a repo that I can push gives me this from about the same place:
write(9, "^0321b3501969dead78a83a0d3234724"..., 42) = 42 write(9, "b9cbbc6cc37100baf706746205e7a4c4"..., 41) = 41 close(9) = 0 wait4(4632, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 4632 --- SIGCHLD (Child exited) @ 0 (0) --- read(6, "000e", 4) = 4 read(6, "unpack ok\n", 10) = 10 read(6, "001d", 4) = 4 read(6, "ok refs/heads/users/ovid\n", 25) = 25 read(6, "0000", 4) = 4 futex(0x7f8a49c619d0, FUTEX_WAIT, 4631, NULL) = 0