Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't reindex Sunspot SOLR - Error - RSolr::Error::Http - 500 Internal Server Error

Everytime i try to reindex using...

rake sunspot:solr:reindex

These error messages always show:

Error - RSolr::Error::Http - 500 Internal Server Error - retrying... Error - RSolr::Error::Http - 500 Internal Server Error - ignoring... Error - RSolr::Error::Http - 500 Internal Server Error - retrying... Error - RSolr::Error::Http - 500 Internal Server Error - ignoring...

I tried to stop then start using...

rake sunspot:solr:stop
rake sunspot:solr:start

But nothing happened.

And now everytime I try to run my app in localhost...

This is the error:

RSolr::Error::Http - 500 Internal Server Error
Error: Severe errors in solr configuration.

Check your log files for more detailed information on what may be wrong.

If you want solr to continue after configuration errors, change: 

 <abortOnConfigurationError>false</abortOnConfigurationError>

in null

-------------------------------------------------------------

Request Data: "<?xml version=\"1.0\" encoding=\"UTF-8\"?><delete><query>type:Trip</query></delete>"

A more detailed error message than the one I had in terminal.

I tried plenty of solutions from the net like setting Abort Configuration to false, but nothing happened.

The error still persists.

Any work around will be appreciated.

like image 886
xirukitepe Avatar asked Nov 12 '12 09:11

xirukitepe


1 Answers

The solution:

  1. rake sunspot:solr:stop
  2. rm -rvf solr (Delete your /solr directory)
  3. rake sunspot:solr:start
  4. rake sunspot:solr:reindex

Enjoy

like image 197
professormeowingtons Avatar answered Sep 17 '22 12:09

professormeowingtons