[chef] Re: RE: RE: Re: 500 "Internal Server Error" chef-server-webui version 0.9.12


Chronological Thread 
  • From: Daniel DeLeo < >
  • To:
  • Subject: [chef] Re: RE: RE: Re: 500 "Internal Server Error" chef-server-webui version 0.9.12
  • Date: Fri, 24 Dec 2010 13:01:43 -0700

Somehow a file from the server's on-disk store of cookbooks was deleted. Deleting the cookbooks via knife will not actually remove the files, because identical files are shared between multiple cookbooks (and cookbook versions). In order to get to a clean state again, you need to delete the Checksum documents from couchdb. In the future, this will be easily done by running `knife cookbook delete` with the `--purge` option, but there is a bug in the purging code. The bug fixed in master but is not yet available in any general release.

To work around this, run `shef` on your chef-server box, then run the following code:

require 'chef/checksum'
r = Chef::REST.new('http://localhost:5984/chef/_design/checksums/_view/', false, false)
r.get_rest("all")["rows"].each {|c| c["value"].cdb_destroy}

This will delete all references in the database to the on-disk files. After that, you can re-upload the cookbooks.

See also:
http://tickets.opscode.com/browse/CHEF-1364

Dan DeLeo

On Fri, Dec 24, 2010 at 1:19 AM, < "> > wrote:
I got this error, I hacve tried to delete all cookbooks then upload  all again but the problem persists
------------
merb : chef-server (api) : worker (port 4000) ~ Started request handling: Fri Dec 24 09:17:50 +0100 2010
merb : chef-server (api) : worker (port 4000) ~ Routed to: {"cookbook_version"=>"0.0.0", "cookbook_name"=>"accounts", "action"=>"show_file", "controller"=>"cookbooks", "checksum"=>"c4e497a0095ac8fe9a40995b7ed3a6e3"}
merb : chef-server (api) : worker (port 4000) ~ Params: {"cookbook_version"=>"0.0.0", "cookbook_name"=>"accounts", "action"=>"show_file", "controller"=>"cookbooks", "checksum"=>"c4e497a0095ac8fe9a40995b7ed3a6e3"}
merb : chef-server (api) : worker (port 4000) ~ File with checksum c4e497a0095ac8fe9a40995b7ed3a6e3 not found in the repository (this should not happen) - (Merb::ControllerExceptions::InternalServerError)
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.9.12/app/controllers/cookbooks.rb:88:in `show_file'

/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/abstract_controller.rb:321:in `send'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/abstract_controller.rb:321:in `_call_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/abstract_controller.rb:289:in `_dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/abstract_controller.rb:284:in `catch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/abstract_controller.rb:284:in `_dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/merb_controller.rb:285:in `_dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/merb_controller.rb:262:in `_call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/merb_controller.rb:252:in `call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/dispatch/dispatcher.rb:91:in `dispatch_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/dispatch/dispatcher.rb:69:in `handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/dispatch/dispatcher.rb:29:in `handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/rack/application.rb:17:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/content_length.rb:13:in `call'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:76:in `pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:74:in `catch'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:74:in `pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:57:in `process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:42:in `receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/backends/base.rb:57:in `start'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/server.rb:156:in `start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/rack/adapter/thin.rb:30:in `start_server'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/rack/adapter/abstract.rb:305:in `start_at_port'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/rack/adapter/abstract.rb:138:in `start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/server.rb:174:in `bootup'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/server.rb:159:in `daemonize'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/server.rb:143:in `fork'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/server.rb:143:in `daemonize'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/server.rb:35:in `start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core.rb:165:in `start'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.9.12/bin/chef-server:83
/usr/bin/chef-server:19:in `load'
/usr/bin/chef-server:19
-------------

It seems no error in server-api.log
 
----------------------------------------------------------
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Reconstituted (user-supplied) request signature: NHx1fp2xAnjqkvqP46a7Y89rmUIvyYvVot+rBTlyVd/cEpwkc0tC5GrhOrxE
GvtqCe4Ef+9O1xhrqCgC0aiysWPATmUNyi2qTXZKvFxRjgdqjGgb3zSV3J+W
6u+c/JKdjaU8f4h6ObdSliBGmV5Vcs3shpJ/3XF2SJRVjF+P9ynRXOsIQC7J
XflPxFkj+mL37XRo4ATu2NJoZo/RcCz0RWgf/Ejm2pYbErmvMcg6dOSALdzZ
Tg0FFlSmugBbncc+FMpDAiyFKh+rqvfY1IZAxTJ3ndxiSQq9jK+dmFDu1a0R
ACj6XJseIUFF9DdbKSQrGrD9dOfcCSsPaa4vj43XmQ==
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Verifying request signature:
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG:  Expected Block is: 'Method:GET
Hashed Path:xfdXWd6yGT1GqK4SAI39/0pv+m0=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-12-24T07:59:10Z
X-Ops-UserId:chef-webui'
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Decrypted block is: 'Method:GET
Hashed Path:xfdXWd6yGT1GqK4SAI39/0pv+m0=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-12-24T07:59:10Z
X-Ops-UserId:chef-webui'
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Signatures match? : 'true'
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Request time difference: 0.683841, within 900 seconds? : true
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Expected content hash is: '2jmj7l5rSw0yVb/vlWAYkK/YBwk='
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG:  Request Content Hash is: '2jmj7l5rSw0yVb/vlWAYkK/YBwk='
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG:            Hashes match?: true
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/cookbooks/_view/all_with_version
[Fri, 24 Dec 2010 08:59:10 +0100] INFO: Authenticating client chef-webui
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/id_map/_view/name_to_id
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Authenticating Client:
 #<Chef::ApiClient:0xb7b23a9c @couchdb=#<Chef::CouchDB:0xb7b28c04 @rest=#<Chef::REST:0xb7b28bc8 @auth_credentials=#<Chef::REST::AuthCredentials:0xb7b28a9c @key_file=nil, @client_name=nil>, @cookies={}, @sign_request=true, @default_headers={}, @url=""http://localhost:5984", @sign_on_redirect=true, @redirect_limit=10, @redirects_followed=0>, @db="chef">, @private_key=nil, @couchdb_id="dca9b141-deef-477c-8c0f-5b98bd8bc863", @name="chef-webui", @public_key="-----BEGIN RSA PUBLIC KEY-----\nMIIBCgKCAQEA1faHcKiU4+Y3ntxfCenVEdF04smZ8kI3/PHmvxQp7HEfLBXafHs/\na0oXR8Pt0Ka3mCSQH0zQm0Qte4m0SgnqD83HNztJzLzmcCfj2KHyKJ42DL10I6Hy\nyoNKbf6Ac1ma40nt86CDJ+SNj6GoEqXNer4bqVRPtJJMESYv0ooYdLuBUKSHmmOL\n0NxLYWJ2FFoSwFd0ixWYdseyIQVnsix6f9lYLBJlYhK4/ONcvubCAMYoRMfs3i9J\nSrTuVeOEDoNPmRG1suCu/WoSvskaNmURgf8tuqreL29DCZKr9oDKns+dBuovpeOB\nJT6zN7ij48wGByiV92sihCdgrxO+iIQjNwIDAQAB\n-----END RSA PUBLIC KEY-----\n", @couchdb_rev="1-060f05a37ad4e27c193e219815a430cb", @index_id="dca9b141-deef-477c-8c0f-5b98bd8bc863", @admin=true>
 
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Initializing header auth : #<Merb::Request:0xb7b2a4f0 @xml_params=nil, @body_and_query_params={}, @body=#<StringIO:0xb7b2aa40>, @env={"HTTP_X_CHEF_VERSION"=>"0.9.12", "HTTP_X_OPS_TIMESTAMP"=>"2010-12-24T07:59:10Z", "SERVER_NAME"=>"localhost", "async.callback"=>#<Method: Thin::Connection#post_process>, "rack.url_scheme"=>"http", "HTTP_X_OPS_SIGN"=>"version=1.0", "PATH_INFO"=>"/cookbooks/accounts/0.0.0", "rack.run_once"=>false, "rack.input"=>#<StringIO:0xb7b2aa40>, "merb.status"=>200, "merb.request"=>#<Merb::Request:0xb7b2a4f0 ...>, "SCRIPT_NAME"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "HTTP_HOST"=>"localhost:4000", "HTTP_X_OPS_CONTENT_HASH"=>"2jmj7l5rSw0yVb/vlWAYkK/YBwk=", "rack.errors"=>#<IO:/dev/null>, "REMOTE_ADDR"=>"127.0.0.1", "REQUEST_PATH"=>"/cookbooks/accounts/0.0.0", "SERVER_SOFTWARE"=>"thin 1.2.5 codename This Is Not A Web Server", "HTTP_X_OPS_AUTHORIZATION_1"=>"lUzh9cZhXgJvt+3GNXvbfQurcxbAP8r3m2vsFRFpovrEBnILAXNAyBtdzJir", "merb.request_start"=>Fri Dec 24 08:59:10 +0100 2010, "HTTP_X_OPS_AUTHORIZATION_2"=>"+mdrEzPYqvXYSpbXiU8mDPGynbcz6JlsJQJZNFOPyWFZvZEbyfwk9LGd+M2z", "HTTP_VERSION"=>"HTTP/1.1", "rack.multithread"=>false, "rack.version"=>[1, 0], "async.close"=>#<EventMachine::DefaultDeferrable:0xb7b2a568>, "HTTP_X_OPS_AUTHORIZATION_3"=>"crnnFa1sgr69j7f68ODR6CmzbADFC9e7s0sXwiB9943ltSAR5/fCRdOQLdxZ", "REQUEST_URI"=>"/cookbooks/accounts/0.0.0", "rack.multiprocess"=>false, "merb.action_name"=>"show", "SERVER_PORT"=>"4000", "HTTP_X_OPS_AUTHORIZATION_4"=>"e4C5FeDRbiTNV39+zyRu2y6JJI6B8lyvlMxb1ROttMxxOluVeh695MierDuw", "QUERY_STRING"=>"", "GATEWAY_INTERFACE"=>"CGI/1.2", "HTTP_X_OPS_AUTHORIZATION_5"=>"coPmr27aTsIAb2ggUNZXxMqjysF8vpCz7HnxJl9LNPF8z1gAnCuVSjbZlpg5", "HTTP_X_OPS_AUTHORIZATION_6"=>"LwOTqdWO8bpmdoM1T61/AaeQwDsjV0xWpVbBncxh5g==", "HTTP_ACCEPT"=>"application/json", "HTTP_X_OPS_USERID"=>"chef-webui", "HTTP_CONNECTION"=>"close", "REQUEST_METHOD"=>"GET"}, @multipart_params={}, @start=Fri Dec 24 08:59:10 +0100 2010, @json_params=nil, @query_params={}, @method=:get, @params={"cookbook_version"=>"0.0.0", "cookbook_name"=>"accounts", "action"=>"show", "controller"=>"cookbooks"}, @body_params=nil, @route=/cookbooks/:cookbook_name/:cookbook_version, @route_params={:controller=>"cookbooks", :cookbook_name=>"accounts", :action=">"show"," :cookbook_version=>"0.0.0"}>
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Parsed signing description: {:version=>"1.0"}
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Digesting body: ''
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Reconstituted (user-supplied) request signature: lUzh9cZhXgJvt+3GNXvbfQurcxbAP8r3m2vsFRFpovrEBnILAXNAyBtdzJir
+mdrEzPYqvXYSpbXiU8mDPGynbcz6JlsJQJZNFOPyWFZvZEbyfwk9LGd+M2z
crnnFa1sgr69j7f68ODR6CmzbADFC9e7s0sXwiB9943ltSAR5/fCRdOQLdxZ
e4C5FeDRbiTNV39+zyRu2y6JJI6B8lyvlMxb1ROttMxxOluVeh695MierDuw
coPmr27aTsIAb2ggUNZXxMqjysF8vpCz7HnxJl9LNPF8z1gAnCuVSjbZlpg5
LwOTqdWO8bpmdoM1T61/AaeQwDsjV0xWpVbBncxh5g==
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Verifying request signature:
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG:  Expected Block is: 'Method:GET
Hashed Path:jAqZRoeAcp/n1NtdSLHt4WjJ6jk=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-12-24T07:59:10Z
X-Ops-UserId:chef-webui'
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Decrypted block is: 'Method:GET
Hashed Path:jAqZRoeAcp/n1NtdSLHt4WjJ6jk=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-12-24T07:59:10Z
X-Ops-UserId:chef-webui'
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Signatures match? : 'true'
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Request time difference: 0.705434, within 900 seconds? : true
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Expected content hash is: '2jmj7l5rSw0yVb/vlWAYkK/YBwk='
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG:  Request Content Hash is: '2jmj7l5rSw0yVb/vlWAYkK/YBwk='
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG:            Hashes match?: true
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/id_map/_view/name_to_id
[Fri, 24 Dec 2010 08:59:10 +0100] INFO: Authenticating client chef-webui
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/id_map/_view/name_to_id
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Authenticating Client:
 #<Chef::ApiClient:0xb7b01618 @couchdb=#<Chef::CouchDB:0xb7b05934 @rest=#<Chef::REST:0xb7b058f8 @auth_credentials=#<Chef::REST::AuthCredentials:0xb7b057a4 @key_file=nil, @client_name=nil>, @cookies={}, @sign_request=true, @default_headers={}, @url=""http://localhost:5984", @sign_on_redirect=true, @redirect_limit=10, @redirects_followed=0>, @db="chef">, @private_key=nil, @couchdb_id="dca9b141-deef-477c-8c0f-5b98bd8bc863", @name="chef-webui", @public_key="-----BEGIN RSA PUBLIC KEY-----\nMIIBCgKCAQEA1faHcKiU4+Y3ntxfCenVEdF04smZ8kI3/PHmvxQp7HEfLBXafHs/\na0oXR8Pt0Ka3mCSQH0zQm0Qte4m0SgnqD83HNztJzLzmcCfj2KHyKJ42DL10I6Hy\nyoNKbf6Ac1ma40nt86CDJ+SNj6GoEqXNer4bqVRPtJJMESYv0ooYdLuBUKSHmmOL\n0NxLYWJ2FFoSwFd0ixWYdseyIQVnsix6f9lYLBJlYhK4/ONcvubCAMYoRMfs3i9J\nSrTuVeOEDoNPmRG1suCu/WoSvskaNmURgf8tuqreL29DCZKr9oDKns+dBuovpeOB\nJT6zN7ij48wGByiV92sihCdgrxO+iIQjNwIDAQAB\n-----END RSA PUBLIC KEY-----\n", @couchdb_rev="1-060f05a37ad4e27c193e219815a430cb", @index_id="dca9b141-deef-477c-8c0f-5b98bd8bc863", @admin=true>
 
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Initializing header auth : #<Merb::Request:0xb7b07270 @xml_params=nil, @body_and_query_params={}, @body=#<StringIO:0xb7b077d4>, @env={"HTTP_X_CHEF_VERSION"=>"0.9.12", "HTTP_X_OPS_TIMESTAMP"=>"2010-12-24T07:59:10Z", "SERVER_NAME"=>"localhost", "async.callback"=>#<Method: Thin::Connection#post_process>, "rack.url_scheme"=>"http", "HTTP_X_OPS_SIGN"=>"version=1.0", "PATH_INFO"=>"/cookbooks/accounts/0.0.0/files/653113e18670914c56c96ca687063864", "rack.run_once"=>false, "rack.input"=>#<StringIO:0xb7b077d4>, "merb.status"=>200, "merb.request"=>#<Merb::Request:0xb7b07270 ...>, "SCRIPT_NAME"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "HTTP_HOST"=>"localhost:4000", "HTTP_X_OPS_CONTENT_HASH"=>"2jmj7l5rSw0yVb/vlWAYkK/YBwk=", "rack.errors"=>#<IO:/dev/null>, "REMOTE_ADDR"=>"127.0.0.1", "REQUEST_PATH"=>"/cookbooks/accounts/0.0.0/files/653113e18670914c56c96ca687063864", "SERVER_SOFTWARE"=>"thin 1.2.5 codename This Is Not A Web Server", "HTTP_X_OPS_AUTHORIZATION_1"=>"cdqiWe4pU1BfBWLn27b3XHwQhxDWMHeiNX56djYEAgVn3gW7k2wL1I+p0PH0", "merb.request_start"=>Fri Dec 24 08:59:10 +0100 2010, "HTTP_X_OPS_AUTHORIZATION_2"=>"6r3Zy2aPJ9fUOKpwxdut87peKIAjY8oLlIJPyHCvVXvndK403nEnIz4PHwkM", "HTTP_VERSION"=>"HTTP/1.1", "rack.multithread"=>false, "rack.version"=>[1, 0], "async.close"=>#<EventMachine::DefaultDeferrable:0xb7b072fc>, "HTTP_X_OPS_AUTHORIZATION_3"=>"5aZJCQ2mk3Sb9MJC3+DIEvUh6KogSs5GZiG0W0UQF+53gGuHBHK4TWPCbJtR", "REQUEST_URI"=>"/cookbooks/accounts/0.0.0/files/653113e18670914c56c96ca687063864", "rack.multiprocess"=>false, "merb.action_name"=>"show_file", "SERVER_PORT"=>"4000", "HTTP_X_OPS_AUTHORIZATION_4"=>"Hkc/VOKldPf8OKL16KYV4rRhVBSmpW2ke+lgpbw/YO/Dkq5KnGMfJ3xWBiDr", "QUERY_STRING"=>"", "GATEWAY_INTERFACE"=>"CGI/1.2", "HTTP_X_OPS_AUTHORIZATION_5"=>"muc0Cc2tlU2uHqfMw9q9w/y2c9PjSQCo1sds1YvTk85rbLR6j3MJ/uspwH2k", "HTTP_X_OPS_AUTHORIZATION_6"=>"+jpykIh/YAilHIU+Dh8gj/BaYvIwXp04cIuIHgaKOA==", "HTTP_ACCEPT"=>"*/*", "HTTP_X_OPS_USERID"=>"chef-webui", "HTTP_CONNECTION"=>"close", "REQUEST_METHOD"=>"GET"}, @multipart_params={}, @start=Fri Dec 24 08:59:10 +0100 2010, @json_params=nil, @query_params={}, @method=:get, @params={"cookbook_version"=>"0.0.0", "cookbook_name"=>"accounts", "action"=>"show_file", "controller"=>"cookbooks", "checksum"=>"653113e18670914c56c96ca687063864"}, @body_params=nil, @route=/cookbooks/:cookbook_name/:cookbook_version/files/:checksum, @route_params={:checksum=>"653113e18670914c56c96ca687063864", :controller=>"cookbooks", :cookbook_name=>"accounts", :action=">"show_file"," :cookbook_version=>"0.0.0"}>
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Parsed signing description: {:version=>"1.0"}
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Digesting body: ''
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Reconstituted (user-supplied) request signature: cdqiWe4pU1BfBWLn27b3XHwQhxDWMHeiNX56djYEAgVn3gW7k2wL1I+p0PH0
6r3Zy2aPJ9fUOKpwxdut87peKIAjY8oLlIJPyHCvVXvndK403nEnIz4PHwkM
5aZJCQ2mk3Sb9MJC3+DIEvUh6KogSs5GZiG0W0UQF+53gGuHBHK4TWPCbJtR
Hkc/VOKldPf8OKL16KYV4rRhVBSmpW2ke+lgpbw/YO/Dkq5KnGMfJ3xWBiDr
muc0Cc2tlU2uHqfMw9q9w/y2c9PjSQCo1sds1YvTk85rbLR6j3MJ/uspwH2k
+jpykIh/YAilHIU+Dh8gj/BaYvIwXp04cIuIHgaKOA==
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Verifying request signature:
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG:  Expected Block is: 'Method:GET
Hashed Path:KH3CBPbSgwzIa9czwMU72HVYxow=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-12-24T07:59:10Z
X-Ops-UserId:chef-webui'
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Decrypted block is: 'Method:GET
Hashed Path:KH3CBPbSgwzIa9czwMU72HVYxow=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-12-24T07:59:10Z
X-Ops-UserId:chef-webui'
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Signatures match? : 'true'
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Request time difference: 0.73099, within 900 seconds? : true
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Expected content hash is: '2jmj7l5rSw0yVb/vlWAYkK/YBwk='
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG:  Request Content Hash is: '2jmj7l5rSw0yVb/vlWAYkK/YBwk='
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG:            Hashes match?: true
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/id_map/_view/name_to_id
[Fri, 24 Dec 2010 08:59:10 +0100] INFO: Authenticating client chef-webui
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/id_map/_view/name_to_id
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Authenticating Client:
 #<Chef::ApiClient:0xb7adc610 @couchdb=#<Chef::CouchDB:0xb7ae8334 @rest=#<Chef::REST:0xb7ae826c @auth_credentials=#<Chef::REST::AuthCredentials:0xb7ae7b3c @key_file=nil, @client_name=nil>, @cookies={}, @sign_request=true, @default_headers={}, @url=""http://localhost:5984", @sign_on_redirect=true, @redirect_limit=10, @redirects_followed=0>, @db="chef">, @private_key=nil, @couchdb_id="dca9b141-deef-477c-8c0f-5b98bd8bc863", @name="chef-webui", @public_key="-----BEGIN RSA PUBLIC KEY-----\nMIIBCgKCAQEA1faHcKiU4+Y3ntxfCenVEdF04smZ8kI3/PHmvxQp7HEfLBXafHs/\na0oXR8Pt0Ka3mCSQH0zQm0Qte4m0SgnqD83HNztJzLzmcCfj2KHyKJ42DL10I6Hy\nyoNKbf6Ac1ma40nt86CDJ+SNj6GoEqXNer4bqVRPtJJMESYv0ooYdLuBUKSHmmOL\n0NxLYWJ2FFoSwFd0ixWYdseyIQVnsix6f9lYLBJlYhK4/ONcvubCAMYoRMfs3i9J\nSrTuVeOEDoNPmRG1suCu/WoSvskaNmURgf8tuqreL29DCZKr9oDKns+dBuovpeOB\nJT6zN7ij48wGByiV92sihCdgrxO+iIQjNwIDAQAB\n-----END RSA PUBLIC KEY-----\n", @couchdb_rev="1-060f05a37ad4e27c193e219815a430cb", @index_id="dca9b141-deef-477c-8c0f-5b98bd8bc863", @admin=true>
 
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Initializing header auth : #<Merb::Request:0xb7aea530 @xml_params=nil, @body_and_query_params={}, @body=#<StringIO:0xb7aec5ec>, @env={"HTTP_X_CHEF_VERSION"=>"0.9.12", "HTTP_X_OPS_TIMESTAMP"=>"2010-12-24T07:59:10Z", "SERVER_NAME"=>"localhost", "async.callback"=>#<Method: Thin::Connection#post_process>, "rack.url_scheme"=>"http", "HTTP_X_OPS_SIGN"=>"version=1.0", "PATH_INFO"=>"/cookbooks/accounts/0.0.0/files/c4e497a0095ac8fe9a40995b7ed3a6e3", "rack.run_once"=>false, "rack.input"=>#<StringIO:0xb7aec5ec>, "merb.status"=>200, "merb.request"=>#<Merb::Request:0xb7aea530 ...>, "SCRIPT_NAME"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "HTTP_HOST"=>"localhost:4000", "HTTP_X_OPS_CONTENT_HASH"=>"2jmj7l5rSw0yVb/vlWAYkK/YBwk=", "rack.errors"=>#<IO:/dev/null>, "REMOTE_ADDR"=>"127.0.0.1", "REQUEST_PATH"=>"/cookbooks/accounts/0.0.0/files/c4e497a0095ac8fe9a40995b7ed3a6e3", "SERVER_SOFTWARE"=>"thin 1.2.5 codename This Is Not A Web Server", "HTTP_X_OPS_AUTHORIZATION_1"=>"ka5Ra9PV1mR1CJdd0Y+4pr6SttM7HV6+Zce7fjzuLSltWHWIjjCblFT/XZDD", "merb.request_start"=>Fri Dec 24 08:59:10 +0100 2010, "HTTP_X_OPS_AUTHORIZATION_2"=>"5loDCQQkzhXZLlM5hrVFgIu9uI/gcAIPKCXgmjADCb4N4rSuGPeHSeOtDGkg", "HTTP_VERSION"=>"HTTP/1.1", "rack.multithread"=>false, "rack.version"=>[1, 0], "async.close"=>#<EventMachine::DefaultDeferrable:0xb7aea5e4>, "HTTP_X_OPS_AUTHORIZATION_3"=>"/Nhzt0zFNg/dOHnMQIOdayOBIHgmKGw/zdz1RS8uQCrYRlbxISUjgC+YSg7r", "REQUEST_URI"=>"/cookbooks/accounts/0.0.0/files/c4e497a0095ac8fe9a40995b7ed3a6e3", "rack.multiprocess"=>false, "merb.action_name"=>"show_file", "SERVER_PORT"=>"4000", "HTTP_X_OPS_AUTHORIZATION_4"=>"VDNvIQspPMYPQDj0BtqFj7+klzeiaDn/3+ExVwPEUcdqPjWLvhXkisEJG7Dd", "QUERY_STRING"=>"", "GATEWAY_INTERFACE"=>"CGI/1.2", "HTTP_X_OPS_AUTHORIZATION_5"=>"wkA1yvYSLxj6sgI6EfcrrrCk0gs7MrOXPmpBQRHPHAKE7fZFiCQYxGtWmaQH", "HTTP_X_OPS_AUTHORIZATION_6"=>"iW5H4kA0GTW+Zq1lxJGzr4dc8MgdsiqtTg1rVYtgJQ==", "HTTP_ACCEPT"=>"*/*", "HTTP_X_OPS_USERID"=>"chef-webui", "HTTP_CONNECTION"=>"close", "REQUEST_METHOD"=>"GET"}, @multipart_params={}, @start=Fri Dec 24 08:59:10 +0100 2010, @json_params=nil, @query_params={}, @method=:get, @params={"cookbook_version"=>"0.0.0", "cookbook_name"=>"accounts", "action"=>"show_file", "controller"=>"cookbooks", "checksum"=>"c4e497a0095ac8fe9a40995b7ed3a6e3"}, @body_params=nil, @route=/cookbooks/:cookbook_name/:cookbook_version/files/:checksum, @route_params={:checksum=>"c4e497a0095ac8fe9a40995b7ed3a6e3", :controller=>"cookbooks", :cookbook_name=>"accounts", :action=">"show_file"," :cookbook_version=>"0.0.0"}>
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Parsed signing description: {:version=>"1.0"}
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Digesting body: ''
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Reconstituted (user-supplied) request signature: ka5Ra9PV1mR1CJdd0Y+4pr6SttM7HV6+Zce7fjzuLSltWHWIjjCblFT/XZDD
5loDCQQkzhXZLlM5hrVFgIu9uI/gcAIPKCXgmjADCb4N4rSuGPeHSeOtDGkg
/Nhzt0zFNg/dOHnMQIOdayOBIHgmKGw/zdz1RS8uQCrYRlbxISUjgC+YSg7r
VDNvIQspPMYPQDj0BtqFj7+klzeiaDn/3+ExVwPEUcdqPjWLvhXkisEJG7Dd
wkA1yvYSLxj6sgI6EfcrrrCk0gs7MrOXPmpBQRHPHAKE7fZFiCQYxGtWmaQH
iW5H4kA0GTW+Zq1lxJGzr4dc8MgdsiqtTg1rVYtgJQ==
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Verifying request signature:
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG:  Expected Block is: 'Method:GET
Hashed Path:MojMFrmwG/RBYz9GwPTxbFL1e/Q=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-12-24T07:59:10Z
X-Ops-UserId:chef-webui'
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Decrypted block is: 'Method:GET
Hashed Path:MojMFrmwG/RBYz9GwPTxbFL1e/Q=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-12-24T07:59:10Z
X-Ops-UserId:chef-webui'
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Signatures match? : 'true'
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Request time difference: 0.760498, within 900 seconds? : true
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Expected content hash is: '2jmj7l5rSw0yVb/vlWAYkK/YBwk='
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG:  Request Content Hash is: '2jmj7l5rSw0yVb/vlWAYkK/YBwk='
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG:            Hashes match?: true
[Fri, 24 Dec 2010 08:59:10 +0100] DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/id_map/_view/name_to_id


De: " target="_blank"> [mailto: " target="_blank"> ] En nombre de Daniel DeLeo
Enviado el: jueves, 23 de diciembre de 2010 18:58
Para: " target="_blank">
Asunto: [chef] Re: 500 "Internal Server Error" chef-server-webui version 0.9.12

Can you show us the corresponding error from the API server?

On Thu, Dec 23, 2010 at 9:29 AM, < " target="_blank"> > wrote:
after upgrade to verison 0.9.12 I got the following error when accessing cookbook from web interface
 
 
[Thu, 23 Dec 2010 18:26:55 +0100] DEBUG: Signing the request as chef-webui
[Thu, 23 Dec 2010 18:26:55 +0100] DEBUG: Sending HTTP Request via GET to localhost:4000/cookbooks/accounts/0.0.0/files/c4e497a0095ac8fe9a40995b7ed3a6         e3
[Thu, 23 Dec 2010 18:26:55 +0100] DEBUG: Streaming download from http://localhost:4000/cookbooks/accounts/0.0.0/files/c4e497a0095ac8fe9a40995b7ed3a6e         3 to tempfile /tmp/chef-rest.6329.0
[Thu, 23 Dec 2010 18:26:55 +0100] ERROR: 500 "Internal Server Error"
/usr/lib/ruby/1.8/net/http.rb:2097:in `error!'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/lib/chef/rest.rb:269:in `streaming_request'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/lib/chef/rest.rb:284:in `retriable_rest_request'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/lib/chef/rest.rb:247:in `streaming_request'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/lib/chef/rest.rb:135:in `fetch'
/usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.9.12/app/controllers/application.rb:216:in `syntax_highlight'
/usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.9.12/app/views/cookbooks/show.html.haml:27:in `__usr__lib__ruby__gems__1_8__gems__chef__server__webui         __0_9_12__app__views__cookbooks__show_html_haml'
/usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.9.12/app/views/cookbooks/show.html.haml:24:in `each'
/usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.9.12/app/views/cookbooks/show.html.haml:24:in `__usr__lib__ruby__gems__1_8__gems__chef__server__webui         __0_9_12__app__views__cookbooks__show_html_haml'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/mixins/render.rb:137:in `send'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/mixins/render.rb:137:in `render'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/mixins/render.rb:222:in `display'
/usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.9.12/app/controllers/cookbooks.rb:64:in `show'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/abstract_controller.rb:321:in `send'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/abstract_controller.rb:321:in `_call_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/abstract_controller.rb:289:in `_dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/abstract_controller.rb:284:in `catch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/abstract_controller.rb:284:in `_dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/merb_controller.rb:285:in `_dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/merb_controller.rb:262:in `_call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/controller/merb_controller.rb:252:in `call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/dispatch/dispatcher.rb:91:in `dispatch_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/dispatch/dispatcher.rb:69:in `handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/dispatch/dispatcher.rb:29:in `handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/rack/application.rb:17:in `call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/rack/middleware/static.rb:28:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/content_length.rb:13:in `call'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:76:in `pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:74:in `catch'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:74:in `pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:57:in `process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:42:in `receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/backends/base.rb:57:in `start'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/server.rb:156:in `start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/rack/adapter/thin.rb:30:in `start_server'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/rack/adapter/abstract.rb:305:in `start_at_port'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/rack/adapter/abstract.rb:138:in `start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/server.rb:174:in `bootup'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/server.rb:159:in `daemonize'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/server.rb:143:in `fork'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/server.rb:143:in `daemonize'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/server.rb:35:in `start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core.rb:165:in `start'
/usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.9.12/bin/chef-server-webui:70
/usr/bin/chef-server-webui:19:in `load'
/usr/bin/chef-server-webui:19
 

Huy Le
Tecnología ING DIRECT
Administrador de sistema
Tel: +34 91 206 76 85

Por favor, no imprima este correo si no es necesario.

 

Attention:
The information contained in this message and or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any system and destroy any copies.


Attention:
The information contained in this message and or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any system and destroy any copies.

Attention:
The information contained in this message and or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any system and destroy any copies.




Archive powered by MHonArc 2.6.16.

§