I set up main.tf as per website instructions and when I tried to run terraform init on VS code, I am getting "Failed to install provider". Does anyone face this kind of problem, if yes can you help me how you cleared it.
Thanks,
Chandra
I set up main.tf as per website instructions and when I tried to run terraform init on VS code, I am getting "Failed to install provider". Does anyone face this kind of problem, if yes can you help me how you cleared it.
Thanks,
Chandra
Also my company restrict me downloading from Genesys Github, Any solutions, please let me know
Hi,
What is the full error message when you try to install the provider?
Initializing the backend...
Initializing provider plugins...
Previous post was connected with VPN,
Here is the error when I connected from Citrix
Initializing the backend...
Initializing provider plugins...
If you are being restricted by company policy can you open up a ticket with your IT department to have an exception made for you?
I am using this configuration settings, is it looking good?
terraform {
required_providers {
genesyscloud = {
source = "MyPureCloud/genesyscloud"
}
}
}
Is there any debug option to see what is blocking?
That's github. Please work with your company to allow you to access the github resources.
Thanks Tim, Let me work on that
Is there any debug option to see what is blocking?
If you export TF_LOG
to INFO
in your terminal you'll see detailed logging.
I agree with Tim, this appears to be a firewall type issue.
Hi, I work with Chandra and I have access to github. We get below error when terraform init command is run.
It has never worked for me. But for other user it used to work but now he is getting same error as well.
Error: Failed to install provider
Error while installing mypurecloud/genesyscloud v1.3.0: archive has incorrect
SHA-256 checksum
2f5e657f5e2f4370618480e2dd1e7cd6d3b039ec5939e1a786c5f8022a6d835b (expected
461c63bd1e1c26695654f0240dabd1e013525bba17d1bb7145b2d95b3b209ec3)
Hi Roche,
If you are running this from your PC or workstation I would delete the .terraform directory where you are running and then do a terraform init again. That will clear out the checksums and what Terraform thinks are the modules/providers.
Thanks,
John
deleting the .terraform directory didn't help. also tried moving the .tf files to a new directory.
Hi Roche,
Can you please open a ticket with our Care team and reference this post. I will get this over to our engineering team and see if we can figure out what is going on.
Thanks,
John Carnell
Manager, Developer Engagement
@anon11147534 We need to keep an out for this ticket and see if we can reproduce the problem.
Thanks,
John
Sure, Let me go ahead and create one
Thanks
Hi Roche,
Somehow I don't see .terraform folder, not sure of that.
Hi everyone,
There are two files/folders to delete:
.terraform - This contains copies of the terraform providers being used and the remote modules that have been downloaded.
.terraform.lock.hcl - Which contains a list of all provider versions and remote modules and their hashed values.
Thanks,
John Carnell
Manager, Developer Engagement
Thanks for your reply.
Now I cloned the provider to my VS Code and when I tried to run terraform init, I get some other error
2022-06-02T11:21:47.514-0400 [TRACE] HTTP client GET request to https://registry.terraform.io/.well-known/terraform.json
2022-06-02T11:21:50.514-0400 [ERROR] Checkpoint error: Get "https://checkpoint-api.hashicorp.com/v1/check/terraform?arch=386&os=windows&signature=c35d6490-e2ea-0aea-81d5-68b008572eeb&version=1.1.9": context deadline exceeded
(Client.Timeout exceeded while awaiting headers)
╷
│ Error: Failed to query available provider packages
│
│ Could not retrieve the list of available versions for provider hashicorp/genesyscloud: could not connect to registry.terraform.io: Failed to request discovery document: Get
TLS handshake timeout
curl to registry --> works with 200 code though
Sorry it didn't allowed me to put complete output, it says, new user can put only 2 url's