Can't reindex with sunspot / solr in rails app - Error: Severe errors in solr configuration
I was having a very similar problem and solved it by
- stopping all running solr processes
- removing the solr folder
- turn off/restart the computer
- gem uninstall all related gems
- bundle install
- start solr
- reindex solr
Ruby on rails Sunspot Solr weird error
I followed this upvoted answer Can't reindex Sunspot SOLR - Error - RSolr::Error::Http - 500 Internal Server Error
instead of deleting the whole folder i just deleted the solr.xml file
All other commands are the same :)
RSolr::Error::Http: RSolr::Error::Http - 500 Internal Server Error
Solution:
Removed solr map from project and restarted the sunspot:solr.
Sunspot Solr Reindexing failing due to illegal characters
Usually this is caused by bad data in your database. If you're using MySQL you can find any instances of control character 12 with a query like this:
SELECT * FROM table WHERE col REGEXP CHAR(12);
Then you can remove the character from the content of any matched rows & proceed to reindex.
You could also do something like this to remove the control characters:
UPDATE table SET col=REPLACE(col, CHAR(12), '') WHERE col REGEXP CHAR(12);
Rails 4: RSolr::Error::Http (RSolr::Error::Http - 404 Not Found
Solved it! Followed steps in Answer suggested here with little alteration:
- stopping all running solr processes
- removing the solr folder BUT keep a copy of it accessible in case you need some of the old config, synonyms and such.
- gem uninstall all related gems
- bundle install
- rails generate sunspot_rails:install
- start solr
- reindex solr: Now as I'm using mongoid, rake sunspot:reindex doesn't seem to work, but going from console and doing Sunspot.index!(Model.all) is doing it for me.
RSolr::Error::Http - 404 Not Found
I am new to solr and had the same issue getting it working in development. When I ran everything as sudo, it started up with no problems:
$ sudo bundle exec rake sunspot:solr:start
$ sudo bundle exec rake sunspot:solr:reindex
I could then view the solr server at http://localhost:8982/solr
So it looks like a permissions issue to avoid having to run it as root.
rake sunspot:reindex rake aborted! RSolr::Error::Http - 404 Not Found
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
Related Topics
How to Redefine Fixnum's + (Plus) Method in Ruby and Keep Original + Functionality
Removing or Overriding an Activerecord Validation Added by a Superclass or Mixin
Creating a Setter Method That Takes Extra Arguments in Ruby
Version Sort (With Alphas, Betas, etc.) in Ruby
Converting a Unique Seed String into a Random, Yet Deterministic, Float Value in Ruby
Rails Cannot Load Such File -- MySQL2/Mysql2 (Loaderror)
All Possible Combinations of Selected Character Substitution in a String in Ruby
How Might I Simulate a Private Browsing Experience in Watir? (Selenium)
How to Serialize an Object Using Tcpserver Inside
Ruby: Converting from Float to Integer in Ruby Produces Strange Results