Heroku帮助Amazon RDS Rails推送数据库报错

发布于 2024-10-24 04:23:55 字数 2146 浏览 1 评论 0原文

我在尝试将数据库推送到 Amazon RDS 时收到 503 错误

Home@PC /c/rails/konkurranceportalen (master)
$ heroku db:push
Loaded Taps v0.3.19
Auto-detected local database: mysql://[email protected]/konkurranceportalen?encodin
g=utf8
Warning: Data in the app 'vinderhimlen' will be overwritten and will not be reco
verable.

 !    WARNING: Potentially Destructive Action
 !    This command will affect the app: vinderhimlen
 !    To proceed, type "vinderhimlen" or re-run this command with --confirm vind
erhimlen

> vinderhimlen
Sending schema
Schema:        100% |==========================================| Time: 00:01:07
Sending indexes
admins:        100% |==========================================| Time: 00:00:01
schema_migrat: 100% |==========================================| Time: 00:00:01
slugs:         100% |==========================================| Time: 00:00:02
Sending data
7 tables, 138 records
admins:        100% |==========================================| Time: 00:00:00
kategoris:       0% |                                          | ETA:  --:--:--
Saving session to push_201103182120.dat..
!!! Caught Server Exception
HTTP CODE: 503
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.or
g/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
      <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
      <style type="text/css">
        html, body, iframe { margin: 0; padding: 0; height: 100%; }
        iframe { display: block; width: 100%; border: none; }
      </style>
    <title>Application Error</title></head>
    </head>
    <body>
      <iframe src="https://s3.amazonaws.com/heroku_pages/error.html">
        <p>Application Error</p>
      </iframe>
    </body>
    </html>

Home@PC /c/rails/konkurranceportalen (master)
$

我的 Heroku 日志 http://pastie.org/1687466

I get a 503 Error when trying to push my database to Amazon RDS

Home@PC /c/rails/konkurranceportalen (master)
$ heroku db:push
Loaded Taps v0.3.19
Auto-detected local database: mysql://[email protected]/konkurranceportalen?encodin
g=utf8
Warning: Data in the app 'vinderhimlen' will be overwritten and will not be reco
verable.

 !    WARNING: Potentially Destructive Action
 !    This command will affect the app: vinderhimlen
 !    To proceed, type "vinderhimlen" or re-run this command with --confirm vind
erhimlen

> vinderhimlen
Sending schema
Schema:        100% |==========================================| Time: 00:01:07
Sending indexes
admins:        100% |==========================================| Time: 00:00:01
schema_migrat: 100% |==========================================| Time: 00:00:01
slugs:         100% |==========================================| Time: 00:00:02
Sending data
7 tables, 138 records
admins:        100% |==========================================| Time: 00:00:00
kategoris:       0% |                                          | ETA:  --:--:--
Saving session to push_201103182120.dat..
!!! Caught Server Exception
HTTP CODE: 503
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.or
g/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
      <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
      <style type="text/css">
        html, body, iframe { margin: 0; padding: 0; height: 100%; }
        iframe { display: block; width: 100%; border: none; }
      </style>
    <title>Application Error</title></head>
    </head>
    <body>
      <iframe src="https://s3.amazonaws.com/heroku_pages/error.html">
        <p>Application Error</p>
      </iframe>
    </body>
    </html>

Home@PC /c/rails/konkurranceportalen (master)
$

My Heroku log http://pastie.org/1687466

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

城歌 2024-10-31 04:23:55

问题是 Amazon RDS 防火墙确实阻止了 Heroku。
在亚马逊 AWS >我确实进入了 Amazon RDS 安全组并添加了 EC2 安全组。

详细信息如下:

Security Group: default
AWS Account ID: 098166147350

The problem were that Amazon RDS firewall did block Heroku.
In Amazon AWS > Amazon RDS I did go into the security group and did add a EC2 Security Group.

With following details:

Security Group: default
AWS Account ID: 098166147350
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文