Forum: JRuby Bundler install fails for JRuby 1.7.3

Posted by Michel Guymon (Guest)
on 2013-02-26 20:15
(Received via mailing list)
Hello JRubians,

bundle install tosses a OpenSSL::SSL::SSLError: Socket closed

I am fishing around to see if anyone else has seen something similar.
When my CI server is under load, which is fairly regularly on the small
EC2 server, I get an "OpenSSL::SSL::SSLError: Socket closed" when
"bundle install --deployment" is run. Gist of the Jenkins output[1]. The
output for this was for installing a single gem, railroady. It happens
fairly regularly, but when the load drops on the box, the install will
work again.

[1] https://gist.github.com/mguymon/5040582

thanks,
Michael
Posted by Michael Pitman (mcp)
on 2013-02-27 01:59
(Received via mailing list)
Hi Michel,

I'm getting the same issue reliably(!) on Mac OS X (10.8.2) running 
oracle
java 1.7.0_15 and jruby 1.7.3 or 1.7.2 (I haven't tried older versions 
of
jruby, nor have I tried under jdk 6).

The same configuration (ie same versions of java and jruby) work fine 
under
ubuntu.

I assume you're running under linux, but are you also using oracle java 
7
update 15?

Thanks,

Michael
Posted by Michael Pitman (mcp)
on 2013-02-27 02:54
(Received via mailing list)
OK, so I was able to solve (maybe workaround) my particular problem, and 
it
may helpful for you or others.

I changed the rubygems "source" line in the Gemfile

from
source 'https://rubygems.org'
to
source 'https://bundler.rubygems.org'


It seems that rubygems.org was redirecting to bundler.rubygems.org (302
result code) and that seemed to be causing grief somewhere in the 
handling
of the response.

I'm not sure if this will be a long-term solution, since rubygems may
decide to change the server handing that API, but as a workaround it's
working for now.

Regards,

Michael
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.