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
Can't install cookbook, IOError with metadata.rb #1
Comments
I did a local install and wasn't able to reproduce the problem. My best guess is that the local repository is in an inconsistent state somehow. |
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 |
Sorry. I'm not able to imagine what's happened otherwise. |
So you're definitely able to install it using |
correct |
I ran into this as well but with another cookbook. Not sure why it happens, but you can fix with:
|
thank you sporkd, i had the same issue and git branch -D fixed it (for cookbooks openssl and build-essential) |
Had this same issue on another cookbook (cassandra) and your branch deletion trick fixed that too. Thanks @sporkd! |
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. |
Had the same issue with the windows cookbook. git branch -D chef-vendor-windows fixed it. Nice find! I'm not too git savvy so this was a relief to find.. |
Hello, I'm trying to install this cookbook using
knife cookbook site install cube
but I'm getting this:Which is strange because there is a metadata.rb file and it looks valid. This is a pretty vanilla install of Chef.
The text was updated successfully, but these errors were encountered: