Elasticsearch indexing failed

ivanp

Member
Used vBulletin Big Board Importer to import data from vBulletin 4.2.5; then installed ES plugin, clicked Rebuild Search Index. After indexing all posts got the error:
Code:
An exception occurred: Elasticsearch indexing failed. See the server error log for more details. in /home/xenforo/library/XenES/Search/SourceHandler/ElasticSearch.php on line 1195

XenES_Search_SourceHandler_ElasticSearch->_triggerFailedIndexError() in XenES/Search/SourceHandler/ElasticSearch.php at line 81
XenES_Search_SourceHandler_ElasticSearch->finalizeRebuildSet() in XenForo/Search/Indexer.php at line 125
XenForo_Search_Indexer->finalizeRebuildSet() in XenForo/Deferred/SearchIndex.php at line 76
XenForo_Deferred_SearchIndex->execute() in XenForo/Model/Deferred.php at line 295
XenForo_Model_Deferred->runDeferred() in XenForo/Model/Deferred.php at line 429
XenForo_Model_Deferred->_runInternal() in XenForo/Model/Deferred.php at line 374
XenForo_Model_Deferred->run() in XenForo/ViewRenderer/Abstract.php at line 354
XenForo_ViewRenderer_Abstract::hasManualDeferredToRun() in XenForo/ViewRenderer/HtmlAdmin.php at line 131
XenForo_ViewRenderer_HtmlAdmin->renderContainer() in XenForo/FrontController.php at line 662
XenForo_FrontController->renderView() in XenForo/FrontController.php at line 176
XenForo_FrontController->run() in /home/xenforo/admin.php at line 13

The following server errors have been logged:

Code:
Error Info
XenForo_Exception: Elasticsearch indexing failed for profile_post-1 Elasticsearch error: Rejecting mapping update to [xenforo] as the final mapping would have more than 1 type: [post, profile_post] - library/XenES/Search/SourceHandler/ElasticSearch.php:1062
Stack Trace
#0 /home/xenforo/library/XenES/Search/SourceHandler/ElasticSearch.php(1185): XenES_Search_SourceHandler_ElasticSearch->_logSearchResponseError(Object(stdClass), true, 'Elasticsearch i...')
#1 /home/xenforo/library/XenES/Search/SourceHandler/ElasticSearch.php(81): XenES_Search_SourceHandler_ElasticSearch->_triggerFailedIndexError(Object(stdClass), Array)
#2 /home/xenforo/library/XenForo/Search/Indexer.php(125): XenES_Search_SourceHandler_ElasticSearch->finalizeRebuildSet()
#3 /home/xenforo/library/XenForo/Deferred/SearchIndex.php(76): XenForo_Search_Indexer->finalizeRebuildSet()
#4 /home/xenforo/library/XenForo/Model/Deferred.php(295): XenForo_Deferred_SearchIndex->execute(Array, Array, 8, '')
#5 /home/xenforo/library/XenForo/Model/Deferred.php(429): XenForo_Model_Deferred->runDeferred(Array, 8, '', false)
#6 /home/xenforo/library/XenForo/Model/Deferred.php(374): XenForo_Model_Deferred->_runInternal(Array, 8, '', false)
#7 /home/xenforo/library/XenForo/ControllerAdmin/Tools.php(159): XenForo_Model_Deferred->run(true, NULL, '', false)
#8 /home/xenforo/library/XenForo/FrontController.php(369): XenForo_ControllerAdmin_Tools->actionRunDeferred()
#9 /home/xenforo/library/XenForo/FrontController.php(152): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#10 /home/xenforo/admin.php(13): XenForo_FrontController->run()
#11 {main}
Code:
Error Info
XenForo_Exception: Elasticsearch indexing failed for profile_post-1 Elasticsearch error: Rejecting mapping update to [xenforo] as the final mapping would have more than 1 type: [post, profile_post] - library/XenES/Search/SourceHandler/ElasticSearch.php:1062
Stack Trace
#0 /home/xenforo/library/XenES/Search/SourceHandler/ElasticSearch.php(1185): XenES_Search_SourceHandler_ElasticSearch->_logSearchResponseError(Object(stdClass), true, 'Elasticsearch i...')
#1 /home/xenforo/library/XenES/Search/SourceHandler/ElasticSearch.php(81): XenES_Search_SourceHandler_ElasticSearch->_triggerFailedIndexError(Object(stdClass), Array)
#2 /home/xenforo/library/XenForo/Search/Indexer.php(125): XenES_Search_SourceHandler_ElasticSearch->finalizeRebuildSet()
#3 /home/xenforo/library/XenForo/Deferred/SearchIndex.php(76): XenForo_Search_Indexer->finalizeRebuildSet()
#4 /home/xenforo/library/XenForo/Model/Deferred.php(295): XenForo_Deferred_SearchIndex->execute(Array, Array, 7.7677409648895, '')
#5 /home/xenforo/library/XenForo/Model/Deferred.php(429): XenForo_Model_Deferred->runDeferred(Array, 7.7677409648895, '', false)
#6 /home/xenforo/library/XenForo/Model/Deferred.php(374): XenForo_Model_Deferred->_runInternal(Array, 7.7677409648895, '', false)
#7 /home/xenforo/library/XenForo/ViewRenderer/Abstract.php(354): XenForo_Model_Deferred->run(true, 7.7677409648895)
#8 /home/xenforo/library/XenForo/ViewRenderer/HtmlAdmin.php(131): XenForo_ViewRenderer_Abstract::hasManualDeferredToRun(true)
#9 /home/xenforo/library/XenForo/FrontController.php(662): XenForo_ViewRenderer_HtmlAdmin->renderContainer(Object(XenForo_Template_Admin), Array)
#10 /home/xenforo/library/XenForo/FrontController.php(176): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_Error), Object(XenForo_ViewRenderer_HtmlAdmin), Array)
#11 /home/xenforo/admin.php(13): XenForo_FrontController->run()
#12 {main}
Code:
Error Info
XenForo_Exception: Elasticsearch indexing failed. See the server error log for more details. - library/XenES/Search/SourceHandler/ElasticSearch.php:1195
Stack Trace
#0 /home/xenforo/library/XenES/Search/SourceHandler/ElasticSearch.php(81): XenES_Search_SourceHandler_ElasticSearch->_triggerFailedIndexError(Object(stdClass), Array)
#1 /home/xenforo/library/XenForo/Search/Indexer.php(125): XenES_Search_SourceHandler_ElasticSearch->finalizeRebuildSet()
#2 /home/xenforo/library/XenForo/Deferred/SearchIndex.php(76): XenForo_Search_Indexer->finalizeRebuildSet()
#3 /home/xenforo/library/XenForo/Model/Deferred.php(295): XenForo_Deferred_SearchIndex->execute(Array, Array, 7.7677409648895, '')
#4 /home/xenforo/library/XenForo/Model/Deferred.php(429): XenForo_Model_Deferred->runDeferred(Array, 7.7677409648895, '', false)
#5 /home/xenforo/library/XenForo/Model/Deferred.php(374): XenForo_Model_Deferred->_runInternal(Array, 7.7677409648895, '', false)
#6 /home/xenforo/library/XenForo/ViewRenderer/Abstract.php(354): XenForo_Model_Deferred->run(true, 7.7677409648895)
#7 /home/xenforo/library/XenForo/ViewRenderer/HtmlAdmin.php(131): XenForo_ViewRenderer_Abstract::hasManualDeferredToRun(true)
#8 /home/xenforo/library/XenForo/FrontController.php(662): XenForo_ViewRenderer_HtmlAdmin->renderContainer(Object(XenForo_Template_Admin), Array)
#9 /home/xenforo/library/XenForo/FrontController.php(176): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_Error), Object(XenForo_ViewRenderer_HtmlAdmin), Array)
#10 /home/xenforo/admin.php(13): XenForo_FrontController->run()
#11 {main}
 

Mike

XenForo developer
Staff member
Are you using the latest version of XFES? Elasticsearch 6 completely changed the data structure there and it required significant changes.

If you are running the latest version, go to the Elasticsearch setup page and choose the option to recreate the index.
 

ivanp

Member
Using XenForo 1.5.22, XenForo Enhanced Search 1.1.8 and Elasticsearch 6.4.2.

Cannot install XFES 2.0.1 on XenForo 1.5.

There is no option to recreate the index at Elasticsearch setup page, just "Delete index".
 

Mike

XenForo developer
Staff member
I meant the latest for XF1, which that is. I meant the delete option -- it will recreate it.

If that doesn't resolve the issue, then I would double check third-party add-ons which may be manipulating the index. If that still doesn't resolve the issue, then I'm not really sure what would cause this as we have tested ES 6.x during development, though the system was never designed for the level of changes they made. Elasticsearch 5.x may be the easiest solution. (I know there aren't issues with 6.x with XFES2 on the basis that we're running it here now, without any problems.)
 
Top