Bundler错误:builtin_gem?在Heroku上部署时

时间:2014-04-10 12:39:20

标签: ruby-on-rails heroku

遵循本教程:https://devcenter.heroku.com/articles/getting-started-with-rails4

当我尝试git push heroku master时遇到以下错误:

  

/tmp/build_50f24046-6d63-4f42-8238-f4cc4b983d77/vendor/bundle/ruby/1.9.1/gems/bundler-1.6.1/lib/bundler/source/rubygems.rb:299:in {{1 }}包括?' for nil:NilClass(NoMethodError)

2 个答案:

答案 0 :(得分:1)

编辑:捆绑器1.6.x和缓存的宝石似乎是一个问题。下一个版本(1.6.2)应该修复它。我不知道在同一时间是否有办法解决这个问题。

我也是这样:

git push heroku
Initializing repository, done.
Counting objects: 53, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (44/44), done.
Writing objects: 100% (53/53), 2.03 MiB | 606 KiB/s, done.
Total 53 (delta 6), reused 0 (delta 0)

-----> Ruby app detected
-----> Compiling Ruby/Rack
-----> Using Ruby version: ruby-2.0.0
-----> Installing dependencies using 1.6.1
       New app detected loading default bundler cache
       Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
       Using rake 10.1.1
       Installing builder 3.2.2
       Installing creole 0.3.6
       Installing expression_parser 0.9.0
       Installing asciidoctor 0.1.4
       Installing github-markup 1.1.0
       Installing rubypants 0.2.0
       Installing posix-spawn 0.3.8
       Using rack 1.5.2
       Installing rdoc 3.8
       Using tilt 1.4.1
       Using bundler 1.6.1
       Installing wikicloth 0.8.0.github.e2deea9
       Installing org-ruby 0.8.1
       Installing rack-protection 1.5.3
       Installing sinatra 1.4.5
       Installing RedCloth 4.2.9.c208bfe
       Installing github-markdown 0.6.5
       Updating files in vendor/cache
       Unfortunately, a fatal error has occurred. Please see the Bundler
       troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
       /tmp/build_00f7042a-7935-45b2-be31-7f0739e3af93/vendor/bundle/ruby/2.0.0/gems/bundler-1.6.1/lib/bundler/source/rubygems.rb:299:in `builtin_gem?': undefined method `include?' for nil:NilClass (NoMethodError)
       from /tmp/build_00f7042a-7935-45b2-be31-7f0739e3af93/vendor/bundle/ruby/2.0.0/gems/bundler-1.6.1/lib/bundler/source/rubygems.rb:133:in `cache'
       from /tmp/build_00f7042a-7935-45b2-be31-7f0739e3af93/vendor/bundle/ruby/2.0.0/gems/bundler-1.6.1/lib/bundler/runtime.rb:114:in `block in cache'
       from /tmp/build_00f7042a-7935-45b2-be31-7f0739e3af93/vendor/bundle/ruby/2.0.0/gems/bundler-1.6.1/lib/bundler/runtime.rb:112:in `cache'
       from /tmp/build_00f7042a-7935-45b2-be31-7f0739e3af93/vendor/bundle/ruby/2.0.0/gems/bundler-1.6.1/lib/bundler/cli/install.rb:77:in `run'
       from /tmp/build_00f7042a-7935-45b2-be31-7f0739e3af93/vendor/bundle/ruby/2.0.0/gems/bundler-1.6.1/lib/bundler/cli.rb:146:in `install'
       from /tmp/build_00f7042a-7935-45b2-be31-7f0739e3af93/vendor/bundle/ruby/2.0.0/gems/bundler-1.6.1/lib/bundler/vendor/thor/command.rb:27:in `run'
       from /tmp/build_00f7042a-7935-45b2-be31-7f0739e3af93/vendor/bundle/ruby/2.0.0/gems/bundler-1.6.1/lib/bundler/vendor/thor/invocation.rb:121:in `invoke_command'
       from /tmp/build_00f7042a-7935-45b2-be31-7f0739e3af93/vendor/bundle/ruby/2.0.0/gems/bundler-1.6.1/lib/bundler/vendor/thor.rb:363:in `dispatch'
       from /tmp/build_00f7042a-7935-45b2-be31-7f0739e3af93/vendor/bundle/ruby/2.0.0/gems/bundler-1.6.1/lib/bundler/vendor/thor/base.rb:440:in `start'
       from /tmp/build_00f7042a-7935-45b2-be31-7f0739e3af93/vendor/bundle/ruby/2.0.0/gems/bundler-1.6.1/lib/bundler/cli.rb:9:in `start'
       from /tmp/build_00f7042a-7935-45b2-be31-7f0739e3af93/vendor/bundle/ruby/2.0.0/gems/bundler-1.6.1/bin/bundle:20:in `block in '
       from /tmp/build_00f7042a-7935-45b2-be31-7f0739e3af93/vendor/bundle/ruby/2.0.0/gems/bundler-1.6.1/lib/bundler/friendly_errors.rb:5:in `with_friendly_errors'
       from /tmp/build_00f7042a-7935-45b2-be31-7f0739e3af93/vendor/bundle/ruby/2.0.0/gems/bundler-1.6.1/bin/bundle:20:in `'
       from vendor/bundle/ruby/2.0.0/bin/bundle:23:in `load'
       from vendor/bundle/ruby/2.0.0/bin/bundle:23:in `'
       Bundler Output: Using rake 10.1.1
       Installing builder 3.2.2
       Installing creole 0.3.6
       Installing expression_parser 0.9.0
       Installing asciidoctor 0.1.4
       Installing github-markup 1.1.0
       Installing rubypants 0.2.0
       Installing posix-spawn 0.3.8
       Using rack 1.5.2
       Installing rdoc 3.8
       Using tilt 1.4.1
       Using bundler 1.6.1
       Installing wikicloth 0.8.0.github.e2deea9
       Installing org-ruby 0.8.1
       Installing rack-protection 1.5.3
       Installing sinatra 1.4.5
       Installing RedCloth 4.2.9.c208bfe
       Installing github-markdown 0.6.5
       Updating files in vendor/cache
       Unfortunately, a fatal error has occurred. Please see the Bundler
       troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
       /tmp/build_00f7042a-7935-45b2-be31-7f0739e3af93/vendor/bundle/ruby/2.0.0/gems/bundler-1.6.1/lib/bundler/source/rubygems.rb:299:in `builtin_gem?': undefined method `include?' for nil:NilClass (NoMethodError)
       from /tmp/build_00f7042a-7935-45b2-be31-7f0739e3af93/vendor/bundle/ruby/2.0.0/gems/bundler-1.6.1/lib/bundler/source/rubygems.rb:133:in `cache'
       from /tmp/build_00f7042a-7935-45b2-be31-7f0739e3af93/vendor/bundle/ruby/2.0.0/gems/bundler-1.6.1/lib/bundler/runtime.rb:114:in `block in cache'
       from /tmp/build_00f7042a-7935-45b2-be31-7f0739e3af93/vendor/bundle/ruby/2.0.0/gems/bundler-1.6.1/lib/bundler/runtime.rb:112:in `cache'
       from /tmp/build_00f7042a-7935-45b2-be31-7f0739e3af93/vendor/bundle/ruby/2.0.0/gems/bundler-1.6.1/lib/bundler/cli/install.rb:77:in `run'
       from /tmp/build_00f7042a-7935-45b2-be31-7f0739e3af93/vendor/bundle/ruby/2.0.0/gems/bundler-1.6.1/lib/bundler/cli.rb:146:in `install'
       from /tmp/build_00f7042a-7935-45b2-be31-7f0739e3af93/vendor/bundle/ruby/2.0.0/gems/bundler-1.6.1/lib/bundler/vendor/thor/command.rb:27:in `run'
       from /tmp/build_00f7042a-7935-45b2-be31-7f0739e3af93/vendor/bundle/ruby/2.0.0/gems/bundler-1.6.1/lib/bundler/vendor/thor/invocation.rb:121:in `invoke_command'
       from /tmp/build_00f7042a-7935-45b2-be31-7f0739e3af93/vendor/bundle/ruby/2.0.0/gems/bundler-1.6.1/lib/bundler/vendor/thor.rb:363:in `dispatch'
       from /tmp/build_00f7042a-7935-45b2-be31-7f0739e3af93/vendor/bundle/ruby/2.0.0/gems/bundler-1.6.1/lib/bundler/vendor/thor/base.rb:440:in `start'
       from /tmp/build_00f7042a-7935-45b2-be31-7f0739e3af93/vendor/bundle/ruby/2.0.0/gems/bundler-1.6.1/lib/bundler/cli.rb:9:in `start'
       from /tmp/build_00f7042a-7935-45b2-be31-7f0739e3af93/vendor/bundle/ruby/2.0.0/gems/bundler-1.6.1/bin/bundle:20:in `block in '
       from /tmp/build_00f7042a-7935-45b2-be31-7f0739e3af93/vendor/bundle/ruby/2.0.0/gems/bundler-1.6.1/lib/bundler/friendly_errors.rb:5:in `with_friendly_errors'
       from /tmp/build_00f7042a-7935-45b2-be31-7f0739e3af93/vendor/bundle/ruby/2.0.0/gems/bundler-1.6.1/bin/bundle:20:in `'
       from vendor/bundle/ruby/2.0.0/bin/bundle:23:in `load'
       from vendor/bundle/ruby/2.0.0/bin/bundle:23:in `'
 !
 !     Failed to install gems via Bundler.
 !

 !     Push rejected, failed to compile Ruby app

To git@heroku.com:gh-markup.git
 ! [remote rejected] HEAD -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:gh-markup.git'

答案 1 :(得分:0)

我刚遇到这个问题。清除供应商/缓存已修复它,尽管部署时间明显更长。希望Bundler 1.6.2即将推出!