[chef] Re: Re: Re: EOFError when downloading cookbooks with knife


Chronological Thread 
  • From: Daniel DeLeo < >
  • To:
  • Subject: [chef] Re: Re: Re: EOFError when downloading cookbooks with knife
  • Date: Mon, 10 Sep 2012 12:17:12 -0700


On Monday, September 10, 2012 at 6:05 AM, Nanuk Krinner wrote:


Hi,

I could resolve the issue. Here is what I wrote in the bug I filed:

"I found the source of the problem. When I create a cookbook to test, I
did not edit the README.rb file. So when uploading the cookbook,
README.rb does not get uploaded and is not in the database. When
downloading the cookbook later, the README.rb is needed and knife fails
as it is not in the database. After editing README.rb and uploading it
everything works fine.

IMHO either README.rb should always get uploaded or knife should give a
error message when it does not upload README.rb"

Regards,
Nanuk
Did you delete a cookbook with the `--purge` option? chef-server (and also Hosted and Private Chef) store cookbook files by checksum, so it shouldn't be necessary to upload any duplicate files. However, if you delete with `--purge`, you may delete files that are being used by other cookbooks. In Chef 11, the server will track the number of references to each file and delete files which no longer are referenced by any cookbook, so `--purge` should be unnecessary.


-- 
Daniel DeLeo




Archive powered by MHonArc 2.6.16.

§