无法推送提交 - 操作超时

时间:2013-08-22 09:18:20

标签: heroku

首先;我正在尝试使用this manual建立hubot,它在12天前工作。今天我尝试了一些改变而且一次又一次失败所以我从一开始就开始了。这是我做的步骤:

sudo gem uninstall heroku
// then I installed heroku toolbelt thinking that this could be the problem

rm -rf /Users/andrei/.ssh/*rsa*
heroku login
git init .
git add .
git commit -m "first"
heroku create
// then I did all the config stuff, etc.
git push heroku master

这里一切都破了。我挂了大约10分钟,15分钟后得到这个:

zippy-one:franjo andrei$ git push heroku master
ssh: connect to host heroku.com port 22: Operation timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

好的,我将调试SSH:

zippy-one:franjo andrei$ ssh -vvv heroku.com
OpenSSH_5.9p1, OpenSSL 0.9.8x 10 May 2012
debug1: Reading configuration data /Users/andrei/.ssh/config
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: /etc/ssh_config line 53: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to heroku.com [50.19.85.154] port 22.
debug1: connect to address 50.19.85.154 port 22: Operation timed out
debug1: Connecting to heroku.com [50.19.85.156] port 22.
debug1: connect to address 50.19.85.156 port 22: Operation timed out
debug1: Connecting to heroku.com [50.19.85.132] port 22.
debug1: connect to address 50.19.85.132 port 22: Operation timed out
ssh: connect to host heroku.com port 22: Operation timed out

现在我认为它可能会让我知道我改变了我的主机名。但是,当我与heroku keys进行比较时,我再次重新创建了键,一切都适合。

你能帮帮我吗?我在这里过头,我被卡住了。提前谢谢!

其他信息:

我看到this thread并尝试了所有内容,因为你可以看到那里。没有防火墙阻止来自ssh或亚马逊服务器的任何连接。

3 个答案:

答案 0 :(得分:1)

我的ISP出于某种原因阻止了heroku?好吧那就是那个。

答案 1 :(得分:1)

原因:我对heroku的远程提取/推送网址搞砸了,修复解决了这个问题。

说明: Heroku试图将git存储库推送到一个它不存在(或格式错误)的地址,从而在此过程中超时。

解决方案:在终端验证您是否拥有正确的远程URL以推送到heroku,然后在必要时进行更改:


步骤:

<强> 1。输入你的git文件夹

cd /path/to/my/git/project

<强> 2。检查远程网址

git remote -v

第3。检查输出

heroku  git@heroku.com:my-heroku-app.git (fetch)
heroku  git@heroku.com:my-heroku-app.git (push)
origin  git@github.com:my-git-username/my-heroku-app.git (fetch)
origin  git@github.com:my-git-username/my-heroku-app.git (push)

以上是应该的样子。就我而言,前两行格式为git@heroku.my-heroku-app而不是git@heroku.com。当我改变它们时,它停止了超时。


希望这有助于其他人!

答案 2 :(得分:0)

我将Rails应用程序推送到包含新图像文件而不执行“rake assets:precompile”的Heroku时发生了这种情况

相关问题