Closed (fixed)
Project:
Search API
Version:
7.x-1.0-rc1
Component:
Framework
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 May 2012 at 17:05 UTC
Updated:
17 Jun 2012 at 13:21 UTC
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
Comment #1
grasmash commentedsee #1357888: Upgrading Search API breaks because of missing searchi_api_db module
Comment #2
damienmckennaI'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.
Comment #3
damienmckennaAh! 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)?
Comment #4
damienmckennaI've moved the problem with exported features to its own issue: #1600986: Exported server definitions don't list storage engine module as a dependency
Comment #5
damienmckennaPlease 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.
Comment #6
drunken monkeyEveryone 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.