LoginSignup
0
1

More than 3 years have passed since last update.

bundleやgemが遅いと思ったらIPv6を切っていたからだった

Posted at

TL;DR

bundleが遅いと思ったらIPv6が切れていた。

環境

Zorin OS 15.3 (Ubuntu 18.04相当)

> bundle install                                                                                                                                                                                                                              
Fetching gem metadata from https://rubygems.org/.                                                                                                                                                                                             
Retrying dependency api due to error (2/4): Bundler::HTTPError Network error while fetching https://index.rubygems.org/api/v1/dependencies?gems=twitter-text-simpleidn (execution expired)                                                    

Retrying dependency api due to error (3/4): Bundler::HTTPError Network error while fetching https://index.rubygems.org/api/v1/dependencies?gems=twitter-text-simpleidn (execution expired)                                                    

Retrying dependency api due to error (4/4): Bundler::HTTPError Network error while fetching https://index.rubygems.org/api/v1/dependencies?gems=twitter-text-simpleidn (execution expired)                                                    




Network error while fetching https://rubygems.org/quick/Marshal.4.8/twitter-text-simpleidn-3.0.0.0.gemspec.rz (execution expired)

Bundleがよく失敗するし遅い!

原因

IPv6が切れてました。

自宅のネットワークの IPv4 over IPv6 が有効になっていたのが原因かもしれません。

image.png

解決方法

IPv6をオンにする。

参考資料

以下の例では逆にIPv6を切ることで解決している。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1