Advertisement
Guest User

Commcare error

a guest
Feb 10th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 9.24 KB | None | 0 0
  1. 2016-02-10 15:01:27,605 ERROR Internal Server Error: /a/demo/settings/users/web/
  2. Traceback (most recent call last):
  3.   File "/vendor/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
  4.     response = wrapped_callback(request, *callback_args, **callback_kwargs)
  5.   File "/vendor/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
  6.     return self.dispatch(request, *args, **kwargs)
  7.   File "/mnt/corehq/apps/style/decorators.py", line 23, in _wrapped
  8.     return view_func(class_based_view, request, *args, **kwargs)
  9.   File "/mnt/corehq/apps/style/decorators.py", line 76, in _wrapped
  10.     return view_func(class_based_view, request, *args, **kwargs)
  11.   File "/vendor/lib/python2.7/site-packages/django/utils/decorators.py", line 29, in _wrapper
  12.     return bound_func(*args, **kwargs)
  13.   File "/mnt/corehq/apps/domain/decorators.py", line 83, in _inner
  14.     return view_func(req, domain_name, *args, **kwargs)
  15.   File "/mnt/corehq/apps/users/decorators.py", line 21, in _inner
  16.     return view_func(request, domain, *args, **kwargs)
  17.   File "/vendor/lib/python2.7/site-packages/django/utils/decorators.py", line 25, in bound_func
  18.     return func.__get__(self, type(self))(*args2, **kwargs2)
  19.   File "/mnt/corehq/apps/users/views/__init__.py", line 395, in dispatch
  20.     return super(ListWebUsersView, self).dispatch(request, *args, **kwargs)
  21.   File "/vendor/lib/python2.7/site-packages/django/utils/decorators.py", line 29, in _wrapper
  22.     return bound_func(*args, **kwargs)
  23.   File "/mnt/corehq/apps/domain/decorators.py", line 83, in _inner
  24.     return view_func(req, domain_name, *args, **kwargs)
  25.   File "/vendor/lib/python2.7/site-packages/django/utils/decorators.py", line 25, in bound_func
  26.     return func.__get__(self, type(self))(*args2, **kwargs2)
  27.   File "/mnt/corehq/apps/domain/views.py", line 195, in dispatch
  28.     return super(LoginAndDomainMixin, self).dispatch(*args, **kwargs)
  29.   File "/vendor/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch
  30.     return handler(request, *args, **kwargs)
  31.   File "/vendor/lib/python2.7/site-packages/djangular/views/mixins.py", line 105, in post
  32.     return self.json_response(response_data)
  33.   File "/vendor/lib/python2.7/site-packages/djangular/views/mixins.py", line 43, in json_response
  34.     out_data = json.dumps(response_data, cls=self.json_encoder, **kwargs)
  35.   File "/usr/local/lib/python2.7/json/__init__.py", line 251, in dumps
  36.     sort_keys=sort_keys, **kw).encode(obj)
  37.   File "/usr/local/lib/python2.7/json/encoder.py", line 207, in encode
  38.     chunks = self.iterencode(o, _one_shot=True)
  39.   File "/usr/local/lib/python2.7/json/encoder.py", line 270, in iterencode
  40.     return _iterencode(o, 0)
  41.   File "/vendor/lib/python2.7/site-packages/django/core/serializers/json.py", line 109, in default
  42.     return super(DjangoJSONEncoder, self).default(o)
  43.   File "/usr/local/lib/python2.7/json/encoder.py", line 184, in default
  44.     raise TypeError(repr(o) + " is not JSON serializable")
  45. TypeError: RequestError(400, u'SearchPhaseExecutionException[Failed to execute phase [query], all shards failed; shardFailures {[Yc3fT9d4Q56gP2YTNVfIiQ][hqusers_2016-01-20_1610][0]: SearchParseException[[hqusers_2016-01-20_1610][0]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"sort": {"username.exact": "asc"}, "size": 10, "from": 0, "query": {"filtered": {"filter": {"and": [{"term": {"user.domain_memberships.domain": "demo"}}, {"term": {"doc_type": "WebUser"}}, {"term": {"base_doc": "couchuser"}}, {"term": {"is_active": true}}]}, "query": {"match_all": {}}}}}]]]; nested: SearchParseException[[hqusers_2016-01-20_1610][0]: from[-1],size[-1]: Parse Failure [No mapping found for [username.exact] in order to sort on]]; }{[Yc3fT9d4Q56gP2YTNVfIiQ][hqusers_2016-01-20_1610][1]: SearchParseException[[hqusers_2016-01-20_1610][1]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"sort": {"username.exact": "asc"}, "size": 10, "from": 0, "query": {"filtered": {"filter": {"and": [{"term": {"user.domain_memberships.domain": "demo"}}, {"term": {"doc_type": "WebUser"}}, {"term": {"base_doc": "couchuser"}}, {"term": {"is_active": true}}]}, "query": {"match_all": {}}}}}]]]; nested: SearchParseException[[hqusers_2016-01-20_1610][1]: from[-1],size[-1]: Parse Failure [No mapping found for [username.exact] in order to sort on]]; }{[Yc3fT9d4Q56gP2YTNVfIiQ][hqusers_2016-01-20_1610][2]: SearchParseException[[hqusers_2016-01-20_1610][2]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"sort": {"username.exact": "asc"}, "size": 10, "from": 0, "query": {"filtered": {"filter": {"and": [{"term": {"user.domain_memberships.domain": "demo"}}, {"term": {"doc_type": "WebUser"}}, {"term": {"base_doc": "couchuser"}}, {"term": {"is_active": true}}]}, "query": {"match_all": {}}}}}]]]; nested: SearchParseException[[hqusers_2016-01-20_1610][2]: from[-1],size[-1]: Parse Failure [No mapping found for [username.exact] in order to sort on]]; }{[Yc3fT9d4Q56gP2YTNVfIiQ][hqusers_2016-01-20_1610][3]: SearchParseException[[hqusers_2016-01-20_1610][3]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"sort": {"username.exact": "asc"}, "size": 10, "from": 0, "query": {"filtered": {"filter": {"and": [{"term": {"user.domain_memberships.domain": "demo"}}, {"term": {"doc_type": "WebUser"}}, {"term": {"base_doc": "couchuser"}}, {"term": {"is_active": true}}]}, "query": {"match_all": {}}}}}]]]; nested: SearchParseException[[hqusers_2016-01-20_1610][3]: from[-1],size[-1]: Parse Failure [No mapping found for [username.exact] in order to sort on]]; }{[Yc3fT9d4Q56gP2YTNVfIiQ][hqusers_2016-01-20_1610][4]: SearchParseException[[hqusers_2016-01-20_1610][4]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"sort": {"username.exact": "asc"}, "size": 10, "from": 0, "query": {"filtered": {"filter": {"and": [{"term": {"user.domain_memberships.domain": "demo"}}, {"term": {"doc_type": "WebUser"}}, {"term": {"base_doc": "couchuser"}}, {"term": {"is_active": true}}]}, "query": {"match_all": {}}}}}]]]; nested: SearchParseException[[hqusers_2016-01-20_1610][4]: from[-1],size[-1]: Parse Failure [No mapping found for [username.exact] in order to sort on]]; }]', {u'status': 400, u'error': u'SearchPhaseExecutionException[Failed to execute phase [query], all shards failed; shardFailures {[Yc3fT9d4Q56gP2YTNVfIiQ][hqusers_2016-01-20_1610][0]: SearchParseException[[hqusers_2016-01-20_1610][0]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"sort": {"username.exact": "asc"}, "size": 10, "from": 0, "query": {"filtered": {"filter": {"and": [{"term": {"user.domain_memberships.domain": "demo"}}, {"term": {"doc_type": "WebUser"}}, {"term": {"base_doc": "couchuser"}}, {"term": {"is_active": true}}]}, "query": {"match_all": {}}}}}]]]; nested: SearchParseException[[hqusers_2016-01-20_1610][0]: from[-1],size[-1]: Parse Failure [No mapping found for [username.exact] in order to sort on]]; }{[Yc3fT9d4Q56gP2YTNVfIiQ][hqusers_2016-01-20_1610][1]: SearchParseException[[hqusers_2016-01-20_1610][1]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"sort": {"username.exact": "asc"}, "size": 10, "from": 0, "query": {"filtered": {"filter": {"and": [{"term": {"user.domain_memberships.domain": "demo"}}, {"term": {"doc_type": "WebUser"}}, {"term": {"base_doc": "couchuser"}}, {"term": {"is_active": true}}]}, "query": {"match_all": {}}}}}]]]; nested: SearchParseException[[hqusers_2016-01-20_1610][1]: from[-1],size[-1]: Parse Failure [No mapping found for [username.exact] in order to sort on]]; }{[Yc3fT9d4Q56gP2YTNVfIiQ][hqusers_2016-01-20_1610][2]: SearchParseException[[hqusers_2016-01-20_1610][2]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"sort": {"username.exact": "asc"}, "size": 10, "from": 0, "query": {"filtered": {"filter": {"and": [{"term": {"user.domain_memberships.domain": "demo"}}, {"term": {"doc_type": "WebUser"}}, {"term": {"base_doc": "couchuser"}}, {"term": {"is_active": true}}]}, "query": {"match_all": {}}}}}]]]; nested: SearchParseException[[hqusers_2016-01-20_1610][2]: from[-1],size[-1]: Parse Failure [No mapping found for [username.exact] in order to sort on]]; }{[Yc3fT9d4Q56gP2YTNVfIiQ][hqusers_2016-01-20_1610][3]: SearchParseException[[hqusers_2016-01-20_1610][3]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"sort": {"username.exact": "asc"}, "size": 10, "from": 0, "query": {"filtered": {"filter": {"and": [{"term": {"user.domain_memberships.domain": "demo"}}, {"term": {"doc_type": "WebUser"}}, {"term": {"base_doc": "couchuser"}}, {"term": {"is_active": true}}]}, "query": {"match_all": {}}}}}]]]; nested: SearchParseException[[hqusers_2016-01-20_1610][3]: from[-1],size[-1]: Parse Failure [No mapping found for [username.exact] in order to sort on]]; }{[Yc3fT9d4Q56gP2YTNVfIiQ][hqusers_2016-01-20_1610][4]: SearchParseException[[hqusers_2016-01-20_1610][4]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"sort": {"username.exact": "asc"}, "size": 10, "from": 0, "query": {"filtered": {"filter": {"and": [{"term": {"user.domain_memberships.domain": "demo"}}, {"term": {"doc_type": "WebUser"}}, {"term": {"base_doc": "couchuser"}}, {"term": {"is_active": true}}]}, "query": {"match_all": {}}}}}]]]; nested: SearchParseException[[hqusers_2016-01-20_1610][4]: from[-1],size[-1]: Parse Failure [No mapping found for [username.exact] in order to sort on]]; }]'}) is not JSON serializable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement