I use solr-4.10.4.

I have more than 4000 items to be indexed.
But only 1300 Items indexed. Remaining 2958 items not indexed.

After indexing 1300 Items, it keep on loading for more time.
Once I stop the browser, I get the following error.

Solr indexing has encountered an error.
Please continue to the error page
An AJAX HTTP request terminated abnormally. Debugging information follows. Path: /batch?id=1003539&op=do StatusText: ResponseText: ReadyState: 4

An error occurred while processing apachesolr_index_batch_index_entities with arguments: apachesolr_index_batch_index_entities

Someone please help me to fix this.

CommentFileSizeAuthor
index error.png16.29 KBgurunathan
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

broon’s picture

I experienced the same error after moving a site to a new server. The site in question has 5500+ items to be indexed but it stopped after roughly 1600.

While exploring this behaviour, we found several errors listed below as some kind of a checklist. I hope it helps to identify your problem.

  • Solr 5 is not yet supported apparently, we downgraded to Solr 4.6.1.
  • error.log showed several out-of-memory messages. Even though PHP's memory_limit was raised to 512MB through php.ini, error messages still appeared and we found, you can set the limit in settings.php as well. We forgot to change it there.
  • After that, all items could be processed but still were not fully indexed, Java (Jetty Server) was also out of memory: java.lang.RuntimeException: java.lang.OutOfMemoryError: Java heap space
NicholasS’s picture

I also got this same error, though it was roughly the same point each time I tried to re-index the site incrementally (50 at a time). I eventually found a basic page that had PHP code in it, which was causing an error, still have not resolved it, but I tried all the fixes Paul Broon suggested until turned on PHP errors from my settings.php file.