Berks upload fails
Closed this issue · 2 comments
Cookbook version
2.1.3
Berks version
3.1.2
berks upload of latest cookbook fails with error:
E, [2016-06-08T11:14:43.326258 #45671] ERROR -- : Ridley::Errors::HTTPBadRequest: {"error":["Invalid element in array value of 'templates'."]}
E, [2016-06-08T11:14:43.326351 #45671] ERROR -- : /Users/lynch/.rvm/gems/ruby-2.1.2/gems/ridley-3.1.0/lib/ridley/middleware/chef_response.rb:24:in `on_complete'
To get around this, I manually went to the ~/.berkshelf/cookbooks/tomcat-2.1.3/templates, created a default dir and moved all erbs into it. After this, the upload went through.
Version 3.X of berkshelf does not support templates that aren't in the default dir. This is a rather old release of berks and you'll need to upgrade it to support Chef 12.X cookbooks. The latest ChefDK is probably what you'll want to install to make sure you have a modern berkshelf. Otherwise you can gem install from this cookbook as it requires a berkshelf 4.X release.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.