Problem
When a Terraform Enterprise workspace attempts to start a run, it fails because the connection to the version control system (VCS) provider is broken.
The Terraform Enterprise logs display the following warning message:
[WARN] ... msg=Repository no longer has a valid OAuth Token external_id=vcrepo-12345678 webhook_identifier=12345678Cause
This issue occurs because the OAuth token used to connect the Terraform Enterprise organization with the VCS provider has expired or is no longer valid.
Solution
To resolve this issue, you must reauthorize the OAuth connection between your Terraform Enterprise organization and the VCS provider.
Procedure
- Navigate to the Terraform Enterprise documentation for Reauthorizing VCS OAuth Providers.
- Follow the step-by-step instructions provided in the documentation to renew the connection and generate a valid OAuth token.