certificate error in bundle install (ruby 1.9.3, msysgit 1.9.5 preview20150319, windows 7)

69 views
Skip to first unread message

Ed Blachman

unread,
Apr 29, 2015, 8:07:49 PM4/29/15
to ruby-b...@googlegroups.com
I'm very new to ruby and to bundler, and I'm running into weirdness using bundle install to set up my environment. Note that I'm working within the msysgit command prompt so that it can use the msysgit build environment, and from that prompt I see that both the gem command and the bundle command I'm using live in my Ruby 1.9.3 bin directory.

I cd to the directory that contains my Gemfile, and I try to run bundle install. I see the following:
---
$ bundle install
Fetching gem metadata from https://rubygems.org/.......
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies.....

Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems.org/gems/i18n-0.7.0.gem)
An error occurred while installing i18n (0.7.0), and Bundler cannot continue.
Make sure that `gem install i18n -v '0.7.0'` succeeds before bundling.

$
---

So, ok, then I do as suggested in the last line of the error message -- immediately, without doing anything else on that machine -- and it works, no problem:
---
$ gem install i18n -v '0.7.0'
Fetching: i18n-0.7.0.gem (100%)
Successfully installed i18n-0.7.0
1 gem installed
Installing ri documentation for i18n-0.7.0...
Installing RDoc documentation for i18n-0.7.0...

$
---

So then I run the bundler again, it tells me it's using i18n 0.7.0, then gives me the same error report with respect to the next gem I need. And then I run gem install again, and the gem is installed without problems. Rinse and repeat.

My searches for this "certificate verify failed" issue all seem to suggest fixes in a context where it would crop up while doing gem install. Any suggestions as to why I'd see this every time when running bundle install and yet never see it when running gem install? More importantly, any suggestions as to what I should do about it?

Ed Blachman

André Arko

unread,
Apr 29, 2015, 8:28:49 PM4/29/15
to ruby-b...@googlegroups.com
--
You received this message because you are subscribed to the Google Groups "ruby-bundler" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-bundler...@googlegroups.com.
To post to this group, send email to ruby-b...@googlegroups.com.
Visit this group at http://groups.google.com/group/ruby-bundler.
For more options, visit https://groups.google.com/d/optout.

Ed Blachman

unread,
Apr 30, 2015, 12:23:17 PM4/30/15
to ruby-b...@googlegroups.com
I agree, Andre. One note here (before I go and get more formal in that vein): in an experimental mode I *was* able to work around my issue by changing the Gemfile to use http rather than https to fetch its info from rubygems.org. Now I'll go off and do the kind of writeup I should have done to begin with...
Reply all
Reply to author
Forward
0 new messages