Exception: Source IDs to delete are required by Milvus in Drupal\openai_embeddings\Plugin\openai_embeddings\vector_client\Milvus->delete() (line 229 of

Created on 11 March 2024, 8 months ago
Updated 4 April 2024, 7 months ago

I followed the steps here , setup a Milvus service with docker, and on page /admin/config/openai/openai-embeddings/settings configured it as vector store backend as the screenshot below:

But when I click on the button "Index now" on page /admin/config/search/search-api/index/ai_embbedings_index, it shows error message:
Couldn't index items. Check the logs for details.

On page /admin/reports/dblog, there is an item of which the detail is as below:

Message	Exception: Source IDs to delete are required by Milvus in Drupal\openai_embeddings\Plugin\openai_embeddings\vector_client\Milvus->delete() (line 229 of /var/www/html/wushu/web/modules/contrib/openai/modules/openai_embeddings/src/Plugin/openai_embeddings/vector_client/Milvus.php).

Backtrace	
#0 /var/www/html/mysite/web/modules/contrib/search_api_ai/modules/pinecone/src/Plugin/search_api/backend/SearchApiPineconeBackend.php(127): Drupal\openai_embeddings\Plugin\openai_embeddings\vector_client\Milvus->delete()
#1 /var/www/html/mysite/web/modules/contrib/search_api_ai/modules/pinecone/src/Plugin/search_api/backend/SearchApiPineconeBackend.php(81): Drupal\search_api_pinecone\Plugin\search_api\backend\SearchApiPineconeBackend->deleteItems()
#2 /var/www/html/mysite/web/modules/contrib/search_api/src/Entity/Server.php(350): Drupal\search_api_pinecone\Plugin\search_api\backend\SearchApiPineconeBackend->indexItems()
#3 /var/www/html/mysite/web/modules/contrib/search_api/src/Entity/Index.php(994): Drupal\search_api\Entity\Server->indexItems()
#4 /var/www/html/mysite/web/modules/contrib/search_api/src/Entity/Index.php(930): Drupal\search_api\Entity\Index->indexSpecificItems()
#5 /var/www/html/mysite/web/modules/contrib/search_api/src/IndexBatchHelper.php(154): Drupal\search_api\Entity\Index->indexItems()
#6 /var/www/html/mysite/web/core/includes/batch.inc(296): Drupal\search_api\IndexBatchHelper::process()
#7 /var/www/html/mysite/web/core/includes/batch.inc(138): _batch_process()
#8 /var/www/html/mysite/web/core/includes/batch.inc(94): _batch_do()
#9 /var/www/html/mysite/web/core/modules/system/src/Controller/BatchController.php(52): _batch_page()
#10 [internal function]: Drupal\system\Controller\BatchController->batchPage()
#11 /var/www/html/mysite/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#12 /var/www/html/mysite/web/core/lib/Drupal/Core/Render/Renderer.php(627): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#13 /var/www/html/mysite/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext()
#14 /var/www/html/mysite/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#15 /var/www/html/mysite/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#16 /var/www/html/mysite/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#17 /var/www/html/mysite/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#18 /var/www/html/mysite/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#19 /var/www/html/mysite/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#20 /var/www/html/mysite/web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
#21 /var/www/html/mysite/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
#22 /var/www/html/mysite/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#23 /var/www/html/mysite/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
#24 /var/www/html/mysite/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#25 /var/www/html/mysite/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#26 /var/www/html/mysite/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#27 /var/www/html/mysite/web/core/lib/Drupal/Core/DrupalKernel.php(704): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#28 /var/www/html/mysite/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#29 {main}
🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇨🇳China fishfree

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024