加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Heroku无法连接到服务器:在雪松堆栈上部署Rails 3.2.3应用程序

发布时间:2020-12-17 02:02:08 所属栏目:百科 来源:网络整理
导读:从昨天起它起作用了,但今天早上,我无法弄清楚原因,我在heroku上的应用程序无法连接到共享数据库. 我甚至不能做一个简单的事情: $heroku run rake db:reset (我在雪松堆上). 这是控制台跟踪转储: ** Invoke db:reset (first_time)** Invoke environment (fi
从昨天起它起作用了,但今天早上,我无法弄清楚原因,我在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

好吗,拜托?

–update —

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

……我想我只需要等待.

–update —

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的人正在工作.

解决方法

同样的问题在这里它工作直到昨天.

Dedicated production databases should be operational. We’re continuing recovery of shared
development databases and Crane and Kappa beta databases.
Varnish remains temporarily
disabled on the Bamboo HTTP stack.

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读