{"action":"created","issue":{"url":"https://api.github.com/repos/densho/ddr-local/issues/230","repository_url":"https://api.github.com/repos/densho/ddr-local","labels_url":"https://api.github.com/repos/densho/ddr-local/issues/230/labels{/name}","comments_url":"https://api.github.com/repos/densho/ddr-local/issues/230/comments","events_url":"https://api.github.com/repos/densho/ddr-local/issues/230/events","html_url":"https://github.com/densho/ddr-local/issues/230","id":304575484,"number":230,"title":"search fails with ConnectionError","user":{"login":"gjost","id":38606,"avatar_url":"https://avatars0.githubusercontent.com/u/38606?v=4","gravatar_id":"","url":"https://api.github.com/users/gjost","html_url":"https://github.com/gjost","followers_url":"https://api.github.com/users/gjost/followers","following_url":"https://api.github.com/users/gjost/following{/other_user}","gists_url":"https://api.github.com/users/gjost/gists{/gist_id}","starred_url":"https://api.github.com/users/gjost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gjost/subscriptions","organizations_url":"https://api.github.com/users/gjost/orgs","repos_url":"https://api.github.com/users/gjost/repos","events_url":"https://api.github.com/users/gjost/events{/privacy}","received_events_url":"https://api.github.com/users/gjost/received_events","type":"User","site_admin":false},"labels":[{"id":26766422,"url":"https://api.github.com/repos/densho/ddr-local/labels/bug","name":"bug","color":"ff6d6d","default":true}],"state":"closed","locked":false,"assignee":{"login":"gjost","id":38606,"avatar_url":"https://avatars0.githubusercontent.com/u/38606?v=4","gravatar_id":"","url":"https://api.github.com/users/gjost","html_url":"https://github.com/gjost","followers_url":"https://api.github.com/users/gjost/followers","following_url":"https://api.github.com/users/gjost/following{/other_user}","gists_url":"https://api.github.com/users/gjost/gists{/gist_id}","starred_url":"https://api.github.com/users/gjost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gjost/subscriptions","organizations_url":"https://api.github.com/users/gjost/orgs","repos_url":"https://api.github.com/users/gjost/repos","events_url":"https://api.github.com/users/gjost/events{/privacy}","received_events_url":"https://api.github.com/users/gjost/received_events","type":"User","site_admin":false},"assignees":[{"login":"gjost","id":38606,"avatar_url":"https://avatars0.githubusercontent.com/u/38606?v=4","gravatar_id":"","url":"https://api.github.com/users/gjost","html_url":"https://github.com/gjost","followers_url":"https://api.github.com/users/gjost/followers","following_url":"https://api.github.com/users/gjost/following{/other_user}","gists_url":"https://api.github.com/users/gjost/gists{/gist_id}","starred_url":"https://api.github.com/users/gjost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gjost/subscriptions","organizations_url":"https://api.github.com/users/gjost/orgs","repos_url":"https://api.github.com/users/gjost/repos","events_url":"https://api.github.com/users/gjost/events{/privacy}","received_events_url":"https://api.github.com/users/gjost/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-03-12T23:22:44Z","updated_at":"2018-03-15T21:05:23Z","closed_at":"2018-03-15T18:29:11Z","author_association":"COLLABORATOR","body":"**Philip (2018-03-09 16:15)**\r\n```\r\nEnvironment:\r\n\r\nRequest Method: GET\r\nRequest URL: http://192.168.56.101/ui/search/?fulltext=bain\r\n\r\nDjango Version: 1.7.11\r\nPython Version: 2.7.13\r\nInstalled Applications:\r\n('django.contrib.admin',\r\n 'django.contrib.auth',\r\n 'django.contrib.contenttypes',\r\n 'django.contrib.sessions',\r\n 'django.contrib.sites',\r\n 'django.contrib.messages',\r\n 'django.contrib.staticfiles',\r\n 'bootstrap_pagination',\r\n 'djcelery',\r\n 'gunicorn',\r\n 'rest_framework',\r\n 'sorl.thumbnail',\r\n 'ddrlocal',\r\n 'storage',\r\n 'webui')\r\nInstalled Middleware:\r\n('django.contrib.sessions.middleware.SessionMiddleware',\r\n 'django.middleware.common.CommonMiddleware',\r\n 'django.middleware.csrf.CsrfViewMiddleware',\r\n 'django.contrib.auth.middleware.AuthenticationMiddleware',\r\n 'django.contrib.messages.middleware.MessageMiddleware',\r\n 'django.middleware.clickjacking.XFrameOptionsMiddleware')\r\n\r\nTraceback:\r\nFile \"/opt/ddr-local/venv/ddrlocal/lib/python2.7/site-packages/django/core/handlers/base.py\" in get_response\r\n  111.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)\r\nFile \"/opt/ddr-local/ddrlocal/webui/decorators.py\" in inner\r\n  53.         return func(request, *args, **kwargs)\r\nFile \"/opt/ddr-local/ddrlocal/webui/views/search.py\" in search_ui\r\n  170.         results = searcher.execute(limit, offset)\r\nFile \"/opt/ddr-local/ddrlocal/webui/search.py\" in execute\r\n  335.         response = self.s[start:stop].execute()\r\nFile \"/opt/ddr-local/venv/ddrlocal/lib/python2.7/site-packages/elasticsearch_dsl/search.py\" in execute\r\n  627.                     **self._params\r\nFile \"/opt/ddr-local/venv/ddrlocal/lib/python2.7/site-packages/elasticsearch/client/utils.py\" in _wrapped\r\n  69.             return func(*args, params=params, **kwargs)\r\nFile \"/opt/ddr-local/venv/ddrlocal/lib/python2.7/site-packages/elasticsearch/client/__init__.py\" in search\r\n  539.             doc_type, '_search'), params=params, body=body)\r\nFile \"/opt/ddr-local/venv/ddrlocal/lib/python2.7/site-packages/elasticsearch/transport.py\" in perform_request\r\n  327.                 status, headers, data = connection.perform_request(method, url, params, body, ignore=ignore, timeout=timeout)\r\nFile \"/opt/ddr-local/venv/ddrlocal/lib/python2.7/site-packages/elasticsearch/connection/http_urllib3.py\" in perform_request\r\n  106.             raise ConnectionError('N/A', str(e), e)\r\n\r\nException Type: ConnectionError at /ui/search/\r\nException Value: ConnectionError(<urllib3.connection.HTTPConnection object at 0x7fb123b2a590>: Failed to establish a new connection: [Errno 111] Connection refused) caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0x7fb123b2a590>: Failed to establish a new connection: [Errno 111] Connection refused)\r\n```"},"comment":{"url":"https://api.github.com/repos/densho/ddr-local/issues/comments/373522609","html_url":"https://github.com/densho/ddr-local/issues/230#issuecomment-373522609","issue_url":"https://api.github.com/repos/densho/ddr-local/issues/230","id":373522609,"user":{"login":"gjost","id":38606,"avatar_url":"https://avatars0.githubusercontent.com/u/38606?v=4","gravatar_id":"","url":"https://api.github.com/users/gjost","html_url":"https://github.com/gjost","followers_url":"https://api.github.com/users/gjost/followers","following_url":"https://api.github.com/users/gjost/following{/other_user}","gists_url":"https://api.github.com/users/gjost/gists{/gist_id}","starred_url":"https://api.github.com/users/gjost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gjost/subscriptions","organizations_url":"https://api.github.com/users/gjost/orgs","repos_url":"https://api.github.com/users/gjost/repos","events_url":"https://api.github.com/users/gjost/events{/privacy}","received_events_url":"https://api.github.com/users/gjost/received_events","type":"User","site_admin":false},"created_at":"2018-03-15T21:05:23Z","updated_at":"2018-03-15T21:05:23Z","author_association":"COLLABORATOR","body":"Not really \"fixed\" per se.  Rather, the ES cluster is now pinged before running search and a more informative error message is displayed if the cluster is offline or index is missing."}}
{"actor":{"display_login":"gjost"}}