Open WhyNotHugo opened 3 years ago
Sorry, I completely missed the notification. I will take a look as soon as possible :)
Hey there @WhyNotHugo, I was just checking this and noticed that you used port 80 to try and connect to PostgreSQL, could you double-check if port 5432 would throw the same error?
I can confirm that even with the port changed to 5432 I receive the same error.
This is the corresponding debug log:
[TRACE] vertex "module.db.var.jump_host_fqdn": starting visit (*terraform.nodeModuleVariable)
[TRACE] setValue: Saving value for output.kms_key_arn in state
[TRACE] vertex "output.kms_key_arn": visit complete
[TRACE] evalVariableValidations: not active for module.db.var.jump_host_fqdn, so skipping
[TRACE] vertex "module.db.var.jump_host_fqdn": visit complete
[TRACE] vertex "module.db.var.jump_host_fqdn (expand)": dynamic subgraph completed successfully
[TRACE] vertex "module.db.var.jump_host_fqdn (expand)": visit complete
[TRACE] vertex "module.db.provider[\"registry.terraform.io/hierynomus/jumphost\"]": starting visit (*terraform.NodeApplyableProvider)
[DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/aws/3.61.0/darwin_amd64/terraform-provider-aws_v3.61.0_x5 pid=11165
[DEBUG] provider: plugin exited
[TRACE] vertex "provider[\"registry.terraform.io/hashicorp/aws\"] (close)": visit complete
[DEBUG] created provider logger: level=trace
[INFO] provider: configuring client automatic mTLS
[DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hierynomus/jumphost/0.1.0-pre.1/darwin_amd64/terraform-provider-jumphost_v0.1.0-pre.1 args=[.terraform/providers/registry.terraform.io/hierynomus/jumphost/0.1.0-pre.1/darwin_amd64/terraform-provider-jumphost_v0.1.0-pre.1]
[DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hierynomus/jumphost/0.1.0-pre.1/darwin_amd64/terraform-provider-jumphost_v0.1.0-pre.1 pid=11169
[DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hierynomus/jumphost/0.1.0-pre.1/darwin_amd64/terraform-provider-jumphost_v0.1.0-pre.1
[INFO] provider.terraform-provider-jumphost_v0.1.0-pre.1: configuring server automatic mTLS: timestamp=2021-10-07T16:17:19.990+0200
[DEBUG] provider.terraform-provider-jumphost_v0.1.0-pre.1: plugin address: address=/var/folders/21/bwkrjbv94315x_hds_sn51wr0000gn/T/plugin026339596 network=unix timestamp=2021-10-07T16:17:20.019+0200
[DEBUG] provider: using plugin: version=5
[TRACE] provider.stdio: waiting for stdio data
[TRACE] BuiltinEvalContext: Initialized "module.db.provider[\"registry.terraform.io/hierynomus/jumphost\"]" provider for module.db.provider["registry.terraform.io/hierynomus/jumphost"]
[TRACE] buildProviderConfig for module.db.provider["registry.terraform.io/hierynomus/jumphost"]: using explicit config only
[TRACE] GRPCProvider: GetProviderSchema
[TRACE] GRPCProvider: ValidateProviderConfig
[WARN] ValidateProviderConfig from "module.db.provider[\"registry.terraform.io/hierynomus/jumphost\"]" changed the config value, but that value is unused
[TRACE] GRPCProvider: ConfigureProvider
[INFO] provider.terraform-provider-jumphost_v0.1.0-pre.1: 2021/10/07 16:17:20 Successfully parsed private key: ssh-rsa <SSH_KEY>: timestamp=2021-10-07T16:17:20.054+0200
[TRACE] vertex "module.db.provider[\"registry.terraform.io/hierynomus/jumphost\"]": visit complete
[TRACE] vertex "module.db.provider[\"registry.terraform.io/hierynomus/jumphost\"] (close)": starting visit (*terraform.graphNodeCloseProvider)
[TRACE] GRPCProvider: Close
[TRACE] dag/walk: upstream of "module.db (close)" errored, so skipping
[TRACE] dag/walk: upstream of "meta.count-boundary (EachMode fixup)" errored, so skipping
[DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
[DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hierynomus/jumphost/0.1.0-pre.1/darwin_amd64/terraform-provider-jumphost_v0.1.0-pre.1 pid=11169
[DEBUG] provider: plugin exited
[TRACE] vertex "module.db.provider[\"registry.terraform.io/hierynomus/jumphost\"] (close)": visit complete
[TRACE] dag/walk: upstream of "root" errored, so skipping
I'm always getting "connection refused":
Authentication seems to be fine though, since providing a bogus username gives another error (that clearly indicates that auth has failed).
Minimal reproduction example. Note that you need to replace two values here.
Run
terraform init && terraform apply
.