Bug 818330 - Git/ssh error on git clone GIT_URL: ControlPath too long
Summary: Git/ssh error on git clone GIT_URL: ControlPath too long
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: OKD
Classification: Red Hat
Component: oc
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Clayton Coleman
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-02 19:24 UTC by Nam Duong
Modified: 2015-05-15 01:52 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-25 05:43:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Nam Duong 2012-05-02 19:24:12 UTC
Description of problem:
See forum post:
https://openshift.redhat.com/community/forums/openshift/solved-git-clone-or-other-git-command-exits-with-error-controlpath-too-long

This user ran into a very specific ssh error:
$ git clone GIT_URL
Cloning into 'myapp'...
ControlPath too long
fatal: The remote end hung up unexpectedly

Solution:
Added the following to ~/.ssh/config:
Host *.rhcloud.com
    ControlPath ~/.ssh/control-%h


For this enhancement, should we include this into our rhc client tool's ssh environment config?  Does it hurt?

Please note that this is the first time I've seen this exact error, but I haven't been *looking for it.

Comment 1 Clayton Coleman 2012-05-03 22:55:49 UTC
Changing the ControlPath means that multiple SSH agents might collide - I don't think restricting it this way is a good idea.  We might be able to shorten the hostname or user.  I think if they followed these steps they would only be able to ssh/git on one process at a time

Can you document this as a workaround in the KB for now?

Comment 2 Clayton Coleman 2012-06-21 14:40:24 UTC
I opened a KB article for this.  https://openshift.redhat.com/community/kb/kb-e1046-unable-to-git-clone-an-application-when-ssh-multiplexing-is-in-use-controlpath-too-long.  We have no easy path to implement this in the CLI and changing the Git URL is fairly expensive.  Not many folks have hit this.

Comment 3 Xiaoli Tian 2012-06-25 05:43:58 UTC
Since there's a KB for this, and according to comment 2, close it as won't fix.


Note You need to log in before you can comment on or make changes to this bug.