自从我安装了tlsmail
gem和setup my Google Apps account to take in email后,我无法reindex with Sunspot。在此之前它正在运作。现在,当我运行rake sunspot:reindex
时,我得到了:
rake sunspot:reindex --trace
(in C:/apper)
c:/Ruby192/lib/ruby/gems/1.9.1/gems/tlsmail-0.0.1/lib/net/smtp.rb:806: warning: already initialized constant SMTPSession
c:/Ruby192/lib/ruby/gems/1.9.1/gems/tlsmail-0.0.1/lib/net/pop.rb:687: warning: already initialized constant POP
c:/Ruby192/lib/ruby/gems/1.9.1/gems/tlsmail-0.0.1/lib/net/pop.rb:688: warning: already initialized constant POPSession
c:/Ruby192/lib/ruby/gems/1.9.1/gems/tlsmail-0.0.1/lib/net/pop.rb:689: warning: already initialized constant POP3Session
c:/Ruby192/lib/ruby/gems/1.9.1/gems/tlsmail-0.0.1/lib/net/pop.rb:702: warning: already initialized constant APOPSession
** Invoke sunspot:reindex (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute sunspot:reindex
rake aborted!
Solr Response: 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_erro
rs_change_____abortOnConfigurationErrorfalseabortOnConfigurationError___in_null_____javalangRuntimeException_Cant_find_resource_solrconfigxml_in_classpath_or_Cappersolrconf_cwdcR
uby192librubygems191gemssunspot121solr___at_orgapachesolrcoreSolrResourceLoaderopenResourceSolrResourceLoaderjava260___at_orgapachesolrcoreSolrResourceLoaderopenConfigSolrResourceL
oaderjava228___at_orgapachesolrcoreConfiginitConfigjava101___at_orgapachesolrcoreSolrConfiginitSolrConfigjava130___at_orgapachesolrcoreCoreContainer$Initia...........................
您可以在此处查看完整跟踪:https://gist.github.com/1580444
我不知道发生了什么事。任何人都知道如何解决这个问题?
感谢。
答案 0 :(得分:1)
看起来像Solr配置错误(例如 Severe_errors_in_solr_configuration )。检查Solr目录中的日志,也许你的schema.xml不正确?