Skip to content

Instantly share code, notes, and snippets.

@cronnelly
Created March 29, 2014 21:04
Show Gist options
  • Save cronnelly/9862978 to your computer and use it in GitHub Desktop.
Save cronnelly/9862978 to your computer and use it in GitHub Desktop.
anthracite error
Traceback (most recent call last):
File "/home/anthracite/anthracite/bottle.py", line 763, in _handle
return route.call(**args)
File "/home/anthracite/anthracite/bottle.py", line 1622, in wrapper
rv = callback(*a, **ka)
File "/home/anthracite/anthracite/bottle.py", line 1572, in wrapper
rv = callback(*a, **ka)
File "./anthracite-web.py", line 123, in events_timeline
(range_low, range_high) = backend.get_events_range()
File "/home/anthracite/anthracite/backend.py", line 272, in get_events_range
"ignore_unmapped": True # avoid 'No mapping found for [date] in order to sort on' when we don't have data yet
File "/home/anthracite/anthracite/rawes/rawes/elastic.py", line 53, in post
return self.request('post', path, **kwargs)
File "/home/anthracite/anthracite/rawes/rawes/elastic.py", line 75, in request
return self.connection.request(method, new_path, **kwargs)
File "/home/anthracite/anthracite/rawes/rawes/http_connection.py", line 43, in request
return self._decode(response)
File "/home/anthracite/anthracite/rawes/rawes/http_connection.py", line 53, in _decode
result=decoded, status_code=response.status_code)
ElasticException: ElasticSearch Error: u'{"error":"SearchPhaseExecutionException[Failed to execute phase [query], all shards failed; shardFailures {[xgjSJcyDRda_4nPXbE_0sg][anthracite][0]: SearchParseException[[anthracite][0]: from[-1],size[-1],sort[<custom:\\"date\\": org.elasticsearch.index.fielddata.fieldcomparator.LongValuesComparatorSource@79f3ea1b>]: Parse Failure [Failed to parse source [{\\"sort\\": [{\\"date\\": {\\"order\\": \\"asc\\", \\"ignore_unmapped\\": true}}], \\"query\\": {\\"field\\": {\\"date\\": {\\"query\\": \\"*\\"}}}}]]]; nested: QueryParsingException[[anthracite] No query registered for [field]]; }{[xgjSJcyDRda_4nPXbE_0sg][anthracite][2]: SearchParseException[[anthracite][2]: from[-1],size[-1],sort[<custom:\\"date\\": org.elasticsearch.index.fielddata.fieldcomparator.LongValuesComparatorSource@4461aa2>]: Parse Failure [Failed to parse source [{\\"sort\\": [{\\"date\\": {\\"order\\": \\"asc\\", \\"ignore_unmapped\\": true}}], \\"query\\": {\\"field\\": {\\"date\\": {\\"query\\": \\"*\\"}}}}]]]; nested: QueryParsingException[[anthracite] No query registered for [field]]; }{[xgjSJcyDRda_4nPXbE_0sg][anthracite][1]: SearchParseException[[anthracite][1]: from[-1],size[-1],sort[<custom:\\"date\\": org.elasticsearch.index.fielddata.fieldcomparator.LongValuesComparatorSource@7c8ed129>]: Parse Failure [Failed to parse source [{\\"sort\\": [{\\"date\\": {\\"order\\": \\"asc\\", \\"ignore_unmapped\\": true}}], \\"query\\": {\\"field\\": {\\"date\\": {\\"query\\": \\"*\\"}}}}]]]; nested: QueryParsingException[[anthracite] No query registered for [field]]; }{[xgjSJcyDRda_4nPXbE_0sg][anthracite][4]: SearchParseException[[anthracite][4]: from[-1],size[-1],sort[<custom:\\"date\\": org.elasticsearch.index.fielddata.fieldcomparator.LongValuesComparatorSource@167e83df>]: Parse Failure [Failed to parse source [{\\"sort\\": [{\\"date\\": {\\"order\\": \\"asc\\", \\"ignore_unmapped\\": true}}], \\"query\\": {\\"field\\": {\\"date\\": {\\"query\\": \\"*\\"}}}}]]]; nested: QueryParsingException[[anthracite] No query registered for [field]]; }{[xgjSJcyDRda_4nPXbE_0sg][anthracite][3]: SearchParseException[[anthracite][3]: from[-1],size[-1],sort[<custom:\\"date\\": org.elasticsearch.index.fielddata.fieldcomparator.LongValuesComparatorSource@79f3ea1b>]: Parse Failure [Failed to parse source [{\\"sort\\": [{\\"date\\": {\\"order\\": \\"asc\\", \\"ignore_unmapped\\": true}}], \\"query\\": {\\"field\\": {\\"date\\": {\\"query\\": \\"*\\"}}}}]]]; nested: QueryParsingException[[anthracite] No query registered for [field]]; }]","status":400}'
<redacted> - - [29/Mar/2014 20:49:24] "GET /events/timeline HTTP/1.1" 500 761
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment