Closed tjarjoura closed 5 years ago
Hi @tjarjoura! Thanks for reporting this issue, and I'm sorry you've experienced it.
I'd like to figure out why you're seeing this error:
2019/06/15 12:59:53 [INFO] Failed to read plugin lock file .terraform/plugins/linux_amd64/lock.json: open .terraform/plugins/linux_amd64/lock.json: no such file or directory
I suspect if you can work around that, your crash will go away (though we still need to fix things so terraform does not crash in this case!). Does manually creating that directory (.terraform/plugins/linux_amd64
) fix the crash?
🤔 actually, I think I sent myself down a wild goose chase - I went back to your crash log and it appears that the directory was created later:
2019/06/15 13:00:41 [DEBUG] checking for provider in ".terraform/plugins/linux_amd64"
2019/06/15 13:00:41 [DEBUG] checking for provider in ".terraform/plugins/linux_amd64"
2019/06/15 13:00:41 [DEBUG] found provider "terraform-provider-aws_v2.15.0_x4"
Please ignore my previous suggestion!
The panic points to this line of code: https://github.com/hashicorp/terraform/blob/master/plugin/discovery/get.go#L207
I'm not sure why it failed to find download URLs - I was able to pull the same provider - but we should guard against nil results here regardless.
Does this error persist if you retry init
?
Hello again!
We didn't hear back from you, so I'm going to close this in the hope that a previous response gave you the information you needed. If not, please do feel free to re-open this and leave another comment with the information my human friends requested above. Thanks!
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 Configuration Files
Debug Output
Crash Output
https://gist.github.com/tjarjoura/597eb565d1986b0db08763f14bc63954
Expected Behavior
Not crashed.
Actual Behavior
Crashed.
Steps to Reproduce
Run
terraform init
Additional Context
References