1

我正在尝试为 GitLab 安装此https://github.com/gitlabhq/gitlab-vagrant-vm开发环境。

当我按照安装说明进行操作时 - 在我的 ubuntu(x64) 机器上的终端中出现以下错误:

[2013-04-14T22:59:27+00:00] 错误:运行异常处理程序

[2013-04-14T22:59:27+00:00] 错误:异常处理程序完成

[2013-04-14T22:59:32+00:00] 致命:Stacktrace 转储到 /tmp/vagrant-chef-1/chef-stacktrace.out

[2013-04-14T22:59:32+00:00] FATAL: NoMethodError: gem_package[rvm] (rvm::default line 21) 有一个错误:NoMethodError: undefined method `full_name' for nil:NilClass
厨师从未成功完成!任何错误都应该在
上面的输出。请修复您的食谱,以便它们正确完成。

我找到了 chef-stacktrace.out 文件:

生成于 2013 年 4 月 14 日星期日 22:59:32 +0000
NoMethodError: gem_package[rvm] (rvm::default line 21) 有一个错误:NoMethodError: undefined method `full_name$

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

/opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:134:in `map'

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

/opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:268:in `install'

/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 `converge!'

/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 `converge!'

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

/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:in `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 `loop'

/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 回答