Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

could not find recipe mod_dav for cookbook apache2 #26

Open
akonovalov opened this issue Mar 7, 2019 · 2 comments
Open

could not find recipe mod_dav for cookbook apache2 #26

akonovalov opened this issue Mar 7, 2019 · 2 comments

Comments

@akonovalov
Copy link

Cookbook version

3.0.0

Chef-client version

14.11.21

Platform Details

Centos 7

Scenario:

Added the recipe[subversion::server] to my existing cookbook to install SVN server and populated all subversion attributes with custom values (as per guidelines).

Expected Result:

Successful installation.

Actual Result:

Starting Chef Client, version 14.11.21
resolving cookbooks for run list: ["my recipe", "subversion::server"]
Synchronizing Cookbooks:

  • my-cookbook (0.1.0)
  • java (3.2.1)
  • windows (5.3.0)
  • homebrew (5.0.8)
  • subversion (3.0.0)
  • apache2 (7.0.0)
    Installing Cookbook Gems:
    Compiling Cookbooks...

================================================================================
Recipe Compile Error

Chef::Exceptions::RecipeNotFound

could not find recipe mod_dav for cookbook apache2

Cookbook Trace:

/var/chef/cache/cookbooks/subversion/recipes/server.rb:22:in `from_file'

Relevant File Content:

/var/chef/cache/cookbooks/subversion/recipes/server.rb:

@welcomebot
Copy link

Hey There
It looks like this is the first issue you've filed against the chef-cookbooks project. I'm here to offer you a bit of extra help to make sure we can quickly get back to you.
Make sure you've filled out all the fields in our issue template. Make sure you've provided us with the version of chef-client you're running, your operating system and the version of the cookbook. If you're not using the most up to date version of the cookbook then please make sure to update first. Lots of things change between versions even if you're issue isn't listed in the changelog. Finally please give us a detailed description of the issue you're having. The more we know about what you're trying to do, what actually happens, and how you can reproduce the problem, the better.

If you're looking for more immediate troubleshooting help make sure to check out #general on the Chef Community Slack. There's plenty of folks there willing to lend a helping hand. Thanks for the first issue. We hope we can get back to you soon with a solution.

@akonovalov
Copy link
Author

akonovalov commented Mar 7, 2019

Found the resolution for the problem.
Turns out the apache2 cookbook v. 7.0.0 has all its recipes (except for the default one) removed.

Downgrading to 6.0.0. fixed the problem but brought another one: undefined method web_app' for cookbook: subversion, recipe: server :Chef::Recipe server.rb:33:in from_file'

According to this https://github.com/sous-chefs/apache2/blob/3e25e2b55a14f32d421e4db2cd7e0bf8dc8fc263/CHANGELOG.md#v6---behaviour-changes web_app was removed from 6.0.0.

Further downgrading to version 5.2.1 finally got me to the happy ending.

Wish the specifics of which version of the apache2 cookbook should be used were documented for the subversion cookbook.

Leaving the issue open with the hope for the repo owner(s) to update their documentation accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants