Search suggestions result in a 500 and causes Service Unavailable errors

RESOLVED WORKSFORME

Status

addons.mozilla.org Graveyard
Search
--
blocker
RESOLVED WORKSFORME
3 years ago
2 years ago

People

(Reporter: krupa, Assigned: davidbgk)

Tracking

Details

(URL)

(Reporter)

Description

3 years ago
steps to reproduce:
1. Load https://addons-dev.allizom.org/en-US/firefox/search/?q=adblock&appver=32.0&platform=mac
OR
 Search for "adblock" on addons.allizom.org

observed behavior:
search suggestions result in a 500 and end up with a Service Unavailable error.




GET https://addons-dev.allizom.org/en-US/firefox/search/suggestions [HTTP/1.1 500 Internal Server Error 30983ms
(Reporter)

Comment 1

3 years ago
Stacktrace (most recent call last):

  File "django/core/handlers/base.py", line 112, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "mobility/decorators.py", line 23, in wrapper
    return f(request, *args, **kw)
  File "django/views/decorators/vary.py", line 19, in inner_func
    response = func(*args, **kwargs)
  File "search/views.py", line 464, in search
    pager = amo.utils.paginate(request, qs)
  File "amo/utils.py", line 140, in paginate
    paginated = p.page(page)
  File "amo/utils.py", line 709, in page
    list(page.object_list)
  File "amo/search.py", line 273, in __iter__
    return iter(self._do_search())
  File "amo/search.py", line 249, in _do_search
    hits = self.raw()
  File "amo/search.py", line 264, in raw
    hits = es.search(qs, self.index, self.type._meta.db_table)
  File "pyes/es.py", line 841, in search
    return self._query_call("_search", body, indexes, doc_types, **query_params)
  File "pyes/es.py", line 251, in _query_call
    response = self._send_request('GET', path, body, querystring_args)
  File "pyes/es.py", line 208, in _send_request
    response = self.connection.execute(request)
  File "pyes/connection.py", line 174, in _client_call
    raise NoServerAvailable

sentry: http://sentry.dmz.phx1.mozilla.com/addons/addons-dev/group/20960/
(Assignee)

Comment 2

3 years ago
I think that one is fine now that we pushed/reindexed. Let me know if that's not the case.
Assignee: nobody → david
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → WORKSFORME
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.