Skip to content
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

r/aws_efs_file_system: Sweeper crash #28222

Closed
ewbankkit opened this issue Dec 6, 2022 · 2 comments · Fixed by #28234
Closed

r/aws_efs_file_system: Sweeper crash #28222

ewbankkit opened this issue Dec 6, 2022 · 2 comments · Fixed by #28234
Labels
service/efs Issues and PRs that pertain to the efs service. sweeper Pertains to changes to or issues with the sweeper.

Comments

@ewbankkit
Copy link
Contributor

ewbankkit commented Dec 6, 2022

The aws_efs_file_system sweeper crashes:

2022/12/04 04:32:56 [DEBUG] Running Sweeper (aws_efs_file_system) in region (us-east-1)
[23:32:56](https://ci-oss.hashicorp.engineering/buildConfiguration/Aws_Main_SetUp/357279?showLog=357279_489677_489677&logFilter=debug)
  2022/12/04 04:32:56 [INFO] Deleting EFS File System: fs-0fc6ccbe73078a1bd
[23:32:56](https://ci-oss.hashicorp.engineering/buildConfiguration/Aws_Main_SetUp/357279?showLog=357279_489678_489678&logFilter=debug)
  panic: runtime error: invalid memory address or nil pointer dereference
[23:32:56](https://ci-oss.hashicorp.engineering/buildConfiguration/Aws_Main_SetUp/357279?showLog=357279_489679_489679&logFilter=debug)
  [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x79e2e63]
[23:32:56](https://ci-oss.hashicorp.engineering/buildConfiguration/Aws_Main_SetUp/357279?showLog=357279_489680_489680&logFilter=debug)
  
[23:32:56](https://ci-oss.hashicorp.engineering/buildConfiguration/Aws_Main_SetUp/357279?showLog=357279_489681_489681&logFilter=debug)
  goroutine 1 [running]:
[23:32:56](https://ci-oss.hashicorp.engineering/buildConfiguration/Aws_Main_SetUp/357279?showLog=357279_489682_489682&logFilter=debug)
  github.com/hashicorp/terraform-provider-aws/internal/service/efs.sweepFileSystems.func1(0xc000731798?, 0x0?)
[23:32:56](https://ci-oss.hashicorp.engineering/buildConfiguration/Aws_Main_SetUp/357279?showLog=357279_489683_489683&logFilter=debug)
    /opt/teamcity-agent/work/87cd0779df5e20c9/internal/service/efs/sweep.go:118 +0x123
[23:32:56](https://ci-oss.hashicorp.engineering/buildConfiguration/Aws_Main_SetUp/357279?showLog=357279_489684_489684&logFilter=debug)
  github.com/aws/aws-sdk-go/service/efs.(*EFS).DescribeFileSystemsPagesWithContext(0xc000014930, {0xbe09bb0?, 0xc0001a8000}, 0xc0009b2e60, 0xc0007318f0, {0x0, 0x0, 0x0})
[23:32:56](https://ci-oss.hashicorp.engineering/buildConfiguration/Aws_Main_SetUp/357279?showLog=357279_489685_489685&logFilter=debug)
    /var/lib/teamcity/go/pkg/mod/github.com/aws/[email protected]/service/efs/api.go:2004 +0x1f0
[23:32:56](https://ci-oss.hashicorp.engineering/buildConfiguration/Aws_Main_SetUp/357279?showLog=357279_489686_489686&logFilter=debug)
  github.com/aws/aws-sdk-go/service/efs.(*EFS).DescribeFileSystemsPages(...)
[23:32:56](https://ci-oss.hashicorp.engineering/buildConfiguration/Aws_Main_SetUp/357279?showLog=357279_489687_489687&logFilter=debug)
    /var/lib/teamcity/go/pkg/mod/github.com/aws/[email protected]/service/efs/api.go:1978
[23:32:56](https://ci-oss.hashicorp.engineering/buildConfiguration/Aws_Main_SetUp/357279?showLog=357279_489688_489688&logFilter=debug)
  github.com/hashicorp/terraform-provider-aws/internal/service/efs.sweepFileSystems({0x7fff6318a536?, 0x9?})
[23:32:56](https://ci-oss.hashicorp.engineering/buildConfiguration/Aws_Main_SetUp/357279?showLog=357279_489689_489689&logFilter=debug)
    /opt/teamcity-agent/work/87cd0779df5e20c9/internal/service/efs/sweep.go:109 +0x158
[23:32:56](https://ci-oss.hashicorp.engineering/buildConfiguration/Aws_Main_SetUp/357279?showLog=357279_489690_489690&logFilter=debug)
  github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource.runSweeperWithRegion({0x7fff6318a536, 0x9}, 0xc00031f0e0, 0x13?, 0x1193e720?, 0x1?)
[23:32:56](https://ci-oss.hashicorp.engineering/buildConfiguration/Aws_Main_SetUp/357279?showLog=357279_489691_489691&logFilter=debug)
    /var/lib/teamcity/go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/resource/testing.go:265 +0x15b
[23:32:56](https://ci-oss.hashicorp.engineering/buildConfiguration/Aws_Main_SetUp/357279?showLog=357279_489692_489692&logFilter=debug)
  github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource.runSweeperWithRegion({0x7fff6318a536, 0x9}, 0xc0004ef8f0, 0xa?, 0x1193e720?, 0x1)
[23:32:56](https://ci-oss.hashicorp.engineering/buildConfiguration/Aws_Main_SetUp/357279?showLog=357279_489693_489693&logFilter=debug)
    /var/lib/teamcity/go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/resource/testing.go:245 +0x531
[23:32:56](https://ci-oss.hashicorp.engineering/buildConfiguration/Aws_Main_SetUp/357279?showLog=357279_489694_489694&logFilter=debug)
  github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource.runSweeperWithRegion({0x7fff6318a536, 0x9}, 0xc0004ef6b0, 0xc00052f7b0?, 0x0?, 0x1)
[23:32:56](https://ci-oss.hashicorp.engineering/buildConfiguration/Aws_Main_SetUp/357279?showLog=357279_489695_489695&logFilter=debug)
    /var/lib/teamcity/go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/resource/testing.go:245 +0x531
[23:32:56](https://ci-oss.hashicorp.engineering/buildConfiguration/Aws_Main_SetUp/357279?showLog=357279_489696_489696&logFilter=debug)
  github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource.runSweepers({0xc0000c66c0, 0x4, 0xaea1d8c?}, 0x1?, 0x1)
[23:32:56](https://ci-oss.hashicorp.engineering/buildConfiguration/Aws_Main_SetUp/357279?showLog=357279_489697_489697&logFilter=debug)
    /var/lib/teamcity/go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/resource/testing.go:143 +0x428
[23:32:56](https://ci-oss.hashicorp.engineering/buildConfiguration/Aws_Main_SetUp/357279?showLog=357279_489698_489698&logFilter=debug)
  github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource.TestMain({0xbd613e0, 0xc0005860a0})
[23:32:56](https://ci-oss.hashicorp.engineering/buildConfiguration/Aws_Main_SetUp/357279?showLog=357279_489699_489699&logFilter=debug)
    /var/lib/teamcity/go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/resource/testing.go:121 +0xff
[23:32:56](https://ci-oss.hashicorp.engineering/buildConfiguration/Aws_Main_SetUp/357279?showLog=357279_489700_489700&logFilter=debug)
  github.com/hashicorp/terraform-provider-aws/internal/sweep_test.TestMain(...)
[23:32:56](https://ci-oss.hashicorp.engineering/buildConfiguration/Aws_Main_SetUp/357279?showLog=357279_489701_489701&logFilter=debug)
    /opt/teamcity-agent/work/87cd0779df5e20c9/internal/sweep/sweep_test.go:147
[23:32:56](https://ci-oss.hashicorp.engineering/buildConfiguration/Aws_Main_SetUp/357279?showLog=357279_489702_489702&logFilter=debug)
  main.main()
[23:32:56](https://ci-oss.hashicorp.engineering/buildConfiguration/Aws_Main_SetUp/357279?showLog=357279_489703_489703&logFilter=debug)
    _testmain.go:49 +0x205
[23:32:56](https://ci-oss.hashicorp.engineering/buildConfiguration/Aws_Main_SetUp/357279?showLog=357279_489704_489704&logFilter=debug)
  FAIL  github.com/hashicorp/terraform-provider-aws/internal/sweep  298.831s
[23:32:56](https://ci-oss.hashicorp.engineering/buildConfiguration/Aws_Main_SetUp/357279?showLog=357279_489705_489705&logFilter=debug)
  FAIL
[23:32:56](https://ci-oss.hashicorp.engineering/buildConfiguration/Aws_Main_SetUp/357279?showLog=357279_489706_489706&logFilter=debug)
  Process exited with code 1
[23:32:56](https://ci-oss.hashicorp.engineering/buildConfiguration/Aws_Main_SetUp/357279?showLog=357279_489708_489708&logFilter=debug)
  Process exited with code 1 (Step: Pre-Sweeper (Command Line))
[23:32:56](https://ci-oss.hashicorp.engineering/buildConfiguration/Aws_Main_SetUp/357279?showLog=357279_489709_489709&logFilter=debug)
  Step Pre-Sweeper (Command Line) failed

err := r.Delete(d, client)

@github-actions
Copy link

github-actions bot commented Dec 6, 2022

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@ewbankkit ewbankkit added service/efs Issues and PRs that pertain to the efs service. sweeper Pertains to changes to or issues with the sweeper. labels Dec 6, 2022
@github-actions
Copy link

github-actions bot commented Jan 7, 2023

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/efs Issues and PRs that pertain to the efs service. sweeper Pertains to changes to or issues with the sweeper.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant