Skip to content

Instantly share code, notes, and snippets.

@ngokevin
Created May 7, 2012 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ngokevin/2629965 to your computer and use it in GitHub Desktop.
Save ngokevin/2629965 to your computer and use it in GitHub Desktop.
zamboni elastic search traceback
Traceback (most recent call last):
File "/home/ngoke/Code/zamboni/vendor/src/django/django/core/servers/basehttp.py", line 283, in run
self.result = application(self.environ, self.start_response)
File "/home/ngoke/Code/zamboni/vendor/src/django/django/contrib/staticfiles/handlers.py", line 68, in __call__
return self.application(environ, start_response)
File "/home/ngoke/Code/zamboni/vendor/src/django/django/core/handlers/wsgi.py", line 272, in __call__
response = self.get_response(request)
File "/home/ngoke/Code/zamboni/vendor/src/django/django/core/handlers/base.py", line 169, in get_response
response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
File "/home/ngoke/Code/zamboni/vendor/src/django/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/home/ngoke/Code/zamboni/mkt/home/views.py", line 14, in home
'popular': popular
File "/home/ngoke/Code/zamboni/vendor/src/jingo/jingo/__init__.py", line 80, in render
rendered = render_to_string(request, template, context)
File "/home/ngoke/Code/zamboni/vendor/src/jingo/jingo/__init__.py", line 98, in render_to_string
return template.render(**get_context())
File "/home/ngoke/.virtualenvs/zamboni/local/lib/python2.7/site-packages/jinja2/environment.py", line 891, in render
return self.environment.handle_exception(exc_info, True)
File "/home/ngoke/Code/zamboni/mkt/home/templates/home/home.html", line 1, in top-level template code
{% extends 'mkt/base.html' %}
File "/home/ngoke/Code/zamboni/mkt/templates/mkt/base.html", line 53, in top-level template code
{% block content %}
File "/home/ngoke/Code/zamboni/mkt/home/templates/home/home.html", line 29, in block "content"
{% if popular %}
File "/home/ngoke/Code/zamboni/apps/amo/search.py", line 68, in __len__
return len(self._do_search())
File "/home/ngoke/Code/zamboni/apps/amo/search.py", line 184, in _do_search
hits = self.raw()
File "/home/ngoke/Code/zamboni/apps/amo/search.py", line 199, in raw
hits = es.search(qs, self.index, self.type._meta.db_table)
File "/home/ngoke/Code/zamboni/vendor/lib/python/pyes/es.py", line 841, in search
return self._query_call("_search", body, indexes, doc_types, **query_params)
File "/home/ngoke/Code/zamboni/vendor/lib/python/pyes/es.py", line 251, in _query_call
response = self._send_request('GET', path, body, querystring_args)
File "/home/ngoke/Code/zamboni/vendor/lib/python/pyes/es.py", line 223, in _send_request
raise_if_error(response.status, decoded)
File "/home/ngoke/Code/zamboni/vendor/lib/python/pyes/convert_errors.py", line 68, in raise_if_error
raise excClass(msg, status, result)
SearchPhaseExecutionException: Failed to execute phase [query], total failure; shardFailures {[hRiKbbhYSqOt57CManuEFQ][amo][2]: SearchParseException[[amo][2]: from[-1],size[6]: Parse Failure [Failed to parse source [{"filter": {"and": [{"term": {"status": 4}}, {"term": {"type": 11}}, {"term": {"is_disabled": false}}]}, "fields": ["id"], "size": 6, "sort": [{"weekly_downloads": "desc"}]}]]]; nested: SearchParseException[[amo][2]: from[-1],size[6]: Parse Failure [No mapping found for [weekly_downloads] in order to sort on]]; }{[hRiKbbhYSqOt57CManuEFQ][amo][4]: SearchParseException[[amo][4]: from[-1],size[6]: Parse Failure [Failed to parse source [{"filter": {"and": [{"term": {"status": 4}}, {"term": {"type": 11}}, {"term": {"is_disabled": false}}]}, "fields": ["id"], "size": 6, "sort": [{"weekly_downloads": "desc"}]}]]]; nested: SearchParseException[[amo][4]: from[-1],size[6]: Parse Failure [No mapping found for [weekly_downloads] in order to sort on]]; }{[hRiKbbhYSqOt57CManuEFQ][amo][1]: SearchParseException[[amo][1]: from[-1],size[6]: Parse Failure [Failed to parse source [{"filter": {"and": [{"term": {"status": 4}}, {"term": {"type": 11}}, {"term": {"is_disabled": false}}]}, "fields": ["id"], "size": 6, "sort": [{"weekly_downloads": "desc"}]}]]]; nested: SearchParseException[[amo][1]: from[-1],size[6]: Parse Failure [No mapping found for [weekly_downloads] in order to sort on]]; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment