Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I recently updated Java for Mac OS X 10.7-Update 1. After that I recognized that in my local development application under Rails 3.0.10 with sunspot/solr the solr-server starts correctly

0:03.80 /usr/bin/java -Dsolr.data.dir=/var/folders/j0/h6j1w2px233bb_g2461l8pnr0000gn/T -Dsolr.solr.home=/Users/XXXXXXX/.rvm/gems/ruby-1.9.2-p180/bundler/gems/sunspot-a32d14da2650/sunspot_solr/solr/solr -jar start.jar

But if I send a fully functional search request I get a connection refused error:

Errno::ECONNREFUSED (Connection refused - connect(2))

One of my collegues recently updated its installation of OS X Snow Leopard with the Java Update for OS X 10.6-Update 6 and is getting the same error, so we determined the Java Update as a possible reason, since solr is Java based.

I am using on Rails 3.0.10 following gems:

gem 'sunspot_solr', :git => 'https://github.com/sunspot/sunspot'
gem 'sunspot_rails', :git => 'https://github.com/sunspot/sunspot.git'

Can someone help me with this problem or confirm its appearence after updating Java on OS X?

share|improve this question

1 Answer 1

We could fix it with the help of one of the contributors from sunspot rails and returned to a release candidate gem verioned before the last update.

gem 'sunspot_rails', :git => 'https://github.com/sunspot/sunspot.git', :ref => '79175ea'
gem 'sunspot_solr', :git => 'https://github.com/sunspot/sunspot', :ref => '79175ea'

This fixed the issue for us be we are pretty sure that it was caused by the Mac OS Java update.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.