Takeno / Vagrant4SIW

Vagrant experiment with Tomee, PostgreSQL, Ruby, RoR
2 stars 1 forks source link

Chef error: ' undefined method `full_name' for nil:NilClass' #3

Open Serox opened 10 years ago

Serox commented 10 years ago

Output error (on Lubuntu 32 bit):

[2014-03-08T19:04:21+00:00] INFO: *** Chef 10.14.2 ***
[2014-03-08T19:04:24+00:00] INFO: Setting the run_list to ["recipe[apt]", "recipe[openssl]", "recipe[java]", "recipe[postgresql]", "recipe[postgresql::server]", "recipe[rvm]", "recipe[rvm::system]", "recipe[rvm::vagrant]", "recipe[nodejs]", "recipe[tomee]"] from JSON
[2014-03-08T19:04:24+00:00] INFO: Run List is [recipe[apt], recipe[openssl], recipe[java], recipe[postgresql], recipe[postgresql::server], recipe[rvm], recipe[rvm::system], recipe[rvm::vagrant], recipe[nodejs], recipe[tomee]]
[2014-03-08T19:04:24+00:00] INFO: Run List expands to [apt, openssl, java, postgresql, postgresql::server, rvm, rvm::system, rvm::vagrant, nodejs, tomee]
[2014-03-08T19:04:24+00:00] INFO: Starting Chef Run for precise32
[2014-03-08T19:04:24+00:00] INFO: Running start handlers
[2014-03-08T19:04:24+00:00] INFO: Start handlers complete.

================================================================================
Error executing action `install` on resource 'chef_gem[rvm]'
================================================================================

NoMethodError
-------------
undefined method `full_name' for nil:NilClass

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

Resource Declaration:
---------------------
# In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/rvm/recipes/default.rb

 20: # install rvm api gem during chef compile phase
 21: chef_gem 'rvm' do
 22:   action :install
 23:   version '>= 1.11.3.6'
 24: end
 25: require 'rvm'

Compiled Resource:
------------------
# Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/rvm/recipes/default.rb:21:in `from_file'

chef_gem("rvm") do
  retry_delay 2
  version ">= 1.11.3.6"
  retries 0
  recipe_name "default"
  action [:install]
  cookbook_name :rvm
  package_name "rvm"
  provider Chef::Provider::Package::Rubygems
end

================================================================================
Recipe Compile Error in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/rvm/recipes/default.rb
================================================================================

NoMethodError
-------------
chef_gem[rvm] (rvm::default line 21) had an error: NoMethodError: undefined method `full_name' for nil:NilClass

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

Relevant File Content:
----------------------
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/rvm/recipes/default.rb:

  1:  #
  2:  # Cookbook Name:: rvm
  3:  # Recipe:: default
  4:  #
  5:  # Copyright 2010, 2011, Fletcher Nichol
  6:  #
  7:  # Licensed under the Apache License, Version 2.0 (the "License");
  8:  # you may not use this file except in compliance with the License.
  9:  # You may obtain a copy of the License at

[2014-03-08T19:04:56+00:00] ERROR: Running exception handlers
[2014-03-08T19:04:56+00:00] ERROR: Exception handlers complete
[2014-03-08T19:04:57+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2014-03-08T19:04:57+00:00] FATAL: NoMethodError: chef_gem[rvm] (rvm::default line 21) had an error: NoMethodError: undefined method `full_name' for nil:NilClass
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
Serox commented 10 years ago

mmm ok, I've resolved reinstalling all

camstuart commented 10 years ago

Hey @Serox , what did you you to fix this?

Serox commented 10 years ago

@camstuart I decreased the memory of virtual machine (from 500MB to 130MB) and then I did "vagrant destroy" command, followed by "vagrant up".