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

metadata.rb is missing in erlang version 1.5.7 #27

Closed
mffrench opened this issue Mar 10, 2015 · 2 comments
Closed

metadata.rb is missing in erlang version 1.5.7 #27

mffrench opened this issue Mar 10, 2015 · 2 comments

Comments

@mffrench
Copy link

Hello,

I just tried to install rabbitmq 3.11.0 cookbook but it fails as erlang 1.5.7 is failing to install :

knife cookbook site install rabbitmq                                                                                                                                                                                              100 ↵
Installing rabbitmq to /CC.mffrench/DEV/ariane.master/ariane.community.environment/Chef/cookbooks
Checking out the master branch.
Pristine copy branch (chef-vendor-rabbitmq) exists, switching to it.
Downloading rabbitmq from the cookbooks site at version 3.11.0 to /CC.mffrench/DEV/ariane.master/ariane.community.environment/Chef/cookbooks/rabbitmq.tar.gz
Cookbook saved: /CC.mffrench/DEV/ariane.master/ariane.community.environment/Chef/cookbooks/rabbitmq.tar.gz
Removing pre-existing version.
Uncompressing rabbitmq version 3.11.0.

...

Checking out the master branch.
Installing erlang to /CC.mffrench/DEV/ariane.master/ariane.community.environment/Chef/cookbooks
Checking out the master branch.
Pristine copy branch (chef-vendor-erlang) exists, switching to it.
Downloading erlang from the cookbooks site at version 1.5.7 to /CC.mffrench/DEV/ariane.master/ariane.community.environment/Chef/cookbooks/erlang.tar.gz
Cookbook saved: /CC.mffrench/DEV/ariane.master/ariane.community.environment/Chef/cookbooks/erlang.tar.gz
Removing pre-existing version.
Uncompressing erlang version 1.5.7.

...

 9 files changed, 27 insertions(+), 41 deletions(-)
 delete mode 100644 Chef/cookbooks/erlang/metadata.rb
Cookbook erlang version 1.5.7 successfully installed
ERROR: IOError: Cannot open or read /CC.mffrench/DEV/ariane.master/ariane.community.environment/Chef/cookbooks/erlang/metadata.rb!

This error looks like the same as the one I raised on the rabbitmq 3.10.0 chef cookbook (rabbitmq/chef-cookbook#233).

Tell me what you think.

Regards,

Mathilde

P.S : my chef versions :

chef -v                                                                                                                                                                                                                           100 ↵
Chef Development Kit Version: 0.2.1
knife -v
Chef: 11.14.6
@cmluciano
Copy link

Hey @mffrench I just checked with someone and I believe this was a problem with an earlier version of berkshelf and then released with chefdk. Can you try updating your chefdk and try this again?

@jtimberman
Copy link
Contributor

This is probably due to the erlang cookbook being released with stove. Since version 3.2.3, Stove no longer publishes a metadata.rb only the compiled version (metadata.json). This is the the proper behavior for the producer but the consumer (knife cookbook site install) is broken in this case because it has a dependency on the metadata.rb file.

You need to upgrade your version of Chef to 11.18.0, or 12.1.0.

chef/chef#2345

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

3 participants