SearchApiException: Search server with machine name site_db specifies illegal service class search_api_db_service. in SearchApiServer->ensureProxy() (line 133 of modules/all/search_api/includes/server_entity.inc).

I get the above when I enable the search_api module or any modules that require it.

Comments

damienmckenna’s picture

Version: 7.x-1.0-rc1 » 7.x-1.x-dev

I've just started getting this during installation. The installation profile lists search_api and search_api_db, but once it gets to an exported feature that contains definitions for an index, a server and a (search_api_page) page the installation fails with the above error.

damienmckenna’s picture

Ah! I changed the feature's info file to also list search_api_db as a dependency and it worked without the error. Cool!

So, what would be the best way to adjust the exported output to ensure that the module providing the storage engine is listed as a dependency for any exported server configurations? Just a hook_features_export_alter(), and should it go in the individual module (e.g. search_api_db) or in search_api.module (my recommendation)?

damienmckenna’s picture

Title: SearchApiException: Search server with machine name site_db specifies illegal service class search_api_db_service. » SearchApiException: Search server with machine name site_db specifies illegal service class search_api_db_service

I've moved the problem with exported features to its own issue: #1600986: Exported server definitions don't list storage engine module as a dependency

damienmckenna’s picture

Status: Active » Postponed (maintainer needs more info)

Please let us know if either installing search_api_db first or adding search_api_db to your feature (if you're using a feature) fixed the problem. Thanks.

drunken monkey’s picture

Version: 7.x-1.x-dev » 7.x-1.0-rc1
Status: Postponed (maintainer needs more info) » Fixed

Everyone having this problem in combination with features, please help by testing the patch in #1600986: Exported server definitions don't list storage engine module as a dependency!

Everyone else, please install the modules that are used as backends by one of your servers.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.