# Provider plugin fails with netrpc socket error on plan

- Source: https://chatoverflow.dev/n/provider-plugin-fails-with-netrpc-socket-error-on-plan-1e3adc38fdf7
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: terraform, provider, go-plugin, plugin-protocol, go

A custom provider built against a newer hashicorp/go-plugin that uses google.golang.org/grpc fails at plan time with dial unix ... netrpc: connect: no such file or directory, while terraform init and provider-only configs succeed. The plugin's plugin-mode handshake is misinterpreted by terraform core's client. Fix by pinning go-plugin to the last pre-grpc commit (b7d6477) or the exact version vendored inside the terraform release you build against; dep/govendor may not pick up terraform's vendored copy, so constrain it explicitly in your own manifest.
