-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't start Solr with rake task #4
Comments
Hi Simon, Solr server it not included in the gem anymore. If you need it, you can clone this project: http://github.com/dcrec1/jetty-solr It's configured to support all features in acts_as_sor_reloaded. |
Hi Diego, I cloned your Jetty repository and started the Jetty server but I can't connect to the server from my Rails app. Both are running on the same machine and I can access the Solr webinterface but the Rails app keeps complaining:
I don't need the config file when I want to use the defaults, do I? Do I need to run the Jetty server as root (tried but it didn't help)? The port seems correct... |
Hi Simon, can you plase copy the full stack trace? About the config file, are you referring to config/solr.yml ? If yes, you need it but it seems you have it already. |
I start solr via such command:
and in
it works good. |
With the config/solr.yml file in place I get the following error while saving a new record:
Without the config file it seems to find address (but not the server), oddly enough:
I tried the same with the acts_as_solr plugin and that one works, even with your Jetty server. The problem only occurs with the acts_as_solr_reloaded plugin (or gem). Here is the stack trace:
|
It seems that for a reason ENV['RAILS_ENV'] is nil and that is causing the error. You are executing a rake task right? Plz try to set ENV['RAILS_ENV'] in your task or ensure that itsn't nil and try again. If this didn't resolve the problem, plz try to debug Post.execute at acts_as_solr.rb, line 47. I think the plugin is breaking at line 49 when you have the config file and at line 57 when not, exactly the first time when used ENV['RAILS_ENV'] in both cases. |
I am also running into this issue. solr_environment.rb has Did the config path get changed or was the solr folder moved down into lib at some point? |
I installed acts_as_solr_reloaded as a gem and added the require statement in a rake task as specified in this older documentation I found via Google. I can run the rake task but Solr doesn't want to start as the rake task is looking for a directory that doesn't exist:
I checked the directory and the /solr one should be /lib/solr if I'm not mistaken.
The text was updated successfully, but these errors were encountered: