Error loading workers (Mobile workers)

I can not view existing mobile workers even though they exist in the
database. on mobile workers screen i get the following error:

There was an issue contacting the server. Please check your internet
connection. If this issue continues, please file a bug report
http://www.zambianacmisonline.org:8079/a/agricdata/settings/users/commcare/#modalReportIssue.

in the logs i get this:

ERROR 2017-01-24 12:29:18,559 base 76228 140139175626704 Internal Server
Error: /a/xxxxxxxx/settings/users/web/
Traceback (most recent call last):
File
"/home/commcarehq/local/lib/python2.7/site-packages/django/core/handlers/base.py",
line 132, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File
"/home/commcarehq/local/lib/python2.7/site-packages/django/views/generic/base.py",
line 71, in view
return self.dispatch(request, *args, **kwargs)
File “/home/commcarehq/commcare-hq/corehq/apps/style/decorators.py”, line
53, in _wrapped
return view_func(class_based_view, request, *args, **kwargs)
File
"/home/commcarehq/local/lib/python2.7/site-packages/django/utils/decorators.py",
line 34, in _wrapper
return bound_func(*args, **kwargs)
File “/home/commcarehq/commcare-hq/corehq/apps/domain/decorators.py”,
line 103, in _inner
return view_func(req, domain_name, *args, **kwargs)
File “/home/commcarehq/commcare-hq/corehq/apps/users/decorators.py”, line
21, in _inner
return view_func(request, domain, *args, **kwargs)
File
"/home/commcarehq/local/lib/python2.7/site-packages/django/utils/decorators.py",
line 30, in bound_func
return func.get(self, type(self))(*args2, **kwargs2)
File “/home/commcarehq/commcare-hq/corehq/apps/users/views/init.py”,
line 361, in dispatch
return super(ListWebUsersView, self).dispatch(request, *args, **kwargs)
File
"/home/commcarehq/local/lib/python2.7/site-packages/django/utils/decorators.py",
line 34, in _wrapper
return bound_func(*args, **kwargs)
File “/home/commcarehq/commcare-hq/corehq/apps/domain/decorators.py”,
line 103, in _inner
return view_func(req, domain_name, *args, **kwargs)
File
"/home/commcarehq/local/lib/python2.7/site-packages/django/utils/decorators.py",
line 30, in bound_func
return func.get(self, type(self))(*args2, **kwargs2)
File “/home/commcarehq/commcare-hq/corehq/apps/domain/views.py”, line
228, in dispatch
return super(LoginAndDomainMixin, self).dispatch(*args, **kwargs)
File
"/home/commcarehq/local/lib/python2.7/site-packages/django/views/generic/base.py",
line 89, in dispatch
return handler(request, *args, **kwargs)
File
"/home/commcarehq/local/lib/python2.7/site-packages/djangular/views/mixins.py",
line 105, in post
return self.json_response(response_data)
File
"/home/commcarehq/local/lib/python2.7/site-packages/djangular/views/mixins.py",
line 43, in json_response
out_data = json.dumps(response_data, cls=self.json_encoder, **kwargs)
File “/usr/lib/python2.7/json/init.py”, line 251, in dumps
sort_keys=sort_keys, **kw).encode(obj)
File “/usr/lib/python2.7/json/encoder.py”, line 207, in encode
chunks = self.iterencode(o, _one_shot=True)
File “/usr/lib/python2.7/json/encoder.py”, line 270, in iterencode
return _iterencode(o, 0)
File
"/home/commcarehq/local/lib/python2.7/site-packages/django/core/serializers/json.py",
line 115, in default
return super(DjangoJSONEncoder, self).default(o)
File “/usr/lib/python2.7/json/encoder.py”, line 184, in default
raise TypeError(repr(o) + " is not JSON serializable")
TypeError: RequestError(400, u’SearchPhaseExecutionException[Failed to
execute phase [query], all shards failed; shardFailures
{[sDOGpKHcTxeDKPJFLQgm3A][hqusers_2016-09-29][0]:
SearchParseException[[hqusers_2016-09-29][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”: “xxxxxxxx”}}, {“term”: {“doc_type”:
“WebUser”}}, {“term”: {“base_doc”: “couchuser”}}, {“term”: {“is_active”:
true}}]}, “query”: {“match_all”: {}}}}}]]]; nested:
SearchParseException[[hqusers_2016-09-29][0]: from[-1],size[-1]: Parse
Failure [No mapping found for [username.exact] in order to sort on]];
}{[sDOGpKHcTxeDKPJFLQgm3A][hqusers_2016-09-29][1]:
SearchParseException[[hqusers_2016-09-29][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”: “xxxxxxx”}}, {“term”: {“doc_type”:
“WebUser”}}, {“term”: {“base_doc”: “couchuser”}}, {“term”: {“is_active”:
true}}]}, “query”: {“match_all”: {}}}}}]]]; nested:
SearchParseException[[hqusers_2016-09-29][1]: from[-1],size[-1]: Parse
Failure [No mapping found for [username.exact] in order to sort on]];
}{[sDOGpKHcTxeDKPJFLQgm3A][hqusers_2016-09-29][2]:
SearchParseException[[hqusers_2016-09-29][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”: “xxxxxxxx”}}, {“term”: {“doc_type”:
“WebUser”}}, {“term”: {“base_doc”: “couchuser”}}, {“term”: {“is_active”:
true}}]}, “query”: {“match_all”: {}}}}}]]]; nested:
SearchParseException[[hqusers_2016-09-29][2]: from[-1],size[-1]: Parse
Failure [No mapping found for [username.exact] in order to sort on]];
}{[sDOGpKHcTxeDKPJFLQgm3A][hqusers_2016-09-29][3]:
SearchParseException[[hqusers_2016-09-29][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”: “xxxxxxxx”}}, {“term”: {“doc_type”:
“WebUser”}}, {“term”: {“base_doc”: “couchuser”}}, {“term”: {“is_active”:
true}}]}, “query”: {“match_all”: {}}}}}]]]; nested:
SearchParseException[[hqusers_2016-09-29][3]: from[-1],size[-1]: Parse
Failure [No mapping found for [username.exact] in order to sort on]];
}{[sDOGpKHcTxeDKPJFLQgm3A][hqusers_2016-09-29][4]:
SearchParseException[[hqusers_2016-09-29][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”: “xxxxxxxx”}}, {“term”: {“doc_type”:
“WebUser”}}, {“term”: {“base_doc”: “couchuser”}}, {“term”: {“is_active”:
true}}]}, “query”: {“match_all”: {}}}}}]]]; nested:
SearchParseException[[hqusers_2016-09-29][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
{[sDOGpKHcTxeDKPJFLQgm3A][hqusers_2016-09-29][0]:
SearchParseException[[hqusers_2016-09-29][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”: “xxxxxxxx”}}, {“term”: {“doc_type”:
“WebUser”}}, {“term”: {“base_doc”: “couchuser”}}, {“term”: {“is_active”:
true}}]}, “query”: {“match_all”: {}}}}}]]]; nested:
SearchParseException[[hqusers_2016-09-29][0]: from[-1],size[-1]: Parse
Failure [No mapping found for [username.exact] in order to sort on]];
}{[sDOGpKHcTxeDKPJFLQgm3A][hqusers_2016-09-29][1]:
SearchParseException[[hqusers_2016-09-29][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”: “xxxxxxxx”}}, {“term”: {“doc_type”:
“WebUser”}}, {“term”: {“base_doc”: “couchuser”}}, {“term”: {“is_active”:
true}}]}, “query”: {“match_all”: {}}}}}]]]; nested:
SearchParseException[[hqusers_2016-09-29][1]: from[-1],size[-1]: Parse
Failure [No mapping found for [username.exact] in order to sort on]];
}{[sDOGpKHcTxeDKPJFLQgm3A][hqusers_2016-09-29][2]:
SearchParseException[[hqusers_2016-09-29][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”: “xxxxxxxx”}}, {“term”: {“doc_type”:
“WebUser”}}, {“term”: {“base_doc”: “couchuser”}}, {“term”: {“is_active”:
true}}]}, “query”: {“match_all”: {}}}}}]]]; nested:
SearchParseException[[hqusers_2016-09-29][2]: from[-1],size[-1]: Parse
Failure [No mapping found for [username.exact] in order to sort on]];
}{[sDOGpKHcTxeDKPJFLQgm3A][hqusers_2016-09-29][3]:
SearchParseException[[hqusers_2016-09-29][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”: “xxxxxxxx”}}, {“term”: {“doc_type”:
“WebUser”}}, {“term”: {“base_doc”: “couchuser”}}, {“term”: {“is_active”:
true}}]}, “query”: {“match_all”: {}}}}}]]]; nested:
SearchParseException[[hqusers_2016-09-29][3]: from[-1],size[-1]: Parse
Failure [No mapping found for [username.exact] in order to sort on]];
}{[sDOGpKHcTxeDKPJFLQgm3A][hqusers_2016-09-29][4]:
SearchParseException[[hqusers_2016-09-29][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”: “xxxxxxxx”}}, {“term”: {“doc_type”:
“WebUser”}}, {“term”: {“base_doc”: “couchuser”}}, {“term”: {“is_active”:
true}}]}, “query”: {“match_all”: {}}}}}]]]; nested:
SearchParseException[[hqusers_2016-09-29][4]: from[-1],size[-1]: Parse
Failure [No mapping found for [username.exact] in order to sort on]]; }]’})
is not JSON serializable
ERROR 2017-01-24 12:29:19,662 base 93638 140139175634896 Internal Server
Error: /a/xxxxxxxx/settings/users/web/
Traceback (most recent call last):
File
"/home/commcarehq/local/lib/python2.7/site-packages/django/core/handlers/base.py",
line 132, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File
"/home/commcarehq/local/lib/python2.7/site-packages/django/views/generic/base.py",
line 71, in view
return self.dispatch(request, *args, **kwargs)
File “/home/commcarehq/commcare-hq/corehq/apps/style/decorators.py”, line
53, in _wrapped
return view_func(class_based_view, request, *args, **kwargs)
File
"/home/commcarehq/local/lib/python2.7/site-packages/django/utils/decorators.py",
line 34, in _wrapper
return bound_func(*args, **kwargs)
File “/home/commcarehq/commcare-hq/corehq/apps/domain/decorators.py”,
line 103, in _inner
return view_func(req, domain_name, *args, **kwargs)
File “/home/commcarehq/commcare-hq/corehq/apps/users/decorators.py”, line
21, in _inner
return view_func(request, domain, *args, **kwargs)
File
"/home/commcarehq/local/lib/python2.7/site-packages/django/utils/decorators.py",
line 30, in bound_func
return func.get(self, type(self))(*args2, **kwargs2)
File “/home/commcarehq/commcare-hq/corehq/apps/users/views/init.py”,
line 361, in dispatch
return super(ListWebUsersView, self).dispatch(request, *args, **kwargs)
File
"/home/commcarehq/local/lib/python2.7/site-packages/django/utils/decorators.py",
line 34, in _wrapper
return bound_func(*args, **kwargs)
File “/home/commcarehq/commcare-hq/corehq/apps/domain/decorators.py”,
line 103, in _inner
return view_func(req, domain_name, *args, **kwargs)
File
"/home/commcarehq/local/lib/python2.7/site-packages/django/utils/decorators.py",
line 30, in bound_func
return func.get(self, type(self))(*args2, **kwargs2)
File “/home/commcarehq/commcare-hq/corehq/apps/domain/views.py”, line
228, in dispatch
return super(LoginAndDomainMixin, self).dispatch(*args, **kwargs)
File
"/home/commcarehq/local/lib/python2.7/site-packages/django/views/generic/base.py",
line 89, in dispatch
return handler(request, *args, **kwargs)
File
"/home/commcarehq/local/lib/python2.7/site-packages/djangular/views/mixins.py",
line 105, in post
return self.json_response(response_data)
File
"/home/commcarehq/local/lib/python2.7/site-packages/djangular/views/mixins.py",
line 43, in json_response
out_data = json.dumps(response_data, cls=self.json_encoder, **kwargs)
File “/usr/lib/python2.7/json/init.py”, line 251, in dumps
sort_keys=sort_keys, **kw).encode(obj)
File “/usr/lib/python2.7/json/encoder.py”, line 207, in encode
chunks = self.iterencode(o, _one_shot=True)
File “/usr/lib/python2.7/json/encoder.py”, line 270, in iterencode
return _iterencode(o, 0)
File
"/home/commcarehq/local/lib/python2.7/site-packages/django/core/serializers/json.py",
line 115, in default
return super(DjangoJSONEncoder, self).default(o)
File “/usr/lib/python2.7/json/encoder.py”, line 184, in default
raise TypeError(repr(o) + " is not JSON serializable")
TypeError: RequestError(400, u’SearchPhaseExecutionException[Failed to
execute phase [query], all shards failed; shardFailures
{[sDOGpKHcTxeDKPJFLQgm3A][hqusers_2016-09-29][0]:
SearchParseException[[hqusers_2016-09-29][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”: “xxxxxxxx”}}, {“term”: {“doc_type”:
“WebUser”}}, {“term”: {“base_doc”: “couchuser”}}, {“term”: {“is_active”:
true}}]}, “query”: {“match_all”: {}}}}}]]]; nested:
SearchParseException[[hqusers_2016-09-29][0]: from[-1],size[-1]: Parse
Failure [No mapping found for [username.exact] in order to sort on]];
}{[sDOGpKHcTxeDKPJFLQgm3A][hqusers_2016-09-29][1]:
SearchParseException[[hqusers_2016-09-29][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”: “xxxxxxxx”}}, {“term”: {“doc_type”:
“WebUser”}}, {“term”: {“base_doc”: “couchuser”}}, {“term”: {“is_active”:
true}}]}, “query”: {“match_all”: {}}}}}]]]; nested:
SearchParseException[[hqusers_2016-09-29][1]: from[-1],size[-1]: Parse
Failure [No mapping found for [username.exact] in order to sort on]];
}{[sDOGpKHcTxeDKPJFLQgm3A][hqusers_2016-09-29][2]:
SearchParseException[[hqusers_2016-09-29][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”: “xxxxxxxx”}}, {“term”: {“doc_type”:
“WebUser”}}, {“term”: {“base_doc”: “couchuser”}}, {“term”: {“is_active”:
true}}]}, “query”: {“match_all”: {}}}}}]]]; nested:
SearchParseException[[hqusers_2016-09-29][2]: from[-1],size[-1]: Parse
Failure [No mapping found for [username.exact] in order to sort on]];
}{[sDOGpKHcTxeDKPJFLQgm3A][hqusers_2016-09-29][3]:
SearchParseException[[hqusers_2016-09-29][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”: “xxxxxxxx”}}, {“term”: {“doc_type”:
“WebUser”}}, {“term”: {“base_doc”: “couchuser”}}, {“term”: {“is_active”:
true}}]}, “query”: {“match_all”: {}}}}}]]]; nested:
SearchParseException[[hqusers_2016-09-29][3]: from[-1],size[-1]: Parse
Failure [No mapping found for [username.exact] in order to sort on]];
}{[sDOGpKHcTxeDKPJFLQgm3A][hqusers_2016-09-29][4]:
SearchParseException[[hqusers_2016-09-29][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”: “xxxxxxxx”}}, {“term”: {“doc_type”:
“WebUser”}}, {“term”: {“base_doc”: “couchuser”}}, {“term”: {“is_active”:
true}}]}, “query”: {“match_all”: {}}}}}]]]; nested:
SearchParseException[[hqusers_2016-09-29][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
{[sDOGpKHcTxeDKPJFLQgm3A][hqusers_2016-09-29][0]:
SearchParseException[[hqusers_2016-09-29][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”: “xxxxxxxx”}}, {“term”: {“doc_type”:
“WebUser”}}, {“term”: {“base_doc”: “couchuser”}}, {“term”: {“is_active”:
true}}]}, “query”: {“match_all”: {}}}}}]]]; nested:
SearchParseException[[hqusers_2016-09-29][0]: from[-1],size[-1]: Parse
Failure [No mapping found for [username.exact] in order to sort on]];
}{[sDOGpKHcTxeDKPJFLQgm3A][hqusers_2016-09-29][1]:
SearchParseException[[hqusers_2016-09-29][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”: “xxxxxxxx”}}, {“term”: {“doc_type”:
“WebUser”}}, {“term”: {“base_doc”: “couchuser”}}, {“term”: {“is_active”:
true}}]}, “query”: {“match_all”: {}}}}}]]]; nested:
SearchParseException[[hqusers_2016-09-29][1]: from[-1],size[-1]: Parse
Failure [No mapping found for [username.exact] in order to sort on]];
}{[sDOGpKHcTxeDKPJFLQgm3A][hqusers_2016-09-29][2]:
SearchParseException[[hqusers_2016-09-29][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”: “xxxxxxxx”}}, {“term”: {“doc_type”:
“WebUser”}}, {“term”: {“base_doc”: “couchuser”}}, {“term”: {“is_active”:
true}}]}, “query”: {“match_all”: {}}}}}]]]; nested:
SearchParseException[[hqusers_2016-09-29][2]: from[-1],size[-1]: Parse
Failure [No mapping found for [username.exact] in order to sort on]];
}{[sDOGpKHcTxeDKPJFLQgm3A][hqusers_2016-09-29][3]:
SearchParseException[[hqusers_2016-09-29][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”: “xxxxxxxx”}}, {“term”: {“doc_type”:
“WebUser”}}, {“term”: {“base_doc”: “couchuser”}}, {“term”: {“is_active”:
true}}]}, “query”: {“match_all”: {}}}}}]]]; nested:
SearchParseException[[hqusers_2016-09-29][3]: from[-1],size[-1]: Parse
Failure [No mapping found for [username.exact] in order to sort on]];
}{[sDOGpKHcTxeDKPJFLQgm3A][hqusers_2016-09-29][4]:
SearchParseException[[hqusers_2016-09-29][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”: “xxxxxxxx”}}, {“term”: {“doc_type”:
“WebUser”}}, {“term”: {“base_doc”: “couchuser”}}, {“term”: {“is_active”:
true}}]}, “query”: {“match_all”: {}}}}}]]]; nested:
SearchParseException[[hqusers_2016-09-29][4]: from[-1],size[-1]: Parse
Failure [No mapping found for [username.exact] in order to sort on]]; }]’})
is not JSON serializable