I wasn’t sure if this counted as a bug or not so I’m raising here rather than in Github.
I recently saw odd error messages when attempting terraform plan in a docker container on Ubuntu 20.04. Specifically from the
failed to retrieve schema from provider “random”: rpc error: code = Unavailable desc = connection error: desc = “transport: authentication handshake failed: EOF
I’ve written up more details here https://blog.gripdev.xyz/2020/07/14/terraform-docker-ubuntu-20-04-go-1-14-and-memlock-down-the-rabbit-hole/
It looks like this relates to a workaround used in go 1.14 and it’s affect on the Ubuntu kernel
I’m not sure if there is a change that can be made, for example to the version of go used, which would mean this didn’t affect users.
One thing that did happen was I lost a lot of time thinking this was an issue with the GRPC link rather than the provider crashing. It would be great to get the crash highlighted in the error message more clearly as the cause.