开发者

Getting an 'Application Error' when trying to push my database to Amazon RDS with the heroku gem

开发者 https://www.devze.com 2023-03-13 21:07 出处:网络
Whenever I try to push my local mysql database to Amazon RDS I get a 503 application error: bundle exec heroku db:push

Whenever I try to push my local mysql database to Amazon RDS I get a 503 application error:

bundle exec heroku db:push
...
Sending schema
Schema:         40% |================                          | ETA:  00:00:38
Saving session to push_201106170529.dat..
!!! Caught Server Exception
HTTP CODE: 503
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/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&l开发者_开发问答t;/p>
  </iframe>
 </body>
</html>

I'm using taps 0.3.23

While the error message is similar to the one reported here : Heroku help Amazon RDS rails push database error my problem is not related to Amazon's security group as this is already configured.

Anybody else encountering this issue?


I got the same HTML response message and HTTP error code using Heroku with a CURL POST request.

Executing heroku logs | tail gave me more insights:

2016-04-20T10:56:17.509354+00:00 heroku[router]: 
at=error code=H12 desc="Request timeout" method=POST [...]

The H12 error denotes a request timeout. That means an "HTTP request took longer than 30 seconds to complete" [1].

More on request timeouts on https://devcenter.heroku.com/articles/request-timeout.

[1] https://devcenter.heroku.com/articles/error-codes#h12-request-timeout


I had the same response with heroku db:push, the first time I attempted.

However, when I ran it a second time, there was no error, and the db pushed.

0

精彩评论

暂无评论...
验证码 换一张
取 消