Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

ruby on rails - How do I push to Heroku or get info/status when it "hung up" or does not respond?

Got that error when trying to push updated app to Heroku (probably the same as this question):

> git push heroku master
ssh: connect to host heroku.com port 22: Bad file number
fatal: The remote end hung up unexpectedly

I cannot connect to the API URL

> heroku info
 !    Unable to connect to api.heroku.com

Nor can I get status

> heroku status
C:/Ruby192/lib/ruby/1.9.1/net/http.rb:644:in `initialize': 
A connection attempt failed because the connected party did 
not properly respond after a period of time, or established 
connection failed because connected host has failed to resp
ond. - connect(2) Errno::ETIMEDOUT)
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Had that error on two separate occasions today. Once when on WIFI at a cafe. Presumably port 22 blocked, though unconfirmed. Second occurrence was at home whilst had VPN connection in to office. Likely due to some sort of firewall rule. It now works fine having disconnected from the VPN. Conclusion is that this is a network issue.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...