I recently finished creating a Rails 3.1 app that uses Sunspot for search. I've got it running on my server, however am having some issues with sunspot. I ran into the issue of encountering a "Connection refused - connect(2)" error every time I viewed a page with the search feature. I had come across this in development and the solution had been to run "rake sunspot:solr:start", however it would seem that this solution (even when setting the RAILS_EVN) doesn't work to fix the error this time around. I've tried various things including installing Tomcat which I thought might run the server as in the step here: https://github.com/outoftime/sunspot/wiki/Configure-Solr-on-Ubuntu,-the-quickest-way However, the only change I can see this made is that when running "rake sunspot:solr:start" I now get the error: "Server is already running with PID 21404". Indicating that the Sunspot server is running.
Obviously I have now run out of ideas to fix this connection refused error and so am seeking help from ServerFault.
Any help would be greatly appreciated,
Thanks In Advance,
Regards,
Joe