LoginSignup
2
2

More than 5 years have passed since last update.

invalid metadata: The `name' at tribute is required in cookbook metadata でエラーになる

Posted at

経緯

以前作成していたcookbookを実行したら、

ERROR: Cookbook loaded at path(s) [/tmp/vagrant-chef-3/chef-solo-1/cookbooks/ack] has invalid metadata: The `name' at
tribute is required in cookbook metadata
==> default: [2015-01-20T02:49:01+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.

とエラーが発生。

原因

Chef12 から metadata.rbにname attributeが必要になったぽい。

解決

  • cookbookを修正する

    • name attribute を設定する
    • metadata.rbをcookbook に置かない(または削除する)
  • 古いバージョンのchef-clientを利用する

    • knife solo HOST --bootstrap-version 11.16.4-1 とかで古いバージョンのchefを使えば回避できる。
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2