Answers: <p>This question seems to have been answered in the <a href="https://github.com/chef/chef/issues/6273" rel="nofollow noreferrer">Chef issue</a>. To close the loop, I will summarise it here:</p>
  
  <p>This was a bug introduced in Chef 12:</p>
  
  <blockquote>
    <p>The issue is with <code>chef_solo</code> vs <code>chef_zero</code>. It seems <code>chef_solo</code> was the old way of doing Chef things. So I added <code>chef_zero.enabled true</code> in the <code>knife.rb</code> file to activate <code>chef_zero</code> instead of <code>chef_solo</code>. When you do this, you should be able to upload.</p>
  </blockquote>
  
  <p>It was <a href="https://github.com/chef/chef/issues/6273#issuecomment-326289442" rel="nofollow noreferrer">subsequently fixed</a> in Chef 13:</p>
  
  <blockquote>
    <p>This is fixed in Chef 13.3.3, which will be released in the ChefDK 2.2 release</p>
  </blockquote>
  
  <p>At the time of writing, Chef is in major version 15, so this issue is very unlikely to be encountered in the wild.</p>
  
Answers: CC BY-SA 4.0
Answers: 2019-10-20T07:40:28.523Z
Answers: 2019-10-20T07:40:28.523Z
Answers: Bruce Becker
Body: <p>I am using Chef and trying to upload a cookbook on chef-server but getting an error in response:</p>
  
  <blockquote>
    <p>{"error":["Invalid key all_files in request body"]}</p>
  </blockquote>
  
  <p>However, I can see the list of cookbook using <code>knife node list</code></p>
  
  <p>My chefDK version:</p>
  
  <pre><code>chef -v
  Chef Development Kit Version: 2.0.28
  chef-client version: 13.2.20
  delivery version: master (17c1b0fed9be4c70f69091a6d21a4cbf0df60a23)
  berks version: 6.2.0
  kitchen version: 1.16.0
  inspec version: 1.31.1
  </code></pre>
  
  <p>Chef-server version is <code>12.0.5</code></p>
  
  <p>Logs:</p>
  
  <pre><code>DEBUG: Response body contains:
  {"error":["Invalid key all_files in request body"]}
  DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
  </code></pre>
  
  <p>I can't upload more logs, if one needs particular info then I can provide.</p>
  
  <p>Any help?</p>
  
Comments: CC BY-SA 3.0
Comments: 2017-08-29T13:16:48.500Z
Comments: Give a full log and the command involved, the tools version and chef-server version you're using, but that would be better suited on [chef's slack](http://community-slack.chef.io/) for assistance than this site as this is likely to fade out in usefulness quickly.
Comments: Tensibai
Comments: CC BY-SA 3.0
Comments: 2017-08-29T13:49:04.033Z
Comments: Hi @Tensibai I have updated the question on you suggestion
Comments: Gourav Singla
Comments: CC BY-SA 3.0
Comments: 2017-08-29T13:58:25.250Z
Comments: Probably related [github issue](https://github.com/chef/chef/issues/6273)
Comments: Tensibai
Tags: <chef>
Title: Chef 12: Error while uploading cookbook
UserDisplayName: Gourav Singla
ThreadText: # Chef 12: Error while uploading cookbook
  
  (Asked by: username_0 on 2017-08-29)
  
  I am using Chef and trying to upload a cookbook on chef-server but getting an error in response:
  
  > {"error":["Invalid key all\_files in request body"]}
  
  However, I can see the list of cookbook using `knife node list`
  
  My chefDK version:
  
  ```
  chef -v
  Chef Development Kit Version: 2.0.28
  chef-client version: 13.2.20
  delivery version: master (17c1b0fed9be4c70f69091a6d21a4cbf0df60a23)
  berks version: 6.2.0
  kitchen version: 1.16.0
  inspec version: 1.31.1
  
  ```
  
  Chef-server version is `12.0.5`
  
  Logs:
  
  ```
  DEBUG: Response body contains:
  {"error":["Invalid key all_files in request body"]}
  DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
  
  ```
  
  I can't upload more logs, if one needs particular info then I can provide.
  
  Any help?
  
  **Tags:** chef
  
  > **Comments:**
  > **username_1**: Give a full log and the command involved, the tools version and chef-server version you're using, but that would be better suited on [chef's slack](http://community-slack.chef.io/) for assistance than this site as this is likely to fade out in usefulness quickly.  
  > **username_0**: Hi @username_1 I have updated the question on you suggestion  
  > **username_1**: Probably related [github issue](https://github.com/chef/chef/issues/6273)  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2019-10-20. Score: 1
  
  This question seems to have been answered in the [Chef issue](https://github.com/chef/chef/issues/6273). To close the loop, I will summarise it here:
  
  This was a bug introduced in Chef 12:
  
  > The issue is with `chef_solo` vs `chef_zero`. It seems `chef_solo` was the old way of doing Chef things. So I added `chef_zero.enabled true` in the `knife.rb` file to activate `chef_zero` instead of `chef_solo`. When you do this, you should be able to upload.
  
  It was [subsequently fixed](https://github.com/chef/chef/issues/6273#issuecomment-326289442) in Chef 13:
  
  > This is fixed in Chef 13.3.3, which will be released in the ChefDK 2.2 release
  
  At the time of writing, Chef is in major version 15, so this issue is very unlikely to be encountered in the wild.
  
  
  ---
  
  