- Issue created by @rsnyd
- πΊπΈUnited States rsnyd
Additionally, here's the complete error I receive after clicking the 'Execute pending tasks' button:
An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?id=64671&op=do_nojs&op=do StatusText: 500 Service unavailable (with message) ResponseText: The website encountered an unexpected error. Try again later.Drupal\search_api\SearchApiException: 400 Bad Request in Drupal\centarro_search\Plugin\search_api\backend\ElasticEnterpriseSearchBackend->deleteItems() (line 149 of modules/contrib/centarro_search/src/Plugin/search_api/backend/ElasticEnterpriseSearchBackend.php). Drupal\search_api\Task\ServerTaskManager->executeTask() (Line: 114) Drupal\search_api\Task\ServerTaskManager->processEvent() call_user_func() (Line: 111) Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 212) Drupal\search_api\Task\TaskManager->executeSpecificTask() (Line: 362) Drupal\search_api\Task\TaskManager->processBatch() call_user_func_array() (Line: 296) _batch_process() (Line: 138) _batch_do() (Line: 94) _batch_page() (Line: 52) Drupal\system\Controller\BatchController->batchPage() call_user_func_array() (Line: 123) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 638) Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 121) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181) Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76) Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53) Drupal\Core\StackMiddleware\Session->handle() (Line: 48) Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28) Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32) Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 106) Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85) Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 50) Drupal\ban\BanMiddleware->handle() (Line: 48) Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51) Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 36) Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51) Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 741) Drupal\Core\DrupalKernel->handle() (Line: 19)
- πΊπΈUnited States rsnyd
Here are the errors from the logs when I try to re-index items:
Type search_api Date Friday, November 15, 2024 - 11:17 User 56926@gmail.com Location https://dbd2c379-dab6-496b-9023-c7cf81c727fa.web.ahdev.cloud/batch?_format=json&id=64672&op=do Referrer https://dbd2c379-dab6-496b-9023-c7cf81c727fa.web.ahdev.cloud/batch?id=64672&op=start Message Drupal\search_api\SearchApiException while trying to index items on index ElasticSearch: Could not index items on index 'ElasticSearch' because pending server tasks could not be executed. in Drupal\search_api\Entity\Server->indexItems() (line 353 of /home/ide/project/docroot/modules/contrib/search_api/src/Entity/Server.php) Severity Error Hostname 10.24.113.153 Operations Backtrace #0 /home/ide/project/docroot/modules/contrib/search_api/src/Entity/Index.php(1006): Drupal\search_api\Entity\Server->indexItems() #1 /home/ide/project/docroot/modules/contrib/search_api/src/Entity/Index.php(935): Drupal\search_api\Entity\Index->indexSpecificItems() #2 /home/ide/project/docroot/modules/contrib/search_api/src/IndexBatchHelper.php(160): Drupal\search_api\Entity\Index->indexItems() #3 [internal function]: Drupal\search_api\IndexBatchHelper::process() #4 /home/ide/project/docroot/core/includes/batch.inc(296): call_user_func_array() #5 /home/ide/project/docroot/core/includes/batch.inc(138): _batch_process() #6 /home/ide/project/docroot/core/includes/batch.inc(94): _batch_do() #7 /home/ide/project/docroot/core/modules/system/src/Controller/BatchController.php(52): _batch_page() #8 [internal function]: Drupal\system\Controller\BatchController->batchPage() #9 /home/ide/project/docroot/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array() #10 /home/ide/project/docroot/core/lib/Drupal/Core/Render/Renderer.php(638): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #11 /home/ide/project/docroot/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext() #12 /home/ide/project/docroot/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() #13 /home/ide/project/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #14 /home/ide/project/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw() #15 /home/ide/project/docroot/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle() #16 /home/ide/project/docroot/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle() #17 /home/ide/project/docroot/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle() #18 /home/ide/project/docroot/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle() #19 /home/ide/project/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle() #20 /home/ide/project/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass() #21 /home/ide/project/docroot/core/modules/ban/src/BanMiddleware.php(50): Drupal\page_cache\StackMiddleware\PageCache->handle() #22 /home/ide/project/docroot/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\ban\BanMiddleware->handle() #23 /home/ide/project/docroot/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() #24 /home/ide/project/docroot/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() #25 /home/ide/project/docroot/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle() #26 /home/ide/project/docroot/core/lib/Drupal/Core/DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel->handle() #27 /home/ide/project/docroot/index.php(19): Drupal\Core\DrupalKernel->handle() #28 {main}
Type search_api Date Friday, November 15, 2024 - 11:17 User 56926@gmail.com Location https://dbd2c379-dab6-496b-9023-c7cf81c727fa.web.ahdev.cloud/batch?_format=json&id=64672&op=do Referrer https://dbd2c379-dab6-496b-9023-c7cf81c727fa.web.ahdev.cloud/batch?id=64672&op=start Message Drupal\search_api\SearchApiException: 400 Bad Request in Drupal\centarro_search\Plugin\search_api\backend\ElasticEnterpriseSearchBackend->deleteItems() (line 149 of /home/ide/project/docroot/modules/contrib/centarro_search/src/Plugin/search_api/backend/ElasticEnterpriseSearchBackend.php). Severity Error Hostname 10.24.113.153 Operations Backtrace #0 /home/ide/project/docroot/modules/contrib/search_api/src/Task/ServerTaskManager.php(167): Drupal\centarro_search\Plugin\search_api\backend\ElasticEnterpriseSearchBackend->deleteItems() #1 /home/ide/project/docroot/modules/contrib/search_api/src/Task/ServerTaskManager.php(114): Drupal\search_api\Task\ServerTaskManager->executeTask() #2 [internal function]: Drupal\search_api\Task\ServerTaskManager->processEvent() #3 /home/ide/project/docroot/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func() #4 /home/ide/project/docroot/modules/contrib/search_api/src/Task/TaskManager.php(212): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() #5 /home/ide/project/docroot/modules/contrib/search_api/src/Task/TaskManager.php(264): Drupal\search_api\Task\TaskManager->executeSpecificTask() #6 /home/ide/project/docroot/modules/contrib/search_api/src/Task/ServerTaskManager.php(94): Drupal\search_api\Task\TaskManager->executeAllTasks() #7 /home/ide/project/docroot/modules/contrib/search_api/src/Entity/Server.php(349): Drupal\search_api\Task\ServerTaskManager->execute() #8 /home/ide/project/docroot/modules/contrib/search_api/src/Entity/Index.php(1006): Drupal\search_api\Entity\Server->indexItems() #9 /home/ide/project/docroot/modules/contrib/search_api/src/Entity/Index.php(935): Drupal\search_api\Entity\Index->indexSpecificItems() #10 /home/ide/project/docroot/modules/contrib/search_api/src/IndexBatchHelper.php(160): Drupal\search_api\Entity\Index->indexItems() #11 [internal function]: Drupal\search_api\IndexBatchHelper::process() #12 /home/ide/project/docroot/core/includes/batch.inc(296): call_user_func_array() #13 /home/ide/project/docroot/core/includes/batch.inc(138): _batch_process() #14 /home/ide/project/docroot/core/includes/batch.inc(94): _batch_do() #15 /home/ide/project/docroot/core/modules/system/src/Controller/BatchController.php(52): _batch_page() #16 [internal function]: Drupal\system\Controller\BatchController->batchPage() #17 /home/ide/project/docroot/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array() #18 /home/ide/project/docroot/core/lib/Drupal/Core/Render/Renderer.php(638): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #19 /home/ide/project/docroot/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext() #20 /home/ide/project/docroot/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() #21 /home/ide/project/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #22 /home/ide/project/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw() #23 /home/ide/project/docroot/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle() #24 /home/ide/project/docroot/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle() #25 /home/ide/project/docroot/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle() #26 /home/ide/project/docroot/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle() #27 /home/ide/project/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle() #28 /home/ide/project/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass() #29 /home/ide/project/docroot/core/modules/ban/src/BanMiddleware.php(50): Drupal\page_cache\StackMiddleware\PageCache->handle() #30 /home/ide/project/docroot/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\ban\BanMiddleware->handle() #31 /home/ide/project/docroot/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() #32 /home/ide/project/docroot/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() #33 /home/ide/project/docroot/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle() #34 /home/ide/project/docroot/core/lib/Drupal/Core/DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel->handle() #35 /home/ide/project/docroot/index.php(19): Drupal\Core\DrupalKernel->handle() #36 {main}
- πΊπΈUnited States rsnyd
More information. I've created drupalpods of multiple releases of this module. The issue with reindexing seems to have shown up in release 1.0.0-beta3. This looks like the release that moved away from using the "elasticsearch/elasticsearch": "^8" library. In the \src\Plugin\search_api\backend\ElasticEnterpriseSearchBackend.php, it seems to be using $client = $this->getEnterpriseClient(); as opposed to $client = $this->getClient();