-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
aws_codepipeline_webhook terraform crashed #17482
Comments
Hello, I wanted to update that, I do not see the errors I posted in Debug output anymore. I do see the code build and code pipeline are created in my AWS account but I dont think it is clean. The result I see is "TERRAFORM CRASHES" . I have updated the gist above with the latest crash.log |
Relevant section of the crash log: 021-02-04T18:06:04.055-0500 [DEBUG] plugin.terraform-provider-aws_v3.26.0_x5: panic: interface conversion: interface {} is nil, not map[string]interface {}
2021-02-04T18:06:04.055-0500 [DEBUG] plugin.terraform-provider-aws_v3.26.0_x5:
2021-02-04T18:06:04.055-0500 [DEBUG] plugin.terraform-provider-aws_v3.26.0_x5: goroutine 205 [running]:
2021-02-04T18:06:04.055-0500 [DEBUG] plugin.terraform-provider-aws_v3.26.0_x5: github.com/terraform-providers/terraform-provider-aws/aws.resourceAwsCodePipelineWebhookCreate(0xc001786900, 0x66ec4c0, 0xc00131a100, 0x1, 0xffffffffffffffff)
2021-02-04T18:06:04.055-0500 [DEBUG] plugin.terraform-provider-aws_v3.26.0_x5: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-aws/aws/resource_aws_codepipeline_webhook.go:139 +0x9a7
2021-02-04T18:06:04.055-0500 [DEBUG] plugin.terraform-provider-aws_v3.26.0_x5: github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).create(0xc0008d3a40, 0x7e34860, 0xc001e04180, 0xc001786900, 0x66ec4c0, 0xc00131a100, 0x0, 0x0, 0x0)
2021-02-04T18:06:04.055-0500 [DEBUG] plugin.terraform-provider-aws_v3.26.0_x5: /opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:278 +0x88
2021-02-04T18:06:04.055-0500 [DEBUG] plugin.terraform-provider-aws_v3.26.0_x5: github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0xc0008d3a40, 0x7e34860, 0xc001e04180, 0xc001836b60, 0xc001c815c0, 0x66ec4c0, 0xc00131a100, 0x0, 0x0, 0x0, ...)
2021-02-04T18:06:04.055-0500 [DEBUG] plugin.terraform-provider-aws_v3.26.0_x5: /opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:396 +0x65b
2021-02-04T18:06:04.055-0500 [DEBUG] plugin.terraform-provider-aws_v3.26.0_x5: github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0xc0010eafe0, 0x7e34860, 0xc001e04180, 0xc000b1eb90, 0xc001e04180, 0x0, 0x7e60280)
2021-02-04T18:06:04.055-0500 [DEBUG] plugin.terraform-provider-aws_v3.26.0_x5: /opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:955 +0x8cf
2021-02-04T18:06:04.055-0500 [DEBUG] plugin.terraform-provider-aws_v3.26.0_x5: github.com/hashicorp/terraform-plugin-go/tfprotov5/server.(*server).ApplyResourceChange(0xc0012a1e20, 0x7e34860, 0xc001e04180, 0xc001836a10, 0xc0012a1e20, 0xc000ff5260, 0xc001cd0ba0)
2021-02-04T18:06:04.055-0500 [DEBUG] plugin.terraform-provider-aws_v3.26.0_x5: /opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/[email protected]/tfprotov5/server/server.go:332 +0xae
2021-02-04T18:06:04.055-0500 [DEBUG] plugin.terraform-provider-aws_v3.26.0_x5: github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler(0x71dd0a0, 0xc0012a1e20, 0x7e34920, 0xc000ff5260, 0xc0007301e0, 0x0, 0x7e34920, 0xc000ff5260, 0xc00067c000, 0x23e)
2021-02-04T18:06:04.055-0500 [DEBUG] plugin.terraform-provider-aws_v3.26.0_x5: /opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/[email protected]/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:380 +0x214
2021-02-04T18:06:04.055-0500 [DEBUG] plugin.terraform-provider-aws_v3.26.0_x5: google.golang.org/grpc.(*Server).processUnaryRPC(0xc00080ae00, 0x7e57a00, 0xc000638180, 0xc00182a500, 0xc000ff44e0, 0xb24b6a0, 0x0, 0x0, 0x0)
2021-02-04T18:06:04.055-0500 [DEBUG] plugin.terraform-provider-aws_v3.26.0_x5: /opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/google.golang.org/[email protected]/server.go:1194 +0x522
2021-02-04T18:06:04.055-0500 [DEBUG] plugin.terraform-provider-aws_v3.26.0_x5: google.golang.org/grpc.(*Server).handleStream(0xc00080ae00, 0x7e57a00, 0xc000638180, 0xc00182a500, 0x0)
2021-02-04T18:06:04.056-0500 [DEBUG] plugin.terraform-provider-aws_v3.26.0_x5: /opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/google.golang.org/[email protected]/server.go:1517 +0xd05
2021-02-04T18:06:04.056-0500 [DEBUG] plugin.terraform-provider-aws_v3.26.0_x5: google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc000f26ec0, 0xc00080ae00, 0x7e57a00, 0xc000638180, 0xc00182a500)
2021-02-04T18:06:04.056-0500 [DEBUG] plugin.terraform-provider-aws_v3.26.0_x5: /opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/google.golang.org/[email protected]/server.go:859 +0xa5
2021-02-04T18:06:04.056-0500 [DEBUG] plugin.terraform-provider-aws_v3.26.0_x5: created by google.golang.org/grpc.(*Server).serveStreams.func1
2021-02-04T18:06:04.056-0500 [DEBUG] plugin.terraform-provider-aws_v3.26.0_x5: /opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/google.golang.org/[email protected]/server.go:857 +0x1fd terraform-provider-aws/aws/resource_aws_codepipeline_webhook.go Lines 132 to 140 in 9c9de45
|
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you! |
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. |
This issue was originally opened by @monisha6791 as hashicorp/terraform#27690. It was migrated here as a result of the provider split. The original body of the issue is below.
Terraform Version
Upgraded it to 0.13 and it still does not work and crashes
Terraform Configuration Files
Debug Output
The errors stopped after I removed the statefiles and destroyed and recreated but terraform crashes and asked me to report it. I have added the output of crash.log below
Crash Output
https://gist.github.com/monisha6791/d67c81a15d4964056d351de90f0d2747
Expected Behavior
I should be able to pull code and push it to s3, as I am setting up a website on s3
Actual Behavior
The webhook on github shows 200 but I get the above errors. I am unable to push to the repository in an organization. It looks for a repository in my username instead going to the organization
Steps to Reproduce
terraform init
terraform plan
terraform apply
- errors when I applyhttps://stackoverflow.com/questions/65147393/how-to-avoid-double-slash-in-github-repo-url
-->
The text was updated successfully, but these errors were encountered: