Elastic Connector is not working in Drupal v10.1.5

Created on 26 October 2023, 8 months ago
Updated 12 March 2024, 3 months ago

Problem/Motivation

Hello, I updated Drupal from v10.0.10 to v10.1.5 and almost all functionalities are working as we expected, just one module is failing and this one it is Elastic Connector.

To share more context.. our Drupal is mounted in Azure (Web App Service), in there we are using Docker Compose to enable Drupal. This Container is using a custom image created by us, where we defined a variable where we set the Drupal version.

So this Docker image is useful if we set any kind of Drupal Version.. the issue on here is the Module Elastic Connector it seems has an issue (but I am not sure, I am just guessing).

We have installed this Elastic Connector module: https://www.drupal.org/project/elasticsearch_connector

NOTES:

We are not using composer or drush to install modules or extra things of Drupal (as I mentioned Drupal is mounted in a container where we cannot loggin into the container).
We are installing new modules, using the EXTEND option into Drupal itself.
Saying this... this is the error that I am getting in drupal after the update from v10.0.10 to v10.1.15.

ERROR:

The website encountered an unexpected error. Please try again later.

Error: Class "nodespark\DESConnector\ClientFactory" not found in Drupal\Component\DependencyInjection\Container->createService() (line 259 of core/lib/Drupal/Component/DependencyInjection/Container.php).

Drupal\Component\DependencyInjection\Container->get('elasticsearch_connector.client_factory', 1) (Line: 440)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 237)
Drupal\Component\DependencyInjection\Container->createService(Array, 'elasticsearch_connector.client_manager') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('elasticsearch_connector.client_manager') (Line: 71)
Drupal\elasticsearch_connector\Controller\ClusterListBuilder::createInstance(Object, Object) (Line: 269)
Drupal\Core\Entity\EntityTypeManager->createHandlerInstance('Drupal\elasticsearch_connector\Controller\ClusterListBuilder', Object) (Line: 258)
Drupal\Core\Entity\EntityTypeManager->getHandler('elasticsearch_cluster', 'list_builder') (Line: 199)
Drupal\Core\Entity\EntityTypeManager->getListBuilder('elasticsearch_cluster') (Line: 23)
Drupal\Core\Entity\Controller\EntityListController->listing('elasticsearch_cluster')
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 592)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 182)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
In the REPORTS, I am seeing this:

Elasticsearch library missing.

The client library for Elasticsearch connection is missing.

Any idea?

Steps to reproduce

Install Drupal v10.1.5
Install Elastic Connector https://www.drupal.org/project/elasticsearch_connector/releases/8.x-7.0-...
Also install Search API plugin

After to install those items in Admin > Configuration >Search and Metadata > Elasticsearch Connector is failing

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: works as designed

Component

Elasticsearch Connector

Created by

🇲🇽Mexico roberto.gomez

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

Comments & Activities

  • Issue created by @roberto.gomez
  • Status changed to Closed: works as designed 3 months ago
  • 🇫🇮Finland sokru

    If you choose not to use composer, you must manually download the required packages defined on modules composer.json file. I would highly recommend using composer to make the process easier.

Production build 0.69.0 2024