> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/continuous-delivery/troubleshooting-and-resources/armory/general/username-read-error-when-executing-terraform-stages-with-bitbucket-hosted-artifacts.md).

# Username read error when executing Terraform stages with BitBucket hosted artifacts

### Issue <a href="#issue" id="issue"></a>

When executing a Terraform plan or apply, the stage fails and an error similar to the below displayed: `failed to stage directory for terraform execution: There was a problem downloading an artifact type: git/repo, reference: https://bitbucket.org// - failed to fetch artifact. Status 500 - git clone --branch --depth 1 https://bitbucket.org// failed. Error: Cloning into ''... fatal: could not read Username for 'https://bitbucket.org': No such device or address Output:`

### Cause <a href="#cause" id="cause"></a>

Assuming that the credentials, artifacts and gitRepo have been configured per [Enable the Terraform Integration Stage in Armory Enterprise](https://docs.armory.io/plugins/terraform/install/armory-cd/), the problem is caused by the BitBucket repository being set to private whilst having to use a username/password combination for authentication.
