Bundler error

645 views
Skip to first unread message

Darpan Dand

unread,
Oct 22, 2016, 7:23:04 PM10/22/16
to RailsInstaller
Why am i getting this error and whats the solution?

C:\Sites>gem install bundler
ERROR:  Could not find a valid gem 'bundler' (>= 0), here is why:
          Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)

Luis Lavena

unread,
Oct 22, 2016, 8:20:41 PM10/22/16
to RailsInstaller

RubyGems.org upgraded SSL certificates that requires updated RubyGems version.

Follow instructions on RubyGems site on how to manually install the updated `.gem` file:

http://guides.rubygems.org/ssl-certificate-update/#installing-using-update-packages

--
Luis Lavena

Surya Avantsa

unread,
Oct 22, 2016, 10:01:48 PM10/22/16
to railsin...@googlegroups.com
It couldn't find a valid gem called bundle because bundler is not a gem. You just have to install ruby and then rails. And bundler comes with it. Rails is a gem, however.
--
You received this message because you are subscribed to the Google Groups "RailsInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to railsinstaller+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Sent from my iPhone

Bryan Bibat

unread,
Oct 22, 2016, 10:08:40 PM10/22/16
to railsin...@googlegroups.com

Surya Avantsa

unread,
Oct 22, 2016, 10:15:03 PM10/22/16
to railsin...@googlegroups.com
Bryan,

Thanks. Now solve Darpan's original problem.

Bryan Bibat

unread,
Oct 22, 2016, 10:19:27 PM10/22/16
to railsin...@googlegroups.com
Luis already provided the most likely solution.

-bry

Darpan Dand

unread,
Oct 22, 2016, 11:03:58 PM10/22/16
to RailsInstaller
Thank you everyone, although Luis's solution worked to install bundler i am still not able to run test app.  Is there a clean step by step installation that i can follow?  Have googled and tubed the same with  no luck.  

Bryan Bibat

unread,
Oct 22, 2016, 11:11:00 PM10/22/16
to railsin...@googlegroups.com

What errors are you encountering?

Also what tutorial are you using?

We've had good results using the RailsBridge guide: http://docs.railsbridge.org/installfest/windows


--

Darpan Dand

unread,
Oct 22, 2016, 11:25:36 PM10/22/16
to railsin...@googlegroups.com
Hi Bryan,

I reinstalled railsinstaller-3.1.1

After installing i tried installing bundler, thats where i get below error:
C:\Sites>gem install  bundler
ERROR:  Could not find a valid gem 'bundler' (>= 0), here is why:
          Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/latest_specs.4.8.gz)

This is where i am stuck, i tried Luis's which was successful, however i am unable to run test_app

it gave me below:
C:\Sites>rails new test_app
       exist
   identical  README.rdoc
   identical  Rakefile
   identical  config.ru
   identical  .gitignore
   identical  Gemfile
       exist  app
   identical  app/assets/javascripts/application.js
   identical  app/assets/stylesheets/application.css
   identical  app/controllers/application_controller.rb
   identical  app/helpers/application_helper.rb
   identical  app/views/layouts/application.html.erb
   identical  app/assets/images/.keep
   identical  app/mailers/.keep
   identical  app/models/.keep
   identical  app/controllers/concerns/.keep
   identical  app/models/concerns/.keep
       exist  bin
   identical  bin/bundle
   identical  bin/rails
   identical  bin/rake
   identical  bin/setup
       exist  config
   identical  config/routes.rb
   identical  config/application.rb
   identical  config/environment.rb
    conflict  config/secrets.yml
</config/secrets.yml? (enter "h" for help) [Ynaqdh] y
       force  config/secrets.yml
       exist  config/environments
   identical  config/environments/development.rb
   identical  config/environments/production.rb
   identical  config/environments/test.rb
       exist  config/initializers
   identical  config/initializers/assets.rb
   identical  config/initializers/backtrace_silencers.rb
   identical  config/initializers/cookies_serializer.rb
   identical  config/initializers/filter_parameter_logging.rb
   identical  config/initializers/inflections.rb
   identical  config/initializers/mime_types.rb
   identical  config/initializers/session_store.rb
   identical  config/initializers/wrap_parameters.rb
       exist  config/locales
   identical  config/locales/en.yml
   identical  config/boot.rb
   identical  config/database.yml
       exist  db
   identical  db/seeds.rb
       exist  lib
       exist  lib/tasks
   identical  lib/tasks/.keep
       exist  lib/assets
   identical  lib/assets/.keep
       exist  log
   identical  log/.keep
       exist  public
   identical  public/404.html
   identical  public/422.html
   identical  public/500.html
   identical  public/favicon.ico
   identical  public/robots.txt
       exist  test/fixtures
   identical  test/fixtures/.keep
       exist  test/controllers
   identical  test/controllers/.keep
       exist  test/mailers
   identical  test/mailers/.keep
       exist  test/models
   identical  test/models/.keep
       exist  test/helpers
   identical  test/helpers/.keep
       exist  test/integration
   identical  test/integration/.keep
   identical  test/test_helper.rb
       exist  tmp/cache
       exist  tmp/cache/assets
       exist  vendor/assets/javascripts
   identical  vendor/assets/javascripts/.keep
       exist  vendor/assets/stylesheets
   identical  vendor/assets/stylesheets/.keep
         run  bundle install
Fetching source index from https://rubygems.org/
Retrying fetcher due to error (2/4): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://rubygems.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see http://bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Retrying fetcher due to error (3/4): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://rubygems.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see http://bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Retrying fetcher due to error (4/4): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://rubygems.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see http://bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Could not verify the SSL certificate for https://rubygems.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most
likely your system doesn't have the CA certificates needed for verification. For
information about OpenSSL certificates, see http://bit.ly/ruby-ssl. To connect
without using SSL, edit your Gemfile sources and change 'https' to 'http'.

.:Darpan

--
You received this message because you are subscribed to a topic in the Google Groups "RailsInstaller" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/railsinstaller/wqPaK6TuNXY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to railsinstaller+unsubscribe@googlegroups.com.

Darpan Dand

unread,
Oct 23, 2016, 12:05:47 AM10/23/16
to railsin...@googlegroups.com
Hi Luis,

I tried the steps you sent and its working now.  Thank you Surya, Bryan for your guidance.  Appreciate it.

Adding all steps i followed.  Again THANK YOU very much for all your help.


Bug fixes:

* Tightened API endpoint checks for CVE-2015-3900


------------------------------------------------------------------------------

RubyGems installed the following executables:
        C:/RailsInstaller/Ruby2.1.0/bin/gem


C:\Sites>gem uninstall rubygems-update -x
Removing update_rubygems
Successfully uninstalled rubygems-update-2.6.7

C:\Sites>rails -v
Rails 4.2.5.1

C:\Sites>ruby -v
ruby 2.1.8p440 (2015-12-16 revision 53160) [i386-mingw32]

C:\Sites>rails new test_app1
      create
      create  README.rdoc
      create  Rakefile
      create  config.ru
      create  .gitignore
      create  Gemfile
      create  app
      create  app/assets/javascripts/application.js
      create  app/assets/stylesheets/application.css
      create  app/controllers/application_controller.rb
      create  app/helpers/application_helper.rb
      create  app/views/layouts/application.html.erb
      create  app/assets/images/.keep
      create  app/mailers/.keep
      create  app/models/.keep
      create  app/controllers/concerns/.keep
      create  app/models/concerns/.keep
      create  bin
      create  bin/bundle
      create  bin/rails
      create  bin/rake
      create  bin/setup
      create  config
      create  config/routes.rb
      create  config/application.rb
      create  config/environment.rb
      create  config/secrets.yml
      create  config/environments
      create  config/environments/development.rb
      create  config/environments/production.rb
      create  config/environments/test.rb
      create  config/initializers
      create  config/initializers/assets.rb
      create  config/initializers/backtrace_silencers.rb
      create  config/initializers/cookies_serializer.rb
      create  config/initializers/filter_parameter_logging.rb
      create  config/initializers/inflections.rb
      create  config/initializers/mime_types.rb
      create  config/initializers/session_store.rb
      create  config/initializers/wrap_parameters.rb
      create  config/locales
      create  config/locales/en.yml
      create  config/boot.rb
      create  config/database.yml
      create  db
      create  db/seeds.rb
      create  lib
      create  lib/tasks
      create  lib/tasks/.keep
      create  lib/assets
      create  lib/assets/.keep
      create  log
      create  log/.keep
      create  public
      create  public/404.html
      create  public/422.html
      create  public/500.html
      create  public/favicon.ico
      create  public/robots.txt
      create  test/fixtures
      create  test/fixtures/.keep
      create  test/controllers
      create  test/controllers/.keep
      create  test/mailers
      create  test/mailers/.keep
      create  test/models
      create  test/models/.keep
      create  test/helpers
      create  test/helpers/.keep
      create  test/integration
      create  test/integration/.keep
      create  test/test_helper.rb
      create  tmp/cache
      create  tmp/cache/assets
      create  vendor/assets/javascripts
      create  vendor/assets/javascripts/.keep
      create  vendor/assets/stylesheets
      create  vendor/assets/stylesheets/.keep
         run  bundle install
Fetching source index from https://rubygems.org/
Could not verify the SSL certificate for
There is a chance you are experiencing a man-in-the-middle attack, but most
likely your system doesn't have the CA certificates needed for verification. For
information about OpenSSL certificates, see http://bit.ly/ruby-ssl. To connect
without using SSL, edit your Gemfile sources and change 'https' to 'http'.

C:\Sites>
C:\Sites>gem which rubygems
C:/RailsInstaller/Ruby2.1.0/lib/ruby/site_ruby/2.1.0/rubygems.rb

C:\Sites>
C:\Sites>start C:\RailsInstaller\Ruby2.1.0\lib\ruby\site_ruby\2.1.0\rubygems

C:\Sites>gem install bundler
Fetching: bundler-1.13.6.gem (100%)
Successfully installed bundler-1.13.6
Parsing documentation for bundler-1.13.6
Installing ri documentation for bundler-1.13.6
Done installing documentation for bundler after 12 seconds
1 gem installed

C:\Sites>rails -v
Rails 4.2.5.1

C:\Sites>rails new test_app2
      create
      create  README.rdoc
      create  Rakefile
      create  config.ru
      create  .gitignore
      create  Gemfile
      create  app
      create  app/assets/javascripts/application.js
      create  app/assets/stylesheets/application.css
      create  app/controllers/application_controller.rb
      create  app/helpers/application_helper.rb
      create  app/views/layouts/application.html.erb
      create  app/assets/images/.keep
      create  app/mailers/.keep
      create  app/models/.keep
      create  app/controllers/concerns/.keep
      create  app/models/concerns/.keep
      create  bin
      create  bin/bundle
      create  bin/rails
      create  bin/rake
      create  bin/setup
      create  config
      create  config/routes.rb
      create  config/application.rb
      create  config/environment.rb
      create  config/secrets.yml
      create  config/environments
      create  config/environments/development.rb
      create  config/environments/production.rb
      create  config/environments/test.rb
      create  config/initializers
      create  config/initializers/assets.rb
      create  config/initializers/backtrace_silencers.rb
      create  config/initializers/cookies_serializer.rb
      create  config/initializers/filter_parameter_logging.rb
      create  config/initializers/inflections.rb
      create  config/initializers/mime_types.rb
      create  config/initializers/session_store.rb
      create  config/initializers/wrap_parameters.rb
      create  config/locales
      create  config/locales/en.yml
      create  config/boot.rb
      create  config/database.yml
      create  db
      create  db/seeds.rb
      create  lib
      create  lib/tasks
      create  lib/tasks/.keep
      create  lib/assets
      create  lib/assets/.keep
      create  log
      create  log/.keep
      create  public
      create  public/404.html
      create  public/422.html
      create  public/500.html
      create  public/favicon.ico
      create  public/robots.txt
      create  test/fixtures
      create  test/fixtures/.keep
      create  test/controllers
      create  test/controllers/.keep
      create  test/mailers
      create  test/mailers/.keep
      create  test/models
      create  test/models/.keep
      create  test/helpers
      create  test/helpers/.keep
      create  test/integration
      create  test/integration/.keep
      create  test/test_helper.rb
      create  tmp/cache
      create  tmp/cache/assets
      create  vendor/assets/javascripts
      create  vendor/assets/javascripts/.keep
      create  vendor/assets/stylesheets
      create  vendor/assets/stylesheets/.keep
         run  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...
Installing rake 11.3.0
Using i18n 0.7.0
Installing json 1.8.3 with native extensions
Installing minitest 5.9.1
Using thread_safe 0.3.5
Using builder 3.2.2
Using erubis 2.7.0
Using mini_portile2 2.1.0
Using rack 1.6.4
Installing mime-types-data 3.2016.0521
Using arel 6.0.3
Installing debug_inspector 0.0.2 with native extensions
Using bundler 1.13.6
Installing byebug 9.0.6 with native extensions
Using coffee-script-source 1.10.0
Installing execjs 2.7.0
Using thor 0.19.1
Installing concurrent-ruby 1.0.2
Installing multi_json 1.12.1
Installing sass 3.4.22
Installing tilt 2.0.5
Installing sqlite3 1.3.12
Installing turbolinks-source 5.0.0
Installing rdoc 4.2.2
Using tzinfo 1.2.2
Installing nokogiri 1.6.8.1
Using rack-test 0.6.3
Installing mime-types 3.1
Installing binding_of_caller 0.7.2 with native extensions
Using coffee-script 2.4.1
Installing uglifier 3.0.2
Installing sprockets 3.7.0
Installing turbolinks 5.0.1
Installing sdoc 0.4.2
Using activesupport 4.2.5.1
Installing tzinfo-data 1.2016.8
Installing loofah 2.0.3
Installing mail 2.6.4
Using rails-deprecated_sanitizer 1.0.3
Installing globalid 0.3.7
Using activemodel 4.2.5.1
Installing jbuilder 2.6.0
Using rails-html-sanitizer 1.0.3
Using rails-dom-testing 1.0.7
Using activejob 4.2.5.1
Using activerecord 4.2.5.1
Using actionview 4.2.5.1
Using actionpack 4.2.5.1
Using actionmailer 4.2.5.1
Using railties 4.2.5.1
Installing sprockets-rails 3.2.0
Using coffee-rails 4.1.1
Installing jquery-rails 4.2.1
Using rails 4.2.5.1
Installing sass-rails 5.0.6
Installing web-console 2.3.0
Bundle complete! 12 Gemfile dependencies, 56 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
Post-install message from nokogiri:
Nokogiri is built with the packaged libraries: libxml2-2.9.4, libxslt-1.1.29, zlib-1.2.8, libiconv-1.14.
Post-install message from rdoc:
Depending on your version of ruby, you may need to install ruby rdoc/ri data:

<= 1.8.6 : unsupported
 = 1.8.7 : gem install rdoc-data; rdoc-data --install
 = 1.9.1 : gem install rdoc-data; rdoc-data --install
>= 1.9.2 : nothing to do! Yay!

C:\Sites>cd test_app2

C:\Sites\test_app2>bundler exec rails server
=> Booting WEBrick
=> Rails 4.2.5.1 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
[2016-10-23 00:02:45] INFO  WEBrick 1.3.1
[2016-10-23 00:02:45] INFO  ruby 2.1.8 (2015-12-16) [i386-mingw32]
[2016-10-23 00:02:45] INFO  WEBrick::HTTPServer#start: pid=9620 port=3000


Started GET "/" for ::1 at 2016-10-23 00:02:59 -0400
Processing by Rails::WelcomeController#index as HTML
  Rendered C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.2.5.1/lib/rails/templates/rails/welcome/index.html.erb (14.5ms)
Completed 200 OK in 132ms (Views: 101.3ms | ActiveRecord: 0.0ms)


.:Darpan

--

John Pratt

unread,
Nov 15, 2016, 3:49:30 PM11/15/16
to RailsInstaller
WOW! Thanks for that post showing the process that you used to fix the issue. I had an issue almost exactly like yours and the solution worked! I think that I'm home free now as far as getting the Rails environment right.


On Saturday, October 22, 2016 at 7:23:04 PM UTC-4, Darpan Dand wrote:
Reply all
Reply to author
Forward
0 new messages