2013-03-09 49 views
2

我在一個要求我們把我們的紅寶石放在Heroku上的Rails應用程序的類。他們給了我們一步一步的指示,在我跟隨的Heroku上進行設置。我可以通過命令行登錄Heroku的,但是當我嘗試我的應用程序推到它,我得到這個:無法將Rails應用程序中的ruby推送到Heroku - 網絡問題?

Read from socket failed: Connection reset by peer 
fatal: The remote end hung up unexpectedly 

我ping通的服務器,它的工作。我試過重新啓動,一天後回來,重新創建應用程序,它工作正常。我檢查確認我有Heroku工具帶。我花了數小時搜索谷歌。我還沒有找到解決辦法。

一旦運行ssh -vvv [email protected]我得到

OpenSSH_5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012 
debug1: Reading configuration data /etc/ssh/ssh_config 
debug1: /etc/ssh/ssh_config line 19: Applying options for * 
debug2: ssh_connect: needpriv 0 
ssh: Could not resolve hostname heroku: Name or service not known 

一旦運行ssh [email protected] -T我得到

Warning: Permanently added the RSA host key for IP address '50.19.85.154' to the list of known hosts. 
Permission denied (publickey). 

所以我試圖再次git push heroku master,得到了

Permission denied (publickey). 
fatal: The remote end hung up unexpectedly 

任何想法?使用以下命令

+0

你從'ssh -vvv yourlogin @ heroku'得到了什麼。這應該會顯示在ssh通信期間發生的所有操作以幫助調試。 – 2013-03-09 08:05:34

+0

Scott,我將我的結果添加到了我的文章中 – BooBailey 2013-03-09 21:15:59

回答

3

所以我得到它的工作!感謝那些迴應的人 - 他們讓我走上了解決問題的道路。 這就是我所做的。

我跑ssh -vvv [email protected]@heroku這給了我

OpenSSH_5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012 
debug1: Reading configuration data /etc/ssh/ssh_config 
debug1: /etc/ssh/ssh_config line 19: Applying options for * 
debug2: ssh_connect: needpriv 0 
ssh: Could not resolve hostname heroku: Name or service not known 

在研究這個錯誤,我決定跑ssh [email protected] -T,接收這是響應:

Warning: Permanently added the RSA host key for IP address '50.19.85.154' to the list of known hosts. 
Permission denied (publickey). 

這從

改變從 git push heroku master導致我的錯誤
Read from socket failed: Connection reset by peer 
fatal: The remote end hung up unexpectedly 

Permission denied (publickey). 
fatal: The remote end hung up unexpectedly 

所以在研究這個錯誤,我跑heroku keys:add ~/.ssh/id_rsa.pub其返回:

Uploading SSH public key /home/renee/.ssh/id_rsa.pub... done 

這似乎好我又跑git push heroku master,並會見了成功。 所以,謝謝大家,祝你好運

相關問題