gpt4 book ai didi

ruby-on-rails - Heroku rake db :migrate results in Error R13 (Attach error) -> Failed to attach to process

转载 作者:行者123 更新时间:2023-12-04 01:46:58 26 4
gpt4 key购买 nike

我在 heroku 上有一个 rails 应用程序,我无法运行我最新的数据库更改。运行 heroku run rake db:migrate给我

Running `rake db:migrate` attached to terminal... up, run.3167
! 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: /Users/gregg/.heroku/client/lib/heroku/client/rendezvous.rb:40:in `initialize'
/Users/gregg/.heroku/client/lib/heroku/client/rendezvous.rb:40:in `open'
/Users/gregg/.heroku/client/lib/heroku/client/rendezvous.rb:40:in `block in start'
/usr/local/heroku/ruby/lib/ruby/1.9.1/timeout.rb:68:in `timeout'
/Users/gregg/.heroku/client/lib/heroku/client/rendezvous.rb:31:in `start'
/Users/gregg/.heroku/client/lib/heroku/command/run.rb:132:in `rendezvous_session'
/Users/gregg/.heroku/client/lib/heroku/command/run.rb:119:in `run_attached'
/Users/gregg/.heroku/client/lib/heroku/command/run.rb:24:in `index'
/Users/gregg/.heroku/client/lib/heroku/command.rb:218:in `run'
/Users/gregg/.heroku/client/lib/heroku/cli.rb:28:in `start'
/usr/bin/heroku:24:in `<main>'

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

当我跟踪日志时,我看到以下内容:
2014-01-04T20:27:56.438268+00:00 heroku[run.3167]: Awaiting client
2014-01-04T20:27:56.531495+00:00 heroku[run.3167]: State changed from starting to up
2014-01-04T20:26:58.751010+00:00 heroku[router]: at=info method=GETpath=/assets/SanukWebPro-Light.woff host=stormy-savannah-1911.herokuapp.com fwd="98.210.221.215" dyno=web.1 connect=6ms service=134ms status=200 bytes=38568
2014-01-04T20:27:11.027485+00:00 heroku[router]: at=info method=GET path=/articles/new host=stormy-savannah-1911.herokuapp.com fwd="98.210.221.215" dyno=web.1 connect=3ms service=54ms status=200 bytes=7577
2014-01-04T20:28:26.446139+00:00 heroku[run.3167]: Error R13 (Attach error) -> Failed to attach to process
2014-01-04T20:28:27.994826+00:00 heroku[run.3167]: Process exited with status 128
2014-01-04T20:28:28.005837+00:00 heroku[run.3167]: State changed from up to complete

最佳答案

尝试在后台运行它:

heroku run:detached rake db:migrate

https://devcenter.heroku.com/articles/one-off-dynos#running-tasks-in-background

关于ruby-on-rails - Heroku rake db :migrate results in Error R13 (Attach error) -> Failed to attach to process,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20926403/

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