Skip to content

Instantly share code, notes, and snippets.

@Buravo46
Last active October 5, 2016 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Buravo46/ebeaf29c0f74e42ad6b359413afe8aa7 to your computer and use it in GitHub Desktop.
Save Buravo46/ebeaf29c0f74e42ad6b359413afe8aa7 to your computer and use it in GitHub Desktop.
【Vagrant】SSL read: error:00000000:lib(0):func(0):reason(0), errno 10054

vagrantでboxのダウンロードができない。

C:\Users\buravo46\vagrant\centos>vagrant box add CentOS7 https://github.com/tommy-muehle/puppet-vagrant-boxes/releases/download/1.1.0/centos-7.0-x86_64.box
==> box: Box file was not detected as metadata. Adding it directly...
==> box: Adding box 'CentOS7' (v0) for provider:
    box: Downloading: https://github.com/tommy-muehle/puppet-vagrant-boxes/releases/download/1.1.0/centos-7.0-x86_64.box
==> box: Box download is resuming from prior download progress
    box: Progress: 8% (Rate: 0curl:/s, Estimated time remaining: 4:15:13)
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

SSL read: error:00000000:lib(0):func(0):reason(0), errno 10054

C:\Users\buravo46\vagrant\centos>

vagrantのgithubリポジトリからSSLで検索してみたらOpenSSLのエラーっぽい雰囲気がする。

以下URL先によると、POST時から約2分の遅延が発生するとエラーが起こるらしい。

curl-library SSL read error 10054

以下に似たような事例があった。

Getting an error while downloading vagrant

インターネットの回線が弱いから発生するみたいです。

以下URL先では2種類の解決方法を提示してる。

unable to install laravel homestead using command line

  • boxをローカルにダウンロードし、ローカルから参照する方法
例
# vagrant box add laravel/homestead file:///c:/homestead-0-2-7-vb.box
  • boxの追加コマンドに、URLがHTTPSの場合はSSL証明書を検証しないオプションと古いtmpファイルを削除するオプションを付けて実行する方法
例
# vagrant box add --insecure -c laravel/homestead http://atlas.hashicorp.com/laravel/boxes/homestead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment