I'm still relatively new to Go, so apologies if I'm completely off base.
I haven't run a terraform plan since before my UDM got upgraded to 6.0, so there are likely many things that changed in this time.
{
"meta": {
"rc": "ok",
"uuid": "<redacted>"
},
"data": []
}
2021-02-24T22:28:45.611-0800 [INFO] plugin.terraform-provider-unifi_v0.20.0: 2021/02/24 22:28:45 [TRACE] Unifi controller version: "": timestamp=2021-02-24T22:28:45.610-0800
2021-02-24T22:28:45.613-0800 [DEBUG] plugin.terraform-provider-unifi_v0.20.0:
Error: rpc error: code = Unavailable desc = transport is closing
Error: rpc error: code = Unavailable desc = transport is closing
Error: rpc error: code = Unavailable desc = transport is closing
Error: rpc error: code = Unavailable desc = transport is closing
Error: rpc error: code = Unavailable desc = transport is closing
Error: rpc error: code = Unavailable desc = transport is closing
Error: rpc error: code = Unavailable desc = transport is closing
Error: rpc error: code = Unavailable desc = transport is closing
panic: Malformed version:
2021-02-24T22:28:45.613-0800 [DEBUG] plugin.terraform-provider-unifi_v0.20.0:
2021-02-24T22:28:45.613-0800 [DEBUG] plugin.terraform-provider-unifi_v0.20.0: goroutine 56 [running]:
2021-02-24T22:28:45.613-0800 [DEBUG] plugin.terraform-provider-unifi_v0.20.0: github.com/hashicorp/go-version.Must(...)
2021-02-24T22:28:45.613-0800 [DEBUG] plugin.terraform-provider-unifi_v0.20.0: github.com/hashicorp/[email protected]/version.go:104
2021-02-24T22:28:45.613-0800 [DEBUG] plugin.terraform-provider-unifi_v0.20.0: github.com/paultyng/terraform-provider-unifi/internal/provider.(*client).ControllerVersion(0xc000360000, 0x0)
2021-02-24T22:28:45.613-0800 [DEBUG] plugin.terraform-provider-unifi_v0.20.0: github.com/paultyng/terraform-provider-unifi/internal/provider/provider.go:197 +0x95
2021-02-24T22:28:45.613-0800 [DEBUG] plugin.terraform-provider-unifi_v0.20.0: github.com/paultyng/terraform-provider-unifi/internal/provider.dataAPGroupRead(0xc00028ee00, 0x17ee1a0, 0xc000360000, 0x1e6d730, 0x192a9c0)
2021-02-24T22:28:45.613-0800 [DEBUG] plugin.terraform-provider-unifi_v0.20.0: github.com/paultyng/terraform-provider-unifi/internal/provider/data_ap_group.go:40 +0x5b
2021-02-24T22:28:45.613-0800 [DEBUG] plugin.terraform-provider-unifi_v0.20.0: github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).read(0xc000122780, 0x19e9b00, 0xc0002feb00, 0xc00028ee00, 0x17ee1a0, 0xc000360000, 0x0, 0x0, 0x0)
2021-02-24T22:28:45.613-0800 [DEBUG] plugin.terraform-provider-unifi_v0.20.0: github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:290 +0x88
2021-02-24T22:28:45.613-0800 [DEBUG] plugin.terraform-provider-unifi_v0.20.0: github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).ReadDataApply(0xc000122780, 0x19e9b00, 0xc0002feb00, 0xc00047ec00, 0x17ee1a0, 0xc000360000, 0xc000360000, 0xc00047ec00, 0x0, 0x0)
2021-02-24T22:28:45.613-0800 [DEBUG] plugin.terraform-provider-unifi_v0.20.0: github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:498 +0xfd
2021-02-24T22:28:45.613-0800 [DEBUG] plugin.terraform-provider-unifi_v0.20.0: github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ReadDataSource(0xc0003c1200, 0x19e9b00, 0xc0002feb00, 0xc00047eb20, 0xc0002feb00, 0x1879cc0, 0x18a87a0)
2021-02-24T22:28:45.614-0800 [DEBUG] plugin.terraform-provider-unifi_v0.20.0: github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:1105 +0x4d4
2021-02-24T22:28:45.614-0800 [DEBUG] plugin.terraform-provider-unifi_v0.20.0: github.com/hashicorp/terraform-plugin-go/tfprotov5/server.(*server).ReadDataSource(0xc0003c0700, 0x19e9b00, 0xc0002feb00, 0xc000476870, 0xc0003c0700, 0xc000486ba0, 0x106a5e7)
2021-02-24T22:28:45.614-0800 [DEBUG] plugin.terraform-provider-unifi_v0.20.0: github.com/hashicorp/[email protected]/tfprotov5/server/server.go:247 +0xe5
2021-02-24T22:28:45.614-0800 [DEBUG] plugin.terraform-provider-unifi_v0.20.0: github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ReadDataSource_Handler(0x18a87a0, 0xc0003c0700, 0x19e9bc0, 0xc00058a600, 0xc0000b3da0, 0x0, 0x19e9bc0, 0xc00058a600, 0xc0000b7020, 0x2a)
2021-02-24T22:28:45.614-0800 [DEBUG] plugin.terraform-provider-unifi_v0.20.0: github.com/hashicorp/[email protected]/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:416 +0x214
2021-02-24T22:28:45.614-0800 [DEBUG] plugin.terraform-provider-unifi_v0.20.0: google.golang.org/grpc.(*Server).processUnaryRPC(0xc00019c8c0, 0x19f1c80, 0xc0002a2180, 0xc0001c2800, 0xc000202570, 0x1e2f8f0, 0x0, 0x0, 0x0)
2021-02-24T22:28:45.614-0800 [DEBUG] plugin.terraform-provider-unifi_v0.20.0: google.golang.org/[email protected]/server.go:1217 +0x522
2021-02-24T22:28:45.614-0800 [DEBUG] plugin.terraform-provider-unifi_v0.20.0: google.golang.org/grpc.(*Server).handleStream(0xc00019c8c0, 0x19f1c80, 0xc0002a2180, 0xc0001c2800, 0x0)
2021-02-24T22:28:45.614-0800 [DEBUG] plugin.terraform-provider-unifi_v0.20.0: google.golang.org/[email protected]/server.go:1540 +0xd05
2021-02-24T22:28:45.614-0800 [DEBUG] plugin.terraform-provider-unifi_v0.20.0: google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc000036210, 0xc00019c8c0, 0x19f1c80, 0xc0002a2180, 0xc0001c2800)
2021-02-24T22:28:45.614-0800 [DEBUG] plugin.terraform-provider-unifi_v0.20.0: google.golang.org/[email protected]/server.go:878 +0xa5
2021-02-24T22:28:45.614-0800 [DEBUG] plugin.terraform-provider-unifi_v0.20.0: created by google.golang.org/grpc.(*Server).serveStreams.func1
2021-02-24T22:28:45.614-0800 [DEBUG] plugin.terraform-provider-unifi_v0.20.0: google.golang.org/[email protected]/server.go:876 +0x1fd
2021-02-24T22:28:45.616-0800 [DEBUG] plugin: plugin process exited: path=.terraform/plugins/registry.terraform.io/paultyng/unifi/0.20.0/darwin_amd64/terraform-provider-unifi_v0.20.0 pid=77081 error="exit status 2"
2021-02-24T22:28:45.616-0800 [WARN] plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021/02/24 22:28:45 [ERROR] eval: *terraform.EvalRefresh, err: rpc error: code = Unavailable desc = transport is closing
2021/02/24 22:28:45 [ERROR] eval: *terraform.EvalSequence, err: rpc error: code = Unavailable desc = transport is closing
2021/02/24 22:28:45 [ERROR] eval: *terraform.EvalRefresh, err: rpc error: code = Unavailable desc = transport is closing
From the above it does seem to confirm that the version is empty on the line following the json response.