Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vagrant 2.3.5 (Windows/AMD64) plugin update SSL verification error #13156

Closed
dannmartens opened this issue May 17, 2023 · 10 comments · Fixed by hashicorp/vagrant-installers#270
Closed

Comments

@dannmartens
Copy link

After installing Vagrant 2.3.5 (Windows/AMD64) and VMware Utility 1.0.22, resuming failed:

$ vagrant resume
Vagrant failed to initialize at a very early stage:

The plugins failed to initialize correctly. This may be due to manual
modifications made within the Vagrant home directory. Vagrant can
attempt to automatically correct this issue by running:

  vagrant plugin repair

If Vagrant was recently updated, this error may be due to incompatible
versions of dependencies. To fix this problem please remove and re-install
all plugins. Vagrant can attempt to do this automatically by running:

  vagrant plugin expunge --reinstall

Or you may want to try updating the installed plugins to their latest
versions:

  vagrant plugin update

Error message given during initialization: Unable to resolve dependency: user requested 'vagrant-vmware-desktop (= 3.0.1)'

Normally, I would simply update the plugins to install the corresponding version for the VMware utility, but this time:

$ vagrant plugin update
Updating installed plugins...
ERROR:  SSL verification error at depth 3: unable to get local issuer certificate (20)
ERROR:  You must add /C=US/O=Starfield Technologies, Inc./OU=Starfield Class 2 Certification Authority to your local trusted store
Vagrant failed to load a configured plugin source. This can be caused
by a variety of issues including: transient connectivity issues, proxy
filtering rejecting access to a configured plugin source, or a configured
plugin source not responding correctly. Please review the error message
below to help resolve the issue:

  SSL_connect SYSCALL returned=5 errno=0 peeraddr=18.165.183.17:443 state=error: certificate verify failed (https://gems.hashicorp.com/specs.4.8.gz)

Source: https://gems.hashicorp.com/

I have uninstalled 2.3.5 and re-installed 2.3.4 so I can continue working.

@alexkart
Copy link

I have the same issue with Vagrant 2.3.5

@ciarancourtney
Copy link

Me too, found this workaround for now

vagrant plugin install --plugin-clean-sources --plugin-source https://rubygems.org vagrant-*

@chrisroberts
Copy link
Member

@alexkart @ciarancourtney are you both on windows as well?

@alexkart
Copy link

@alexkart @ciarancourtney are you both on windows as well?

Yes.

@WengZhenxing
Copy link

Me too, found this workaround for now

vagrant plugin install --plugin-clean-sources --plugin-source https://rubygems.org vagrant-*

workd for me

@PaulNeumann
Copy link

PaulNeumann commented May 20, 2023

I still see this issue with Vagrant 2.3.6 Windows/AMD64 (upgraded from 2.3.4) on Windows 10. The workaround worked for me as well.

@mloskot
Copy link

mloskot commented May 20, 2023

I can confirm, updating from Vagrant 2.3.4 to 2.3.6 on Windows 11 completely breaks Vagrant setup. This happened to me on two machines, so there must be a bug.

Trying #13156 (comment) with this worked for me too:

C:\>vagrant plugin install --plugin-clean-sources --plugin-source https://rubygems.org vagrant-reload vagrant-vbguest winrm winrm-elevated

@marlop352
Copy link

better workaround:

drop https://curl.se/ca/cacert.pem in "C:\HashiCorp\Vagrant\embedded"

that fixes it for me, as that's what hashicorp/vagrant-installers#270 was supposed to do.

@dannmartens
Copy link
Author

I ended up putting the cacert.pem manually in C:\HashiCorp\Vagrant\embedded as @marlop352 proposed.

The first workaround which was proposed earlier kept giving me the same error:

$ vagrant plugin install --plugin-clean-sources --plugin-source https://rubygems.org vagrant-*
Installing the 'vagrant-*' plugin. This can take a few minutes...
ERROR: SSL verification error at depth 3: unable to get local issuer certificate (20)
ERROR: You must add /C=US/O=Starfield Technologies, Inc./OU=Starfield Class 2 Certification Authority to your local trusted store

I tried a curl one-liner, but note that access to C:\HashiCorp\Vagrant\embedded requires elevated privileges (Administrator: Command Prompt):

C:\> curl -o "C:\HashiCorp\Vagrant\embedded\cacert.pem" https://curl.se/ca/cacert.pem

@mloskot
Copy link

mloskot commented Jun 12, 2023

@dannmartens FYI, #13167 (comment)

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants