ruby-on-rails – 无法reindex Sunspot SOLR – 错误 – RSolr :: Error :: Http – 500内部服务器错误

每次我尝试使用reindex …

rake sunspot:solr:reindex

这些错误消息总是显示

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…

我试着停止然后开始使用…

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

但没有发生什么.

而现在每次我尝试运行我的应用程序在本地主机…

这是错误

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>"

比我在终端的一个更详细的错误信息.

我从网络中尝试了许多解决方案,如将中止配置设置为false,但没有发生任何事情.

错误仍然存​​在.

任何工作将不胜感激.

解决方法

解决方案:

rake sunspot:solr:stop
> rm -rvf solr(删除/ solr目录)
rake sunspot:solr:start
> rake sunspot:solr:reindex

请享用

相关文章

validates:conclusion,:presence=>true,:inclusion=>{...
一、redis集群搭建redis3.0以前,提供了Sentinel工具来监控各...
分享一下我老师大神的人工智能教程。零基础!通俗易懂!风趣...
上一篇博文 ruby传参之引用类型 里边定义了一个方法名 mo...
一编程与编程语言 什么是编程语言? 能够被计算机所识别的表...
Ruby类和对象Ruby是一种完美的面向对象编程语言。面向对象编...