weixin_39626162
2020-12-29 10:41 阅读 4

TERRAFORM CRASH when runnning terraform plan on docker image hashicorp/terraform:light

Here is the command and DEBUG output:


[root]# docker run -i -t -v $(pwd):/app/ -w /app/ ' hashicorp/terraform:light plan
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.


Error: Error refreshing state: 1 error(s) occurred:

* provider.alicloud: unexpected EOF


panic: open /usr/local/go/lib/time/zoneinfo.zip: no such file or directory
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4:
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4: goroutine 40 [running]:
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4: github.com/terraform-providers/terraform-provider-alicloud/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils.GetTimeInFormatISO8601(0x1543300, 0xc42018fb60)
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4:  /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-alicloud/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils/utils.go:57 +0x142
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4: github.com/terraform-providers/terraform-provider-alicloud/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth.completeRpcSignParams(0x2f0a660, 0xc42041aba0, 0x2ef6980, 0xc42000cb48, 0x1867be8, 0xa, 0x0, 0x0)
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4:  /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-alicloud/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/rpc_signature_composer.go:47 +0x1e1
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4: github.com/terraform-providers/terraform-provider-alicloud/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth.signRpcRequest(0x2f0a660, 0xc42041aba0, 0x2ef6980, 0xc42000cb48, 0x1867be8, 0xa, 0xc4202b31d8, 0x7)
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4:  /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-alicloud/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/rpc_signature_composer.go:26 +0x73
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4: github.com/terraform-providers/terraform-provider-alicloud/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth.Sign(0x2f0a660, 0xc42041aba0, 0x2ef6980, 0xc42000cb48, 0x1867be8, 0xa, 0x134d0bb, 0x8)
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4:  /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-alicloud/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signer.go:87 +0x2a1
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4: github.com/terraform-providers/terraform-provider-alicloud/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk.buildHttpRequest(0x2f0a660, 0xc42041aba0, 0x2ef6980, 0xc42000cb48, 0x1867be8, 0xa, 0x200202b3260, 0x8, 0x8)
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4:  /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-alicloud/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/client.go:282 +0x84
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4: github.com/terraform-providers/terraform-provider-alicloud/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk.(*Client).DoActionWithSigner(0xc420060640, 0x2f0a660, 0xc42041aba0, 0x2ef6b60, 0xc42000cb60, 0x0, 0x0, 0x1, 0xc42014fac0)
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4:  /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-alicloud/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/client.go:236 +0x3bd
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4: github.com/terraform-providers/terraform-provider-alicloud/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk.(*Client).DoAction(0xc420060640, 0x2f0a660, 0xc42041aba0, 0x2ef6b60, 0xc42000cb60, 0xb10000000170b600, 0xb1aa64e6adba15ff)
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4:  /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-alicloud/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/client.go:151 +0x65
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4: github.com/terraform-providers/terraform-provider-alicloud/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk.(*Client).ProcessCommonRequest(0xc420060640, 0xc42041aba0, 0x0, 0xc4200666c0, 0xc42018fb70)
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4:  /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-alicloud/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/client.go:388 +0xa7
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4: github.com/terraform-providers/terraform-provider-alicloud/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk.(*Client).ProcessCommonRequest-fm(0xc42041aba0, 0xc42018fb60, 0x1861699, 0x4)
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4:  /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-alicloud/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/client.go:170 +0x34
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4: github.com/terraform-providers/terraform-provider-alicloud/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints.(*LocationResolver).TryResolve(0x2f935c0, 0xc42041ab40, 0x0, 0x0, 0xc42017f500, 0x0, 0x0)
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4:  /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-alicloud/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/location_resolver.go:70 +0x5a5
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4: github.com/terraform-providers/terraform-provider-alicloud/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints.Resolve(0xc42041ab40, 0xc4203d88f0, 0x7, 0x12, 0xc420066408)
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4:  /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-alicloud/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/resolver.go:40 +0x8a
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4: github.com/terraform-providers/terraform-provider-alicloud/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk.(*Client).DoActionWithSigner(0xc420060640, 0x2f180a0, 0xc420072cb0, 0x2efb360, 0xc42018fb00, 0x0, 0x0, 0xa6387b68bb3fc701, 0xc42014fa80)
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4:  /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-alicloud/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/client.go:217 +0x2f4
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4: github.com/terraform-providers/terraform-provider-alicloud/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk.(*Client).DoAction(0xc420060640, 0x2f180a0, 0xc420072cb0, 0x2efb360, 0xc42018fb00, 0x0, 0xc420066360)
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4:  /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-alicloud/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/client.go:151 +0x65
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4: github.com/terraform-providers/terraform-provider-alicloud/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs.(*Client).DescribeRegions(0xc420060640, 0xc420072cb0, 0x186f7f2, 0x11, 0xc4200663f8)
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4:  /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-alicloud/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_regions.go:27 +0x9b
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4: github.com/terraform-providers/terraform-provider-alicloud/alicloud.(*Config).ecsConn(0xc4202b3a38, 0x0, 0x0, 0xc42041f0e0)
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4:  /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-alicloud/alicloud/config.go:178 +0x50f
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4: github.com/terraform-providers/terraform-provider-alicloud/alicloud.(*Config).Client(0xc420403a38, 0x186f48f, 0x11, 0x149f2c0)
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4:  /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-alicloud/alicloud/config.go:71 +0x67
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4: github.com/terraform-providers/terraform-provider-alicloud/alicloud.providerConfigure(0xc420072c40, 0xc420072c40, 0xc420107f80, 0xc420218660, 0x0)
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4:  /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-alicloud/alicloud/provider.go:167 +0x2e6
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4: github.com/terraform-providers/terraform-provider-alicloud/vendor/github.com/hashicorp/terraform/helper/schema.(*Provider).Configure(0xc42021bb90, 0xc420107f80, 0xc420218620, 0xc420218640)
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4:  /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-alicloud/vendor/github.com/hashicorp/terraform/helper/schema/provider.go:240 +0xdf
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4: github.com/terraform-providers/terraform-provider-alicloud/vendor/github.com/hashicorp/terraform/plugin.(*ResourceProviderServer).Configure(0xc420219600, 0xc420107f80, 0xc42000c8b0, 0x0, 0x0)
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4:  /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-alicloud/vendor/github.com/hashicorp/terraform/plugin/resource_provider.go:478 +0x42
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4: reflect.Value.call(0xc4202fd3e0, 0xc42000c018, 0x13, 0x18614d5, 0x4, 0xc4203a2f20, 0x3, 0x3, 0xc4203bfee8, 0xc42030a098, ...)
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4:  /usr/local/go/src/reflect/value.go:434 +0x905
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4: reflect.Value.Call(0xc4202fd3e0, 0xc42000c018, 0x13, 0xc4203bff20, 0x3, 0x3, 0xc400000003, 0x0, 0x0)
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4:  /usr/local/go/src/reflect/value.go:302 +0xa4
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4: net/rpc.(*service).call(0xc42014e100, 0xc420060050, 0xc42046a050, 0xc42006a080, 0xc4202180a0, 0x16b75c0, 0xc420107f80, 0x16, 0x143ffa0, 0xc42000c8b0, ...)
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4:  /usr/local/go/src/net/rpc/server.go:381 +0x142
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4: created by net/rpc.(*Server).ServeCodec
2018-06-20T05:14:30.859Z [DEBUG] plugin.terraform-provider-alicloud_v1.9.4_x4:  /usr/local/go/src/net/rpc/server.go:475 +0x36b
2018-06-20T05:14:30.859Z [DEBUG] plugin: plugin process exited: path=/app/.terraform/plugins/linux_amd64/terraform-provider-alicloud_v1.9.4_x4



!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!

Terraform crashed! This is always indicative of a bug within Terraform.
A crash log has been placed at "crash.log" relative to your current
working directory. It would be immensely helpful if you could please
report the crash with Terraform[1] so that we can fix this.

When reporting bugs, please include your terraform version. That
information is available on the first line of crash.log. You can also
get it by running 'terraform --version' on the command line.

[1]: https://github.com/hashicorp/terraform/issues

!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
[root]#

该提问来源于开源项目:alibaba/terraform-provider

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

10条回答 默认 最新

  • weixin_39716264 weixin_39716264 2020-12-29 10:41

    Hi This issue results from a golang bug. You can install golang in your machine to fix the issue.

    点赞 评论 复制链接分享
  • weixin_39626162 weixin_39626162 2020-12-29 10:41

    Hi Getting same error even after installed latest version of Golang binary. Looks like the official image from Hashicorp don't have the source code, only have the terraform binary. The error is getting from the docker image.

    
    ..........
    panic: open /usr/local/go/lib/time/zoneinfo.zip: no such file or directory
    .........
    
    [root ~]# go version
    go version go1.10.3 linux/amd64
    [root ~]# 
    [root ~]# ls -l /usr/local/go/lib/time/zoneinfo.zip
    -rw-r--r--. 1 root root 364985 Jun 20 12:51 /usr/local/go/lib/time/zoneinfo.zip
    [root ~]# 
    
    # docker images hashicorp/terraform
    REPOSITORY            TAG                 IMAGE ID            CREATED             SIZE
    hashicorp/terraform   latest              87c95fb75a7a        2 months ago        109MB
    hashicorp/terraform   light               87c95fb75a7a        2 months ago        109MB
    
    
    点赞 评论 复制链接分享
  • weixin_39716264 weixin_39716264 2020-12-29 10:41

    Can you have a try that re-install terraform and terraform-provider-alicloud?

    点赞 评论 复制链接分享
  • weixin_39626162 weixin_39626162 2020-12-29 10:41

    I am using hashicorp/terraform:light docker container, not the local binary. I can confirm that it work perfectly with my local TF binary and local terraform-provider-alicloud binary.

    点赞 评论 复制链接分享
  • weixin_39716264 weixin_39716264 2020-12-29 10:41

    I mean if you can use local binary in your docker machine, the issue results from hashicorp/terraform:light.

    点赞 评论 复制链接分享
  • weixin_39716264 weixin_39716264 2020-12-29 10:41

    Maybe you should install golang in the docker container inside not host machine.

    点赞 评论 复制链接分享
  • weixin_39626162 weixin_39626162 2020-12-29 10:41

    It is possible to do modification and create a new image. Our automation system pull latest image from official docker repository and it break every time. It is better if we have fix either on hashicorp/terraform:light image or terraform-provider-alicloud

    点赞 评论 复制链接分享
  • weixin_39716264 weixin_39716264 2020-12-29 10:41

    Hi This issue has been fixed by version 1.10.1. Please update and check it.

    点赞 评论 复制链接分享
  • weixin_39716264 weixin_39716264 2020-12-29 10:41

    Hi I will close this issue and if your problem still exist, please reopen it.

    点赞 评论 复制链接分享
  • weixin_39626162 weixin_39626162 2020-12-29 10:41

    Thanks! Confirmed that the issue has been fixed :)

    点赞 评论 复制链接分享

相关推荐