cnyathappa | 2022-05-24 18:09:59 UTC | #1
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
cnyathappa | 2022-05-24 19:55:13 UTC | #2
Also my company restrict me downloading from Genesys Github, Any solutions, please let me know
anon11147534 | 2022-05-25 07:25:22 UTC | #3
Hi,
What is the full error message when you try to install the provider?
cnyathappa | 2022-05-25 14:46:57 UTC | #4
Initializing the backend...
Initializing provider plugins...
- Finding mypurecloud/genesyscloud versions matching "> 1.0.0"...
╷ │ Error: Failed to query available provider packages │ │ Could not retrieve the list of available versions for provider mypurecloud/genesyscloud: could not connect to registry.terraform.io: Failed to request discovery document: Get │ "https://registry.terraform.io/.well-known/terraform.json": net/http: TLS handshake timeout ╵
cnyathappa | 2022-05-25 15:04:41 UTC | #5
Previous post was connected with VPN, Here is the error when I connected from Citrix Initializing the backend...
Initializing provider plugins...
- Finding latest version of mypurecloud/genesyscloud...
╷ │ Error: Failed to install provider │ │ Error while installing mypurecloud/genesyscloud v1.3.0: could not query provider │ registry for registry.terraform.io/mypurecloud/genesyscloud: failed to retrieve │ authentication checksums for provider: the request failed after 2 attempts, please try │ again later: Get │ "https://github.com/MyPureCloud/terraform-provider-genesyscloud/releases/download/v1.3.0/terraform-provider-genesyscloud_1.3.0_SHA256SUMS":
Jason_Mathison | 2022-05-25 15:10:48 UTC | #6
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?
cnyathappa | 2022-05-25 15:26:36 UTC | #7
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?
tim.smith | 2022-05-25 15:28:03 UTC | #8
cnyathappa, post:2, topic:14865
Also my company restrict me downloading from Genesys Github,
cnyathappa, post:7, topic:14865
source = "MyPureCloud/genesyscloud"
That's github. Please work with your company to allow you to access the github resources.
cnyathappa | 2022-05-25 15:28:52 UTC | #9
Thanks Tim, Let me work on that
anon11147534 | 2022-05-25 15:29:06 UTC | #10
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.
roche | 2022-05-25 15:38:42 UTC | #11
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)
John_Carnell | 2022-05-25 18:35:29 UTC | #12
quote="cnyathappa, post:5, topic:14865"] could not query provider │ registry for registry.terraform.io/mypurecloud/genesyscloud: failed to retrieve │ authentication checksums for provider: the request failed after 2 attempts, please try │ again later: Get │ "[https://github.com/MyPureCloud/terraform-provider- [/quote]
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
roche | 2022-05-26 13:59:58 UTC | #13
deleting the .terraform directory didn't help. also tried moving the .tf files to a new directory.
John_Carnell | 2022-05-31 17:50:36 UTC | #14
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
John_Carnell | 2022-05-31 17:51:06 UTC | #15
@anon11147534 We need to keep an out for this ticket and see if we can reproduce the problem.
Thanks, John
cnyathappa | 2022-06-01 13:41:12 UTC | #16
Sure, Let me go ahead and create one Thanks
cnyathappa | 2022-06-01 13:42:09 UTC | #17
Hi Roche, Somehow I don't see .terraform folder, not sure of that.
John_Carnell | 2022-06-01 14:04:19 UTC | #18
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
cnyathappa | 2022-06-02 15:29:04 UTC | #19
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
cnyathappa | 2022-06-02 15:30:04 UTC | #20
Sorry it didn't allowed me to put complete output, it says, new user can put only 2 url's
John_Carnell | 2022-06-02 16:47:43 UTC | #21
Hi Chandra,
I suspect your org is blocking the URLs above. I have no problems accessing them. Trying taking one of the URLs and using CURL from your desktop. If they hang or return with a non-200 HTTP status code, you are more than likely being blocked by your firewall or some outbound gateway.
Thanks, John Carnell
John_Carnell | 2022-06-02 16:48:43 UTC | #22
Hi Chandra,
Sorry I missed you had already tried this with CURL.
Thanks, John
cnyathappa | 2022-06-02 17:13:54 UTC | #23
Guide me if I am doing right, After I cloned the provider, I have created main.tf (exactly like Genesys website) and then provided the provider details (ID and key - I will change it to setenv later once it is working). I have provided test resources resource "genesyscloudtelephonyprovidersedgesdidpool" "mygcvnumber" { startphonenumber = "+19205422729" # This needs to be changed endphonenumber = "+19205422729" # This needs to be changed description = "GCV Number for inbound calls" comments = "Additional comments" dependson = [ nullresource.deployarchyflow ] }
Let me know if I am doing any thing wrong here
John_Carnell | 2022-06-02 20:07:16 UTC | #24
Hi Chandra,
Did you get the provider downloaded and working? I know originally you were having problems getting the terraform init function to work. If you are just trying to do create an object, I would use the Queues object. Super simple to implement.
Thanks, John Carnell
anon11147534 | 2022-06-08 14:40:46 UTC | #25
Hi Chandra,
To see if it is an issue with our provider or a general firewall issue you could try to use another provider such as the AWS provider. If you have the same issues with another provider then it is a firewall issue and you will have to bring it up with your internal IT department.
cnyathappa | 2022-06-08 14:57:00 UTC | #26
Hi Ronan, Thanks for new provider, yes I ran into same issue with aws provider also and I am already working with internal IT team. Error: Failed to query available provider packages
John_Carnell | 2022-06-09 12:52:00 UTC | #27
This post was migrated from the old Developer Forum.
ref: 14865