[chef] Re: Re: Re: Re: Sandbox checksum unable to be generated


Chronological Thread 
  • From: Tristan Sloughter < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Sandbox checksum unable to be generated
  • Date: Tue, 7 Dec 2010 12:05:48 -0600
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=MTuplvIJ7FdcM4Y1zxMnVHVobwsz7fB/+484k1K+vQwHCNuRwfwt7W7McSBNnNhgWo w1JbHJ061LzN/s0L5PccQowo58w5vv8VR6Th5iDKlYaiNojShAJ2CNjT7irxxIWxNogR 1nIS23yBKlHtvlWn5a2i0mV3hEjqusdVRADJQ=

Wait wait... I "fixed" it.

So I decided to ensure all changes were saved and I started closing all my emacs buffers to make sure of that. I got to a template that hadn't been saved. After saving it upload worked fine... But the file did exist in its former state on disk, and already existed in the repo.

I hope that helps explain why the checksum would be empty.

Tristan

On Tue, Dec 7, 2010 at 12:03 PM, Tristan Sloughter < "> > wrote:
So I realized I "could", but it would have to be modified, so not sure that'll be good enough. And I wouldn't want to not remove everything...

Tristan


On Tue, Dec 7, 2010 at 11:58 AM, Tristan Sloughter < " target="_blank"> > wrote:
Its consistent, I can not get my current changes to upload.

I'll check if I can send out a tarball to you.

Tristan


On Tue, Dec 7, 2010 at 11:56 AM, Chris Walters < " target="_blank"> > wrote:
It it happening consistently on a particular cookbook? If so, are you willing to send me a tarball so I can try it myself?

Thanks,
Chris

On Tue, Dec 7, 2010 at 9:52 AM, Tristan Sloughter < " target="_blank"> > wrote:
Makes sense.

Correct, I'm using knife upload. I've been using it this way for weeks.

Thanks,
Tristan


On Tue, Dec 7, 2010 at 11:48 AM, Chris Walters < " target="_blank"> > wrote:
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 < " target="_blank"> > 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.

§