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

前端 未结 9 954
执念已碎
执念已碎 2020-12-18 22:46

Everytime i try to reindex using...

rake sunspot:solr:reindex

These error messages always show:

Error - R

9条回答
  •  自闭症患者
    2020-12-18 23:01

    With reference to @professormeowingtons, you don't have to delete entire solr directory as you might not want to delete your solr configurations like schema.xml and solrconfig.xml. The reason you are getting error might be because of corrupted indexes, what you can do is delete 'solr/env' i.e. solr/development or/and solr/data/development and restart solr server.

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

    If problem still persists, rollback your recent changes because you might have added some wrong configurations.

提交回复
热议问题