Skip to content

Instantly share code, notes, and snippets.

@densone
Created November 13, 2010 00:37
Show Gist options
  • Save densone/674966 to your computer and use it in GitHub Desktop.
Save densone/674966 to your computer and use it in GitHub Desktop.
$ knife cookbook delete mongodb
$ knife cookbook upload mongodb -o cookbooks/
$ knife cookbook download mongodb -d .
INFO: Downloading mongodb cookbook version 0.1.0
INFO: Downloading resources
INFO: Downloading providers
INFO: Downloading recipes
INFO: Downloading definitions
INFO: Downloading libraries
INFO: Downloading attributes
/usr/lib64/ruby/1.8/net/http.rb:2101:in `error!': 500 "Internal Server Error" (Net::HTTPFatalError)
from /usr/lib64/ruby/gems/1.8/gems/chef-0.9.12/lib/chef/rest.rb:269:in `streaming_request'
from /usr/lib64/ruby/gems/1.8/gems/chef-0.9.12/lib/chef/rest.rb:284:in `retriable_rest_request'
from /usr/lib64/ruby/gems/1.8/gems/chef-0.9.12/lib/chef/rest.rb:247:in `streaming_request'
from /usr/lib64/ruby/gems/1.8/gems/chef-0.9.12/lib/chef/rest.rb:108:in `get_rest'
from /usr/lib64/ruby/gems/1.8/gems/chef-0.9.12/lib/chef/knife/cookbook_download.rb:83:in `run'
from /usr/lib64/ruby/gems/1.8/gems/chef-0.9.12/lib/chef/knife/cookbook_download.rb:78:in `each'
from /usr/lib64/ruby/gems/1.8/gems/chef-0.9.12/lib/chef/knife/cookbook_download.rb:78:in `run'
from /usr/lib64/ruby/gems/1.8/gems/chef-0.9.12/lib/chef/knife/cookbook_download.rb:75:in `each'
from /usr/lib64/ruby/gems/1.8/gems/chef-0.9.12/lib/chef/knife/cookbook_download.rb:75:in `run'
from /usr/lib64/ruby/gems/1.8/gems/chef-0.9.12/lib/chef/knife.rb:127:in `run'
from /usr/lib64/ruby/gems/1.8/gems/chef-0.9.12/lib/chef/application/knife.rb:121:in `run'
from /usr/lib64/ruby/gems/1.8/gems/chef-0.9.12/bin/knife:25
from /usr/bin/knife:19:in `load'
from /usr/bin/knife:19
On the server:
merb : chef-server (api) : worker (port 4000) ~ Params: {"cookbook_version"=>"0.1.0", "action"=>"show_file", "checksum"=>"6cc625bf1c86f4bb866755b4dad13f06", "cookbook_name"=>"mongodb", "controller"=>"cookbooks"}
merb : chef-server (api) : worker (port 4000) ~ File with checksum 6cc625bf1c86f4bb866755b4dad13f06 not found in the repository (this should not happen) - (Merb::ControllerExceptions::InternalServerError)
/usr/share/chef-server-api/app/controllers/cookbooks.rb:90:in `show_file'
/usr/lib/ruby/1.8/merb-core/controller/abstract_controller.rb:315:in `send'
/usr/lib/ruby/1.8/merb-core/controller/abstract_controller.rb:315:in `_call_action'
/usr/lib/ruby/1.8/merb-core/controller/abstract_controller.rb:289:in `_dispatch'
/usr/lib/ruby/1.8/merb-core/controller/merb_controller.rb:252:in `_dispatch'
/usr/lib/ruby/1.8/merb-core/dispatch/dispatcher.rb:102:in `dispatch_action'
/usr/lib/ruby/1.8/merb-core/dispatch/dispatcher.rb:74:in `handle'
/usr/lib/ruby/1.8/merb-core/dispatch/dispatcher.rb:36:in `handle'
/usr/lib/ruby/1.8/merb-core/rack/application.rb:17:in `call'
/usr/lib/ruby/1.8/rack/content_length.rb:13:in `call'
/usr/lib/ruby/1.8/thin/connection.rb:76:in `pre_process'
/usr/lib/ruby/1.8/thin/connection.rb:74:in `catch'
/usr/lib/ruby/1.8/thin/connection.rb:74:in `pre_process'
/usr/lib/ruby/1.8/thin/connection.rb:57:in `process'
/usr/lib/ruby/1.8/thin/connection.rb:42:in `receive_data'
/usr/lib/ruby/1.8/eventmachine.rb:240:in `run_machine'
/usr/lib/ruby/1.8/eventmachine.rb:240:in `run'
/usr/lib/ruby/1.8/thin/backends/base.rb:57:in `start'
/usr/lib/ruby/1.8/thin/server.rb:156:in `start'
/usr/lib/ruby/1.8/merb-core/rack/adapter/thin.rb:30:in `start_server'
/usr/lib/ruby/1.8/merb-core/rack/adapter/abstract.rb:298:in `start_at_port'
/usr/lib/ruby/1.8/merb-core/rack/adapter/abstract.rb:128:in `start'
/usr/lib/ruby/1.8/merb-core/server.rb:174:in `bootup'
/usr/lib/ruby/1.8/merb-core/server.rb:159:in `daemonize'
/usr/lib/ruby/1.8/merb-core/server.rb:143:in `fork'
/usr/lib/ruby/1.8/merb-core/server.rb:143:in `daemonize'
/usr/lib/ruby/1.8/merb-core/server.rb:35:in `start'
/usr/lib/ruby/1.8/merb-core.rb:170:in `start'
/usr/sbin/chef-server:82
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment