Unable to download vagrant box: SSL_ERROR_SYSCALL, errno60

Asked 2 years ago, Updated 2 years ago, 92 views

When I tried to start the virtual machine with vagrant, there was no box, so I downloaded 'bento/centos-6.8' and found that

OpenSSL SSL_read:SSL_ERROR_SYSCALL, errno60

The error failed to download successfully.Please tell me how to resolve it.

MacBook-Air:MyCentOS aonoryousuke$vagrantup
Bringing machine 'default' up with 'virtualbox' provider...
==>default: Box'bento/centos-6.8' could not be found.Attempting to 
find and install...
default:Box Provider:virtualbox
default:Box Version:>=0
==>default: Loading metadata for box 'bento/centos-6.8'
default:URL:https://vagrantcloud.com/bento/centos-6.8   
==>default: Adding box 'bento/centos-6.8' (v2.3.4) for provider: 
virtualbox
default —Downloading: https://vagrantcloud.com/bento/boxes/centos- 
6.8/versions/2.3.4/providers/virtualbox.box
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, errno60

vagrant

2022-09-30 19:37

3 Answers

If you fail in the middle, try several times.If it is not a permanent issue, the download will be completed in due course.

Vagrant writes the downloading box to ~/.vagrant.d/tmp/box<some hash value?> but leaves it as it is if Ctrl+c interrupts or fails along the way.And if you try to get the same box, the download will resume after the last download.(Using --continue-at- in curl(1))


2022-09-30 19:37

SSL_ERROR_SYSCALL is an error that occurs when some I/O error occurs, especially when socket-related errors occur.In addition, errno60 on macOS means timeout.This error may be due to socket I/O timeout.

Servers that provide bento/centos-6.8 are widely used and still running.For this reason, the following solutions are possible:

  • Verify that you are connected to vagrantcloud.com and that the connection speed is not particularly slow.
  • Repeat vagrant up several times
  • Remove ~/.vagrant.d/tmp/* that contains temporary files related to download and try vagrantup again.
  • vagrant upTry changing the time zone.Vagrant's This or Looking at this issue, it seems that there is a very slow connection to VagrantCloud itself


2022-09-30 19:37

I had a similar error.
Successful by repeating vagrantup three times.


2022-09-30 19:37

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.