首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >RSolr::Error::Http - 404未找到

RSolr::Error::Http - 404未找到
EN

Stack Overflow用户
提问于 2013-11-18 07:45:55
回答 1查看 3.1K关注 0票数 0

当我试图运行"rake太阳黑子:solr:reindex“时,我得到了以下错误。有谁知道怎么解决这个问题吗?以前一直很好直到最近。

代码语言:javascript
复制
RSolr::Error::Http - 404 Not Found
Error:     Not Found

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

Backtrace: /usr/local/rvm/gems/ruby-2.0.0-p247/gems/rsolr-1.0.9/lib/rsolr/client.rb:268:in `adapt_response'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/rsolr-1.0.9/lib/rsolr/client.rb:175:in `execute'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/rsolr-1.0.9/lib/rsolr/client.rb:161:in `send_and_receive'
/usr/local/rvm/gems/ruby-2.0.0-p247/bundler/gems/sunspot-d013ad3c9f86/sunspot_rails/lib/sunspot/rails/solr_instrumentation.rb:16:in `block in send_and_receive_with_as_instrumentation'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.0/lib/active_support/notifications.rb:159:in `block in instrument'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.0/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.0/lib/active_support/notifications.rb:159:in `instrument'
/usr/local/rvm/gems/ruby-2.0.0-p247/bundler/gems/sunspot-d013ad3c9f86/sunspot_rails/lib/sunspot/rails/solr_instrumentation.rb:15:in `send_and_receive_with_as_instrumentation'
(eval):2:in `post'

https://gist.github.com/DerekChia/36ebe381451b2c4cf18d上的全错误码

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-12-09 16:44:24

我是solr的新手,在开发过程中也遇到了同样的问题。当我像sudo一样运行所有东西时,它一开始就没有问题:

代码语言:javascript
复制
$ sudo bundle exec rake sunspot:solr:start
$ sudo bundle exec rake sunspot:solr:reindex

然后,我可以在http://localhost:8982/solr上查看solr服务器。

因此,它看起来像是一个权限问题,以避免将其作为root运行。

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/20042547

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档