【问题标题】:Heroku could not connect to server: 'Connection refused' when deploying a Rails 3.2.3 app on cedar stack [closed]Heroku 无法连接到服务器:在 cedar 堆栈上部署 Rails 3.2.3 应用程序时出现“连接被拒绝”[关闭]
【发布时间】:2012-06-15 08:06:51
【问题描述】:

从昨天开始就可以了,但是今天早上,我不知道为什么,我在 heroku 上的应用程序无法连接到共享数据库。 我什至不会做一个简单的:

$ heroku run rake db:reset

(我在雪松堆上)。 这是控制台跟踪转储:

** Invoke db:reset (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
could not connect to server: Connection refused
    Is the server running on host "ec2-107-22-222-231.compute-1.amazonaws.com" and accepting
    TCP/IP connections on port 5432?
/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.3/lib/active_record/connection_adapters/postgresql_adapter.rb:1194:in `initialize'
/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.3/lib/active_record/connection_adapters/postgresql_adapter.rb:1194:in `new'
/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.3/lib/active_record/connection_adapters/postgresql_adapter.rb:1194:in `connect'
/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.3/lib/active_record/connection_adapters/postgresql_adapter.rb:329:in `initialize'
...
Tasks: TOP => db:reset => environment

有什么想法吗?

--更新---

他们刚刚在 https://status.heroku.com/ 更新了他们的状态,事件 375:https://status.heroku.com/incidents/375

...我想我只需要等待。

--更新---

3小时后错误信息变为:

could not translate host name "ec2-107-22-222-231.compute-1.amazonaws.com" to address: Name or service not known (PG::Error)

至少现在我确定 Heroku 的人正在工作。

【问题讨论】:

  • 有什么更新吗?我收到此错误并且没有任何运气重新启动。您的问题是如何解决的?
  • 我遇到了同样的问题,但现在seems to be resolved。我可以确认部署在 Cedar 堆栈上的应用程序已备份。
  • 不幸的是,你所能做的就是去here然后等待......

标签: heroku ruby-on-rails-3.2 cedar


【解决方案1】:

同样的问题。它一直工作到昨天。

专用的生产数据库应该可以运行。 我们正在继续恢复共享 开发数据库以及 Crane 和 Kappa 测试数据库。 Varnish 暂时保留 在 Bamboo HTTP 堆栈上禁用。

是的,显然只是等待就是答案。

【讨论】:

    猜你喜欢
    • 2013-04-14
    • 2014-04-12
    • 2020-11-21
    • 2012-12-19
    • 2018-09-24
    • 2019-06-25
    • 2013-11-15
    • 2020-12-09
    • 1970-01-01
    相关资源
    最近更新 更多