Skip to content

Instantly share code, notes, and snippets.

@MattHodge
Last active August 29, 2015 14:16
Show Gist options
  • Save MattHodge/01332d9e8fb11c07d194 to your computer and use it in GitHub Desktop.
Save MattHodge/01332d9e8fb11c07d194 to your computer and use it in GitHub Desktop.
Chef Error 500
2014/10/24 14:57:33 [error] 1051#0: *17 connect() failed (111: Connection refused) while connecting to upstream, client: <SERVERIP>, server: chef.<REPLACED>.com, request: "GET /users/hodge HTTP/1.1", upstream: "http://127.0.0.1:8000/users/hodge", host: "chef.<REPLACED>.com:443"
2014/10/24 14:57:33 [error] 1051#0: *19 connect() failed (111: Connection refused) while connecting to upstream, client: <SERVERIP>, server: chef.<REPLACED>.com, request: "GET /users/hodge HTTP/1.1", upstream: "http://127.0.0.1:8000/users/hodge", host: "chef.<REPLACED>.com:443"
2015/03/06 17:02:47 [error] 1984#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: <WORKSTATIONIP>, server: chef.<REPLACED>.com, request: "GET /search/node?q=tags%253A*jfk*%2520OR%2520roles%253A*jfk*%2520OR%2520fqdn%253A*jfk*%2520OR%2520addresses%253A*jfk*&sort=X_CHEF_id_CHEF_X%20asc&start=0&rows=1000 HTTP/1.1", upstream: "http://127.0.0.1:8000/search/node?q=tags%253A*jfk*%2520OR%2520roles%253A*jfk*%2520OR%2520fqdn%253A*jfk*%2520OR%2520addresses%253A*jfk*&sort=X_CHEF_id_CHEF_X%20asc&start=0&rows=1000", host: "chef.<REPLACED>.com:443"
2015/03/06 17:06:55 [error] 2400#0: *9 connect() failed (111: Connection refused) while connecting to upstream, client: <SERVERIP>, server: chef.<REPLACED>.com, request: "GET /users/hodge HTTP/1.1", upstream: "http://127.0.0.1:8000/users/hodge", host: "chef.<REPLACED>.com:443"
2015/03/06 17:09:17 [error] 1065#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: <WORKSTATIONIP>, server: chef.<REPLACED>.com, request: "GET /search/node?q=*%253A*&sort=X_CHEF_id_CHEF_X%20asc&start=0&rows=1000 HTTP/1.1", upstream: "http://127.0.0.1:8000/search/node?q=*%253A*&sort=X_CHEF_id_CHEF_X%20asc&start=0&rows=1000", host: "chef.<REPLACED>.com:443"
{<<"method=GET; path=/search/node; status=500; ">>,{error,{error,{badmatch,{error,{conn_failed,{error,econnrefused}}}},[{chef_solr,search,2,[{file,"src/chef_solr.erl"},{line,80}]},{timer,tc,1,[{file,"timer.erl"},{line,165}]},{stats_hero,ctime,3,[{file,"src/stats_hero.erl"},{line,120}]},{chef_wm_search,to_json,2,[{file,"src/chef_wm_search.erl"},{line,126}]},{webmachine_resource,resource_call,3,[{file,"src/webmachine_resource.erl"},{line,186}]},{webmachine_resource,do,3,[{file,"src/webmachine_resource.erl"},{line,142}]},{webmachine_decision_core,resource_call,1,[{file,"src/webmachine_decision_core.erl"},{line,48}]},{webmachine_decision_core,decision,1,[{file,"src/webmachine_decision_core.erl"},{line,558}]}]}}}2015-03-06 17:33:09 =ERROR REPORT====
{<<"method=GET; path=/search/node; status=500; ">>,{error,{error,{badmatch,{error,{conn_failed,{error,econnrefused}}}},[{chef_solr,search,2,[{file,"src/chef_solr.erl"},{line,80}]},{timer,tc,1,[{file,"timer.erl"},{line,165}]},{stats_hero,ctime,3,[{file,"src/stats_hero.erl"},{line,120}]},{chef_wm_search,to_json,2,[{file,"src/chef_wm_search.erl"},{line,126}]},{webmachine_resource,resource_call,3,[{file,"src/webmachine_resource.erl"},{line,186}]},{webmachine_resource,do,3,[{file,"src/webmachine_resource.erl"},{line,142}]},{webmachine_decision_core,resource_call,1,[{file,"src/webmachine_decision_core.erl"},{line,48}]},{webmachine_decision_core,decision,1,[{file,"src/webmachine_decision_core.erl"},{line,558}]}]}}}2015-03-06 17:37:53 =ERROR REPORT====
{<<"method=GET; path=/search/node; status=500; ">>,{error,{error,{badmatch,{error,{conn_failed,{error,econnrefused}}}},[{chef_solr,search,2,[{file,"src/chef_solr.erl"},{line,80}]},{timer,tc,1,[{file,"timer.erl"},{line,165}]},{stats_hero,ctime,3,[{file,"src/stats_hero.erl"},{line,120}]},{chef_wm_search,to_json,2,[{file,"src/chef_wm_search.erl"},{line,126}]},{webmachine_resource,resource_call,3,[{file,"src/webmachine_resource.erl"},{line,186}]},{webmachine_resource,do,3,[{file,"src/webmachine_resource.erl"},{line,142}]},{webmachine_decision_core,resource_call,1,[{file,"src/webmachine_decision_core.erl"},{line,48}]},{webmachine_decision_core,decision,1,[{file,"src/webmachine_decision_core.erl"},{line,558}]}]}}}2015-03-06 17:37:57 =ERROR REPORT====
{<<"method=GET; path=/search/node; status=500; ">>,{error,{error,{badmatch,{error,{conn_failed,{error,econnrefused}}}},[{chef_solr,search,2,[{file,"src/chef_solr.erl"},{line,80}]},{timer,tc,1,[{file,"timer.erl"},{line,165}]},{stats_hero,ctime,3,[{file,"src/stats_hero.erl"},{line,120}]},{chef_wm_search,to_json,2,[{file,"src/chef_wm_search.erl"},{line,126}]},{webmachine_resource,resource_call,3,[{file,"src/webmachine_resource.erl"},{line,186}]},{webmachine_resource,do,3,[{file,"src/webmachine_resource.erl"},{line,142}]},{webmachine_decision_core,resource_call,1,[{file,"src/webmachine_decision_core.erl"},{line,48}]},{webmachine_decision_core,decision,1,[{file,"src/webmachine_decision_core.erl"},{line,558}]}]}}}^
knife search ubuntu -VV
INFO: Using configuration from E:/ProjectsGit/rtds-chef-repo/.chef/knife.rb
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::JSONToModelOutput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
DEBUG: Signing the request as hodge
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: Initiating GET to https://chef.<REMOVED>.com/search/node?q=tags%253A*ubuntu*%2520OR%2520roles%253A*ubuntu*%2520OR%25
20fqdn%253A*ubuntu*%2520OR%2520addresses%253A*ubuntu*&sort=X_CHEF_id_CHEF_X%20asc&start=0&rows=1000
DEBUG: ---- HTTP Request Header Data: ----
DEBUG: Accept: application/json
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.0;
DEBUG: X-OPS-USERID: hodge
DEBUG: X-OPS-TIMESTAMP: 2015-03-06T22:33:02Z
DEBUG: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
DEBUG: X-OPS-AUTHORIZATION-1: <REMOVED>
DEBUG: X-OPS-AUTHORIZATION-2: <REMOVED>
DEBUG: X-OPS-AUTHORIZATION-3: <REMOVED>
DEBUG: X-OPS-AUTHORIZATION-4: <REMOVED>
DEBUG: X-OPS-AUTHORIZATION-5: <REMOVED>
DEBUG: X-OPS-AUTHORIZATION-6: <REMOVED>
DEBUG: HOST: chef.<REMOVED>.com:443
DEBUG: X-REMOTE-REQUEST-ID: 1f4c1e71-79c8-468a-83a0-564481c03971
DEBUG: ---- End HTTP Request Header Data ----
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 500 Internal Server Error
DEBUG: server: nginx/1.4.4
DEBUG: date: Fri, 06 Mar 2015 22:33:06 GMT
DEBUG: content-type: application/json
DEBUG: content-length: 36
DEBUG: connection: close
DEBUG: x-ops-api-info: flavor=osc;version=11.0.2;erchef=1.4.0
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: ---- HTTP Response Body ----
DEBUG: {"error":["internal service error"]}
DEBUG: ---- End HTTP Response Body -----
ERROR: Server returned error 500 for https://chef.<REMOVED>.com/search/node?q=tags%253A*ubuntu*%2520OR%2520roles%253A*ubunt
u*%2520OR%2520fqdn%253A*ubuntu*%2520OR%2520addresses%253A*ubuntu*&sort=X_CHEF_id_CHEF_X%20asc&start=0&rows=1000, retryin
g 1/5 in 3s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment