“ Terraform Plan”失败了“生成提供商schemas json Exit Code:1”
我有一个TFC工作区,该工作空间在运行Terraform计划
时已经开始报告此错误。
Failed generating provider schemas JSON
Exit code: 1
Operation failed: failed generating provider schemas JSON: failed running command (exit 1)
状态文件或代码中没有任何更改。从我的本地CLI通过远程执行或通过TFC GUI运行Terraform计划
时发生错误。
Terraform版本:v1.2.3
Terraform提供商:
terraform providers
Providers required by configuration:
.
├── provider[registry.terraform.io/hashicorp/vault] 3.7.0
├── provider[registry.terraform.io/hashicorp/azuread] 2.25.0
├── provider[registry.terraform.io/microsoft/azuredevops] 0.2.1
├── provider[registry.terraform.io/hashicorp/tfe] 0.32.1
├── module.tfc-configuration
│ └── provider[registry.terraform.io/hashicorp/tfe] 0.32.1
├── module.aad-configuration
│ └── provider[registry.terraform.io/hashicorp/azuread] 2.25.0
└── module.azdo-configuration
└── provider[registry.terraform.io/microsoft/azuredevops] 0.2.1
Providers required by state:
provider[registry.terraform.io/hashicorp/azuread]
provider[registry.terraform.io/hashicorp/tfe]
provider[registry.terraform.io/hashicorp/vault]
provider[registry.terraform.io/microsoft/azuredevops]
我在TFC组织中创建了一个新的工作区,并运行了一些非常简单的测试TF代码,从而创建了Azure RG和公共IP。它运行良好。
这感觉像是其中一位提供商的问题。 IVE运行Terraform Plan
使用tf_log = Trace
和tf_log_provider = Trace
。输出都没有帮助我进一步隔离问题。
我不确定该如何解决这个问题。
I have a TFC Workspace which overnight has started reporting this error when a terraform plan
is run.
Failed generating provider schemas JSON
Exit code: 1
Operation failed: failed generating provider schemas JSON: failed running command (exit 1)
Nothing has changed in the state file or the code. The error occurs when running the terraform plan
from the my local CLI via remote exec or via the TFC GUI.
Terraform version: v1.2.3
Terraform providers:
terraform providers
Providers required by configuration:
.
├── provider[registry.terraform.io/hashicorp/vault] 3.7.0
├── provider[registry.terraform.io/hashicorp/azuread] 2.25.0
├── provider[registry.terraform.io/microsoft/azuredevops] 0.2.1
├── provider[registry.terraform.io/hashicorp/tfe] 0.32.1
├── module.tfc-configuration
│ └── provider[registry.terraform.io/hashicorp/tfe] 0.32.1
├── module.aad-configuration
│ └── provider[registry.terraform.io/hashicorp/azuread] 2.25.0
└── module.azdo-configuration
└── provider[registry.terraform.io/microsoft/azuredevops] 0.2.1
Providers required by state:
provider[registry.terraform.io/hashicorp/azuread]
provider[registry.terraform.io/hashicorp/tfe]
provider[registry.terraform.io/hashicorp/vault]
provider[registry.terraform.io/microsoft/azuredevops]
I created a new Workspace in the TFC Organization and ran some very simple test TF code which creates an Azure RG and Public IP. It worked fine.
This feels like an issue with one of the Providers. Ive run the terraform plan
with TF_LOG=TRACE
and TF_LOG_PROVIDER=TRACE
. None of the output helped me isolate the problem any further.
Im not sure what to do to resolve this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,因此HC支持将问题隔离到了TFC使用的代理版本。当计划在代理v1.2.6中运行时,就会发生问题。使用v1.2.5该计划完成。
HC支持已将问题传递给了开发团队,该团队将在将来发布解决方案。
解决方法:我需要在VM中使用V1.2.5发行版将代理运行。与该问题的工作区将使用该VM上的代理直到HC支持确认修复所在。
Okay so HC support have isolated the problem to the agent version used by TFC. Problem occurs when the plan is run in agent v1.2.6. Using v1.2.5 the plan completes fine.
HC support have passed the issue up to the development team who will issue a fix at a future time.
Workaround: I need to run the agent in a VM elsewhere with the v1.2.5 release. The Workspace with the problem will use the agent on that VM till HC support confirm the fix is in.