-
Notifications
You must be signed in to change notification settings - Fork 9.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terraform crashes on "terraform get" when pulling a new tag from a repository #16135
Comments
For a little context - in the The remote module is verified as working. |
Found the source of the issue: $ brew switch terraform 0.10.5
Cleaning /usr/local/Cellar/terraform/0.10.0
Cleaning /usr/local/Cellar/terraform/0.10.2
Cleaning /usr/local/Cellar/terraform/0.10.3
Cleaning /usr/local/Cellar/terraform/0.10.4
Cleaning /usr/local/Cellar/terraform/0.10.5
Cleaning /usr/local/Cellar/terraform/0.10.6
2 links created for /usr/local/Cellar/terraform/0.10.5
$ terraform get -update=true
Get: file:///Users/paul/Project/1234567-aws-123456789012-Live-Production/eu-central-1 (update)
Get: file:///Users/paul/Project/1234567-aws-123456789012-Live-Production/eu-west-1 (update)
Get: git::ssh://git@github.com/org/repo2 (update)
Error loading modules: error downloading 'ssh://git@github.com/org/repo2': /usr/local/bin/git exited with 1: From ssh://github.com/org/repo2
b34c764..813b8a4 master -> origin/master
error: Your local changes to the following files would be overwritten by merge:
iam/main.tf
Please commit your changes or stash them before you merge.
Aborting
Updating b34c764..813b8a4 Looks like the locally cached module under In addition - I found the following, after $ terraform init -get=true -upgrade=true
Upgrading modules...
Get: file:///Users/paul/Project/1234567-aws-123456789012-Live-Production/eu-central-1 (update)
Get: file:///Users/paul/Project/1234567-aws-123456789012-Live-Production/eu-west-1 (update)
Get: git::ssh://git@github.com/org/repo2 (update)
Get: git::ssh://git@github.com/org/repo?ref=v0.1.1-alpha (update)
Error downloading modules: Error loading modules: module base_network: open .terraform/modules/eed93336955ac9feb02fb28bfcc80f44/base_network: no such file or directory Turns out that After rectifying these issues, v0.10.6 runs cleanly. |
Closed via 16161 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Terraform Version
Terraform v0.10.6
Terraform Configuration Files
https://www.dropbox.com/s/k3k4b9hi7330klo/tfbug.tar.gz.gpg?dl=0
Encrypted using the HashiCorp public key
Debug Output
Available as
console.output.log
in the tarball aboveCrash Output
Available as
crash.log
in the tarball aboveExpected Behavior
Modules should download
Actual Behavior
Terraform crashed
Steps to Reproduce
terraform get -update=true
Important Factoids
Module is being imported from a remote repo.
References
N/A
The text was updated successfully, but these errors were encountered: