Open TerryQu3k opened 8 years ago
@TerryQu3k It appears that you are trying to configure an http proxy from these instructions. You need to replace http://proxy.server.com:portnumber
with the proxy server configuration your network administrator has given you. Or if you do not have a proxy server, make sure that you do not have the proxy server environment variables set.
Hi Guys, I'm facing the same issue. My workplace uses a proxy server. I've configured the proxy according to the instructions mentioned here.
The server I've set up is correct because it works with Git (for windows).
I've tried setting them to proxy.server.com:port_number
for which I get uninitialized constant Excon::Errors::ProxyParseError (NameError)
And also tried username@proxy.server.com:port_number
(which I'm using for Git, and it is working; I get bad URI(is not URI?): username@proxy.server.com:port_number (URI::InvalidURIError)
:disappointed:
Any help appreciated.
@rheaditi Could you verify that the proxy server is prefixed with http
or https
?
@ransombriggs Hi,
I hadn't tried that. Upon prefixing http://
and https://
respectively to HTTP_PROXY
and HTTPS_PROXY
I get the following messages:
@rheaditi Does your proxy rewrite certificates? If so, could you try setting SSL_CERT_FILE
to the certificate authority provided by your proxy server? Also, looking at your HTTPS_PROXY
test, it appears that you manually specified port 80, are you sure that is correct?
@ransombriggs
SSL_CERT_FILE
is set to point to a local version of this file as required for Jekyll following this guide.heroku-cli: Installing CLI... Error: connect_write timeout reached
@rheaditi Could you try unsetting SSL_CERT_FILE
temporarily in the command prompt and see if it works then?
@ransombriggs I get the same error as before:
Error: SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol (OpenSSL::SSL::SSLError) (Excon::Error::Socket)
Command: heroku login
HTTP Proxy: http://proxy.example.com:80
HTTPS Proxy: https://proxy.example.com:80
Version: heroku/toolbelt/3.43.9 (i386-mingw32) ruby/2.1.7
@rheaditi I was looking at the jekyll instructions you referenced earlier, and I was wondering if you could test two things for me. Does the test that they suggest work for github & heroku?
ruby -rnet/https -e "Net::HTTP.get URI('https://github.com')"
ruby -rnet/https -e "Net::HTTP.get URI('https://api.heroku.com')"
@ransombriggs So I hadn't tested that in a while, especially not behind the proxy server at work. It doesn't function behind the proxy..
user@machine MINGW64 /c
$ echo $HTTP_PROXY
http://[username]@proxy.server.com:80
user@machine MINGW64 /c
$ echo $HTTPS_PROXY
https://[username]@proxy.server.com:80
user@machine MINGW64 /c
$ ruby -rnet/https -e "Net::HTTP.get URI('https://github.com')"
C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:879:in `initialize': getaddrinfo: No such host is known. (SocketError)
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:879:in `open'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:879:in `block in connect'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/timeout.rb:73:in `timeout'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:878:in `connect'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:863:in `do_start'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:852:in `start'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:583:in `start'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:478:in `get_response'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:455:in `get'
from -e:1:in `<main>'
user@machine MINGW64 /c
$ ruby -rnet/http -e "Net::HTTP.get URI('http://github.com')"
C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:879:in `initialize': getaddrinfo: No such host is known. (SocketError)
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:879:in `open'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:879:in `block in connect'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/timeout.rb:73:in `timeout'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:878:in `connect'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:863:in `do_start'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:852:in `start'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:583:in `start'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:478:in `get_response'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:455:in `get'
from -e:1:in `<main>'
user@machine MINGW64 /c
$ echo $SSL_CERT_FILE
C:\Users\[username]\cacert.pem
user@machine MINGW64 /c
$ ruby -rnet/http -e "Net::HTTP.get URI('http://api.heroku.com')"
C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:879:in `initialize': getaddrinfo: No such host is known. (SocketError)
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:879:in `open'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:879:in `block in connect'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/timeout.rb:73:in `timeout'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:878:in `connect'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:863:in `do_start'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:852:in `start'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:583:in `start'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:478:in `get_response'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:455:in `get'
from -e:1:in `<main>'
user@machine MINGW64 /c
$ ruby -rnet/https -e "Net::HTTP.get URI('https://api.heroku.com')"
C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:879:in `initialize': getaddrinfo: No such host is known. (SocketError)
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:879:in `open'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:879:in `block in connect'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/timeout.rb:73:in `timeout'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:878:in `connect'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:863:in `do_start'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:852:in `start'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:583:in `start'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:478:in `get_response'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:455:in `get'
Hi, I couldn't install heroku toolbelt
It throws me error saying that
bad URI(is not URI?): http://proxy.server.com:portnumber
I paste the error.log