When I run RAILS_ENV=production rake sunspot:solr:reindex
, I receive the following error message:
rake aborted!
RSolr::Error::Http: RSolr::Error::Http - 404 Not Found
...
URI: http://localhost:8080/solr/default/update?wt=ruby
Request Headers: {"Content-Type"=>"text/xml"}
Request Data: "<?xml version=\"1.0\" encoding=\"UTF-8\"?><delete><query>type:Piece</query></delete>"
I've used this tutorial to set up Solr, also referencing this page for specific Sunspot configuration. My config/environments/production.rb file includes: Sunspot.config.solr.url = 'http://localhost:8080/solr'
and my config/sunspot.yml file looks like the following:
production:
solr:
hostname: localhost
port: 8080 #tomcat defaults to port 8080
path: '/solr'
log_level: WARNING
pid_dir: '/var/run'
solr_home: solr
development:
solr:
hostname: localhost
port: 8982
log_level: INFO
path: /solr/development
solr_home: solr
test:
solr:
hostname: localhost
port: 8981
log_level: WARNING
path: /solr/test
I've tried everything outlined in similar posts--killing all Solr processes, starting and stopping the Solr server, deleting the entire solr directory, adding to my config files, etc. None of them have worked. I can manually access [hostname]:8080/solr, but I simply cannot reindex or seed my db.