Your machine’s network setup appears to be broken in such a way that the Go runtime believes it ought to be able to make IPv6 connections, but your machine’s operating system then returns an error.
How to address the IPV6 issue ? this was working fine till date.
I updated the source field, but no luck. below is the code.
terraform {
required_providers {
vsphere = { #source = “hashicorp/vsphere” ==> This was the old one, which was working.
source = “providers/hashicorp/vsphere” ==> This is the new one, which I added on your recommendation
version = “>=2.2.0”
}
}
}
Is the error message has to do with the network connectivity issue ?
This is something you’ll need to take to your local sysadmin or tech support team.
Any modern consumer operating system really should have no problems with this, so there’s a decent chance the problem comes from corporate security/configuration choices, which anyone outside your organization won’t know about.
This is now wrong. You originally asked about the correct URL to use in your browser, so I gave you that. A modulesource is not an URL, and was correct before.
Thanks for your reply Maxb.
The reason why I asked about the URL is because in the Jenkins console output, I see its trying to get the provider module from Terraform Registry and after 2 attempt its failing.
Hello,
I have found the workaround by setting up the “TF_REGISTRY_CLIENT” environment variable
While initializing the plugin provider terraform is using “Terraform Registry” instead of Terraform Registry.
One question still persist: Why is terraform using the incorrect “Terraform Registry” URL to download the Vsphere plugin.
hello maxb,
While running the terraform, I get intermittent error, with the above code, if I add a retry mechanism code will that help ? if not, what should be the ideal solution.
Below is the working code, like I said, sometimes it fails.
terraform {
required_providers {
vsphere = {
This seems unlikely to affect anything, given a code search in the Terraform Git repo doesn’t find any mention of that variable, nor does Google.
I don’t believe it is. I believe you’re seeing a Terraform provider ID and misinterpreting it as an URL, when it isn’t one. Then, when you paste it into this forum, the forum misinterprets it as an URL too, and replaces it with a link, hiding what you actually wrote, as well.
You need to have a local person skilled in network troubleshooting figure out why your network provides unreliable access to the Terraform registry.
Please surround code blocks with ``` lines - not doing this is why your comment has been interpreted as Markdown syntax for a giant-sized heading, and why the variable value has been turned into a link.
The comment is incorrect, this is not setting an environment variable.
I’m pretty sure this is just setting a local variable that does nothing and is ignored.
thank you for your reply Max.
Since the solution is working by setting-up TF_REGISTRY_CLIENT environment variable, I won’t remove it , until network issue is identified for the same.