Reputation: 391
rake solr:start throws this error
rake aborted!
undefined method `closed?' for nil:NilClass
Upvotes: 4
Views: 2798
Reputation: 4568
One simple answer is that you may have not started your sunspot solr. Try running
rake sunspot:solr:start
Another possible answer is related to ipv4 vs ipv6. Check out this thread for more info: Solr / Sunspot / Rails 3 error: undefined method `closed?' for nil:NilClass
Upvotes: 0
Reputation: 391
I have google around and got frustrated. I found the answer
http://redmine.ruby-lang.org/issues/show/2708
you have to go in /lib/ruby/1.8/net
and download the patch and add that additional check into http.rb and you are done
http://redmine.ruby-lang.org/attachments/download/835
Thanks everyone
Upvotes: 5