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

ruby, ruby-on-rails, solr, sunspot

Solution

The solution:

- `rake sunspot:solr:stop`

- `rm -rvf solr` (Delete your /solr directory)

- `rake sunspot:solr:start`

- `rake sunspot:solr:reindex`

Enjoy

Problem

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.

Original source