Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Can't install cookbook, IOError with metadata.rb #1
Hello, I'm trying to install this cookbook using
Which is strange because there is a metadata.rb file and it looks valid. This is a pretty vanilla install of Chef.
Hmm, I tried again and it still doesn't work. I'm able to install mongodb, nodejs, ufw, etc using site install. Is there any way that I can debug this? I'm not able to get any more info on it.
I was able to get the cookbook to install by
Note of caution here. We had the same issue and you have to remove all dependent branches, not just the vendor branch for the cookbook in question.
When you site install a cookbook, it creates branches for that cookbook and any other cookbook it depends on. So you have to remove those branches as well. This is what fixed it for us.
But probably best to nuke all branches to be safe. As a consequence, that probably screws up the chef workflow because it sounds like chef keeps those branches around to pull down diffs to merge back into master when you upgrade a cookbook.