Forums Breaking Issue
Introduction
In your edx site if you are having issues regarding searching or getting an error in your Elasticsearch like below.
File "/edx/app/edxapp/edx-platform/edx-search/search/elastic.py", line 363, in index
self._check_mappings(doc_type, source)
File "/edx/app/edxapp/edx-platform/edx-search/search/elastic.py", line 338, in _check_mappings
for field, value in body.items()
File "/edx/app/edxapp/edx-platform/edx-search/search/elastic.py", line 339, in <dictcomp>
if (field not in exclude_fields) and (field not in self._get_mappings(doc_type).get('properties', {}))
File "/edx/app/edxapp/edx-platform/edx-search/search/elastic.py", line 254, in _get_mappings
doc_type=doc_type,
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/elasticsearch/client/utils.py", line 69, in _wrapped
return func(*args, params=params, **kwargs)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/elasticsearch/client/indices.py", line 313, in get_mapping
'_mapping', doc_type), params=params)
This issue is caused by Elasticsearch.
Solution
The solution to this problem is to check your Elasticsearch configuration and if you are using the default configuration just try to restart the Elasticsearch with the help of below command.
sudo service Elasticsearch restart