Problem
If you receive this error when publishing a module in Terraform Cloud Private Module Registry (TFC PMR):
Module is usable, but some versions have errors.
Error: 1 error occurred: * pq: Could not complete operation in a failed transaction.
Cause
The issue is usually related to text files (README.md, etc) encoding is NOT UTF-8
or ASCII
format.
Solutions:
- Confirm the text files are
UTF-8
orASCII
-
file <file.MD>
-
- Change the file/s (README.md, etc.) encoding to
UTF-8
orASCII
. - Reflect the update in a new tag version within the VCS so the workspace can see the updated configuration version changes. If not it will still error.
Outcome
- The module should successfully publish.
If you are unable to resolve the issue please contact support at tf-cloud@hashicorp.support or submit a ticket via our support portal.