[英]Solr connection refused error after java update on Mac OS X Lion
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 我最近更新了Mac OS X 10.7-Update 1的Java。此后,我认识到在我的本地开发应用程序中,带有sunspot / solr的Rails 3.0.10下,solr-server可以正确启动
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. 我的一位同事最近用OS X 10.6-Update 6的Java更新更新了OS X Snow Leopard的安装,并收到了相同的错误,因此我们将Java Update确定为可能的原因,因为solr是基于Java的。
I am using on Rails 3.0.10 following gems: 我在Rails 3.0.10上使用以下宝石:
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? 在OS X上更新Java后,有人可以帮助我解决此问题或确认其出现吗?
Thanks a lot! 非常感谢!
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。
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. 这可以为我们解决问题,因为我们可以确定这是由Mac OS Java更新引起的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.