gpt4 book ai didi

ruby-on-rails - heroku 无法通过我的应用程序运行 rake db migrate

转载 作者:行者123 更新时间:2023-12-04 00:03:08 25 4
gpt4 key购买 nike

这是我第一次遇到这样的错误:

Running `rake db:migrate` attached to terminal... up, run.8524
! Heroku client internal error.
! Search for help at: https://help.heroku.com
! Or report a bug at: https://github.com/heroku/heroku/issues/new

Error: Operation timed out - connect(2) (Errno::ETIMEDOUT)
Backtrace: /usr/local/heroku/lib/heroku/client/rendezvous.rb:39:in `initialize'
/usr/local/heroku/lib/heroku/client/rendezvous.rb:39:in `open'
/usr/local/heroku/lib/heroku/client/rendezvous.rb:39:in `block in start'
/usr/local/heroku/ruby/lib/ruby/1.9.1/timeout.rb:68:in `timeout'
/usr/local/heroku/lib/heroku/client/rendezvous.rb:31:in `start'
/usr/local/heroku/lib/heroku/command/run.rb:113:in `rendezvous_session'
/usr/local/heroku/lib/heroku/command/run.rb:100:in `run_attached'
/usr/local/heroku/lib/heroku/command/run.rb:21:in `index'
/usr/local/heroku/lib/heroku/command.rb:206:in `run'
/usr/local/heroku/lib/heroku/cli.rb:28:in `start'
/usr/local/heroku/bin/heroku:24:in `<main>'

Command: heroku run rake db:migrate --app oppcis
Version: heroku-toolbelt/2.35.0 (x86_64-darwin10.8.0) ruby/1.9.3

我已经有一段时间没有使用 heroku 了……在大回归之后,我遇到了这个错误。

就目前的 Heroku 新闻而言,我已经过时了。

我希望有人能给我一个建议、解决方案或涉及的问题。

谢谢。

编辑:

日志说...
2013-02-15T08:38:00+00:00 heroku[api]: Starting process with command `bundle exec rake db:migrate` by ssalamat.peg@gmail.com
2013-02-15T08:38:03+00:00 heroku[run.6510]: Awaiting client
2013-02-15T08:38:03+00:00 heroku[run.6510]: Starting process with command `bundle exec rake db:migrate`
2013-02-15T08:38:04+00:00 heroku[run.6510]: State changed from starting to up
2013-02-15T08:38:33+00:00 heroku[run.6510]: Error R13 (Attach error) -> Failed to attach to process
2013-02-15T08:38:34+00:00 heroku[run.6510]: Process exited with status 128
2013-02-15T08:38:34+00:00 heroku[run.6510]: State changed from up to complete

最佳答案

尝试在“后台”运行它

 heroku run:detached rake db:migrate

你也可以试试 heroku troubleshooting ,因为它似乎是一个连接问题。
heroku run rails console
telnet rendezvous.runtime.heroku.com 5000

如果它不起作用,则可能是防火墙阻止了与 heroku 的连接。

关于ruby-on-rails - heroku 无法通过我的应用程序运行 rake db migrate,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14892200/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com