Unable to pull or clone hg repo over SSH (BB-10939)

Issue #9860 invalid
Fredrik Westermarck
created an issue

Hi!

When trying to pull changes over SSH from one of my private repos. From one of my computers I'm unable to do so from another computer it's fine.

When issueing the pull request the reuqest sometimes hangs in the beginning of the reuqest resulting in:

running ssh -C hg@bitbucket.org 'hg -R <REPO> serve --stdio'
sending hello command
sending between command
remote: 145
remote: capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024
remote: 1
pulling from <SSH-URL>
preparing listkeys for "bookmarks"
sending listkeys command
remote: Connection to bitbucket.org closed by remote host.

But more frequent is that the request does to execute, with the following output:

running ssh -C hg@bitbucket.org 'hg -R <REPO> serve --stdio'
sending hello command
sending between command
remote: 145
remote: capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024
remote: 1
pulling from <SSH-URL>
preparing listkeys for "bookmarks"
sending listkeys command
query 1; heads
sending batch command
searching for changes
all local heads known remotely
sending getbundle command
adding changesets
changesets: 1 chunks
add changeset fd65f92b852f
changesets: 2 chunks
add changeset 4243c2f5de18
changesets: 3 chunks
add changeset dafb8bab2631
changesets: 4 chunks
add changeset 15df5733cdd5
changesets: 5 chunks
add changeset b08ebc57ffe9
changesets: 6 chunks
add changeset f9878ac0a66b
changesets: 7 chunks
add changeset 83322c6b0422
changesets: 8 chunks
add changeset 1bbd69d0ee9b
adding manifests
manifests: 1/8 chunks (12.50%)
manifests: 2/8 chunks (25.00%)
manifests: 3/8 chunks (37.50%)
manifests: 4/8 chunks (50.00%)
manifests: 5/8 chunks (62.50%)
manifests: 6/8 chunks (75.00%)
manifests: 7/8 chunks (87.50%)
manifests: 8/8 chunks (100.00%)
adding file changes
adding .hgtags revisions
files: 1/11 chunks (9.09%)
adding extension/_locales/en/messages.json revisions
files: 2/11 chunks (18.18%)
adding extension/_locales/sv/messages.json revisions
files: 3/11 chunks (27.27%)
adding extension/context.js revisions
files: 4/11 chunks (36.36%)
adding extension/manifest.json revisions
files: 5/11 chunks (45.45%)
adding extension/options.html revisions
files: 6/11 chunks (54.55%)
adding extension/options.js revisions
files: 7/11 chunks (63.64%)

On the same computer where I'm unable to pull the changes I'm also unable to clone the repository into a new local repository.

Comments (5)

  1. Степан Чебанный

    Hello.

    I ran into similar issue today.

    But in my case it just hangs after sending the "heads" query.

    I tried doing it manually:

    $ ssh hg@bitbucket.org 'hg -R <my_repo> serve --stdio'
    hello
    145
    capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024
    heads
    

    And after that nothing comes in reply.

    Only one of my repos is affected by the issue, others work fine.

    Furthermore everything works fine on another machine under another user.

    UPDATE: it got working after a couple of hours

  2. Log in to comment