[chef] Re: Chef Solo - Unknown error processing config file with error undefined method `absolute_path' for File:Class


Chronological Thread 
  • From: Matthew Moretti < >
  • To:
  • Subject: [chef] Re: Chef Solo - Unknown error processing config file with error undefined method `absolute_path' for File:Class
  • Date: Thu, 25 Jul 2013 09:14:34 -0400

Is there any chance that you aren't actually using ruby 1.9.3?  I notice that the method `absolute_path` was added to `File` in ruby 1.9.1, and the error message seems to be saying that `File.absolute_path` isn't a defined method.

-Matt Moretti


On Thu, Jul 25, 2013 at 2:31 AM, David Montgomery < " target="_blank"> > wrote:
Why wil chef solo not run?  I am using ruby 1.9.3

My cookbooks are in

/home/ubuntu/workspace/predictivematch-chef/chef-repo/cookbooks

chef-solo -c /home/ubuntu/workspace/chef-repo/solo.rb -j /home/ubuntu/workspace/chef-repo/roles/local_server.json
[2013-07-25T14:24:36+08:00] FATAL: Unknown error processing config file  with error undefined method `absolute_path' for File:Class

Below is my chef-solo file

root = File.absolute_path(File.dirname(__FILE__))
file_cache_path root

cookbook_path root + '/cookbooks'
data_bag_path root + '/data_bags'

file_cache_path = '/var/chef/cache'
Chef::Config[:file_cache_path]= '/var/chef/cache'




Archive powered by MHonArc 2.6.16.

§