【问题标题】:Perfectly working Heroku app crashed and unable to restart完美运行的 Heroku 应用程序崩溃并且无法重新启动
【发布时间】:2013-06-04 06:57:03
【问题描述】:

我使用 Spree 并托管在 Heroku 上的 Rails 应用程序一直运行良好,直到昨晚,但我今天早上醒来发现应用程序崩溃了,我不知道为什么。我最近没有做任何改变。我尝试 heroku restart 没有成功。 Heroku 似乎出了点问题(日志问我亚马逊主机是否正在运行??)我该如何让他们知道为我解决这个问题?

2013-06-04T06:47:59.795210+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.3/lib/active_record/connection_adapters/postgresql_adapter.rb:1076:in `initialize': could not connect to server: Connection refused (PGError)
2013-06-04T06:47:59.795659+00:00 app[web.1]:    from /app/vendor/bundle/ruby/1.9.1/bundler/gems/spree-58e0391d3496/core/config/initializers/spree.rb:15:in `<top (required)>'
2013-06-04T06:47:59.795210+00:00 app[web.1]:    Is the server running on host "ec2-54-243-188-56.compute-1.amazonaws.com" and accepting
2013-06-04T06:47:59.795210+00:00 app[web.1]:    TCP/IP connections on port 5442?

【问题讨论】:

  • 错误说明了一切。服务器是否在主机“ec2-54-243-188-56.compute-1.amazonaws.com”上运行?请检查您的服务器是否正在运行。
  • 数据库问题——现在应该修复

标签: heroku amazon-web-services amazon-ec2 spree heroku-postgres


【解决方案1】:
【解决方案2】:

从终端查看日志

heroku logs --app <heroku app name>

检查崩溃堆栈跟踪,然后从仪表板重新启动所有测功机

【讨论】:

    猜你喜欢
    • 2023-03-12
    • 2018-12-23
    • 1970-01-01
    • 1970-01-01
    • 2011-09-23
    • 1970-01-01
    • 2011-07-12
    • 2023-03-11
    • 1970-01-01
    相关资源
    最近更新 更多