Cookbook upload problem after upgrading my chef-server in 0.10

Hello all !

I upgraded my chef-server yesterday, following the guide found on opscode wiki.
But since then, I’m not able to upload cookbooks anymore. It seems that files are not being transferred on my server.

I don’t know where to look, does anyone have any idea ?

Thanks a lot !

Here are my commands and server logs :

Client :

knife cookbook upload rvm
Uploading rvm [0.0.2]
upload complete

Server log :

2011-05-04_10:51:34.29929 [Wed, 04 May 2011 10:51:34 +0000] INFO: Authenticating client stephane
2011-05-04_10:51:34.61684 merb : chef-server (api) : worker (port 4000) ~ Started request handling: Wed May 04 10:51:34 +0000 2011
2011-05-04_10:51:34.61686 merb : chef-server (api) : worker (port 4000) ~ Params: {“action”=>“create”, “checksums”=>{“62c0c549f91c1f5d8d6f830284a7791e”=>nil, “406ab55ea41343a9629ac7c073c080b2”=>nil, “11947136c8b5aedd5223d7334090137d”=>nil, “fbaa07cabf15f673881c16196a49f373”=>nil, “cc37ae2c17b111529c31e5615c92f22b”=>nil, “80df774168104d7e481f141eae139316”=>nil, “ed648442b1986a649f19c5c341c29b4f”=>nil, “c90264833ce31cb856c060ca1403479c”=>nil, “c4a4e10b5cdb7ba19ca7b7255782b860”=>nil, “df80084e4b90175eb001a9403daa28c6”=>nil, “622d9cb0fdf1063d2052575222ad17d9”=>nil, “2627128bb8093e6a293718c3585e52a2”=>nil, “b3dc6c3af2990fe49cf65a868a8741f1”=>nil, “01c4ff5fc3b9ac495e0f12ee2252bd05”=>nil}, “controller”=>“sandboxes”}
2011-05-04_10:51:34.61687 merb : chef-server (api) : worker (port 4000) ~ {:action_time=>0.317892, :after_filters_time=>1.6e-05, :before_filters_time=>0.009565, :dispatch_time=>0.318651}
2011-05-04_10:51:34.61695 merb : chef-server (api) : worker (port 4000) ~
2011-05-04_10:51:34.61696
2011-05-04_10:51:34.96680 [Wed, 04 May 2011 10:51:34 +0000] INFO: Authenticating client stephane
2011-05-04_10:51:34.98777 merb : chef-server (api) : worker (port 4000) ~ Started request handling: Wed May 04 10:51:34 +0000 2011
2011-05-04_10:51:34.98778 merb : chef-server (api) : worker (port 4000) ~ Params: {“is_completed”=>true, “action”=>“update”, “controller”=>“sandboxes”, “sandbox_id”=>“36853f9666a44138a64227fa7c4d3ac1”}
2011-05-04_10:51:34.98779 merb : chef-server (api) : worker (port 4000) ~ {:action_time=>0.021291, :after_filters_time=>1.6e-05, :before_filters_time=>0.011348, :dispatch_time=>0.021872}
2011-05-04_10:51:34.98785 merb : chef-server (api) : worker (port 4000) ~
2011-05-04_10:51:34.98786
2011-05-04_10:51:35.29192 [Wed, 04 May 2011 10:51:35 +0000] INFO: Authenticating client stephane
2011-05-04_10:51:35.44261 [Wed, 04 May 2011 10:51:35 +0000] INFO: Sending cookbook_version(d8978f4f-0222-4b27-a84a-a733a22d7e97) to the index queue for addition.
2011-05-04_10:51:35.45133 merb : chef-server (api) : worker (port 4000) ~ Started request handling: Wed May 04 10:51:35 +0000 2011
2011-05-04_10:51:35.45135 merb : chef-server (api) : worker (port 4000) ~ Params: {“inflated_object”=>#<Chef::CookbookVersion:0x7f4e3103cbf0 @recipe_filenames=[“default.rb”, “install.rb”, “ree.rb”, “ruby_187.rb”, “ruby_192.rb”], @manifest={“definitions”=>[], “name”=>“rvm-0.0.2”, “attributes”=>[{“name”=>“default.rb”, “checksum”=>“80df774168104d7e481f141eae139316”, “path”=>“attributes/default.rb”, “specificity”=>“default”}, {“name”=>“install.rb”, “checksum”=>“622d9cb0fdf1063d2052575222ad17d9”, “path”=>“attributes/install.rb”, “specificity”=>“default”}, {“name”=>“ree.rb”, “checksum”=>“c90264833ce31cb856c060ca1403479c”, “path”=>“attributes/ree.rb”, “specificity”=>“default”}, {“name”=>“ruby_187.rb”, “checksum”=>“2627128bb8093e6a293718c3585e52a2”, “path”=>“attributes/ruby_187.rb”, “specificity”=>“default”}, {“name”=>“ruby_192.rb”, “checksum”=>“406ab55ea41343a9629ac7c073c080b2”, “path”=>“attributes/ruby_192.rb”, “specificity”=>“default”}], “files”=>[{“name”=>“rvm-gem.sh”, “checksum”=>“cc37ae2c17b111529c31e5615c92f22b”, “path”=>“files/default/rvm-gem.sh”, “specificity”=>“default”}, {“name”=>“rvm.sh”, “checksum”=>“11947136c8b5aedd5223d7334090137d”, “path”=>“files/default/rvm.sh”, “specificity”=>“default”}], “json_class”=>“Chef::CookbookVersion”, “providers”=>[], “metadata”=>{“dependencies”=>{“apt”=>">= 0.0.0", “build-essential”=>">= 0.0.0"}, “name”=>“rvm”, “maintainer_email”=>"james@sociable.co.nz", “attributes”=>{}, “license”=>“MIT”, “suggestions”=>{}, “platforms”=>{}, “maintainer”=>“James Harton, Sociable Limited.”, “long_description”=>"", “version”=>“0.0.2”, “recommendations”=>{}, “recipes”=>{“rvm::ruby_187”=>“Helper recipe to install ruby 1.8.7”, “rvm::ree”=>“Helper recipe to install ruby enterprise edition”, “rvm::ruby_192”=>“Helper recipe to install ruby 1.9.2”, “rvm::install”=>“Install a ruby implementation based on attributes”, “rvm”=>“Install system-wide RVM”}, “groupings”=>{}, “conflicting”=>{}, “replacing”=>{}, “description”=>“Installs and configures RVM, optionally keeping it updated.”, “providing”=>{“rvm::ruby_187”=>">= 0.0.0", “rvm::ree”=>">= 0.0.0", “rvm::ruby_192”=>">= 0.0.0", “rvm::install”=>">= 0.0.0", “rvm”=>">= 0.0.0"}}, “libraries”=>[], “templates”=>[], “resources”=>[], “cookbook_name”=>“rvm”, “version”=>“0.0.2”, “recipes”=>[{“name”=>“default.rb”, “checksum”=>“ed648442b1986a649f19c5c341c29b4f”, “path”=>“recipes/default.rb”, “specificity”=>“default”}, {“name”=>“install.rb”, “checksum”=>“62c0c549f91c1f5d8d6f830284a7791e”, “path”=>“recipes/install.rb”, “specificity”=>“default”}, {“name”=>“ree.rb”, “checksum”=>“b3dc6c3af2990fe49cf65a868a8741f1”, “path”=>“recipes/ree.rb”, “specificity”=>“default”}, {“name”=>“ruby_187.rb”, “checksum”=>“df80084e4b90175eb001a9403daa28c6”, “path”=>“recipes/ruby_187.rb”, “specificity”=>“default”}, {“name”=>“ruby_192.rb”, “checksum”=>“c4a4e10b5cdb7ba19ca7b7255782b860”, “path”=>“recipes/ruby_192.rb”, “specificity”=>“default”}], “root_files”=>[{“name”=>“metadata.json”, “checksum”=>“01c4ff5fc3b9ac495e0f12ee2252bd05”, “path”=>“metadata.json”, “specificity”=>“default”}, {“name”=>“metadata.rb”, “checksum”=>“fbaa07cabf15f673881c16196a49f373”, “path”=>“metadata.rb”, “specificity”=>“default”}], “frozen?”=>false, “chef_type”=>“cookbook_version”}, @status=:ready, @attribute_filenames=[“default.rb”, “install.rb”, “ree.rb”, “ruby_187.rb”, “ruby_192.rb”], @checksums={“11947136c8b5aedd5223d7334090137d”=>nil, “406ab55ea41343a9629ac7c073c080b2”=>nil, “62c0c549f91c1f5d8d6f830284a7791e”=>nil, “fbaa07cabf15f673881c16196a49f373”=>nil, “cc37ae2c17b111529c31e5615c92f22b”=>nil, “80df774168104d7e481f141eae139316”=>nil, “c90264833ce31cb856c060ca1403479c”=>nil, “ed648442b1986a649f19c5c341c29b4f”=>nil, “c4a4e10b5cdb7ba19ca7b7255782b860”=>nil, “df80084e4b90175eb001a9403daa28c6”=>nil, “2627128bb8093e6a293718c3585e52a2”=>nil, “622d9cb0fdf1063d2052575222ad17d9”=>nil, “b3dc6c3af2990fe49cf65a868a8741f1”=>nil, “01c4ff5fc3b9ac495e0f12ee2252bd05”=>nil}, @metadata=#<Chef::Cookbook::Metadata:0x7f4e3103bb60 @version=“0.0.2”, @recommendations={}, @description=“Installs and configures RVM, optionally keeping it updated.”, @dependencies={“apt”=>">= 0.0.0", “build-essential”=>">= 0.0.0"}, @maintainer=“James Harton, Sociable Limited.”, @providing={“rvm::ruby_187”=>">= 0.0.0", “rvm::ree”=>">= 0.0.0", “rvm::ruby_192”=>">= 0.0.0", “rvm::install”=>">= 0.0.0", “rvm”=>">= 0.0.0"}, @platforms={}, @license=“MIT”, @long_description="", @cookbook=nil, @name=“rvm”, @recipes={“rvm::ruby_187”=>“Helper recipe to install ruby 1.8.7”, “rvm::ree”=>“Helper recipe to install ruby enterprise edition”, “rvm::ruby_192”=>“Helper recipe to install ruby 1.9.2”, “rvm::install”=>“Install a ruby implementation based on attributes”, “rvm”=>“Install system-wide RVM”}, @conflicting={}, @groupings={}, @attributes={}, @suggestions={}, @maintainer_email=“james@sociable.co.nz”, @replacing={}>, @couchdb_id=nil, @resource_filenames=[], @attribute_filenames_by_short_filename={“ruby_187”=>“ruby_187.rb”, “default”=>“default.rb”, “install”=>“install.rb”, “ruby_192”=>“ruby_192.rb”, “ree”=>“ree.rb”}, @file_filenames=[“rvm-gem.sh”, “rvm.sh”], @root_filenames=[“metadata.json”, “metadata.rb”], @name=“rvm”, @couchdb_rev=nil, @library_filenames=[], @template_filenames=[], @manifest_records_by_path={“recipes/ruby_187.rb”=>{“name”=>“ruby_187.rb”, “checksum”=>“df80084e4b90175eb001a9403daa28c6”, “path”=>“recipes/ruby_187.rb”, “specificity”=>“default”}, “recipes/default.rb”=>{“name”=>“default.rb”, “checksum”=>“ed648442b1986a649f19c5c341c29b4f”, “path”=>“recipes/default.rb”, “specificity”=>“default”}, “files/default/rvm.sh”=>{“name”=>“rvm.sh”, “checksum”=>“11947136c8b5aedd5223d7334090137d”, “path”=>“files/default/rvm.sh”, “specificity”=>“default”}, “recipes/ree.rb”=>{“name”=>“ree.rb”, “checksum”=>“b3dc6c3af2990fe49cf65a868a8741f1”, “path”=>“recipes/ree.rb”, “specificity”=>“default”}, “files/default/rvm-gem.sh”=>{“name”=>“rvm-gem.sh”, “checksum”=>“cc37ae2c17b111529c31e5615c92f22b”, “path”=>“files/default/rvm-gem.sh”, “specificity”=>“default”}, “recipes/ruby_192.rb”=>{“name”=>“ruby_192.rb”, “checksum”=>“c4a4e10b5cdb7ba19ca7b7255782b860”, “path”=>“recipes/ruby_192.rb”, “specificity”=>“default”}, “attributes/ruby_187.rb”=>{“name”=>“ruby_187.rb”, “checksum”=>“2627128bb8093e6a293718c3585e52a2”, “path”=>“attributes/ruby_187.rb”, “specificity”=>“default”}, “metadata.rb”=>{“name”=>“metadata.rb”, “checksum”=>“fbaa07cabf15f673881c16196a49f373”, “path”=>“metadata.rb”, “specificity”=>“default”}, “recipes/install.rb”=>{“name”=>“install.rb”, “checksum”=>“62c0c549f91c1f5d8d6f830284a7791e”, “path”=>“recipes/install.rb”, “specificity”=>“default”}, “attributes/ruby_192.rb”=>{“name”=>“ruby_192.rb”, “checksum”=>“406ab55ea41343a9629ac7c073c080b2”, “path”=>“attributes/ruby_192.rb”, “specificity”=>“default”}, “attributes/install.rb”=>{“name”=>“install.rb”, “checksum”=>“622d9cb0fdf1063d2052575222ad17d9”, “path”=>“attributes/install.rb”, “specificity”=>“default”}, “attributes/ree.rb”=>{“name”=>“ree.rb”, “checksum”=>“c90264833ce31cb856c060ca1403479c”, “path”=>“attributes/ree.rb”, “specificity”=>“default”}, “attributes/default.rb”=>{“name”=>“default.rb”, “checksum”=>“80df774168104d7e481f141eae139316”, “path”=>“attributes/default.rb”, “specificity”=>“default”}, “metadata.json”=>{“name”=>“metadata.json”, “checksum”=>“01c4ff5fc3b9ac495e0f12ee2252bd05”, “path”=>“metadata.json”, “specificity”=>“default”}}, @root_dir=nil, @recipe_filenames_by_name={“ruby_187”=>“ruby_187.rb”, “default”=>“default.rb”, “install”=>“install.rb”, “ruby_192”=>“ruby_192.rb”, “ree”=>“ree.rb”}, @file_vendor=nil, @metadata_filenames=[], @definition_filenames=[], @couchdb=#<Chef::CouchDB:0x7f4e3103c9c0 @rest=#<Chef::REST:0x7f4e3103c970 @url=“http://localhost:5984”, @sign_on_redirect=true, @redirect_limit=10, @redirects_followed=0, @auth_credentials=#<Chef::REST::AuthCredentials:0x7f4e3103c8d0 @client_name=nil, @key_file=nil>, @cookies={}, @sign_request=true, @default_headers={}>, @db=“chef”>, @provider_filenames=[], @frozen=false>, “cookbook_version”=>“0.0.2”, “action”=>“update”, “cookbook_name”=>“rvm”, “controller”=>“cookbooks”}
2011-05-04_10:51:35.45163 merb : chef-server (api) : worker (port 4000) ~ {:action_time=>0.159714, :after_filters_time=>1.6e-05, :before_filters_time=>0.010065, :dispatch_time=>0.163122}
2011-05-04_10:51:35.45172 merb : chef-server (api) : worker (port 4000) ~
2011-05-04_10:51:35.45172

And when I try to show files for the web-ui :

2011-05-04_10:54:00.58352 [Wed, 04 May 2011 10:54:00 +0000] INFO: Authenticating client chef-webui
2011-05-04_10:54:00.62896 merb : chef-server (api) : worker (port 4000) ~ Started request handling: Wed May 04 10:54:00 +0000 2011
2011-05-04_10:54:00.62900 merb : chef-server (api) : worker (port 4000) ~ Params: {“cookbook_version”=>“0.0.2”, “action”=>“show_file”, “cookbook_name”=>“rvm”, “checksum”=>“80df774168104d7e481f141eae139316”, “controller”=>“cookbooks”}
2011-05-04_10:54:00.62900 merb : chef-server (api) : worker (port 4000) ~ File with checksum 80df774168104d7e481f141eae139316 not found in the repository (this should not happen) - (Merb::ControllerExceptions::InternalServerError)
2011-05-04_10:54:00.62901 /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.10.0/app/controllers/cookbooks.rb:142:in show_file' 2011-05-04_10:54:00.62901 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/abstract_controller.rb:321:insend’
2011-05-04_10:54:00.62902 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/abstract_controller.rb:321:in _call_action' 2011-05-04_10:54:00.62902 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/abstract_controller.rb:289:in_dispatch’
2011-05-04_10:54:00.62903 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/abstract_controller.rb:284:in catch' 2011-05-04_10:54:00.62904 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/abstract_controller.rb:284:in_dispatch’
2011-05-04_10:54:00.62905 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/merb_controller.rb:285:in _dispatch' 2011-05-04_10:54:00.62905 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/merb_controller.rb:262:in_call’
2011-05-04_10:54:00.62906 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/merb_controller.rb:252:in call' 2011-05-04_10:54:00.62906 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/dispatch/dispatcher.rb:91:indispatch_action’
2011-05-04_10:54:00.62907 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/dispatch/dispatcher.rb:69:in handle' 2011-05-04_10:54:00.62907 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/dispatch/dispatcher.rb:29:inhandle’
2011-05-04_10:54:00.62908 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/rack/application.rb:17:in call' 2011-05-04_10:54:00.62908 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/rack/middleware/static.rb:28:incall’
2011-05-04_10:54:00.62909 /usr/lib/ruby/gems/1.8/gems/rack-1.2.2/lib/rack/content_length.rb:13:in call' 2011-05-04_10:54:00.62909 /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:84:inpre_process’
2011-05-04_10:54:00.62910 /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:82:in catch' 2011-05-04_10:54:00.62911 /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:82:inpre_process’
2011-05-04_10:54:00.62911 /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:57:in process' 2011-05-04_10:54:00.62912 /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:42:inreceive_data’
2011-05-04_10:54:00.62912 /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine' 2011-05-04_10:54:00.62913 /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:inrun’
2011-05-04_10:54:00.62913 /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/backends/base.rb:61:in start' 2011-05-04_10:54:00.62913 /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/server.rb:159:instart’
2011-05-04_10:54:00.62914 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/rack/adapter/thin.rb:30:in start_server' 2011-05-04_10:54:00.62914 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/rack/adapter/abstract.rb:305:instart_at_port’
2011-05-04_10:54:00.62918 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/rack/adapter/abstract.rb:138:in start' 2011-05-04_10:54:00.62919 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/server.rb:174:inbootup’
2011-05-04_10:54:00.62920 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/server.rb:42:in start' 2011-05-04_10:54:00.62920 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core.rb:165:instart’
2011-05-04_10:54:00.62921 /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.10.0/bin/chef-server:84
2011-05-04_10:54:00.62921 /usr/bin/chef-server:19:in `load’
2011-05-04_10:54:00.62921 /usr/bin/chef-server:19
2011-05-04_10:54:00.62922 merb : chef-server (api) : worker (port 4000) ~ Params: {“cookbook_version”=>“0.0.2”, “action”=>“show_file”, “cookbook_name”=>“rvm”, “checksum”=>“80df774168104d7e481f141eae139316”, “controller”=>“cookbooks”}
2011-05-04_10:54:00.62922 merb : chef-server (api) : worker (port 4000) ~ Params: {“cookbook_version”=>“0.0.2”, “action”=>“show_file”, “cookbook_name”=>“rvm”, “checksum”=>“80df774168104d7e481f141eae139316”, “controller”=>“cookbooks”}
2011-05-04_10:54:00.62923 merb : chef-server (api) : worker (port 4000) ~ {:action_time=>0.032086, :after_filters_time=>1.5e-05, :before_filters_time=>3.2e-05, :dispatch_time=>0.04634}
2011-05-04_10:54:00.62930 merb : chef-server (api) : worker (port 4000) ~
2011-05-04_10:54:00.62931

On Wednesday, May 4, 2011 at 3:55 AM, Stéphane Hanser wrote:
Hello all !

I upgraded my chef-server yesterday, following the guide found on opscode wiki.
But since then, I'm not able to upload cookbooks anymore. It seems that files are not being transferred on my server.

I don't know where to look, does anyone have any idea ?

You should be able to fix this by purging the cookbook and then re-uploading it. Some state about the existence of files with a given checksum is kept in the database, so this behavior occurs when the database says you have a file that you don't have.

Longer version:

knife cookbook delete rvm --purge
(answer yes)
knife cookbook upload rvm

HTH,

--
Dan DeLeo
Thanks a lot !

Here are my commands and server logs :

Client :

knife cookbook upload rvm
Uploading rvm [0.0.2]
upload complete

Server log :

2011-05-04_10:51:34.29929 [Wed, 04 May 2011 10:51:34 +0000] INFO: Authenticating client stephane
2011-05-04_10:51:34.61684 merb : chef-server (api) : worker (port 4000) ~ Started request handling: Wed May 04 10:51:34 +0000 2011
2011-05-04_10:51:34.61686 merb : chef-server (api) : worker (port 4000) ~ Params: {"action"=>"create", "checksums"=>{"62c0c549f91c1f5d8d6f830284a7791e"=>nil, "406ab55ea41343a9629ac7c073c080b2"=>nil, "11947136c8b5aedd5223d7334090137d"=>nil, "fbaa07cabf15f673881c16196a49f373"=>nil, "cc37ae2c17b111529c31e5615c92f22b"=>nil, "80df774168104d7e481f141eae139316"=>nil, "ed648442b1986a649f19c5c341c29b4f"=>nil, "c90264833ce31cb856c060ca1403479c"=>nil, "c4a4e10b5cdb7ba19ca7b7255782b860"=>nil, "df80084e4b90175eb001a9403daa28c6"=>nil, "622d9cb0fdf1063d2052575222ad17d9"=>nil, "2627128bb8093e6a293718c3585e52a2"=>nil, "b3dc6c3af2990fe49cf65a868a8741f1"=>nil, "01c4ff5fc3b9ac495e0f12ee2252bd05"=>nil}, "controller"=>"sandboxes"}
2011-05-04_10:51:34.61687 merb : chef-server (api) : worker (port 4000) ~ {:action_time=>0.317892, :after_filters_time=>1.6e-05, :before_filters_time=>0.009565, :dispatch_time=>0.318651}
2011-05-04_10:51:34.61695 merb : chef-server (api) : worker (port 4000) ~
2011-05-04_10:51:34.61696
2011-05-04_10:51:34.96680 [Wed, 04 May 2011 10:51:34 +0000] INFO: Authenticating client stephane
2011-05-04_10:51:34.98777 merb : chef-server (api) : worker (port 4000) ~ Started request handling: Wed May 04 10:51:34 +0000 2011
2011-05-04_10:51:34.98778 merb : chef-server (api) : worker (port 4000) ~ Params: {"is_completed"=>true, "action"=>"update", "controller"=>"sandboxes", "sandbox_id"=>"36853f9666a44138a64227fa7c4d3ac1"}
2011-05-04_10:51:34.98779 merb : chef-server (api) : worker (port 4000) ~ {:action_time=>0.021291, :after_filters_time=>1.6e-05, :before_filters_time=>0.011348, :dispatch_time=>0.021872}
2011-05-04_10:51:34.98785 merb : chef-server (api) : worker (port 4000) ~
2011-05-04_10:51:34.98786
2011-05-04_10:51:35.29192 [Wed, 04 May 2011 10:51:35 +0000] INFO: Authenticating client stephane
2011-05-04_10:51:35.44261 [Wed, 04 May 2011 10:51:35 +0000] INFO: Sending cookbook_version(d8978f4f-0222-4b27-a84a-a733a22d7e97) to the index queue for addition.
2011-05-04_10:51:35.45133 merb : chef-server (api) : worker (port 4000) ~ Started request handling: Wed May 04 10:51:35 +0000 2011
2011-05-04_10:51:35.45135 merb : chef-server (api) : worker (port 4000) ~ Params: {"inflated_object"=>#<Chef::CookbookVersion:0x7f4e3103cbf0 @recipe_filenames=["default.rb", "install.rb", "ree.rb", "ruby_187.rb", "ruby_192.rb"], @manifest={"definitions"=>, "name"=>"rvm-0.0.2", "attributes"=>[{"name"=>"default.rb", "checksum"=>"80df774168104d7e481f141eae139316", "path"=>"attributes/default.rb", "specificity"=>"default"}, {"name"=>"install.rb", "checksum"=>"622d9cb0fdf1063d2052575222ad17d9", "path"=>"attributes/install.rb", "specificity"=>"default"}, {"name"=>"ree.rb", "checksum"=>"c90264833ce31cb856c060ca1403479c", "path"=>"attributes/ree.rb", "specificity"=>"default"}, {"name"=>"ruby_187.rb", "checksum"=>"2627128bb8093e6a293718c3585e52a2", "path"=>"attributes/ruby_187.rb", "specificity"=>"default"}, {"name"=>"ruby_192.rb", "checksum"=>"406ab55ea41343a9629ac7c073c080b2", "path"=>"attributes/ruby_192.rb", "specificity"=>"default"}], "files"=>[{"name"=>"rvm-gem.sh", "checksum"=>"cc3
7ae2c17b111529c31e5615c92f22b", "path"=>"files/default/rvm-gem.sh", "specificity"=>"default"}, {"name"=>"rvm.sh", "checksum"=>"11947136c8b5aedd5223d7334090137d", "path"=>"files/default/rvm.sh", "specificity"=>"default"}], "json_class"=>"Chef::CookbookVersion", "providers"=>, "metadata"=>{"dependencies"=>{"apt"=>">= 0.0.0", "build-essential"=>">= 0.0.0"}, "name"=>"rvm", "maintainer_email"=>"james@sociable.co.nz", "attributes"=>{}, "license"=>"MIT", "suggestions"=>{}, "platforms"=>{}, "maintainer"=>"James Harton, Sociable Limited.", "long_description"=>"", "version"=>"0.0.2", "recommendations"=>{}, "recipes"=>{"rvm::ruby_187"=>"Helper recipe to install ruby 1.8.7", "rvm::ree"=>"Helper recipe to install ruby enterprise edition", "rvm::ruby_192"=>"Helper recipe to install ruby 1.9.2", "rvm::install"=>"Install a ruby implementation based on attributes", "rvm"=>"Install system-wide RVM"}, "groupings"=>{}, "conflicting"=>{}, "replacing"=>{}, "description"=>"Installs and configures RVM, op
tionally keeping it updated.", "providing"=>{"rvm::ruby_187"=>">= 0.0.0", "rvm::ree"=>">= 0.0.0", "rvm::ruby_192"=>">= 0.0.0", "rvm::install"=>">= 0.0.0", "rvm"=>">= 0.0.0"}}, "libraries"=>, "templates"=>, "resources"=>, "cookbook_name"=>"rvm", "version"=>"0.0.2", "recipes"=>[{"name"=>"default.rb", "checksum"=>"ed648442b1986a649f19c5c341c29b4f", "path"=>"recipes/default.rb", "specificity"=>"default"}, {"name"=>"install.rb", "checksum"=>"62c0c549f91c1f5d8d6f830284a7791e", "path"=>"recipes/install.rb", "specificity"=>"default"}, {"name"=>"ree.rb", "checksum"=>"b3dc6c3af2990fe49cf65a868a8741f1", "path"=>"recipes/ree.rb", "specificity"=>"default"}, {"name"=>"ruby_187.rb", "checksum"=>"df80084e4b90175eb001a9403daa28c6", "path"=>"recipes/ruby_187.rb", "specificity"=>"default"}, {"name"=>"ruby_192.rb", "checksum"=>"c4a4e10b5cdb7ba19ca7b7255782b860", "path"=>"recipes/ruby_192.rb", "specificity"=>"default"}], "root_files"=>[{"name"=>"metadata.json", "checksum"=>"01c4ff5fc3b9ac495e0f12ee
2252bd05", "path"=>"metadata.json", "specificity"=>"default"}, {"name"=>"metadata.rb", "checksum"=>"fbaa07cabf15f673881c16196a49f373", "path"=>"metadata.rb", "specificity"=>"default"}], "frozen?"=>false, "chef_type"=>"cookbook_version"}, @status=:ready, @attribute_filenames=["default.rb", "install.rb", "ree.rb", "ruby_187.rb", "ruby_192.rb"], @checksums={"11947136c8b5aedd5223d7334090137d"=>nil, "406ab55ea41343a9629ac7c073c080b2"=>nil, "62c0c549f91c1f5d8d6f830284a7791e"=>nil, "fbaa07cabf15f673881c16196a49f373"=>nil, "cc37ae2c17b111529c31e5615c92f22b"=>nil, "80df774168104d7e481f141eae139316"=>nil, "c90264833ce31cb856c060ca1403479c"=>nil, "ed648442b1986a649f19c5c341c29b4f"=>nil, "c4a4e10b5cdb7ba19ca7b7255782b860"=>nil, "df80084e4b90175eb001a9403daa28c6"=>nil, "2627128bb8093e6a293718c3585e52a2"=>nil, "622d9cb0fdf1063d2052575222ad17d9"=>nil, "b3dc6c3af2990fe49cf65a868a8741f1"=>nil, "01c4ff5fc3b9ac495e0f12ee2252bd05"=>nil}, @metadata=#<Chef::Cookbook::Metadata:0x7f4e3103bb60 @version="0.0.
2", @recommendations={}, @description="Installs and configures RVM, optionally keeping it updated.", @dependencies={"apt"=>">= 0.0.0", "build-essential"=>">= 0.0.0"}, @maintainer="James Harton, Sociable Limited.", @providing={"rvm::ruby_187"=>">= 0.0.0", "rvm::ree"=>">= 0.0.0", "rvm::ruby_192"=>">= 0.0.0", "rvm::install"=>">= 0.0.0", "rvm"=>">= 0.0.0"}, @platforms={}, @license="MIT", @long_description="", @cookbook=nil, @name="rvm", @recipes={"rvm::ruby_187"=>"Helper recipe to install ruby 1.8.7", "rvm::ree"=>"Helper recipe to install ruby enterprise edition", "rvm::ruby_192"=>"Helper recipe to install ruby 1.9.2", "rvm::install"=>"Install a ruby implementation based on attributes", "rvm"=>"Install system-wide RVM"}, @conflicting={}, @groupings={}, @attributes={}, @suggestions={}, @maintainer_email="james@sociable.co.nz", @replacing={}>, @couchdb_id=nil, @resource_filenames=, @attribute_filenames_by_short_filename={"ruby_187"=>"ruby_187.rb", "default"=>"default.rb", "install"=>"ins
tall.rb", "ruby_192"=>"ruby_192.rb", "ree"=>"ree.rb"}, @file_filenames=["rvm-gem.sh", "rvm.sh"], @root_filenames=["metadata.json", "metadata.rb"], @name="rvm", @couchdb_rev=nil, @library_filenames=, @template_filenames=, @manifest_records_by_path={"recipes/ruby_187.rb"=>{"name"=>"ruby_187.rb", "checksum"=>"df80084e4b90175eb001a9403daa28c6", "path"=>"recipes/ruby_187.rb", "specificity"=>"default"}, "recipes/default.rb"=>{"name"=>"default.rb", "checksum"=>"ed648442b1986a649f19c5c341c29b4f", "path"=>"recipes/default.rb", "specificity"=>"default"}, "files/default/rvm.sh"=>{"name"=>"rvm.sh", "checksum"=>"11947136c8b5aedd5223d7334090137d", "path"=>"files/default/rvm.sh", "specificity"=>"default"}, "recipes/ree.rb"=>{"name"=>"ree.rb", "checksum"=>"b3dc6c3af2990fe49cf65a868a8741f1", "path"=>"recipes/ree.rb", "specificity"=>"default"}, "files/default/rvm-gem.sh"=>{"name"=>"rvm-gem.sh", "checksum"=>"cc37ae2c17b111529c31e5615c92f22b", "path"=>"files/default/rvm-gem.sh", "specificity"=>"defa
ult"}, "recipes/ruby_192.rb"=>{"name"=>"ruby_192.rb", "checksum"=>"c4a4e10b5cdb7ba19ca7b7255782b860", "path"=>"recipes/ruby_192.rb", "specificity"=>"default"}, "attributes/ruby_187.rb"=>{"name"=>"ruby_187.rb", "checksum"=>"2627128bb8093e6a293718c3585e52a2", "path"=>"attributes/ruby_187.rb", "specificity"=>"default"}, "metadata.rb"=>{"name"=>"metadata.rb", "checksum"=>"fbaa07cabf15f673881c16196a49f373", "path"=>"metadata.rb", "specificity"=>"default"}, "recipes/install.rb"=>{"name"=>"install.rb", "checksum"=>"62c0c549f91c1f5d8d6f830284a7791e", "path"=>"recipes/install.rb", "specificity"=>"default"}, "attributes/ruby_192.rb"=>{"name"=>"ruby_192.rb", "checksum"=>"406ab55ea41343a9629ac7c073c080b2", "path"=>"attributes/ruby_192.rb", "specificity"=>"default"}, "attributes/install.rb"=>{"name"=>"install.rb", "checksum"=>"622d9cb0fdf1063d2052575222ad17d9", "path"=>"attributes/install.rb", "specificity"=>"default"}, "attributes/ree.rb"=>{"name"=>"ree.rb", "checksum"=>"c90264833ce31cb856c060ca
1403479c", "path"=>"attributes/ree.rb", "specificity"=>"default"}, "attributes/default.rb"=>{"name"=>"default.rb", "checksum"=>"80df774168104d7e481f141eae139316", "path"=>"attributes/default.rb", "specificity"=>"default"}, "metadata.json"=>{"name"=>"metadata.json", "checksum"=>"01c4ff5fc3b9ac495e0f12ee2252bd05", "path"=>"metadata.json", "specificity"=>"default"}}, @root_dir=nil, @recipe_filenames_by_name={"ruby_187"=>"ruby_187.rb", "default"=>"default.rb", "install"=>"install.rb", "ruby_192"=>"ruby_192.rb", "ree"=>"ree.rb"}, @file_vendor=nil, @metadata_filenames=, @definition_filenames=, @couchdb=#<Chef::CouchDB:0x7f4e3103c9c0 @rest=#<Chef::REST:0x7f4e3103c970 @url="http://localhost:5984", @sign_on_redirect=true, @redirect_limit=10, @redirects_followed=0, @auth_credentials=#<Chef::REST::AuthCredentials:0x7f4e3103c8d0 @client_name=nil, @key_file=nil>, @cookies={}, @sign_request=true, @default_headers={}>, @db="chef">, @provider_filenames=, @frozen=false>, "cookbook_version"=>"0.
0.2", "action"=>"update", "cookbook_name"=>"rvm", "controller"=>"cookbooks"}
2011-05-04_10:51:35.45163 merb : chef-server (api) : worker (port 4000) ~ {:action_time=>0.159714, :after_filters_time=>1.6e-05, :before_filters_time=>0.010065, :dispatch_time=>0.163122}
2011-05-04_10:51:35.45172 merb : chef-server (api) : worker (port 4000) ~
2011-05-04_10:51:35.45172

And when I try to show files for the web-ui :

2011-05-04_10:54:00.58352 [Wed, 04 May 2011 10:54:00 +0000] INFO: Authenticating client chef-webui
2011-05-04_10:54:00.62896 merb : chef-server (api) : worker (port 4000) ~ Started request handling: Wed May 04 10:54:00 +0000 2011
2011-05-04_10:54:00.62900 merb : chef-server (api) : worker (port 4000) ~ Params: {"cookbook_version"=>"0.0.2", "action"=>"show_file", "cookbook_name"=>"rvm", "checksum"=>"80df774168104d7e481f141eae139316", "controller"=>"cookbooks"}
2011-05-04_10:54:00.62900 merb : chef-server (api) : worker (port 4000) ~ File with checksum 80df774168104d7e481f141eae139316 not found in the repository (this should not happen) - (Merb::ControllerExceptions::InternalServerError)
2011-05-04_10:54:00.62901 /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.10.0/app/controllers/cookbooks.rb:142:in show_file' 2011-05-04_10:54:00.62901 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/abstract_controller.rb:321:in send'
2011-05-04_10:54:00.62902 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/abstract_controller.rb:321:in _call_action' 2011-05-04_10:54:00.62902 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch'
2011-05-04_10:54:00.62903 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/abstract_controller.rb:284:in catch' 2011-05-04_10:54:00.62904 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/abstract_controller.rb:284:in _dispatch'
2011-05-04_10:54:00.62905 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/merb_controller.rb:285:in _dispatch' 2011-05-04_10:54:00.62905 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/merb_controller.rb:262:in _call'
2011-05-04_10:54:00.62906 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/merb_controller.rb:252:in call' 2011-05-04_10:54:00.62906 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/dispatch/dispatcher.rb:91:in dispatch_action'
2011-05-04_10:54:00.62907 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/dispatch/dispatcher.rb:69:in handle' 2011-05-04_10:54:00.62907 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/dispatch/dispatcher.rb:29:in handle'
2011-05-04_10:54:00.62908 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/rack/application.rb:17:in call' 2011-05-04_10:54:00.62908 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/rack/middleware/static.rb:28:in call'
2011-05-04_10:54:00.62909 /usr/lib/ruby/gems/1.8/gems/rack-1.2.2/lib/rack/content_length.rb:13:in call' 2011-05-04_10:54:00.62909 /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:84:in pre_process'
2011-05-04_10:54:00.62910 /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:82:in catch' 2011-05-04_10:54:00.62911 /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:82:in pre_process'
2011-05-04_10:54:00.62911 /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:57:in process' 2011-05-04_10:54:00.62912 /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:42:in receive_data'
2011-05-04_10:54:00.62912 /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine' 2011-05-04_10:54:00.62913 /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run'
2011-05-04_10:54:00.62913 /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/backends/base.rb:61:in start' 2011-05-04_10:54:00.62913 /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/server.rb:159:in start'
2011-05-04_10:54:00.62914 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/rack/adapter/thin.rb:30:in start_server' 2011-05-04_10:54:00.62914 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/rack/adapter/abstract.rb:305:in start_at_port'
2011-05-04_10:54:00.62918 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/rack/adapter/abstract.rb:138:in start' 2011-05-04_10:54:00.62919 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/server.rb:174:in bootup'
2011-05-04_10:54:00.62920 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/server.rb:42:in start' 2011-05-04_10:54:00.62920 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core.rb:165:in start'
2011-05-04_10:54:00.62921 /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.10.0/bin/chef-server:84
2011-05-04_10:54:00.62921 /usr/bin/chef-server:19:in `load'
2011-05-04_10:54:00.62921 /usr/bin/chef-server:19
2011-05-04_10:54:00.62922 merb : chef-server (api) : worker (port 4000) ~ Params: {"cookbook_version"=>"0.0.2", "action"=>"show_file", "cookbook_name"=>"rvm", "checksum"=>"80df774168104d7e481f141eae139316", "controller"=>"cookbooks"}
2011-05-04_10:54:00.62922 merb : chef-server (api) : worker (port 4000) ~ Params: {"cookbook_version"=>"0.0.2", "action"=>"show_file", "cookbook_name"=>"rvm", "checksum"=>"80df774168104d7e481f141eae139316", "controller"=>"cookbooks"}
2011-05-04_10:54:00.62923 merb : chef-server (api) : worker (port 4000) ~ {:action_time=>0.032086, :after_filters_time=>1.5e-05, :before_filters_time=>3.2e-05, :dispatch_time=>0.04634}
2011-05-04_10:54:00.62930 merb : chef-server (api) : worker (port 4000) ~
2011-05-04_10:54:00.62931

Thanks a lot !
You've just saved my day :wink:

Le 4 mai 2011 à 17:02, Daniel DeLeo a écrit :

On Wednesday, May 4, 2011 at 3:55 AM, Stéphane Hanser wrote:

Hello all !

I upgraded my chef-server yesterday, following the guide found on opscode wiki.
But since then, I'm not able to upload cookbooks anymore. It seems that files are not being transferred on my server.

I don't know where to look, does anyone have any idea ?

You should be able to fix this by purging the cookbook and then re-uploading it. Some state about the existence of files with a given checksum is kept in the database, so this behavior occurs when the database says you have a file that you don't have.

Longer version:

knife cookbook delete rvm --purge
(answer yes)
knife cookbook upload rvm

HTH,

--
Dan DeLeo

Thanks a lot !

Here are my commands and server logs :

Client :

knife cookbook upload rvm
Uploading rvm [0.0.2]
upload complete

Server log :

2011-05-04_10:51:34.29929 [Wed, 04 May 2011 10:51:34 +0000] INFO: Authenticating client stephane
2011-05-04_10:51:34.61684 merb : chef-server (api) : worker (port 4000) ~ Started request handling: Wed May 04 10:51:34 +0000 2011
2011-05-04_10:51:34.61686 merb : chef-server (api) : worker (port 4000) ~ Params: {"action"=>"create", "checksums"=>{"62c0c549f91c1f5d8d6f830284a7791e"=>nil, "406ab55ea41343a9629ac7c073c080b2"=>nil, "11947136c8b5aedd5223d7334090137d"=>nil, "fbaa07cabf15f673881c16196a49f373"=>nil, "cc37ae2c17b111529c31e5615c92f22b"=>nil, "80df774168104d7e481f141eae139316"=>nil, "ed648442b1986a649f19c5c341c29b4f"=>nil, "c90264833ce31cb856c060ca1403479c"=>nil, "c4a4e10b5cdb7ba19ca7b7255782b860"=>nil, "df80084e4b90175eb001a9403daa28c6"=>nil, "622d9cb0fdf1063d2052575222ad17d9"=>nil, "2627128bb8093e6a293718c3585e52a2"=>nil, "b3dc6c3af2990fe49cf65a868a8741f1"=>nil, "01c4ff5fc3b9ac495e0f12ee2252bd05"=>nil}, "controller"=>"sandboxes"}
2011-05-04_10:51:34.61687 merb : chef-server (api) : worker (port 4000) ~ {:action_time=>0.317892, :after_filters_time=>1.6e-05, :before_filters_time=>0.009565, :dispatch_time=>0.318651}
2011-05-04_10:51:34.61695 merb : chef-server (api) : worker (port 4000) ~
2011-05-04_10:51:34.61696
2011-05-04_10:51:34.96680 [Wed, 04 May 2011 10:51:34 +0000] INFO: Authenticating client stephane
2011-05-04_10:51:34.98777 merb : chef-server (api) : worker (port 4000) ~ Started request handling: Wed May 04 10:51:34 +0000 2011
2011-05-04_10:51:34.98778 merb : chef-server (api) : worker (port 4000) ~ Params: {"is_completed"=>true, "action"=>"update", "controller"=>"sandboxes", "sandbox_id"=>"36853f9666a44138a64227fa7c4d3ac1"}
2011-05-04_10:51:34.98779 merb : chef-server (api) : worker (port 4000) ~ {:action_time=>0.021291, :after_filters_time=>1.6e-05, :before_filters_time=>0.011348, :dispatch_time=>0.021872}
2011-05-04_10:51:34.98785 merb : chef-server (api) : worker (port 4000) ~
2011-05-04_10:51:34.98786
2011-05-04_10:51:35.29192 [Wed, 04 May 2011 10:51:35 +0000] INFO: Authenticating client stephane
2011-05-04_10:51:35.44261 [Wed, 04 May 2011 10:51:35 +0000] INFO: Sending cookbook_version(d8978f4f-0222-4b27-a84a-a733a22d7e97) to the index queue for addition.
2011-05-04_10:51:35.45133 merb : chef-server (api) : worker (port 4000) ~ Started request handling: Wed May 04 10:51:35 +0000 2011
2011-05-04_10:51:35.45135 merb : chef-server (api) : worker (port 4000) ~ Params: {"inflated_object"=>#<Chef::CookbookVersion:0x7f4e3103cbf0 @recipe_filenames=["default.rb", "install.rb", "ree.rb", "ruby_187.rb", "ruby_192.rb"], @manifest={"definitions"=>, "name"=>"rvm-0.0.2", "attributes"=>[{"name"=>"default.rb", "checksum"=>"80df774168104d7e481f141eae139316", "path"=>"attributes/default.rb", "specificity"=>"default"}, {"name"=>"install.rb", "checksum"=>"622d9cb0fdf1063d2052575222ad17d9", "path"=>"attributes/install.rb", "specificity"=>"default"}, {"name"=>"ree.rb", "checksum"=>"c90264833ce31cb856c060ca1403479c", "path"=>"attributes/ree.rb", "specificity"=>"default"}, {"name"=>"ruby_187.rb", "checksum"=>"2627128bb8093e6a293718c3585e52a2", "path"=>"attributes/ruby_187.rb", "specificity"=>"default"}, {"name"=>"ruby_192.rb", "checksum"=>"406ab55ea41343a9629ac7c073c080b2", "path"=>"attributes/ruby_192.rb", "specificity"=>"default"}], "files"=>[{"name"=>"rvm-gem.sh", "checksum"=>"cc37ae2c17b111529c31e5615c92f22b", "path"=>"files/default/rvm-gem.sh", "specificity"=>"default"}, {"name"=>"rvm.sh", "checksum"=>"11947136c8b5aedd5223d7334090137d", "path"=>"files/default/rvm.sh", "specificity"=>"default"}], "json_class"=>"Chef::CookbookVersion", "providers"=>, "metadata"=>{"dependencies"=>{"apt"=>">= 0.0.0", "build-essential"=>">= 0.0.0"}, "name"=>"rvm", "maintainer_email"=>"james@sociable.co.nz", "attributes"=>{}, "license"=>"MIT", "suggestions"=>{}, "platforms"=>{}, "maintainer"=>"James Harton, Sociable Limited.", "long_description"=>"", "version"=>"0.0.2", "recommendations"=>{}, "recipes"=>{"rvm::ruby_187"=>"Helper recipe to install ruby 1.8.7", "rvm::ree"=>"Helper recipe to install ruby enterprise edition", "rvm::ruby_192"=>"Helper recipe to install ruby 1.9.2", "rvm::install"=>"Install a ruby implementation based on attributes", "rvm"=>"Install system-wide RVM"}, "groupings"=>{}, "conflicting"=>{}, "replacing"=>{}, "description"=>"Installs and configures RVM, optionally keeping it updated.", "providing"=>{"rvm::ruby_187"=>">= 0.0.0", "rvm::ree"=>">= 0.0.0", "rvm::ruby_192"=>">= 0.0.0", "rvm::install"=>">= 0.0.0", "rvm"=>">= 0.0.0"}}, "libraries"=>, "templates"=>, "resources"=>, "cookbook_name"=>"rvm", "version"=>"0.0.2", "recipes"=>[{"name"=>"default.rb", "checksum"=>"ed648442b1986a649f19c5c341c29b4f", "path"=>"recipes/default.rb", "specificity"=>"default"}, {"name"=>"install.rb", "checksum"=>"62c0c549f91c1f5d8d6f830284a7791e", "path"=>"recipes/install.rb", "specificity"=>"default"}, {"name"=>"ree.rb", "checksum"=>"b3dc6c3af2990fe49cf65a868a8741f1", "path"=>"recipes/ree.rb", "specificity"=>"default"}, {"name"=>"ruby_187.rb", "checksum"=>"df80084e4b90175eb001a9403daa28c6", "path"=>"recipes/ruby_187.rb", "specificity"=>"default"}, {"name"=>"ruby_192.rb", "checksum"=>"c4a4e10b5cdb7ba19ca7b7255782b860", "path"=>"recipes/ruby_192.rb", "specificity"=>"default"}], "root_files"=>[{"name"=>"metadata.json", "checksum"=>"01c4ff5fc3b9ac495e0f12ee2252bd05", "path"=>"metadata.json", "specificity"=>"default"}, {"name"=>"metadata.rb", "checksum"=>"fbaa07cabf15f673881c16196a49f373", "path"=>"metadata.rb", "specificity"=>"default"}], "frozen?"=>false, "chef_type"=>"cookbook_version"}, @status=:ready, @attribute_filenames=["default.rb", "install.rb", "ree.rb", "ruby_187.rb", "ruby_192.rb"], @checksums={"11947136c8b5aedd5223d7334090137d"=>nil, "406ab55ea41343a9629ac7c073c080b2"=>nil, "62c0c549f91c1f5d8d6f830284a7791e"=>nil, "fbaa07cabf15f673881c16196a49f373"=>nil, "cc37ae2c17b111529c31e5615c92f22b"=>nil, "80df774168104d7e481f141eae139316"=>nil, "c90264833ce31cb856c060ca1403479c"=>nil, "ed648442b1986a649f19c5c341c29b4f"=>nil, "c4a4e10b5cdb7ba19ca7b7255782b860"=>nil, "df80084e4b90175eb001a9403daa28c6"=>nil, "2627128bb8093e6a293718c3585e52a2"=>nil, "622d9cb0fdf1063d2052575222ad17d9"=>nil, "b3dc6c3af2990fe49cf65a868a8741f1"=>nil, "01c4ff5fc3b9ac495e0f12ee2252bd05"=>nil}, @metadata=#<Chef::Cookbook::Metadata:0x7f4e3103bb60 @version="0.0.2", @recommendations={}, @description="Installs and configures RVM, optionally keeping it updated.", @dependencies={"apt"=>">= 0.0.0", "build-essential"=>">= 0.0.0"}, @maintainer="James Harton, Sociable Limited.", @providing={"rvm::ruby_187"=>">= 0.0.0", "rvm::ree"=>">= 0.0.0", "rvm::ruby_192"=>">= 0.0.0", "rvm::install"=>">= 0.0.0", "rvm"=>">= 0.0.0"}, @platforms={}, @license="MIT", @long_description="", @cookbook=nil, @name="rvm", @recipes={"rvm::ruby_187"=>"Helper recipe to install ruby 1.8.7", "rvm::ree"=>"Helper recipe to install ruby enterprise edition", "rvm::ruby_192"=>"Helper recipe to install ruby 1.9.2", "rvm::install"=>"Install a ruby implementation based on attributes", "rvm"=>"Install system-wide RVM"}, @conflicting={}, @groupings={}, @attributes={}, @suggestions={}, @maintainer_email="james@sociable.co.nz", @replacing={}>, @couchdb_id=nil, @resource_filenames=, @attribute_filenames_by_short_filename={"ruby_187"=>"ruby_187.rb", "default"=>"default.rb", "install"=>"install.rb", "ruby_192"=>"ruby_192.rb", "ree"=>"ree.rb"}, @file_filenames=["rvm-gem.sh", "rvm.sh"], @root_filenames=["metadata.json", "metadata.rb"], @name="rvm", @couchdb_rev=nil, @library_filenames=, @template_filenames=, @manifest_records_by_path={"recipes/ruby_187.rb"=>{"name"=>"ruby_187.rb", "checksum"=>"df80084e4b90175eb001a9403daa28c6", "path"=>"recipes/ruby_187.rb", "specificity"=>"default"}, "recipes/default.rb"=>{"name"=>"default.rb", "checksum"=>"ed648442b1986a649f19c5c341c29b4f", "path"=>"recipes/default.rb", "specificity"=>"default"}, "files/default/rvm.sh"=>{"name"=>"rvm.sh", "checksum"=>"11947136c8b5aedd5223d7334090137d", "path"=>"files/default/rvm.sh", "specificity"=>"default"}, "recipes/ree.rb"=>{"name"=>"ree.rb", "checksum"=>"b3dc6c3af2990fe49cf65a868a8741f1", "path"=>"recipes/ree.rb", "specificity"=>"default"}, "files/default/rvm-gem.sh"=>{"name"=>"rvm-gem.sh", "checksum"=>"cc37ae2c17b111529c31e5615c92f22b", "path"=>"files/default/rvm-gem.sh", "specificity"=>"default"}, "recipes/ruby_192.rb"=>{"name"=>"ruby_192.rb", "checksum"=>"c4a4e10b5cdb7ba19ca7b7255782b860", "path"=>"recipes/ruby_192.rb", "specificity"=>"default"}, "attributes/ruby_187.rb"=>{"name"=>"ruby_187.rb", "checksum"=>"2627128bb8093e6a293718c3585e52a2", "path"=>"attributes/ruby_187.rb", "specificity"=>"default"}, "metadata.rb"=>{"name"=>"metadata.rb", "checksum"=>"fbaa07cabf15f673881c16196a49f373", "path"=>"metadata.rb", "specificity"=>"default"}, "recipes/install.rb"=>{"name"=>"install.rb", "checksum"=>"62c0c549f91c1f5d8d6f830284a7791e", "path"=>"recipes/install.rb", "specificity"=>"default"}, "attributes/ruby_192.rb"=>{"name"=>"ruby_192.rb", "checksum"=>"406ab55ea41343a9629ac7c073c080b2", "path"=>"attributes/ruby_192.rb", "specificity"=>"default"}, "attributes/install.rb"=>{"name"=>"install.rb", "checksum"=>"622d9cb0fdf1063d2052575222ad17d9", "path"=>"attributes/install.rb", "specificity"=>"default"}, "attributes/ree.rb"=>{"name"=>"ree.rb", "checksum"=>"c90264833ce31cb856c060ca1403479c", "path"=>"attributes/ree.rb", "specificity"=>"default"}, "attributes/default.rb"=>{"name"=>"default.rb", "checksum"=>"80df774168104d7e481f141eae139316", "path"=>"attributes/default.rb", "specificity"=>"default"}, "metadata.json"=>{"name"=>"metadata.json", "checksum"=>"01c4ff5fc3b9ac495e0f12ee2252bd05", "path"=>"metadata.json", "specificity"=>"default"}}, @root_dir=nil, @recipe_filenames_by_name={"ruby_187"=>"ruby_187.rb", "default"=>"default.rb", "install"=>"install.rb", "ruby_192"=>"ruby_192.rb", "ree"=>"ree.rb"}, @file_vendor=nil, @metadata_filenames=, @definition_filenames=, @couchdb=#<Chef::CouchDB:0x7f4e3103c9c0 @rest=#<Chef::REST:0x7f4e3103c970 @url="http://localhost:5984", @sign_on_redirect=true, @redirect_limit=10, @redirects_followed=0, @auth_credentials=#<Chef::REST::AuthCredentials:0x7f4e3103c8d0 @client_name=nil, @key_file=nil>, @cookies={}, @sign_request=true, @default_headers={}>, @db="chef">, @provider_filenames=, @frozen=false>, "cookbook_version"=>"0.0.2", "action"=>"update", "cookbook_name"=>"rvm", "controller"=>"cookbooks"}
2011-05-04_10:51:35.45163 merb : chef-server (api) : worker (port 4000) ~ {:action_time=>0.159714, :after_filters_time=>1.6e-05, :before_filters_time=>0.010065, :dispatch_time=>0.163122}
2011-05-04_10:51:35.45172 merb : chef-server (api) : worker (port 4000) ~
2011-05-04_10:51:35.45172

And when I try to show files for the web-ui :

2011-05-04_10:54:00.58352 [Wed, 04 May 2011 10:54:00 +0000] INFO: Authenticating client chef-webui
2011-05-04_10:54:00.62896 merb : chef-server (api) : worker (port 4000) ~ Started request handling: Wed May 04 10:54:00 +0000 2011
2011-05-04_10:54:00.62900 merb : chef-server (api) : worker (port 4000) ~ Params: {"cookbook_version"=>"0.0.2", "action"=>"show_file", "cookbook_name"=>"rvm", "checksum"=>"80df774168104d7e481f141eae139316", "controller"=>"cookbooks"}
2011-05-04_10:54:00.62900 merb : chef-server (api) : worker (port 4000) ~ File with checksum 80df774168104d7e481f141eae139316 not found in the repository (this should not happen) - (Merb::ControllerExceptions::InternalServerError)
2011-05-04_10:54:00.62901 /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.10.0/app/controllers/cookbooks.rb:142:in show_file' 2011-05-04_10:54:00.62901 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/abstract_controller.rb:321:in send'
2011-05-04_10:54:00.62902 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/abstract_controller.rb:321:in _call_action' 2011-05-04_10:54:00.62902 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch'
2011-05-04_10:54:00.62903 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/abstract_controller.rb:284:in catch' 2011-05-04_10:54:00.62904 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/abstract_controller.rb:284:in _dispatch'
2011-05-04_10:54:00.62905 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/merb_controller.rb:285:in _dispatch' 2011-05-04_10:54:00.62905 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/merb_controller.rb:262:in _call'
2011-05-04_10:54:00.62906 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/merb_controller.rb:252:in call' 2011-05-04_10:54:00.62906 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/dispatch/dispatcher.rb:91:in dispatch_action'
2011-05-04_10:54:00.62907 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/dispatch/dispatcher.rb:69:in handle' 2011-05-04_10:54:00.62907 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/dispatch/dispatcher.rb:29:in handle'
2011-05-04_10:54:00.62908 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/rack/application.rb:17:in call' 2011-05-04_10:54:00.62908 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/rack/middleware/static.rb:28:in call'
2011-05-04_10:54:00.62909 /usr/lib/ruby/gems/1.8/gems/rack-1.2.2/lib/rack/content_length.rb:13:in call' 2011-05-04_10:54:00.62909 /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:84:in pre_process'
2011-05-04_10:54:00.62910 /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:82:in catch' 2011-05-04_10:54:00.62911 /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:82:in pre_process'
2011-05-04_10:54:00.62911 /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:57:in process' 2011-05-04_10:54:00.62912 /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:42:in receive_data'
2011-05-04_10:54:00.62912 /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine' 2011-05-04_10:54:00.62913 /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run'
2011-05-04_10:54:00.62913 /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/backends/base.rb:61:in start' 2011-05-04_10:54:00.62913 /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/server.rb:159:in start'
2011-05-04_10:54:00.62914 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/rack/adapter/thin.rb:30:in start_server' 2011-05-04_10:54:00.62914 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/rack/adapter/abstract.rb:305:in start_at_port'
2011-05-04_10:54:00.62918 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/rack/adapter/abstract.rb:138:in start' 2011-05-04_10:54:00.62919 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/server.rb:174:in bootup'
2011-05-04_10:54:00.62920 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/server.rb:42:in start' 2011-05-04_10:54:00.62920 /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core.rb:165:in start'
2011-05-04_10:54:00.62921 /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.10.0/bin/chef-server:84
2011-05-04_10:54:00.62921 /usr/bin/chef-server:19:in `load'
2011-05-04_10:54:00.62921 /usr/bin/chef-server:19
2011-05-04_10:54:00.62922 merb : chef-server (api) : worker (port 4000) ~ Params: {"cookbook_version"=>"0.0.2", "action"=>"show_file", "cookbook_name"=>"rvm", "checksum"=>"80df774168104d7e481f141eae139316", "controller"=>"cookbooks"}
2011-05-04_10:54:00.62922 merb : chef-server (api) : worker (port 4000) ~ Params: {"cookbook_version"=>"0.0.2", "action"=>"show_file", "cookbook_name"=>"rvm", "checksum"=>"80df774168104d7e481f141eae139316", "controller"=>"cookbooks"}
2011-05-04_10:54:00.62923 merb : chef-server (api) : worker (port 4000) ~ {:action_time=>0.032086, :after_filters_time=>1.5e-05, :before_filters_time=>3.2e-05, :dispatch_time=>0.04634}
2011-05-04_10:54:00.62930 merb : chef-server (api) : worker (port 4000) ~
2011-05-04_10:54:00.62931