Skip to content

Instantly share code, notes, and snippets.

@kesor
Last active December 14, 2015 08:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kesor/5055546 to your computer and use it in GitHub Desktop.
Save kesor/5055546 to your computer and use it in GitHub Desktop.
knife 11.4 error for uploading frozen cookbooks
ERROR: knife encountered an unexpected error
This may be a bug in the 'cookbook upload' knife command or plugin
Please collect the output of this command with the `-VV` option before filing a bug report.
Exception: NameError: undefined local variable or method `cookbook' for #<Chef::Knife::CookbookUpload:0x007fb50ac8d4c8>
...
...
...
DEBUG: Committing sandbox
DEBUG: Signing the request as admin
DEBUG: Sending HTTP Request via PUT to chefserver.vagrant.local:443/sandboxes/000000000000096d5b315b4cb4f49e96
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 200 OK
DEBUG: server: nginx/1.2.3
DEBUG: date: Thu, 28 Feb 2013 09:44:36 GMT
DEBUG: content-type: application/json
DEBUG: transfer-encoding: chunked
DEBUG: connection: close
DEBUG: x-ops-api-info: flavor=osc;version=11.0.2;erchef=1.2.6
DEBUG: content-encoding: gzip
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: decompressing gzip response
DEBUG: Signing the request as admin
DEBUG: Sending HTTP Request via PUT to chefserver.vagrant.local:443/cookbooks/rails_application/0.1.0
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 409 Conflict
DEBUG: server: nginx/1.2.3
DEBUG: date: Thu, 28 Feb 2013 09:44:41 GMT
DEBUG: content-type: application/json
DEBUG: content-length: 108
DEBUG: connection: close
DEBUG: x-ops-api-info: flavor=osc;version=11.0.2;erchef=1.2.6
DEBUG: ---- End HTTP Status/Header Data ----
INFO: HTTP Request Returned 409 Conflict: The cookbook rails_application at version 0.1.0 is frozen. Use the 'force' option to override.
/devops-chefserver/bundle/ruby/1.9.1/gems/chef-11.0.0/lib/chef/knife/cookbook_upload.rb:234:in `rescue in upload': undefined local variable or method `cookbook' for #<Chef::Knife::CookbookUpload:0x007fee594b5510> (NameError)
from /devops-chefserver/bundle/ruby/1.9.1/gems/chef-11.0.0/lib/chef/knife/cookbook_upload.rb:225:in `upload'
from /devops-chefserver/bundle/ruby/1.9.1/gems/chef-11.0.0/lib/chef/knife/cookbook_upload.rb:121:in `block in run'
from /devops-chefserver/bundle/ruby/1.9.1/gems/chef-11.0.0/lib/chef/knife/cookbook_upload.rb:118:in `each'
from /devops-chefserver/bundle/ruby/1.9.1/gems/chef-11.0.0/lib/chef/knife/cookbook_upload.rb:118:in `run'
from /devops-chefserver/bundle/ruby/1.9.1/gems/chef-11.0.0/lib/chef/knife.rb:460:in `run_with_pretty_exceptions'
from /devops-chefserver/bundle/ruby/1.9.1/gems/chef-11.0.0/lib/chef/knife.rb:173:in `run'
from /devops-chefserver/bundle/ruby/1.9.1/gems/chef-11.0.0/lib/chef/application/knife.rb:123:in `run'
from /devops-chefserver/bundle/ruby/1.9.1/gems/chef-11.0.0/bin/knife:25:in `<top (required)>'
from bin/knife:16:in `load'
from bin/knife:16:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment