kumamonmaster

あのゆるキャラとは一切関係ありません

【Vagrant】Boxの追加時にエラー

エラー内容

Boxを追加しようとしたら以下のようなエラーが発生

$ vagrant box add ubuntu14/trusty64 https://atlas.hashicorp.com/webysther/boxes/gitlab-ce-ubuntu-x64-14.04/versions/1.0/providers/virtualbox.box
==> box: Box file was not detected as metadata. Adding it directly...
==> box: Adding box 'ubuntu14/trusty64' (v0) for provider:
    box: Downloading: https://atlas.hashicorp.com/webysther/boxes/gitlab-ce-ubuntu-x64-14.04/versions/1.0/providers/virtualbox.box
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 60

解決方法

 以下のコマンドを実行したらいけました

$ rm -rf ~/.vagrant.d/tmp/box*
$ vagrant box add ubuntu14/trusty64 https://atlas.hashicorp.com/webysther/boxes/gitlab-ce-ubuntu-x64-14.04/versions/1.0/providers/virtualbox.box
==> box: Box file was not detected as metadata. Adding it directly...
==> box: Adding box 'ubuntu14/trusty64' (v0) for provider:
    box: Downloading: https://atlas.hashicorp.com/webysther/boxes/gitlab-ce-ubuntu-x64-14.04/versions/1.0/providers/virtualbox.box
==> box: Successfully added box 'ubuntu14/trusty64' (v0) for 'virtualbox'!
$ vagrant box list
ubuntu14/trusty64 (virtualbox, 0)

参考

Vagrant box追加時のエラー