SuiteCRM\Search\Exceptions\SearchException: Elasticsearch trying to re-indexing a bean but indexer is disabled in configuration.

Excuse me, Elasticsearch has been closed and is version 7.11.8. Why is this error always prompted? Thank you

Online viewing has been fixed, I also checked the code, they are all right.

This depends on code in a logic hook, maybe it needs to be rebuilt?

Please try Admin / Repairs / Quick Repair and Rebuild

1 Like

The error message is as follows:


Tue Nov 12 00:02:29 2019 [6546][1][FATAL] [ERROR] Failed to remove bean to index
Tue Nov 12 00:02:29 2019 [6546][1][FATAL] [ERROR] SuiteCRM\Search\Exceptions\SearchException: Elasticsearch trying to re-indexing a bean but indexer is disabled in configuration. in /www/wwwroot/www.www.com/lib/Search/ElasticSearch/ElasticSearchHooks.php:123
Stack trace:
#0 /www/wwwroot/www.www.com/lib/Search/ElasticSearch/ElasticSearchHooks.php(105): SuiteCRM\Search\ElasticSearch\ElasticSearchHooks->reIndex(Object(AOD_IndexEvent))
#1 /www/wwwroot/www.www.com/lib/Search/ElasticSearch/ElasticSearchHooks.php(92): SuiteCRM\Search\ElasticSearch\ElasticSearchHooks->reIndexSafe(Object(AOD_IndexEvent))
#2 /www/wwwroot/www.www.com/include/utils/LogicHook.php(272): SuiteCRM\Search\ElasticSearch\ElasticSearchHooks->beanDeleted(Object(AOD_IndexEvent), 'after_delete', Array)
#3 /www/wwwroot/www.www.com/include/utils/LogicHook.php(213): LogicHook->process_hooks(Array, 'after_delete', Array)
#4 /www/wwwroot/www.www.com/data/SugarBean.php(3112): LogicHook->call_custom_logic('AOD_IndexEvent', 'after_delete', Array)
#5 /www/wwwroot/www.www.com/data/SugarBean.php(5244): SugarBean->call_custom_logic('after_delete', Array)
#6 /www/wwwroot/www.www.com/modules/AOD_Index/AOD_Index.php(251): SugarBean->mark_deleted('e34b500c-2cc0-8...')
#7 /www/wwwroot/www.www.com/modules/AOD_Index/AOD_Index.php(319): AOD_Index->getIndexEvent('Accounts', 'd1a98bc3-b6a2-e...')
#8 /www/wwwroot/www.www.com/modules/Schedulers/_AddJobsHere.php(762): AOD_Index->index('Accounts', 'd1a98bc3-b6a2-e...')
#9 /www/wwwroot/www.www.com/modules/Schedulers/_AddJobsHere.php(724): performLuceneIndexing()
#10 /www/wwwroot/www.www.com/modules/SchedulersJobs/SchedulersJob.php(540): aodIndexUnindexed(Object(SchedulersJob))
#11 /www/wwwroot/www.www.com/include/SugarQueue/SugarCronJobs.php(191): SchedulersJob->runJob()
#12 /www/wwwroot/www.www.com/include/SugarQueue/SugarCronJobs.php(231): SugarCronJobs->executeJob(Object(SchedulersJob))
#13 /www/wwwroot/www.www.com/cron.php(100): SugarCronJobs->runCycle()

This is already fixed in 7.11.10

The fix is easy to apply manually if you prefer

https://github.com/salesagility/SuiteCRM/pull/7921/files

1 Like

Thank you very much, I found this code.