{"action":"created","issue":{"url":"https://api.github.com/repos/chef/chef/issues/2268","labels_url":"https://api.github.com/repos/chef/chef/issues/2268/labels{/name}","comments_url":"https://api.github.com/repos/chef/chef/issues/2268/comments","events_url":"https://api.github.com/repos/chef/chef/issues/2268/events","html_url":"https://github.com/chef/chef/issues/2268","id":46361725,"number":2268,"title":"chef-server throws 500 at random searches","user":{"login":"szymonpk","id":135415,"avatar_url":"https://avatars.githubusercontent.com/u/135415?v=3","gravatar_id":"","url":"https://api.github.com/users/szymonpk","html_url":"https://github.com/szymonpk","followers_url":"https://api.github.com/users/szymonpk/followers","following_url":"https://api.github.com/users/szymonpk/following{/other_user}","gists_url":"https://api.github.com/users/szymonpk/gists{/gist_id}","starred_url":"https://api.github.com/users/szymonpk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szymonpk/subscriptions","organizations_url":"https://api.github.com/users/szymonpk/orgs","repos_url":"https://api.github.com/users/szymonpk/repos","events_url":"https://api.github.com/users/szymonpk/events{/privacy}","received_events_url":"https://api.github.com/users/szymonpk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chef/chef/labels/Chef%20Server","name":"Chef Server","color":"c7def8"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-10-21T07:12:18Z","updated_at":"2015-05-06T17:16:10Z","closed_at":"2015-05-06T17:16:10Z","body":"chef-server open source 11.12.2 running at lxc on debian testing\r\nchef-client 11.12.2 - 11.14.6\r\n\r\nWe're getting 500 at random searches, I'm not sure origin of the issue. I've gather some debug data:\r\n\r\n    # from client side\r\n    DEBUG: Net::HTTPFatalError: 500 \"Internal Server Error\" /usr/lib/ruby/2.1.0/net/http/response.rb:119:in `error!'\r\n\r\n    # from nginx logs on chef-server\r\n     \"GET /search/node?q=recipes:fluentd_server&sort=X_CHEF_id_CHEF_X%20asc&start=0&rows=1000 HTTP/1.1\" 500 \"7.018\" 36 \"-\" \"Chef Client/11.12.8 (ruby-2.1.3-p242; ohai-7.0.4; x86_64-linux-gnu; +http://opscode.com)\" \"127.0.0.1:8000\" \"500\" \"7.018\" \"11.12.8\" \"algorithm=sha1;version=1.0;\" \"appserver.hostname\" \"2014-10-16T09:42:29Z\" \"2jmj7l5rSw0yVb/vlWAYkK/YBwk=\" 1091\r\n\r\n    # logs from erchef/log/crash.log\r\n    https://gist.github.com/szymonpk/142560761ea968570f79\r\n\r\nLooks like issue with pg connection, however postgres log is clean. We're not reaching any conn limit. Re-run chef-client right after failure always helps. "},"comment":{"url":"https://api.github.com/repos/chef/chef/issues/comments/99541825","html_url":"https://github.com/chef/chef/issues/2268#issuecomment-99541825","issue_url":"https://api.github.com/repos/chef/chef/issues/2268","id":99541825,"user":{"login":"lamont-granquist","id":454857,"avatar_url":"https://avatars.githubusercontent.com/u/454857?v=3","gravatar_id":"","url":"https://api.github.com/users/lamont-granquist","html_url":"https://github.com/lamont-granquist","followers_url":"https://api.github.com/users/lamont-granquist/followers","following_url":"https://api.github.com/users/lamont-granquist/following{/other_user}","gists_url":"https://api.github.com/users/lamont-granquist/gists{/gist_id}","starred_url":"https://api.github.com/users/lamont-granquist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lamont-granquist/subscriptions","organizations_url":"https://api.github.com/users/lamont-granquist/orgs","repos_url":"https://api.github.com/users/lamont-granquist/repos","events_url":"https://api.github.com/users/lamont-granquist/events{/privacy}","received_events_url":"https://api.github.com/users/lamont-granquist/received_events","type":"User","site_admin":false},"created_at":"2015-05-06T17:16:10Z","updated_at":"2015-05-06T17:16:10Z","body":"If you can get a repro please file a bug against chef-server"}}