[chef] Re: Sandbox checksum unable to be generated


Chronological Thread 
  • From: Chris Walters < >
  • To:
  • Subject: [chef] Re: Sandbox checksum unable to be generated
  • Date: Tue, 7 Dec 2010 09:48:48 -0800

Hi Tristan,

Sandboxes are the mechanism by which files for cookbooks get onto the chef server. The files are checksummed to avoid forcing you to upload the same file multiple times; basically, we're optimizing for the "tweak one file, upload, test, repeat" use case. The first step in uploading a cookbook is to create a sandbox, indicating the checksums of the files that you want to upload to the server. The server then checks to see which checksums it already has and returns the list of unknown checksums and where they can be uploaded.

This error indicates that the server is receiving a request to create a sandbox that includes an empty string for a checksum. I'm still investigating how this is possible. You're using knife from the command line to perform this operation, right?

-chris

On Tue, Dec 7, 2010 at 9:03 AM, Tristan Sloughter < "> > wrote:
I can't seem to find anything online related to this error I am getting when attempting to upload a new version of a cookbook. Does this trace make sense to anyone?

INFO: Validating ruby files
INFO: Validating templates
INFO: Syntax OK
INFO: Generating Metadata
WARN: HTTP Request Returned 500 Internal Server Error: Named route sandbox_checksum could not be generated with {:sandbox_id=>"fb314161f0e547039636c9f64e850f02", :checksum=>""}
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/http.rb:2097:in `error!': 500 "Internal Server Error" (Net::HTTPFatalError)
        from /Library/Ruby/Gems/1.8/gems/chef-0.9.8/lib/chef/rest.rb:229:in `api_request'
        from /Library/Ruby/Gems/1.8/gems/chef-0.9.8/lib/chef/rest.rb:280:in `retriable_rest_request'
        from /Library/Ruby/Gems/1.8/gems/chef-0.9.8/lib/chef/rest.rb:210:in `api_request'
        from /Library/Ruby/Gems/1.8/gems/chef-0.9.8/lib/chef/rest.rb:121:in `post_rest'
        from /Library/Ruby/Gems/1.8/gems/chef-0.9.8/lib/chef/cookbook_uploader.rb:26:in `upload_cookbook'
        from /Library/Ruby/Gems/1.8/gems/chef-0.9.8/lib/chef/knife/cookbook_upload.rb:67:in `run'
        from /Library/Ruby/Gems/1.8/gems/chef-0.9.8/lib/chef/knife/cookbook_upload.rb:65:in `each'
        from /Library/Ruby/Gems/1.8/gems/chef-0.9.8/lib/chef/knife/cookbook_upload.rb:65:in `run'
        from /Library/Ruby/Gems/1.8/gems/chef-0.9.8/lib/chef/knife/cookbook_upload.rb:80:in `humanize_auth_exceptions'
        from /Library/Ruby/Gems/1.8/gems/chef-0.9.8/lib/chef/knife/cookbook_upload.rb:53:in `run'
        from /Library/Ruby/Gems/1.8/gems/chef-0.9.8/lib/chef/knife.rb:127:in `run'
        from /Library/Ruby/Gems/1.8/gems/chef-0.9.8/lib/chef/application/knife.rb:118:in `run'
        from /Library/Ruby/Gems/1.8/gems/chef-0.9.8/bin/knife:25
        from /usr/bin/knife:19:in `load'
        from /usr/bin/knife:19

Thanks,
Tristan




Archive powered by MHonArc 2.6.16.

§