rake sunspot:reindex rake aborted! RSolr::Error::Http - 404 Not Found

后端 未结 2 672
名媛妹妹
名媛妹妹 2021-01-03 10:11

I can no longer reindex and cannot resolve this issue. Spend several hours digging the web for this issue. ** *regarding production environment * d

相关标签:
2条回答
  • 2021-01-03 10:51

    upgrading to tomcat6 fixed the issue after i Set sunspot.yml path to /solr/collection1 and copying the scheme.xml from sunspot to the /opt/solr/collection1/conf/scheme.xml

    0 讨论(0)
  • 2021-01-03 11:03

    These are the terminal commands you should follow to solve your problems:

    1. ps aux | grep solr to get solr process ID
    2. sudo kill <ID>, <ID> is the ID you found from 1
    3. rm -r <path/to/solr>, remove the solr directory inside your project to remove all of previous indexes
    4. RAILS_ENV=production bundle exec rake sunspot:solr:start
    5. Change the path to /solr/default inside config/sunspot.yml
    6. RAILS_ENV=production bundle exec rake sunspot:solr:reindex

    Bam! Problems solved! I hope.

    0 讨论(0)
提交回复
热议问题