Problem
Using invalid credentials can cause your Terraform Enterprise instance to stop functioning in a number of ways. This article describes any known error messages and provide guidance on how to correct the issue as needed.
Prerequisites
- A Terraform Enterprise instance with incorrect, invalid or expired object storage credential tokens.
Cause
The following is a known error message that may present itself if the credentials are incorrect.
failed to start server { err="failed parsing credentials: invalid
character '\\n' in string literal" }
Solutions:
This error is caused by a malformed Google Cloud credential JSON file. A new credential file can downloaded from the GCS IAM pane and uploaded to Terraform Enterprise using the following command.
replicatedctl app-config set gcs_credentials --value “$(cat GCP-key.json)”
Outcome
After the credentials are updated and the Terraform Enterprise application is restarted the error should be resolved.