Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Cookbook path error message #564

Closed
alexmanly opened this issue Oct 13, 2015 · 0 comments
Closed

Cookbook path error message #564

alexmanly opened this issue Oct 13, 2015 · 0 comments

Comments

@alexmanly
Copy link

I created a policy file and put the 'incorrect' path in the cookbook path attribute. I had assumed the path was relative to the root of the chef-repo, but it turns out the path is relative to the location of the policy file it is defined in. I had put the policy file in a sub-directory of the chef-repo and then ran the chef install sitedbaas_website.rb command from the root of the repo. This is the output. It was not very informative or helpful. It should at least show the path that it is testing for. Also there is not much documentation on where we should store policy files.

chef install sitedbaas_website.rb
Building policy sitedbaas_website
Expanded run list: recipe[sitedbaas::default]
Caching Cookbooks...
Installing httpdbaas ~> 0.1.28 from path
Error: Failed to generate Policyfile.lock
Reason: (CookbookOmnifetch::NotACookbook) CookbookOmnifetch::NotACookbook
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant