Just updated ElasticSearch on the server, getting server log errors

Ludachris

Well-known member
The server was running ElasticSearch 1.5.x - I know, pretty damned old. I had the host update it to 6.5.4 last night. The admin panel is filled with these type of errors now:

Code:
[TABLE]
[TR]
[TH]Stack Trace[/TH]
[/TR]
[TR]
[TD]XenForo_Exception: Elasticsearch indexing failed Elasticsearch error: Rejecting mapping update to [database_xf] as the final mapping would have more than 1 type: [post, thread] - library/XenES/Search/SourceHandler/ElasticSearch.php:1062
Generated By: GSXbooster, 20 minutes ago[/TD]
[/TR]
[TR]
[TD]#0 /home/site/public_html/library/XenES/Search/SourceHandler/ElasticSearch.php(1185): XenES_Search_SourceHandler_ElasticSearch->_logSearchResponseError(Object(stdClass), false, 'Elasticsearch i...')
#1 /home/site/public_html/library/XenES/Search/SourceHandler/ElasticSearch.php(68): XenES_Search_SourceHandler_ElasticSearch->_triggerFailedIndexError(Object(stdClass), Array, true)
#2 /home/site/public_html/library/XenForo/Search/Indexer.php(44): XenES_Search_SourceHandler_ElasticSearch->insertIntoIndex('thread', 521047, 'Nice 2g Parts', '', 1548259853, 18042, 521047, Array)
#3 /home/site/public_html/library/XenForo/Search/DataHandler/Thread.php(59): XenForo_Search_Indexer->insertIntoIndex('thread', 521047, 'Nice 2g Parts', '', 1548259853, 18042, 521047, Array)
#4 /home/site/public_html/library/XenForo/Search/DataHandler/Abstract.php(275): XenForo_Search_DataHandler_Thread->_insertIntoIndex(Object(XenForo_Search_Indexer), Array, NULL)
#5 /home/site/public_html/library/XenForo/DataWriter/Discussion.php(675): XenForo_Search_DataHandler_Abstract->insertIntoIndex(Object(XenForo_Search_Indexer), Array)
#6 /home/site/public_html/library/XenForo/DataWriter/Discussion.php(631): XenForo_DataWriter_Discussion->_insertIntoSearchIndex()
#7 /home/site/public_html/library/XenForo/DataWriter/Discussion.php(464): XenForo_DataWriter_Discussion->_indexForSearch()
#8 /home/site/public_html/library/XenForo/DataWriter.php(1423): XenForo_DataWriter_Discussion->_postSave()
#9 /home/site/public_html/library/XenForo/ControllerPublic/Forum.php(830): XenForo_DataWriter->save()
#10 /home/site/public_html/library/XenForo/FrontController.php(351): XenForo_ControllerPublic_Forum->actionAddThread()
#11 /home/site/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#12 /home/site/public_html/index.php(13): XenForo_FrontController->run()[/TD]
[/TR]
[/TABLE]

What should be done about these? Delete the ES index and rebuild it from the ES settings page? This is for a XF1.5 install with XenES 1.1.8.
 
Last edited:
Going into the Elasticsearch setup section in the XF control panel and choosing to delete the index may be sufficient.

If that doesn't trigger it, then enable the "Enable single type mode in Elasticsearch" option. (You can use the ACP search to go directly to it.)
 
Back
Top Bottom