In rare situations, when attempting to delete a workspace you might see the following generic error message.
internal server error
A common reason for this is due to permission issues on the Object Storage bucket connected to the Terraform Enterprise instance. You can check for applicable errors on the instance by either generating a support bundle, extracting the resulting
.tar.gz file and navigating to
/primary/app/logs/ptfe_archivist.stderr or checking the docker logs using
docker logs ptfe_archivist | grep 'AccessDenied' and looking for an error similar to the one below.
[ERROR] http.delete: Failed deleting from archive store
err="AccessDenied: Access Denied\n\tstatus code: 403,
- Check the permissions on the S3 Object Storage connected to the instance
Rotate the S3 Object Storage credentials
S3 Configuration settings can be set within the Terraform Enterprise Admin Console at
Once the credentials are corrected or rotated and the changes are saved the next time you attempt to delete the workspace again it should be successful.
If the instructions above did not assist with the error you are encountering, please contact HashiCorp Support for further assistance.