LoginSignup
14
7

More than 3 years have passed since last update.

vagrant box add した際のエラー解決(OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 54)

Last updated at Posted at 2019-05-22

Homesteadで仮想マシンを使用していたが、VirtualBoxのバージョンアップをしたらホストOSとゲストOSのバージョンが違うということで使用できなくなった。

vagrant-vbguestでうまくできると思ったが、ゲストOSのビルド?が必要だったり?と難しそうだったので今回はマシンを作り直すことにしました。

仮想マシンを作り直そうとHomesteadのboxファイルを削除して、また入れ直そうとした時に以下のエラーが発生

$ vagrant box add laravel/homestead
==> box: Loading metadata for box 'laravel/homestead'
    box: URL: https://vagrantcloud.com/laravel/homestead
This box can work with multiple providers! The providers that it
can work with are listed below. Please review the list and choose
the provider you will be working with.

1) hyperv
2) parallels
3) virtualbox
4) vmware_desktop

Enter your choice: 3
==> box: Adding box 'laravel/homestead' (v7.2.1) for provider: virtualbox
    box: Downloading: https://vagrantcloud.com/laravel/boxes/homestead/versions/7.2.1/providers/virtualbox.box
    box: Download redirected to host: vagrantcloud-files-production.s3.amazonaws.com

An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 54

ダウンロード関係のファイル等が格納されている~/.vagrant.d/tmp/を確認


$ ls ~/.vagrant.d/tmp/
boxd96a327de9d4e23d1ce1a91384ae3975899cf47e boxf045ffba7f5588c8bf5a474bb05e6eab94df86ac

ダウンロードに失敗した後にtmpフォルダにごみファイルが残ってしまうようなので、この中のファイルを削除します。

$ rm ~/.vagrant.d/tmp/*

再度boxをインストール

$ vagrant box add laravel/homestead
==> box: Loading metadata for box 'laravel/homestead'
    box: URL: https://vagrantcloud.com/laravel/homestead
This box can work with multiple providers! The providers that it
can work with are listed below. Please review the list and choose
the provider you will be working with.

1) hyperv
2) parallels
3) virtualbox
4) vmware_desktop

Enter your choice: 3
==> box: Adding box 'laravel/homestead' (v7.2.1) for provider: virtualbox
    box: Downloading: https://vagrantcloud.com/laravel/boxes/homestead/versions/7.2.1/providers/virtualbox.box
    box: Download redirected to host: vagrantcloud-files-production.s3.amazonaws.com
==> box: Successfully added box 'laravel/homestead' (v7.2.1) for 'virtualbox'!

無事入りました!

14
7
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
14
7