[chef] What does this berkshelf error mean?


Chronological Thread 
  • From: John Alberts < >
  • To:
  • Subject: [chef] What does this berkshelf error mean?
  • Date: Mon, 19 May 2014 15:51:03 -0700

Hi.  I'm using Berkshelf 2.0.14 and I'm seeing this error message when running berks install for one of my cookbooks.

------------------------------
==> Chef response did not contain a JSON body
Cookbook 'chef-sugar,' not found in any of the default locations
------------------------------

The source for chef-sugar is a local mirror that I have.  I've run berks install with the --debug flag and I can see it downloads chef-sugar.

-------------------------------
Could not find a Chefignore at '/root/.berkshelf/cookbooks/chef-sugar-87d5eb1b1d743eed830b329f2a6a965dad8f20e4'
Installing chef-sugar (1.3.0) from git: 'git@<removed>:/git/git_mirror/devops/chef_chef-sugar' with branch: 'master' at ref: '87d5eb1b1d743eed830b329f2a6a965dad8f20e4'
--------------------------------

I can also see the cookbook is located in the ~/.berkshelf/cookbooks folder.

---------------------------------
ls ~/.berkshelf/cookbooks/chef-sugar-87d5eb1b1d743eed830b329f2a6a965dad8f20e4/
CHANGELOG.md  chef-sugar.gemspec  CONTRIBUTING.md  Gemfile  lib  LICENSE  metadata.rb  Rakefile  README.md  recipes  spec
----------------------------------

So, I don't understand what Berkshelf is trying to tell me here and how to fix it.


I know I should be using berkshelf 3.x, but let's please not get into why I'm not using 3.x yet. :)



--
John Alberts



Archive powered by MHonArc 2.6.16.

§