1

このhttps://github.com/gitlabhq/gitlab-vagrant-vm dev 環境を GitLab にインストールしようとしています。

インストール手順に従うと、ubuntu(x64) マシンのターミナルで次のエラーが表示されます。

[2013-04-14T22:59:27+00:00] エラー: 例外ハンドラを実行しています

[2013-04-14T22:59:27+00:00] エラー: 例外ハンドラが完了しました

[2013-04-14T22:59:32+00:00] 致命的: スタックトレースが /tmp/vagrant-chef-1/chef-stacktrace.out にダンプされる

[2013-04-14T22:59:32+00:00] FATAL: NoMethodError: gem_package[rvm] (rvm::default 行 21) にエラーがありました: NoMethodError: nil:NilClass の未定義のメソッド `full_name'
シェフが正常に完了しませんでした! エラーはすべて
上記の出力。正しく完了するようにレシピを修正してください。

私はchef-stacktrace.outファイルを見つけます:

2013 年 4 月 14 日日曜日 22:59:32 +0000 で生成
NoMethodError: gem_package[rvm] (rvm::default 行 21) にエラーがありました: NoMethodError: undefined method `full_name$

/opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:134:`gather_dependencies' 内

/opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:134:「マップ」内

/opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:134:`gather_dependencies' 内

/opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:268:in `インストール'

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/provider/package/rubygems.rb:169:in `inst$

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/provider/package/rubygems.rb:192:in `with$

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/provider/package/rubygems.rb:168:in `inst$

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/provider/package/rubygems.rb:103:in `with$

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/provider/package/rubygems.rb:167:in `inst$

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/provider/package/rubygems.rb:476:in `inst$

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/provider/package.rb:81:in `action_install'

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/why_run.rb:63:in `call'

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/why_run.rb:63:in `収束!'

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/why_run.rb:61:in `each'

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/why_run.rb:61:in `収束!'

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/provider.rb:136:in `収束'

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/provider.rb:125:in `run_action'

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/resource.rb:593:in `run_action'

/tmp/vagrant-chef-1/chef-solo-1/cookbooks/rvm/recipes/default.rb:23:in `from_file'

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/cookbook_version.rb:558:in `load_recipe'

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/language_include_recipe.rb:46:in `l$

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/language_include_recipe.rb:33:in `i$

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `e$

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `i$

/tmp/vagrant-chef-1/chef-solo-1/cookbooks/rvm/recipes/user_install.rb:20:in `from_file'

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/cookbook_version.rb:558:in `load_recipe'

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/language_include_recipe.rb:46:in `l$

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/language_include_recipe.rb:33:in `i$

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `e$

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `i$

/tmp/vagrant-chef-1/chef-solo-1/cookbooks/rvm/recipes/user.rb:20:in `from_file'

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/cookbook_version.rb:558:in `load_recipe'

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/language_include_recipe.rb:46:in `l$

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/language_include_recipe.rb:33:in `i$

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `e$

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `i$

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/run_context.rb:79:in `load'

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/run_context.rb:75:in `each'

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/run_context.rb:75:in `load'

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/client.rb:198:`setup_run_context' 内

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/client.rb:418:in `do_run'

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/client.rb:176:in `run'

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/application/solo.rb:230:in `run_applicati$

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/application/solo.rb:218:in `ループ'

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/application/solo.rb:218:in `run_applicati$

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/application.rb:70:in `run'

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/chef-solo:25

/opt/vagrant_ruby/bin/chef-solo:19:in `load'

/opt/vagrant_ruby/bin/chef-solo:19
4

1 に答える 1

1

同様の問題があり、RVM が正しくインストールされていないことが判明しました。私の場合、ファイアウォールが邪魔をしていました。明らかに根本的な原因は異なる可能性がありますが、ログをチェックして、VM がRubyGems.orgにアクセスできること、および RVM が適切にインストールされていることを確認してください。

于 2013-04-28T23:59:03.847 に答える