Search code examples
ruby-on-railssolrtomcat6passengersunspot

Ruby on Rails - Solr/Sunspot: Connection refused - connect(2)


Pretty much I'm trying to deploy a Rails application that uses Sunspot. I've followed https://github.com/outoftime/sunspot/wiki/Configure-Solr-on-Ubuntu,-the-quickest-way, but when running the application I get the following:

Connection refused - connect(2)

This indicates that it can't access the server properly, and I've been googling and trying things for hours, but to no avail.

Any ideas?


Solution

  • It turns out that in the end, after all the troubleshooting, the problem was just the port number in the config file (in some drawn out way) -- i.e. Sunspot.config.solr.url.