Der Befehl „git clone https://github.com/user/project.git“ Zeiten verwendet wird, wenn über einen HTTPS-Proxy verwendet wird.git clone Zeitüberschreitung, wenn sie durch HTTPS-Proxy
ich erfolgreich habe git, bevor hinter einem Proxy funktioniert, und haben andere Stackoverflow zu lesen git und Proxy-Nutzung im Zusammenhang. Jetzt habe ich es auf einem Host in meiner derzeitigen Organisation konfiguriert ist, eine nicht-Authentifizierungs-Proxy zu verwenden, aber es ist eine Zeitüberschreitung.
- der Proxy ist Tintenfisch, nicht-Authentifizierung
- direkt über TCP-443 verbindet, ist keine Option
- ich bestätigt habe, dass git den Proxy
- Git den Befehl berührt ausgibt „CONNECT Github .com: 443 HTTP/1.1"
- Der Proxy kann die Anfrage und verbindet sich mit github.com auf Port 443
- libcurl prüft github des cert und stellt eine SSL-Verbindung (SSL_RSA_WITH_RC4_128_SHA)
- git geht, dort zu sitzen, auf etwas zu warten, die nie
- Timeout geschieht
Hat jemand dies geschieht, bevor erlebt? Haben Sie irgendwelche Tipps?
Hier ist die Systemversion:
$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.4 (Santiago)
Hier ist die git-Version und Update-Informationen (neueste RH verfügbar)
$ git --version
git version 1.7.11.3
$ sudo yum check-update git
Loaded plugins: downloadonly, rhnplugin, security
This system is receiving updates from RHN Classic or RHN Satellite.
Hier die relevanten Umgebungsvariablen:
$ export | grep http
declare -x http_proxy="http://proxy.hostname:3128/"
declare -x https_proxy="http://proxy.hostname:3128/"
Hier mein .gitconfig (für Redundanz):
$ cat ~/.gitconfig
[http]
proxy = http://proxy.hostname:3128/
[https]
proxy = http://proxy.hostname:3128/
Hier ist ein Beispiel von git läuft (und schließlich Zeitüberschreitung):
$ GIT_CURL_VERBOSE=1 GIT_DEBUG_LOOKUP=1 GIT_TRANSLOOP_DEBUG=1 GIT_TRANSPORT_HELPER_DEBUG=1 git clone https://github.com/user/project.git 2>&1
Cloning into 'project'...
Debug: Remote helper: -> capabilities
Debug: Remote helper: Waiting...
Debug: Remote helper: <- fetch
Debug: Got cap fetch
Debug: Remote helper: Waiting...
Debug: Remote helper: <- option
Debug: Got cap option
Debug: Remote helper: Waiting...
Debug: Remote helper: <- push
Debug: Got cap push
Debug: Remote helper: Waiting...
Debug: Remote helper: <-
Debug: Capabilities complete.
Debug: Remote helper: Waiting...
* Couldn't find host github.com in the .netrc file; using defaults
* About to connect() to proxy proxy.hostname 3128 (#0)
* Trying 10.22.74.73... * Connected to proxy.hostname (x.x.x.x) port 3128 (#0)
* Establish HTTP proxy tunnel to github.com:443
> CONNECT github.com:443 HTTP/1.1
Host: github.com:443
User-Agent: git/1.7.11.3
Proxy-Connection: Keep-Alive
Pragma: no-cache
< HTTP/1.0 200 Connection established
<
* Proxy replied OK to CONNECT request
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* SSL connection using SSL_RSA_WITH_RC4_128_SHA
* Server certificate:
* subject: CN=github.com,O="GitHub, Inc.",L=San Francisco,ST=California,C=US,serialNumber=C3268102,incorporationState=California,incorporationCountry=US,businessCategory=Private Organization
* start date: May 27 00:00:00 2011 GMT
* expire date: Jul 29 12:00:00 2013 GMT
* common name: github.com
* issuer: CN=DigiCert High Assurance EV CA-1,OU=www.digicert.com,O=DigiCert Inc,C=US
* Connected to proxy.hostname (x.x.x.x) port 3128 (#0)
Hier ist der Tintenfisch-Log:
1367957877.701 60148 x.x.x.x TCP_MISS/200 3765 CONNECT github.com:443 - DIRECT/204.232.175.90 -
Also, was ist denn hier los? Hat jemand irgendwelche Ideen?
können Sie die Ausgabe von 'ssh-vT git @ github.com' einfügen? –
Sie können auch die tolle Post von @AmirHD hier überprüfen: http://Stackoverflow.com/a/21820716/1049572 – Neonigma