Run Ruby on rails application(old version)


#1

Hi,

I have a ruby on rails application which was developed using following versions;

  1. Ruby - 2.1.3
  2. Rails - 4.1.4

I have installed Ruby 2.1.9 as i couldn’t find for Ruby 2.1.3.
But unable to run ‘gem install rails -version 4.1.4’ because of the following error :

Could not find a valid gem ‘rails’ (>= 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)

As I am completely new to the Ruby on Rails tech, I am not able to run this application and unable to solve the errors.

Can anybody please help me run this application?

Thanks !


#2

Hi,

I suggest you to update the RubyGems:

gem update --system

After that, you could try again.


#3

@Maniac

Hi,

I have tried with ‘gem update --system’ which was throwing the error

ERROR: While executing gem … (Gem::RemoteFetcher::FetchError)
SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: tlsv1 alert protocol version (https://api.rubygems.org/specs.4.8.gz)


#4

Hello @Vaidehi17,

Sorry for my late answer.

As I mentioned this issue is related to the RubyGems, so check this out:
https://guides.rubygems.org/ssl-certificate-update/