Closed bradenwright closed 7 years ago
I haven't seen that error before and am having trouble reproducing it. Does that happen when running terraform plan
or terraform apply
? Do you have a config that reproduces the issue?
I just tried on a fresh install using Mac OS 10.12.6:
$ go version
go version go1.9 darwin/amd64
$ terraform -v
Terraform v0.10.4
$ cat main.tf
provider "pingdom" {
user = "REDACTED"
password = "REDACTED"
api_key = "REDACTED"
}
resource "pingdom_check" "example" {
type = "http"
name = "my http check"
host = "example.com"
resolution = 5
}
$ go get -v github.com/russellcardullo/terraform-provider-pingdom
$ terraform init
$ terraform plan
Have you tried something similar but with no success?
About the dependencies, one thing I can work on is vendoring them within this project to avoid issues when one of them has a breaking change. Not sure if that's the issue here but doing that would at least cut down on the surface area of things that could be going wrong.
@russellcardullo thanks for the reply. I was trying basically above. I had blown away all my dirs inside GOPATH, I was gonna go through steps again and respond, but this time its working?!?!
Alright so I had previously tried version 0.10.4 but must have had other issues at the time b/c it did not work then but now is working fine.
As of now if I use 0.10.4 it seems work, if I switch back to 0.9.8 it produces the error above. Could this be b/c go get is using terrform github master so if I wanted to use 0.9.8 I would have to compile against tag v0.9.8 is there an easy/preferred way to do this I'm new to go but tried a few things, none of which worked.
But essentially is there away to compile and get this working with previous versions, not sure we are ready to upgrade to 0.10.4
I tried the following which works for me:
$ terraform -v
Terraform v0.9.8
$ cd $GOPATH/src/github.com/hashicorp/terraform
$ git co v0.9.8
$ go install github.com/russellcardullo/terraform-provider-pingdom
This is using the head of terraform-provider-pingdom
and v0.9.8 of terraform
.
Does that work in your environment? Hopefully this will be more straightforward once I vendor all the dependencies.
That was the first thing I tried (feel good I went down the right path), and I just tried again to be sure. I get the error I post when trying to plan or apply.
$ terraform plan
Error asking for user input: 1 error(s) occurred:
* provider.pingdom: dial unix /var/folders/s_/8r27qhtn6b34y1ykmb3jz7r00000gq/T/plugin094841271|netrpc: connect: no such file or directory
if I comment out the pingdom_check resource plan runs without errors, but obviously doesn't do anything
$ terraform -v
Terraform v0.9.8
Your version of Terraform is out of date! The latest version
is 0.10.4. You can update by downloading from www.terraform.io
$ cd $GOPATH/src/github.com/hashicorp/terraform
$ git checkout v0.9.8
HEAD is now at 8d560482c... v0.9.8
$ go install -v github.com/russellcardullo/terraform-provider-pingdom
github.com/hashicorp/terraform/vendor/github.com/hashicorp/go-plugin
github.com/hashicorp/terraform/vendor/github.com/hashicorp/hil/scanner
github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/aws/endpoints
github.com/hashicorp/terraform/vendor/github.com/apparentlymart/go-cidr/cidr
github.com/hashicorp/terraform/helper/shadow
github.com/hashicorp/terraform/dag
github.com/hashicorp/terraform/vendor/github.com/hashicorp/hil/parser
github.com/hashicorp/terraform/vendor/github.com/hashicorp/hil
github.com/hashicorp/terraform/config
github.com/hashicorp/terraform/flatmap
github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/aws
github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/aws/request
github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/aws/client
github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/private/protocol/rest
github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/aws/corehandlers
github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/private/protocol
github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/private/protocol/query/queryutil
github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil
github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata
github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/aws/credentials/endpointcreds
github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/aws/signer/v4
github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/private/protocol/query
github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds
github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/private/protocol/restxml
github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/aws/defaults
github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/service/sts
github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/service/s3
github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds
github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/aws/session
github.com/hashicorp/terraform/vendor/github.com/hashicorp/go-getter
github.com/hashicorp/terraform/config/module
github.com/hashicorp/terraform/terraform
github.com/hashicorp/terraform/helper/schema
github.com/hashicorp/terraform/plugin
github.com/russellcardullo/terraform-provider-pingdom/pingdom
github.com/russellcardullo/terraform-provider-pingdom
Maybe some dependency is still at a newer version? I pushed up a set of dependencies that works for me in the branch vendor-0.9.8
. Would you mind trying that to see if it helps? Also you can try increasing the log level in Terraform in case that gives us any useful information:
$ git co vendor-0.9.8
$ go install -v github.com/russellcardullo/terraform-provider-pingdom
$ TF_LOG=DEBUG terraform plan
My apologies I thought I replied the other day. This branch worked great, so not sure where the dependency issue was but thank you kindly!
Great glad to hear it worked! I'll get those dependencies pinned for the latest version as well and push those up so we don't run into issues again when everyone someone upgrades.
I'm getting the following error:
I'm new to go so maybe missing something but I've tried installing a few different ways. README doesn't mention how to deal with need libraries from terraform.
I did find I was able to install terraform-provider-pingdom and its dependencies in 1 command via:
I've tried a few different versions of terraform 0.9.x, 0.10.x Currently:
Any advice would be great, I'm currently on a Mac