我正在尝试使用https://github.com/opscode-cookbooks/mysql,但是当我运行流浪条款时
找不到菜谱mysql的配方ruby,它返回如下所示。
[2014-04-23T10:13:06+00:00] ERROR: Running exception handlers
[2014-04-23T10:13:06+00:00] ERROR: Exception handlers complete
[2014-04-23T10:13:06+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2014-04-23T10:13:06+00:00] ERROR: could not find recipe ruby for cookbook mysql
================================================================================
Recipe Compile Error
================================================================================
Chef::Exceptions::RecipeNotFound
--------------------------------
could not find recipe ruby for cookbook mysql我发现了这一点,然后添加了mysql-chef_gem。https://github.com/opscode-cookbooks/mysql/blob/b5072e6ae3bd81b0f6ebec8749f2c2d781271ed9/COMPAT.md
knife cookbook site vendor mysql-chef_gem -o cookbook但是当我在run_list中添加recipe[crossplat::default]并运行vagrant provision时,它返回
[2014-04-23T10:15:14+00:00] ERROR: Cookbook crossplat not found. If you're loading crossplat from another cookbook, make sure you configure the dependency in your metadata我该如何解决这个问题呢?
发布于 2014-04-23 20:25:43
只对mysql食谱进行了很大的重构,这个食谱不再是必要的。您可以在cookbook's README中查看更新的用法。
发布于 2014-06-27 20:33:49
cookbook / mysql /recipes/default.rb对于mysql cookbook不可用,您需要更新运行列表"recipemysql::server“或"recipemysql::client”
发布于 2014-08-20 07:48:25
我在另一本食谱中遇到了类似的错误:
FATAL: Chef::Exceptions::RecipeNotFound: could not find recipe my_recipe for cookbook my_cookbook当我在某个时刻从食谱下删除了my_recipe.rb,而客户端仍然在某个地方引用它时,就会出现这种情况。简单的解决方案是重新添加一个空白的食谱文件并重新上传食谱。这个博客更详细地描述了这个问题,并且可能有更好的解决方案:https://www.rallydev.com/community/engineering/chef-dependency-solving
https://stackoverflow.com/questions/23241531
复制相似问题