【问题标题】:Heroku deployment times out at "Cleaning up the bundler cache."Heroku 部署在“清理捆绑程序缓存”时超时。
【发布时间】:2012-01-13 12:50:47
【问题描述】:

我正在尝试将项目部署到 Heroku。

项目之前已经部署成功,但是现在部署时得到如下输出:

   [...]
   Using rspec-expectations (2.8.0)
   Using rspec-mocks (2.8.0)
   Using rspec (2.8.0)
   Using bundler (1.1.rc.7)
   Your bundle is complete! It was installed into ./vendor/bundle
   Cleaning up the bundler cache.
/app/slug-compiler/lib/utils.rb:62:in `block (2 levels) in spawn': command='/app/slug-compiler/lib/../buildpacks/ruby/bin/compile /tmp/build_465ucsomkafs /app/tmp/repo.git/.cache' exit_status=0 out='' at=timeout elapsed=580.2929985523224 (Utils::TimeoutError)
from /app/slug-compiler/lib/utils.rb:48:in `loop'
from /app/slug-compiler/lib/utils.rb:48:in `block in spawn'
from /app/slug-compiler/lib/utils.rb:44:in `popen'
from /app/slug-compiler/lib/utils.rb:44:in `spawn'
from /app/slug-compiler/lib/buildpack.rb:35:in `block in compile'
from /app/slug-compiler/lib/buildpack.rb:33:in `fork'
from /app/slug-compiler/lib/buildpack.rb:33:in `compile'
from /app/slug-compiler/lib/slug.rb:464:in `block in run_buildpack'
from /app/slug-compiler/lib/utils.rb:117:in `log'
from /app/slug-compiler/lib/slug.rb:702:in `log'
from /app/slug-compiler/lib/slug.rb:463:in `run_buildpack'
from /app/slug-compiler/lib/slug.rb:107:in `block (2 levels) in compile'
from /app/slug-compiler/lib/utils.rb:98:in `block in timeout'
from /usr/local/lib/ruby/1.9.1/timeout.rb:58:in `timeout'
from /app/slug-compiler/lib/utils.rb:98:in `rescue in timeout'
from /app/slug-compiler/lib/utils.rb:93:in `timeout'
from /app/slug-compiler/lib/slug.rb:96:in `block in compile'
from /app/slug-compiler/lib/utils.rb:117:in `log'
from /app/slug-compiler/lib/slug.rb:702:in `log'
from /app/slug-compiler/lib/slug.rb:95:in `compile'
from /app/slug-compiler/bin/slugc:85:in `block in <main>'
from /app/slug-compiler/lib/slug.rb:472:in `block in lock'
from /app/slug-compiler/lib/repo_lock.rb:44:in `call'
from /app/slug-compiler/lib/repo_lock.rb:44:in `run'
from /app/slug-compiler/lib/slug.rb:472:in `lock'
from /app/slug-compiler/bin/slugc:66:in `<main>'
 !     Heroku push rejected, failed to compile Ruby app

我们已经在 Gemfile 中查明了导致这种情况的行:

gem 'internal-lib', :git => 'https://username:password@github.com/Projectname/internal-lib'

当 bundler 安装 gem 时,它看起来没问题:

   Fetching https://username:password@github.com/Projectname/internal-lib

成功捆绑的 gem 会以何种方式导致“清理捆绑器缓存”步骤超时?

我们尝试以其他方式包含 gem,作为存储库的原始副本在 vendor/private 中,作为 git 子模块在 vendor/private 中,但没有成功。

【问题讨论】:

    标签: caching heroku timeout gem bundler


    【解决方案1】:

    这似乎是 Heroku 的问题。今天部署再次工作,我们这边没有任何变化......

    【讨论】:

    • 您如何确定导致问题的宝石?我已经尝试解决同样的问题 3 天了 0_o
    猜你喜欢
    • 1970-01-01
    • 2013-07-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-08-15
    • 1970-01-01
    相关资源
    最近更新 更多