UJP - Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: tlsv1 alert protocol version

Life is fun and easy!

不正IP報告数

Okan Sensor
 
メイン
ログイン
ブログ カテゴリ一覧

  • カテゴリ サイト構築 の最新配信
  • RSS
  • RDF
  • ATOM

ブログ - Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: tlsv1 alert protocol version

Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: tlsv1 alert protocol version

カテゴリ : 
サイト構築
ブロガー : 
ujpblog 2018/12/1 2:52
 milkodeというツールのインストールを試してみた.
gaia:~ server$ gem install milkcode🆑
ERROR:  Could not find a valid gem 'milkcode' (>= 0), here is why:
          Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0
 state=SSLv2/v3 read server hello A: tlsv1 alert protocol version
 (https://rubygems.org/latest_specs.4.8.gz)
gaia:~ server$ 
 エラーがでる.rubygems.orgにSSLでアクセスできないことが原因.
 調べると,gemが古いことが原因の模様.アップデートを実行.

gaia:~ server$ sudo gem update --system🆑
Updating rubygems-update
Fetching: rubygems-update-2.7.8.gem (100%)
Successfully installed rubygems-update-2.7.8
Parsing documentation for rubygems-update-2.7.8
Installing ri documentation for rubygems-update-2.7.8
Installing darkfish documentation for rubygems-update-2.7.8
Installing RubyGems 2.7.8
YAML safe loading is not available. Please upgrade psych to a version that supports safe
 loading (>= 2.0).
ERROR:  While executing gem ... (Errno::EPERM)
    Operation not permitted - /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/gem
gaia:~ server$ 
 psychがないというエラー.
 Operation not Permittedとは別の問題.sudoでpsychをインストール.

gaia:~ server$ sudo gem install psych🆑
Password:
YAML safe loading is not available. Please upgrade psych to a version that supports safe
 loading (>= 2.0).
Fetching: psych-3.0.3.gem (100%)
ERROR:  Error installing psych:
	The last version of psych (>= 0) to support your Ruby & RubyGems was 2.2.4.
     Try installing it with `gem install psych -v 2.2.4`
	psych requires Ruby version >= 2.2.2. The current ruby version is 2.0.0.
gaia:~ server$
 インストールに失敗した.ruby 2.2.2の環境が必要だけれど,現在は2.0.0であるという問題.
 とりあえずは,指定されたコマンドを実行.

gaia:~ server$ sudo gem install psych -v 2.2.4🆑
YAML safe loading is not available. Please upgrade psych to a version that supports
 safe loading (>= 2.0).
Fetching: psych-2.2.4.gem (100%)
Building native extensions. This could take a while...
Successfully installed psych-2.2.4🈁
Parsing documentation for psych-2.2.4
unable to convert "\xCA" from ASCII-8BIT to UTF-8 for /Library/Ruby/Gems/2.0.0/
extensions/universal-darwin-15/2.0.0/psych-2.2.4/psych.bundle, skipping
unable to convert "\xCA" from ASCII-8BIT to UTF-8 for lib/psych.bundle, skipping
Installing ri documentation for psych-2.2.4
WARNING:  Unable to pull data from 'https://rubygems.org/': 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)
1 gem installed
gaia:~ server$ 
 psych−2.2.4はインストールできたけれど,SSLのエラーがやっぱりでる.

 rubyをBrewでインストールする.

gaia:~ server$ brew install ruby🆑
==> Installing dependencies for ruby: libyaml and readline
==> Installing ruby dependency: libyaml
==> Downloading https://homebrew.bintray.com/bottles/libyaml-0.2.1.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libyaml-0.2.1.el_capitan.bottle.tar.gz
🍺  /usr/local/Cellar/libyaml/0.2.1: 9 files, 313.4KB
==> Installing ruby dependency: readline
==> Downloading https://homebrew.bintray.com/bottles/readline-7.0.5.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring readline-7.0.5.el_capitan.bottle.tar.gz
==> Caveats
readline is keg-only, which means it was not symlinked into /usr/local,
because macOS provides the BSD libedit library, which shadows libreadline.
In order to prevent conflicts when programs look for libreadline we are
defaulting this GNU Readline installation to keg-only.

For compilers to find readline you may need to set:
  export LDFLAGS="-L/usr/local/opt/readline/lib"
  export CPPFLAGS="-I/usr/local/opt/readline/include"

==> Summary
🍺  /usr/local/Cellar/readline/7.0.5: 46 files, 1.5MB
==> Installing ruby
==> Downloading https://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.3.tar.xz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/ruby/2.5.3_1 --enable-shared --disable-silent-rules
 --with-sitedir=/usr/local/lib/rub
==> make
==> make install
==> Downloading https://rubygems.org/rubygems/rubygems-2.7.7.tgz
######################################################################## 100.0%
==> /usr/local/Cellar/ruby/2.5.3_1/bin/ruby setup.rb --prefix=/private/tmp/ruby-20181130-17151
-1vsism6/ruby-2.5.3/vendor_gem
==> Caveats
By default, binaries installed by gem will be placed into:
  /usr/local/lib/ruby/gems/2.5.0/bin

You may want to add this to your PATH.

ruby is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

If you need to have ruby first in your PATH run:
  echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.bash_profile

For compilers to find ruby you may need to set:
  export LDFLAGS="-L/usr/local/opt/ruby/lib"
  export CPPFLAGS="-I/usr/local/opt/ruby/include"

For pkg-config to find ruby you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/ruby/lib/pkgconfig"

==> Summary
🍺  /usr/local/Cellar/ruby/2.5.3_1: 16,228 files, 27.7MB, built in 6 minutes 11 seconds
==> Caveats
==> readline
readline is keg-only, which means it was not symlinked into /usr/local,
because macOS provides the BSD libedit library, which shadows libreadline.
In order to prevent conflicts when programs look for libreadline we are
defaulting this GNU Readline installation to keg-only.

For compilers to find readline you may need to set:
  export LDFLAGS="-L/usr/local/opt/readline/lib"
  export CPPFLAGS="-I/usr/local/opt/readline/include"

==> ruby
By default, binaries installed by gem will be placed into:
  /usr/local/lib/ruby/gems/2.5.0/bin

You may want to add this to your PATH.

ruby is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

If you need to have ruby first in your PATH run:
  echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.bash_profile

For compilers to find ruby you may need to set:
  export LDFLAGS="-L/usr/local/opt/ruby/lib"
  export CPPFLAGS="-I/usr/local/opt/ruby/include"

For pkg-config to find ruby you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/ruby/lib/pkgconfig"

gaia:~ server$ 
 ruby 2.5.3がインストールされた模様.
 環境設定などを行う.
gaia:~ server$ export LDFLAGS="-L/usr/local/opt/readline/lib"🆑
gaia:~ server$ export CPPFLAGS="-I/usr/local/opt/readline/include"🆑
gaia:~ server$ echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.bash_profile🆑
gaia:~ server$ export PKG_CONFIG_PATH="/usr/local/opt/ruby/lib/pkgconfig"🆑
gaia:~ server$ 
 インストールされたrubyを見てみる.
gaia:~ server$ ls -la /usr/local/opt/ruby/bin🆑
total 88
drwxr-xr-x   9 server  admin    306 11 30 00:50 .
drwxr-xr-x  13 server  admin    442 11 30 00:50 ..
-r-xr-xr-x   1 server  admin   4859 11 30 00:50 erb
-r-xr-xr-x   1 server  admin    568 11 30 00:50 gem
-r-xr-xr-x   1 server  admin    212 11 30 00:50 irb
-r-xr-xr-x   1 server  admin    609 11 30 00:50 rake
-r-xr-xr-x   1 server  admin    960 11 30 00:50 rdoc
-r-xr-xr-x   1 server  admin    210 11 30 00:50 ri
-r-xr-xr-x   1 server  admin  12808 11 30 00:49 ruby🈁
gaia:~ server$
 検索パスが設定されているか確認.
gaia:~ server$ which ruby🆑
/usr/bin/ruby🈁
gaia:~ server$
 デフォルトで入っているruby2.0.0が先に引っかかる模様.
 一旦,フルパスを指定してアップデートを実行.
gaia:~ server$ sudo /usr/local/opt/ruby/bin/gem update --system🆑
Password:
Updating rubygems-update
Fetching: rubygems-update-2.7.8.gem (100%)🈁
Successfully installed rubygems-update-2.7.8
Parsing documentation for rubygems-update-2.7.8
Installing ri documentation for rubygems-update-2.7.8
Installing darkfish documentation for rubygems-update-2.7.8
Done installing documentation for rubygems-update after 48 seconds
Parsing documentation for rubygems-update-2.7.8
Done installing documentation for rubygems-update after 0 seconds
Installing RubyGems 2.7.8
Bundler 1.16.6 installed
RubyGems 2.7.8 installed
Regenerating binstubs
Parsing documentation for rubygems-2.7.8
Installing ri documentation for rubygems-2.7.8

=== 2.7.8 / 2018-11-02

Minor enhancements:

* Improve invalid proxy error message. Pull request #2217 by Luis
  Sagastume.
* [Requirement] Treat requirements with == versions as equal. Pull
  request #2230 by Samuel Giddins.
* Fix exec_name documentation. Pull request #2239 by Luis Sagastume.
* [TarHeader] Extract the empty header into a constant. Pull request #2247
  by Samuel Giddins.
* Simplify the code that lets us call the original, non-monkeypatched
  Kernel#require. Pull request #2267 by Leon Miller-Out.
* Support IO.copy_stream. Pull request #2303 by okkez.
* Add error message when trying to open a default gem. Pull request #2307
  by Luis Sagastume.
* Add install alias documentation. Pull request #2320 by ota42y.
* Removed explicitly declaration of thread library. Pull request #2324 by
  SHIBATA Hiroshi.
* [Rakefile] Set bundler build metadata when doing a release. Pull request
  #2335 by Samuel Giddins.
* Speed up globbing relative to given directories. Pull request #2336 by
  Samuel Giddins.
* Backport commits from ruby core . Pull request #2347 by SHIBATA Hiroshi.
* Sign in to the correct host before push. Pull request #2366 by Luis
  Sagastume.
* Bump bundler-1.16.4. Pull request #2381 by SHIBATA Hiroshi.
* Improve bindir flag description. Pull request #2383 by Luis Sagastume.
* Update bundler-1.16.6. Pull request #2423 by SHIBATA Hiroshi.

Bug fixes:

* Frozen string fix - lib/rubygems/bundler_version_finder.rb. Pull request
  #2115 by MSP-Greg.
* Fixed no assignment variables about default gems installation. Pull
  request #2181 by SHIBATA Hiroshi.
* Fix #1470: generate documentation when --install-dir is present. Pull
  request #2229 by Elias Hernandis.
* Validate SPDX license exceptions. Pull request #2257 by Mikit.
* Keep feature names loaded in the block. Pull request #2261 by Nobuyoshi
  Nakada.
* Retry api specification spec with original platform. Pull request #2275
  by Luis Sagastume.
* Fix approximate recommendation with prereleases. Pull request #2345 by
  David Rodríguez.
* Expand symlinks in gem path. Pull request #2352 by Benoit Daloze.
* Gem::Version should handle nil like it used to before. Pull request
  #2363 by Luis Sagastume.
* Fix auto resign expired certificate. Pull request #2380 by Luis
  Sagastume.

=== 2.7.7 / 2018-05-08

Minor enhancements:

* [RequestSet] Only suggest a gem version with an installable platform.
  Pull request #2175 by Samuel Giddins.
* Fixed no assignment variables about default gems installation. Pull
  request #2181 by SHIBATA Hiroshi.
* Backport improvements for test-case from Ruby core. Pull request #2189
  by SHIBATA Hiroshi.
* Fix ruby warnings in test suite. Pull request #2205 by Colby Swandale.
* To use Gem::Specification#bindir of bundler instead of hard coded path.
  Pull request #2208 by SHIBATA Hiroshi.
* Update gem push --help description. Pull request #2215 by Luis
  Sagastume.
* Backport ruby core commits. Pull request #2264 by SHIBATA Hiroshi.

Bug fixes:

* Frozen string fix - lib/rubygems/bundler_version_finder.rb. Pull request
  #2115 by MSP-Greg.
* Fixed tempfile leak for RubyGems 2.7.6. Pull request #2194 by SHIBATA
  Hiroshi.
* Add missing requires. Pull request #2196 by David Rodríguez.
* Fix Gem::Version.correct?. Pull request #2203 by Masato Nakamura.
* Fix verify_entry regex for metadata. Pull request #2212 by Luis
  Sagastume.
* Fix path checks for case insensitive filesystem. Pull request #2211 by
  Lars Kanis.

Compatibility changes:

* Deprecate unused code before removing them at #1524. Pull request #2197
  by SHIBATA Hiroshi.
* Deprecate for rubygems 3. Pull request #2214 by SHIBATA Hiroshi.
* Mark deprecation to `ubygems.rb` for RubyGems 4. Pull request #2269 by
  SHIBATA Hiroshi.
* Update bundler-1.16.2. Pull request #2291 by SHIBATA Hiroshi.


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

RubyGems installed the following executables:
	/usr/local/Cellar/ruby/2.5.3_1/bin/gem
	/usr/local/Cellar/ruby/2.5.3_1/bin/bundle

Ruby Interactive (ri) documentation was installed. ri is kind of like man 
pages for Ruby libraries. You may access it like this:
  ri Classname
  ri Classname.class_method
  ri Classname#instance_method
If you do not wish to install this documentation in the future, use the
--no-document flag, or set it as the default in your ~/.gemrc file. See
'gem help env' for details.

RubyGems system software updated
gaia:~ server$ 
 RubyGems 2.7.7になった模様.
 では,最初に実行しようとしたmilkodeをインストール.
gaia:~ server$ sudo /usr/local/opt/ruby/bin/gem install milkcode🆑
ERROR:  Could not find a valid gem 'milkcode' (>= 0) in any repository
ERROR:  Possible alternatives: milkode, eircode, file_mode, isd_code, iso_code
gaia:~ server$
 はっ! milkodeなのにmilkcodeと勘違いしてリポジトリを検索していた模様.そうなるとSSL以前にエラーになるなぁ...

トラックバック


広告スペース
Google