2017-02-02 3 views
2

IIS가있는 Windows 서버에서 Ruby on Rails 응용 프로그램 (OpenProject)을 설정하려고합니다. Ruby 2.3과 기본 Ruby 템플릿이 설치된 지금까지 새로운 Helicon Zoo v4 (https://github.com/helicontech/zoo)가 실행 중입니다. 내가 도망 갈 때 OpenProject에 대한 스크립트를 설치합니다 Windows 용 Git에서 알 수없는 프로토콜 오류가 발생했습니다.

bundle install --deployment --without postgres sqlite development test therubyracer docker 

내가 힘내와 알 수없는 프로토콜 오류가 발생,이 GitHub의에서 복제하려고하는 동안.
bundle install --deployment --without postgres development test therubyracer 
docker Fetching gem metadata from https://rubygems.org/...... 
Fetching version metadata from https://rubygems.org/.. 
Fetching dependency metadata from https://rubygems.org/. 
Fetching https://github.com/carrierwaveuploader/carrierwave 
fatal: unable to access 'https://github.com/carrierwaveuploader/carrierwave/': 
error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol 

나는이 대신하고 SSLv3의 TLS를 사용하도록 지정하는 등, 쉽게 고칠 것 확실히 생각했지만, 나는 명령 라인을 통해 창문 힘내에 관련된 아무것도 찾을 아직했습니다. 나는 여전히 찾고있다. 그러나 누군가 아이디어가 있는지 물어볼 줄 알았다.

편집 : 추적 켜기 및 자세한 curl 메시지가 더 나은 오류 뱉어 : 경로에

bundle install --deployment --without postgres development test therubyracer docker 
Fetching gem metadata from https://rubygems.org/...... 
Fetching version metadata from https://rubygems.org/.. 
Fetching dependency metadata from https://rubygems.org/. 
Fetching https://github.com/carrierwaveuploader/carrierwave 
    * Couldn't find host github.com in the _netrc file; using defaults 
    * timeout on name lookup is not supported 
    * Trying 192.30.253.113... 
    * TCP_NODELAY set 
    * Connected to github.com (192.30.253.113) port 443 (#0) 
    * ALPN, offering http/1.1 
    * Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH 
    * successfully set certificate verify locations: 
    * CAfile: C:/Git/mingw64/ssl/certs/ca-bundle.crt CApath: none 
    * error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol 
    * Curl_http_done: called premature == 1 
    * stopped the pause stream! 
    * Closing connection 0 fatal: unable to access 'https://github.com/carrierwaveuploader/carrierwave/': error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol 

추가 힘내는/usr/bin 폴더 것은, 나는 루비 웹 콘솔에서 컬 볼 수 있습니다 :

를 자식 설정 --global http.sslVersion SSLv3에

* Couldn't find host github.com in the _netrc file; using defaults 
* timeout on name lookup is not supported 
* Trying 192.30.253.112... 
* TCP_NODELAY set 
* Connected to github.com (192.30.253.112) port 443 (#0) 
* ALPN, offering http/1.1 
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH 
* successfully set certificate verify locations: 
* CAfile: C:/Git/mingw64/ssl/certs/ca-bundle.crt 
    CApath: none 
* error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure 
* Curl_http_done: called premature == 1 
* stopped the pause stream! 
* Closing connection 0 
fatal: unable to access 'https://github.com/carrierwaveuploader/carrierwave/': error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure 
,536,913,632 :와 자식의 프로토콜을 설정하려고
D:\inetpub\wwwroot\openproject>where curl 
C:\Git\usr\bin\curl.exe 

D:\inetpub\wwwroot\openproject>curl --version 
curl 7.51.0 (x86_64-pc-msys) libcurl/7.51.0 OpenSSL/1.0.2j zlib/1.2.11 libssh2/1.7.0 
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: Debug IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP UnixSockets Metalink 

10

+0

Heya - 우리가 직접 복사/붙여 넣기를하는 것이 더 쉽습니다 ... 원래의 질문에 그 터미널 출력을 복사/붙여 넣기 할 수 있습니까? (참고 : 형식화가 정말 끔찍하기 때문에 주석에 넣지 마십시오.) thanks :) –

답변

1

I documented here "프로토콜을 알 수 없음"에 대한 모든 이유.

routines:SSL23_GET_SERVER_HELLO:unknown protocol 오류는 리디렉션 문제입니다.
proxy settings을 확인하십시오.

모든 것이 실패하면 ... 시도하고 당신이 using an old openSSL입니다처럼 보이는

git config url."[email protected]/".insteadOf https://github.com/ 

Couldn't find host github.com in the _netrc file; using defaults 
error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol 

ssh를 전환합니다.

확인에 확인하십시오

  • 는 최신 망할 놈의 Windows 용 압축을
  • 설정 (: PortableGit-2.11.1-64-bit.7z.exe 2.11.1 발표 오늘 자동 extractible 아카이브) 당신의 PATH 등 :

    set PATH=C:\path\to\Git\bin;C:\path\to\Git\usr\bin;%PATH% 
    

(귀하의 PATH에서 먼저 자식을 설정)

그리고 지정해야합니다

git config --global http.sslVersion sslv3 

그런 다음 다시 시도하십시오.

+0

나는 프록시가 아닙니다. Windows 용 SSL은 이전 SSL 프로토콜을 사용하고 있다고 생각했지만 어쩌면 단순히 일반적인 오류 메시지 일 수 있습니다. 나는 구성 변경을 시도했으나 그것이 git 디렉토리에 없다고 불평했다 : 치명적인 : git 디렉토리가 아님 –

+0

다른 게시물에서 당신의 추천을 시도 할 것이다. –

+0

@ user7503764 당신은 힘내 어떤 버전을 사용하고 계십니까? – VonC

1

문제 해결 팁은 VonC에게 감사드립니다. 서버 엔지니어 중 한 명이 그의 대답을보고 내가 알지 못했던 자동 프록시가 있음을 확인했습니다. 나는 이것을 여러 가지 방법으로 해결할 수 있었다.this answer에서 수집

나는 창문을 신속하고 입력 된 명령 열 : 우리는 단지 일반적인 설정을 가지고 무슨 일이 있었

ping wpad 

, 그래서 이것은 서버가 존재 확인. 그런 다음 브라우저에서 wpad 파일 (링크 된 답변의 세부 정보)을 검색하고 프록시를 찾기 위해 wpad 파일을 검토했습니다. 우리는 사이트마다 다른 서버를 가지고 있으므로 내 위치와 특정 프록시 서버를 찾아야했습니다.

는 여기에서 다시 헬리 동물원 웹 콘솔에서, 나는 VonC의 answers의 또 다른에서이 명령과 함께 망할 놈의 프록시 설정을 설정합니다

실제 데이터와 proxyserver를 포트 교체. 마지막으로, 나는 github에서 복제 할 수있었습니다.

+0

잘하고, 내 대답보다 더 정확한. +1 – VonC

관련 문제