Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So I have a set of cookbooks/roles that are configured to work with vagrant. I am now in the process of deploying an application, and I want to run these identical cookbooks using chef-solo on my server. So I simply installed chef-solo(the same version that I am using with vagrant), and attempted to call the following command:

sudo chef-solo -c solo.rb -j roles/clusterflunk_dev.json

Unfortunately, the following error was generated:

[Fri, 27 Jul 2012 08:20:28 +0100] INFO: *** Chef 0.10.8 ***
[Fri, 27 Jul 2012 08:20:29 +0100] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[Fri, 27 Jul 2012 08:20:29 +0100] FATAL: NoMethodError: undefined method `delete' for #  <Chef::Role:0x7f6848a05638>

I'm not sure how the same version of chef would yield different results, I'm obviously making a mistake somewhere. I'm using Ubuntu Server 10.10.

share|improve this question
Can you post your Vagrantfile and some lines of context from /var/chef/cache/chef-stacktrace.out which show where the error happens (line nos), and explain how you are passing the roles to the server instance of chef-solo? – Tom H Jun 14 '13 at 4:14
you can give the chef-solo -l debug options to get some verbose logging ( that, or open a ticket on with that output) – Tom H Jun 15 '13 at 7:40

If you are unable to determine what is causing the issue, by looking at the errors, I would suggest to upgrade chef to the current release version (upgrade 10.8 to 10.24.4, or better make the jump to 11.x) using the omni-installer.

curl -L | sudo bash

Other users have reported similar errors, see here for an example, and there are a number of closed JSON related fixed tickets since Chef 0.10.8

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.