Hi,

I have an issue with the module search API: when i'm trying to reindex all my contents, the following message pop up :

SearchApiException: Could not index items since important pending server tasks could not be performed. in search_api_index_specific_items() (line 1481 of /homez.800/mywebsite/www/sites/all/modules/search_api/search_api.module).

All my modules and drupal core are up to date. Any idea what's going on ?

Thanks

Ryan

Comments

Dale Baldwin’s picture

Got the same issue here as well with all modules and core up to date.

drunken monkey’s picture

Are there some (other) log entries with failures from the Search API?
The message means that some operations on the search server previously failed and were added internally as a pending task. Before any new indexing can occur, these tasks have to be executed to avoid leaving the server in a corrupted state. However, it seems that this operation, whatever it is, keeps on failing, thus preventing any indexing from happening.

If you still have this problem (sorry for my late reply, I was on vacation), maybe take a look (apart from the logs) at the search_api_task table to see what kind of task is pending and continuously failing.

lsolesen’s picture

Status: Active » Postponed (maintainer needs more info)
Alex-CDE’s picture

Same problem, work fine if I run CRON manually. But with automatic CRON, I have this message :

SearchApiException while deleting items from server SolR: "0" Status: : php_network_getaddresses: getaddrinfo failed: Name or service not known in SearchApiSolrConnection->checkResponse() (line 541 of /home/xxxx/public_html/sites/all/modules/contrib/search_api_solr/includes/solr_connection.inc).

drunken monkey’s picture

That's not the "same problem", that's an entirely different problem. Please create a new issue for it.

drunken monkey’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Incidentally, it seems the original issue creator doesn't have the problem anymore, so closing here.