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

[BUG]: data.github_rest_api crashes #2409

Open
1 task done
corsin-ragettli opened this issue Oct 3, 2024 · 0 comments
Open
1 task done

[BUG]: data.github_rest_api crashes #2409

corsin-ragettli opened this issue Oct 3, 2024 · 0 comments
Labels
Status: Up for grabs Issues that are ready to be worked on by anyone Type: Bug Something isn't working as documented

Comments

@corsin-ragettli
Copy link

Expected Behavior

The provider returns a correct http response of the Github API

Actual Behavior

It crashes after some time:

data.github_rest_api.apps: Reading...
data.github_rest_api.apps: Still reading... [10s elapsed]
data.github_rest_api.apps: Still reading... [20s elapsed]
data.github_rest_api.apps: Still reading... [30s elapsed]
data.github_rest_api.apps: Still reading... [40s elapsed]
data.github_rest_api.apps: Still reading... [50s elapsed]
data.github_rest_api.apps: Still reading... [1m0s elapsed]
data.github_rest_api.apps: Still reading... [1m10s elapsed]
data.github_rest_api.apps: Still reading... [1m20s elapsed]

Planning failed. Terraform encountered an error while generating this plan.

╷
│ Error: Request cancelled
│ 
│   with data.github_rest_api.apps,
│   on data.tf line 2, in data "github_rest_api" "apps":
│    2: data "github_rest_api" "apps" {
│ 
│ The plugin.(*GRPCProvider).ReadDataSource request was cancelled.
╵

Stack trace from the terraform-provider-github_v6.3.0 plugin:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xbfcb58]

goroutine 39 [running]:
github.com/integrations/terraform-provider-github/v6/github.dataSourceGithubRestApiRead(0xc000228580, {0xd23ba0, 0xc0000d2900})
        github.com/integrations/terraform-provider-github/v6/github/data_source_github_rest_api.go:53 +0xd8
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).read(0x1062030?, {0x1062030?, 0xc0004bc540?}, 0xd?, {0xd23ba0?, 0xc0000d2900?})
        github.com/hashicorp/terraform-plugin-sdk/v2@v2.34.0/helper/schema/resource.go:811 +0x15f
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).ReadDataApply(0xc00044afc0, {0x1062030, 0xc0004bc540}, 0xc000228500, {0xd23ba0, 0xc0000d2900})
        github.com/hashicorp/terraform-plugin-sdk/v2@v2.34.0/helper/schema/resource.go:1043 +0x13a
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ReadDataSource(0xc00034e690, {0x1062030?, 0xc0004bc480?}, 0xc0004bc420)
        github.com/hashicorp/terraform-plugin-sdk/v2@v2.34.0/helper/schema/grpc_provider.go:1434 +0x6b1
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ReadDataSource(0xc000243720, {0x1062030?, 0xc00018a690?}, 0xc00022f4f0)
        github.com/hashicorp/terraform-plugin-go@v0.23.0/tfprotov5/tf5server/server.go:688 +0x27d
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ReadDataSource_Handler({0xec8a80, 0xc000243720}, {0x1062030, 0xc00018a690}, 0xc000173e80, 0x0)
        github.com/hashicorp/terraform-plugin-go@v0.23.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:572 +0x1a6
google.golang.org/grpc.(*Server).processUnaryRPC(0xc000129800, {0x1062030, 0xc00018a240}, {0x1066930, 0xc000252300}, 0xc0004c1320, 0xc0004467b0, 0x16ec580, 0x0)
        google.golang.org/grpc@v1.63.2/server.go:1369 +0xdf8
google.golang.org/grpc.(*Server).handleStream(0xc000129800, {0x1066930, 0xc000252300}, 0xc0004c1320)
        google.golang.org/grpc@v1.63.2/server.go:1780 +0xe8b
google.golang.org/grpc.(*Server).serveStreams.func2.1()
        google.golang.org/grpc@v1.63.2/server.go:1019 +0x8b
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 14
        google.golang.org/grpc@v1.63.2/server.go:1030 +0x125

Error: The terraform-provider-github_v6.3.0 plugin crashed!

This is always indicative of a bug within the plugin. It would be immensely
helpful if you could report the crash with the plugin's maintainers so that it
can be fixed. The output above should help diagnose the issue.

Terraform Version

Terraform v1.9.6
on linux_amd64

  • provider registry.terraform.io/integrations/github v6.3.0

Affected Resource(s)

  • github_rest_api

Terraform Configuration Files

data "github_rest_api" "apps" {
  endpoint = "/repos/${var.organization}/${var.repository}/contents/apps"
}

Steps to Reproduce

terraform plan

Debug Output

2024-10-03T14:06:46.272+0200 [INFO]  Terraform version: 1.9.6
2024-10-03T14:06:46.272+0200 [DEBUG] using github.com/hashicorp/go-tfe v1.58.0
2024-10-03T14:06:46.272+0200 [DEBUG] using github.com/hashicorp/hcl/v2 v2.20.0
2024-10-03T14:06:46.272+0200 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.1
2024-10-03T14:06:46.272+0200 [DEBUG] using github.com/zclconf/go-cty v1.14.4
2024-10-03T14:06:46.272+0200 [INFO]  Go runtime version: go1.22.7
2024-10-03T14:06:46.272+0200 [INFO]  CLI args: []string{"terraform", "plan"}
2024-10-03T14:06:46.272+0200 [DEBUG] Attempting to open CLI config file: /home/corsin/.terraformrc
2024-10-03T14:06:46.272+0200 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2024-10-03T14:06:46.273+0200 [INFO]  Loading CLI configuration from /home/corsin/.terraform.d/credentials.tfrc.json
2024-10-03T14:06:46.273+0200 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2024-10-03T14:06:46.273+0200 [DEBUG] ignoring non-existing provider search directory /home/corsin/.terraform.d/plugins
2024-10-03T14:06:46.273+0200 [DEBUG] ignoring non-existing provider search directory /home/corsin/.local/share/terraform/plugins
2024-10-03T14:06:46.273+0200 [DEBUG] ignoring non-existing provider search directory /usr/local/share/terraform/plugins
2024-10-03T14:06:46.273+0200 [DEBUG] ignoring non-existing provider search directory /usr/share/terraform/plugins
2024-10-03T14:06:46.273+0200 [DEBUG] ignoring non-existing provider search directory /var/lib/snapd/desktop/terraform/plugins
2024-10-03T14:06:46.273+0200 [INFO]  CLI command args: []string{"plan"}
2024-10-03T14:06:46.292+0200 [DEBUG] checking for provisioner in "."
2024-10-03T14:06:46.294+0200 [DEBUG] checking for provisioner in "/usr/bin"
2024-10-03T14:06:46.295+0200 [INFO]  backend/local: starting Plan operation
2024-10-03T14:06:46.296+0200 [DEBUG] backend/local: will prompt for input of unset required variables [repository organization]
2024-10-03T14:06:46.297+0200 [DEBUG] command: asking for input: "var.organization"
var.organization
  Organization which contains the repository where the apps are defined in

  Enter a value: corsin-ragettli

2024-10-03T14:06:51.833+0200 [DEBUG] command: asking for input: "var.repository"
var.repository
  Repository where the apps are defined in

  Enter a value: apps

2024-10-03T14:06:52.861+0200 [DEBUG] created provider logger: level=debug
2024-10-03T14:06:52.861+0200 [INFO]  provider: configuring client automatic mTLS
2024-10-03T14:06:52.872+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/integrations/github/6.3.0/linux_amd64/terraform-provider-github_v6.3.0 args=[".terraform/providers/registry.terraform.io/integrations/github/6.3.0/linux_amd64/terraform-provider-github_v6.3.0"]
2024-10-03T14:06:52.872+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/integrations/github/6.3.0/linux_amd64/terraform-provider-github_v6.3.0 pid=309876
2024-10-03T14:06:52.872+0200 [DEBUG] provider: waiting for RPC address: plugin=.terraform/providers/registry.terraform.io/integrations/github/6.3.0/linux_amd64/terraform-provider-github_v6.3.0
2024-10-03T14:06:52.877+0200 [INFO]  provider.terraform-provider-github_v6.3.0: configuring server automatic mTLS: timestamp="2024-10-03T14:06:52.876+0200"
2024-10-03T14:06:52.888+0200 [DEBUG] provider.terraform-provider-github_v6.3.0: plugin address: address=/tmp/plugin2376210214 network=unix timestamp="2024-10-03T14:06:52.888+0200"
2024-10-03T14:06:52.888+0200 [DEBUG] provider: using plugin: version=5
2024-10-03T14:06:52.912+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2024-10-03T14:06:52.913+0200 [INFO]  provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/integrations/github/6.3.0/linux_amd64/terraform-provider-github_v6.3.0 id=309876
2024-10-03T14:06:52.913+0200 [DEBUG] provider: plugin exited
2024-10-03T14:06:52.913+0200 [DEBUG] Building and walking validate graph
2024-10-03T14:06:52.914+0200 [DEBUG] ProviderTransformer: "module.github_resources.data.github_team.helmspeople" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/integrations/github"].corsin-ragettli
2024-10-03T14:06:52.914+0200 [DEBUG] ProviderTransformer: "module.github_resources.github_branch_protection.branch_protection" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/integrations/github"].corsin-ragettli
2024-10-03T14:06:52.914+0200 [DEBUG] ProviderTransformer: "data.github_rest_api.apps" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/integrations/github"]
2024-10-03T14:06:52.914+0200 [DEBUG] ProviderTransformer: "module.github_resources.github_repository.github_repository" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/integrations/github"].corsin-ragettli
2024-10-03T14:06:52.914+0200 [DEBUG] ProviderTransformer: "data.github_repository_file.app_definitions" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/integrations/github"]
2024-10-03T14:06:52.914+0200 [DEBUG] ProviderTransformer: "module.github_resources.github_branch.prod_branch" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/integrations/github"].corsin-ragettli
2024-10-03T14:06:52.914+0200 [DEBUG] ProviderTransformer: "module.github_resources.github_repository_webhook.argocd_webhook" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/integrations/github"].corsin-ragettli
2024-10-03T14:06:52.914+0200 [DEBUG] ProviderTransformer: "module.github_resources.github_team_repository.helmspeople_access" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/integrations/github"].corsin-ragettli
2024-10-03T14:06:52.914+0200 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/integrations/github\"].corsin-ragettli" references: []
2024-10-03T14:06:52.914+0200 [DEBUG] ReferenceTransformer: "module.github_resources (close)" references: []
2024-10-03T14:06:52.915+0200 [DEBUG] ReferenceTransformer: "module.github_resources.github_branch_protection.branch_protection" references: [module.github_resources.github_repository.github_repository module.github_resources.github_branch.prod_branch]
2024-10-03T14:06:52.915+0200 [DEBUG] ReferenceTransformer: "var.repository" references: []
2024-10-03T14:06:52.915+0200 [DEBUG] ReferenceTransformer: "module.github_resources.var.repository (expand)" references: []
2024-10-03T14:06:52.915+0200 [DEBUG] ReferenceTransformer: "local.github_response (expand)" references: [data.github_rest_api.apps]
2024-10-03T14:06:52.915+0200 [DEBUG] ReferenceTransformer: "local.app_file_definitions (expand)" references: [local.github_response (expand)]
2024-10-03T14:06:52.915+0200 [DEBUG] ReferenceTransformer: "data.github_rest_api.apps" references: [var.organization var.repository]
2024-10-03T14:06:52.915+0200 [DEBUG] ReferenceTransformer: "module.github_resources.github_repository.github_repository" references: [module.github_resources.var.repository (expand)]
2024-10-03T14:06:52.915+0200 [DEBUG] ReferenceTransformer: "module.github_resources.var.organization (expand)" references: []
2024-10-03T14:06:52.915+0200 [DEBUG] ReferenceTransformer: "module.github_resources.var.prod_branch (expand)" references: []
2024-10-03T14:06:52.915+0200 [DEBUG] ReferenceTransformer: "module.github_resources (expand)" references: [local.app_definitions (expand)]
2024-10-03T14:06:52.915+0200 [DEBUG] ReferenceTransformer: "data.github_repository_file.app_definitions" references: [local.app_file_definitions (expand) var.organization var.repository]
2024-10-03T14:06:52.915+0200 [DEBUG] ReferenceTransformer: "module.github_resources.github_branch.prod_branch" references: [module.github_resources.var.prod_branch (expand) module.github_resources.github_repository.github_repository]
2024-10-03T14:06:52.915+0200 [DEBUG] ReferenceTransformer: "module.github_resources.var.subscriptions (expand)" references: []
2024-10-03T14:06:52.915+0200 [DEBUG] ReferenceTransformer: "local.app_definitions (expand)" references: [data.github_repository_file.app_definitions]
2024-10-03T14:06:52.915+0200 [DEBUG] ReferenceTransformer: "module.github_resources.var.installation_id (expand)" references: []
2024-10-03T14:06:52.915+0200 [DEBUG] ReferenceTransformer: "module.github_resources.local.helmspeople_teams (expand)" references: [module.github_resources.var.subscriptions (expand)]
2024-10-03T14:06:52.915+0200 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/integrations/github\"]" references: []
2024-10-03T14:06:52.915+0200 [DEBUG] ReferenceTransformer: "module.github_resources.github_repository_webhook.argocd_webhook" references: [module.github_resources.github_repository.github_repository]
2024-10-03T14:06:52.915+0200 [DEBUG] ReferenceTransformer: "module.github_resources.github_team_repository.helmspeople_access" references: [module.github_resources.data.github_team.helmspeople module.github_resources.github_repository.github_repository]
2024-10-03T14:06:52.915+0200 [DEBUG] ReferenceTransformer: "module.github_resources.data.github_team.helmspeople" references: [module.github_resources.local.helmspeople_teams (expand)]
2024-10-03T14:06:52.915+0200 [DEBUG] ReferenceTransformer: "var.organization" references: []
2024-10-03T14:06:52.916+0200 [DEBUG] Starting graph walk: walkValidate
2024-10-03T14:06:52.916+0200 [DEBUG] created provider logger: level=debug
2024-10-03T14:06:52.916+0200 [INFO]  provider: configuring client automatic mTLS
2024-10-03T14:06:52.921+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/integrations/github/6.3.0/linux_amd64/terraform-provider-github_v6.3.0 args=[".terraform/providers/registry.terraform.io/integrations/github/6.3.0/linux_amd64/terraform-provider-github_v6.3.0"]
2024-10-03T14:06:52.922+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/integrations/github/6.3.0/linux_amd64/terraform-provider-github_v6.3.0 pid=309888
2024-10-03T14:06:52.922+0200 [DEBUG] provider: waiting for RPC address: plugin=.terraform/providers/registry.terraform.io/integrations/github/6.3.0/linux_amd64/terraform-provider-github_v6.3.0
2024-10-03T14:06:52.929+0200 [INFO]  provider.terraform-provider-github_v6.3.0: configuring server automatic mTLS: timestamp="2024-10-03T14:06:52.928+0200"
2024-10-03T14:06:52.942+0200 [DEBUG] provider.terraform-provider-github_v6.3.0: plugin address: address=/tmp/plugin2254901987 network=unix timestamp="2024-10-03T14:06:52.942+0200"
2024-10-03T14:06:52.942+0200 [DEBUG] provider: using plugin: version=5
2024-10-03T14:06:52.950+0200 [DEBUG] created provider logger: level=debug
2024-10-03T14:06:52.950+0200 [INFO]  provider: configuring client automatic mTLS
2024-10-03T14:06:52.961+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/integrations/github/6.3.0/linux_amd64/terraform-provider-github_v6.3.0 args=[".terraform/providers/registry.terraform.io/integrations/github/6.3.0/linux_amd64/terraform-provider-github_v6.3.0"]
2024-10-03T14:06:52.962+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/integrations/github/6.3.0/linux_amd64/terraform-provider-github_v6.3.0 pid=309897
2024-10-03T14:06:52.962+0200 [DEBUG] provider: waiting for RPC address: plugin=.terraform/providers/registry.terraform.io/integrations/github/6.3.0/linux_amd64/terraform-provider-github_v6.3.0
2024-10-03T14:06:52.966+0200 [INFO]  provider.terraform-provider-github_v6.3.0: configuring server automatic mTLS: timestamp="2024-10-03T14:06:52.966+0200"
2024-10-03T14:06:52.981+0200 [DEBUG] provider.terraform-provider-github_v6.3.0: plugin address: address=/tmp/plugin1662872479 network=unix timestamp="2024-10-03T14:06:52.981+0200"
2024-10-03T14:06:52.981+0200 [DEBUG] provider: using plugin: version=5
2024-10-03T14:06:52.995+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2024-10-03T14:06:52.996+0200 [INFO]  provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/integrations/github/6.3.0/linux_amd64/terraform-provider-github_v6.3.0 id=309888
2024-10-03T14:06:52.996+0200 [DEBUG] provider: plugin exited
2024-10-03T14:06:53.003+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2024-10-03T14:06:53.004+0200 [INFO]  provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/integrations/github/6.3.0/linux_amd64/terraform-provider-github_v6.3.0 id=309897
2024-10-03T14:06:53.004+0200 [DEBUG] provider: plugin exited
2024-10-03T14:06:53.004+0200 [INFO]  backend/local: plan calling Plan
2024-10-03T14:06:53.004+0200 [DEBUG] Building and walking plan graph for NormalMode
2024-10-03T14:06:53.005+0200 [DEBUG] ProviderTransformer: "module.github_resources.github_branch_protection.branch_protection (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/integrations/github"].corsin-ragettli
2024-10-03T14:06:53.005+0200 [DEBUG] ProviderTransformer: "module.github_resources.github_repository_webhook.argocd_webhook (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/integrations/github"].corsin-ragettli
2024-10-03T14:06:53.005+0200 [DEBUG] ProviderTransformer: "module.github_resources.github_repository.github_repository (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/integrations/github"].corsin-ragettli
2024-10-03T14:06:53.005+0200 [DEBUG] ProviderTransformer: "data.github_rest_api.apps (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/integrations/github"]
2024-10-03T14:06:53.005+0200 [DEBUG] ProviderTransformer: "module.github_resources.github_branch.prod_branch (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/integrations/github"].corsin-ragettli
2024-10-03T14:06:53.005+0200 [DEBUG] ProviderTransformer: "module.github_resources.github_team_repository.helmspeople_access (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/integrations/github"].corsin-ragettli
2024-10-03T14:06:53.005+0200 [DEBUG] ProviderTransformer: "module.github_resources.data.github_team.helmspeople (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/integrations/github"].corsin-ragettli
2024-10-03T14:06:53.005+0200 [DEBUG] ProviderTransformer: "data.github_repository_file.app_definitions (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/integrations/github"]
2024-10-03T14:06:53.006+0200 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/integrations/github\"].corsin-ragettli" references: []
2024-10-03T14:06:53.006+0200 [DEBUG] ReferenceTransformer: "module.github_resources (expand)" references: [local.app_definitions (expand)]
2024-10-03T14:06:53.006+0200 [DEBUG] ReferenceTransformer: "module.github_resources.github_team_repository.helmspeople_access (expand)" references: [module.github_resources.data.github_team.helmspeople (expand) module.github_resources.github_repository.github_repository (expand)]
2024-10-03T14:06:53.006+0200 [DEBUG] ReferenceTransformer: "module.github_resources.data.github_team.helmspeople (expand)" references: [module.github_resources.local.helmspeople_teams (expand)]
2024-10-03T14:06:53.006+0200 [DEBUG] ReferenceTransformer: "module.github_resources.var.subscriptions (expand)" references: []
2024-10-03T14:06:53.006+0200 [DEBUG] ReferenceTransformer: "local.app_definitions (expand)" references: [data.github_repository_file.app_definitions (expand)]
2024-10-03T14:06:53.006+0200 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/integrations/github\"]" references: []
2024-10-03T14:06:53.006+0200 [DEBUG] ReferenceTransformer: "module.github_resources.var.repository (expand)" references: []
2024-10-03T14:06:53.006+0200 [DEBUG] ReferenceTransformer: "data.github_repository_file.app_definitions (expand)" references: [local.app_file_definitions (expand) var.organization var.repository]
2024-10-03T14:06:53.006+0200 [DEBUG] ReferenceTransformer: "module.github_resources.github_branch_protection.branch_protection (expand)" references: [module.github_resources.github_repository.github_repository (expand) module.github_resources.github_branch.prod_branch (expand)]
2024-10-03T14:06:53.006+0200 [DEBUG] ReferenceTransformer: "module.github_resources.github_repository_webhook.argocd_webhook (expand)" references: [module.github_resources.github_repository.github_repository (expand)]
2024-10-03T14:06:53.006+0200 [DEBUG] ReferenceTransformer: "module.github_resources.github_repository.github_repository (expand)" references: [module.github_resources.var.repository (expand)]
2024-10-03T14:06:53.006+0200 [DEBUG] ReferenceTransformer: "module.github_resources.var.organization (expand)" references: []
2024-10-03T14:06:53.006+0200 [DEBUG] ReferenceTransformer: "module.github_resources.var.installation_id (expand)" references: []
2024-10-03T14:06:53.007+0200 [DEBUG] ReferenceTransformer: "module.github_resources.var.prod_branch (expand)" references: []
2024-10-03T14:06:53.007+0200 [DEBUG] ReferenceTransformer: "local.app_file_definitions (expand)" references: [local.github_response (expand)]
2024-10-03T14:06:53.007+0200 [DEBUG] ReferenceTransformer: "local.github_response (expand)" references: [data.github_rest_api.apps (expand)]
2024-10-03T14:06:53.007+0200 [DEBUG] ReferenceTransformer: "module.github_resources (close)" references: []
2024-10-03T14:06:53.007+0200 [DEBUG] ReferenceTransformer: "data.github_rest_api.apps (expand)" references: [var.organization var.repository]
2024-10-03T14:06:53.007+0200 [DEBUG] ReferenceTransformer: "module.github_resources.github_branch.prod_branch (expand)" references: [module.github_resources.github_repository.github_repository (expand) module.github_resources.var.prod_branch (expand)]
2024-10-03T14:06:53.007+0200 [DEBUG] ReferenceTransformer: "var.organization" references: []
2024-10-03T14:06:53.007+0200 [DEBUG] ReferenceTransformer: "var.repository" references: []
2024-10-03T14:06:53.007+0200 [DEBUG] ReferenceTransformer: "module.github_resources.local.helmspeople_teams (expand)" references: [module.github_resources.var.subscriptions (expand)]
2024-10-03T14:06:53.008+0200 [DEBUG] Starting graph walk: walkPlan
2024-10-03T14:06:53.008+0200 [DEBUG] created provider logger: level=debug
2024-10-03T14:06:53.008+0200 [INFO]  provider: configuring client automatic mTLS
2024-10-03T14:06:53.012+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/integrations/github/6.3.0/linux_amd64/terraform-provider-github_v6.3.0 args=[".terraform/providers/registry.terraform.io/integrations/github/6.3.0/linux_amd64/terraform-provider-github_v6.3.0"]
2024-10-03T14:06:53.013+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/integrations/github/6.3.0/linux_amd64/terraform-provider-github_v6.3.0 pid=309909
2024-10-03T14:06:53.013+0200 [DEBUG] provider: waiting for RPC address: plugin=.terraform/providers/registry.terraform.io/integrations/github/6.3.0/linux_amd64/terraform-provider-github_v6.3.0
2024-10-03T14:06:53.017+0200 [INFO]  provider.terraform-provider-github_v6.3.0: configuring server automatic mTLS: timestamp="2024-10-03T14:06:53.017+0200"
2024-10-03T14:06:53.028+0200 [DEBUG] provider.terraform-provider-github_v6.3.0: plugin address: address=/tmp/plugin310094760 network=unix timestamp="2024-10-03T14:06:53.028+0200"
2024-10-03T14:06:53.028+0200 [DEBUG] provider: using plugin: version=5
2024-10-03T14:06:53.036+0200 [DEBUG] created provider logger: level=debug
2024-10-03T14:06:53.036+0200 [INFO]  provider: configuring client automatic mTLS
2024-10-03T14:06:53.039+0200 [WARN]  ValidateProviderConfig from "provider[\"registry.terraform.io/integrations/github\"].corsin-ragettli" changed the config value, but that value is unused
2024-10-03T14:06:53.040+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/integrations/github/6.3.0/linux_amd64/terraform-provider-github_v6.3.0 args=[".terraform/providers/registry.terraform.io/integrations/github/6.3.0/linux_amd64/terraform-provider-github_v6.3.0"]
2024-10-03T14:06:53.040+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/integrations/github/6.3.0/linux_amd64/terraform-provider-github_v6.3.0 pid=309918
2024-10-03T14:06:53.040+0200 [DEBUG] provider: waiting for RPC address: plugin=.terraform/providers/registry.terraform.io/integrations/github/6.3.0/linux_amd64/terraform-provider-github_v6.3.0
2024-10-03T14:06:53.047+0200 [INFO]  provider.terraform-provider-github_v6.3.0: configuring server automatic mTLS: timestamp="2024-10-03T14:06:53.047+0200"
2024-10-03T14:06:53.061+0200 [DEBUG] provider: using plugin: version=5
2024-10-03T14:06:53.061+0200 [DEBUG] provider.terraform-provider-github_v6.3.0: plugin address: address=/tmp/plugin3403769846 network=unix timestamp="2024-10-03T14:06:53.061+0200"
2024-10-03T14:06:53.070+0200 [INFO]  provider.terraform-provider-github_v6.3.0: 2024/10/03 14:06:53 [INFO] Selecting owner  from GITHUB_OWNER environment variable: timestamp="2024-10-03T14:06:53.070+0200"
2024-10-03T14:06:53.073+0200 [WARN]  ValidateProviderConfig from "provider[\"registry.terraform.io/integrations/github\"]" changed the config value, but that value is unused
2024-10-03T14:06:53.074+0200 [INFO]  provider.terraform-provider-github_v6.3.0: 2024/10/03 14:06:53 [INFO] Selecting owner  from GITHUB_OWNER environment variable: timestamp="2024-10-03T14:06:53.074+0200"
2024-10-03T14:06:53.074+0200 [INFO]  provider.terraform-provider-github_v6.3.0: 2024/10/03 14:06:53 [INFO] Setting write_delay_ms to 1000: timestamp="2024-10-03T14:06:53.074+0200"
2024-10-03T14:06:53.074+0200 [INFO]  provider.terraform-provider-github_v6.3.0: 2024/10/03 14:06:53 [DEBUG] Setting read_delay_ms to 0: timestamp="2024-10-03T14:06:53.074+0200"
2024-10-03T14:06:53.074+0200 [INFO]  provider.terraform-provider-github_v6.3.0: 2024/10/03 14:06:53 [DEBUG] Setting retry_delay_ms to 0: timestamp="2024-10-03T14:06:53.074+0200"
2024-10-03T14:06:53.074+0200 [INFO]  provider.terraform-provider-github_v6.3.0: 2024/10/03 14:06:53 [DEBUG] Setting max_retries to 3: timestamp="2024-10-03T14:06:53.074+0200"
2024-10-03T14:06:53.074+0200 [INFO]  provider.terraform-provider-github_v6.3.0: 2024/10/03 14:06:53 [DEBUG] Setting retriableErrors to map[500:true 502:true 503:true 504:true]: timestamp="2024-10-03T14:06:53.074+0200"
2024-10-03T14:06:53.074+0200 [INFO]  provider.terraform-provider-github_v6.3.0: 2024/10/03 14:06:53 [DEBUG] Setting parallel_requests to false: timestamp="2024-10-03T14:06:53.074+0200"
2024-10-03T14:06:53.074+0200 [DEBUG] Resource instance state not found for node "data.github_rest_api.apps", instance data.github_rest_api.apps
2024-10-03T14:06:53.074+0200 [DEBUG] ReferenceTransformer: "data.github_rest_api.apps" references: []
data.github_rest_api.apps: Reading...
2024-10-03T14:06:53.182+0200 [INFO]  provider.terraform-provider-github_v6.3.0: 2024/10/03 14:06:53 [INFO] Setting write_delay_ms to 1000: timestamp="2024-10-03T14:06:53.181+0200"
2024-10-03T14:06:53.182+0200 [INFO]  provider.terraform-provider-github_v6.3.0: 2024/10/03 14:06:53 [DEBUG] Setting read_delay_ms to 0: timestamp="2024-10-03T14:06:53.181+0200"
2024-10-03T14:06:53.182+0200 [INFO]  provider.terraform-provider-github_v6.3.0: 2024/10/03 14:06:53 [DEBUG] Setting retry_delay_ms to 0: timestamp="2024-10-03T14:06:53.181+0200"
2024-10-03T14:06:53.182+0200 [INFO]  provider.terraform-provider-github_v6.3.0: 2024/10/03 14:06:53 [DEBUG] Setting max_retries to 3: timestamp="2024-10-03T14:06:53.181+0200"
2024-10-03T14:06:53.182+0200 [INFO]  provider.terraform-provider-github_v6.3.0: 2024/10/03 14:06:53 [DEBUG] Setting retriableErrors to map[500:true 502:true 503:true 504:true]: timestamp="2024-10-03T14:06:53.181+0200"
2024-10-03T14:06:53.182+0200 [INFO]  provider.terraform-provider-github_v6.3.0: 2024/10/03 14:06:53 [DEBUG] Setting parallel_requests to false: timestamp="2024-10-03T14:06:53.181+0200"
data.github_rest_api.apps: Still reading... [10s elapsed]
data.github_rest_api.apps: Still reading... [20s elapsed]
data.github_rest_api.apps: Still reading... [30s elapsed]
data.github_rest_api.apps: Still reading... [40s elapsed]
data.github_rest_api.apps: Still reading... [50s elapsed]
data.github_rest_api.apps: Still reading... [1m0s elapsed]
data.github_rest_api.apps: Still reading... [1m10s elapsed]
data.github_rest_api.apps: Still reading... [1m20s elapsed]
2024-10-03T14:08:17.299+0200 [DEBUG] provider.terraform-provider-github_v6.3.0: panic: runtime error: invalid memory address or nil pointer dereference
2024-10-03T14:08:17.299+0200 [DEBUG] provider.terraform-provider-github_v6.3.0: [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xbfcb58]
2024-10-03T14:08:17.299+0200 [DEBUG] provider.terraform-provider-github_v6.3.0
2024-10-03T14:08:17.300+0200 [DEBUG] provider.terraform-provider-github_v6.3.0: goroutine 65 [running]:
2024-10-03T14:08:17.300+0200 [DEBUG] provider.terraform-provider-github_v6.3.0: github.com/integrations/terraform-provider-github/v6/github.dataSourceGithubRestApiRead(0xc000409380, {0xd23ba0, 0xc0000e9440})
2024-10-03T14:08:17.300+0200 [DEBUG] provider.terraform-provider-github_v6.3.0:         github.com/integrations/terraform-provider-github/v6/github/data_source_github_rest_api.go:53 +0xd8
2024-10-03T14:08:17.300+0200 [DEBUG] provider.terraform-provider-github_v6.3.0: github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).read(0x1062030?, {0x1062030?, 0xc000411da0?}, 0xd?, {0xd23ba0?, 0xc0000e9440?})
2024-10-03T14:08:17.300+0200 [DEBUG] provider.terraform-provider-github_v6.3.0:         github.com/hashicorp/terraform-plugin-sdk/v2@v2.34.0/helper/schema/resource.go:811 +0x15f
2024-10-03T14:08:17.300+0200 [DEBUG] provider.terraform-provider-github_v6.3.0: github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).ReadDataApply(0xc00048cfc0, {0x1062030, 0xc000411da0}, 0xc000409300, {0xd23ba0, 0xc0000e9440})
2024-10-03T14:08:17.300+0200 [DEBUG] provider.terraform-provider-github_v6.3.0:         github.com/hashicorp/terraform-plugin-sdk/v2@v2.34.0/helper/schema/resource.go:1043 +0x13a
2024-10-03T14:08:17.300+0200 [DEBUG] provider.terraform-provider-github_v6.3.0: github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ReadDataSource(0xc000390678, {0x1062030?, 0xc000411ce0?}, 0xc000411c80)
2024-10-03T14:08:17.300+0200 [DEBUG] provider.terraform-provider-github_v6.3.0:         github.com/hashicorp/terraform-plugin-sdk/v2@v2.34.0/helper/schema/grpc_provider.go:1434 +0x6b1
2024-10-03T14:08:17.300+0200 [DEBUG] provider.terraform-provider-github_v6.3.0: github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ReadDataSource(0xc0002477c0, {0x1062030?, 0xc0004112f0?}, 0xc0005a8280)
2024-10-03T14:08:17.300+0200 [DEBUG] provider.terraform-provider-github_v6.3.0:         github.com/hashicorp/terraform-plugin-go@v0.23.0/tfprotov5/tf5server/server.go:688 +0x27d
2024-10-03T14:08:17.300+0200 [DEBUG] provider.terraform-provider-github_v6.3.0: github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ReadDataSource_Handler({0xec8a80, 0xc0002477c0}, {0x1062030, 0xc0004112f0}, 0xc000408d00, 0x0)
2024-10-03T14:08:17.300+0200 [DEBUG] provider.terraform-provider-github_v6.3.0:         github.com/hashicorp/terraform-plugin-go@v0.23.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:572 +0x1a6
2024-10-03T14:08:17.300+0200 [DEBUG] provider.terraform-provider-github_v6.3.0: google.golang.org/grpc.(*Server).processUnaryRPC(0xc00014b800, {0x1062030, 0xc000411260}, {0x1066930, 0xc0002de180}, 0xc00040d7a0, 0xc0004887b0, 0x16ec580, 0x0)
2024-10-03T14:08:17.300+0200 [DEBUG] provider.terraform-provider-github_v6.3.0:         google.golang.org/grpc@v1.63.2/server.go:1369 +0xdf8
2024-10-03T14:08:17.300+0200 [DEBUG] provider.terraform-provider-github_v6.3.0: google.golang.org/grpc.(*Server).handleStream(0xc00014b800, {0x1066930, 0xc0002de180}, 0xc00040d7a0)
2024-10-03T14:08:17.300+0200 [DEBUG] provider.terraform-provider-github_v6.3.0:         google.golang.org/grpc@v1.63.2/server.go:1780 +0xe8b
2024-10-03T14:08:17.300+0200 [DEBUG] provider.terraform-provider-github_v6.3.0: google.golang.org/grpc.(*Server).serveStreams.func2.1()
2024-10-03T14:08:17.300+0200 [DEBUG] provider.terraform-provider-github_v6.3.0:         google.golang.org/grpc@v1.63.2/server.go:1019 +0x8b
2024-10-03T14:08:17.300+0200 [DEBUG] provider.terraform-provider-github_v6.3.0: created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 52
2024-10-03T14:08:17.300+0200 [DEBUG] provider.terraform-provider-github_v6.3.0:         google.golang.org/grpc@v1.63.2/server.go:1030 +0x125
2024-10-03T14:08:17.300+0200 [ERROR] provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/integrations/github/6.3.0/linux_amd64/terraform-provider-github_v6.3.0 id=309918 error="exit status 2"
2024-10-03T14:08:17.300+0200 [ERROR] plugin.(*GRPCProvider).ReadDataSource: error="rpc error: code = Unavailable desc = error reading from server: EOF"
2024-10-03T14:08:17.300+0200 [ERROR] vertex "data.github_rest_api.apps" error: Plugin did not respond
2024-10-03T14:08:17.300+0200 [ERROR] vertex "data.github_rest_api.apps (expand)" error: Plugin did not respond
2024-10-03T14:08:17.300+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2024-10-03T14:08:17.300+0200 [WARN]  Planning encountered errors, so plan is not applyable
2024-10-03T14:08:17.300+0200 [INFO]  backend/local: plan operation completed

Planning failed. Terraform encountered an error while generating this plan.

╷
│ Error: Plugin did not respond
│ 
│   with data.github_rest_api.apps,
│   on data.tf line 2, in data "github_rest_api" "apps":
│    2: data "github_rest_api" "apps" {
│ 
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ReadDataSource call. The plugin logs may contain more details.
╵

Stack trace from the terraform-provider-github_v6.3.0 plugin:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xbfcb58]

goroutine 65 [running]:
github.com/integrations/terraform-provider-github/v6/github.dataSourceGithubRestApiRead(0xc000409380, {0xd23ba0, 0xc0000e9440})
        github.com/integrations/terraform-provider-github/v6/github/data_source_github_rest_api.go:53 +0xd8
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).read(0x1062030?, {0x1062030?, 0xc000411da0?}, 0xd?, {0xd23ba0?, 0xc0000e9440?})
        github.com/hashicorp/terraform-plugin-sdk/v2@v2.34.0/helper/schema/resource.go:811 +0x15f
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).ReadDataApply(0xc00048cfc0, {0x1062030, 0xc000411da0}, 0xc000409300, {0xd23ba0, 0xc0000e9440})
        github.com/hashicorp/terraform-plugin-sdk/v2@v2.34.0/helper/schema/resource.go:1043 +0x13a
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ReadDataSource(0xc000390678, {0x1062030?, 0xc000411ce0?}, 0xc000411c80)
        github.com/hashicorp/terraform-plugin-sdk/v2@v2.34.0/helper/schema/grpc_provider.go:1434 +0x6b1
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ReadDataSource(0xc0002477c0, {0x1062030?, 0xc0004112f0?}, 0xc0005a8280)
        github.com/hashicorp/terraform-plugin-go@v0.23.0/tfprotov5/tf5server/server.go:688 +0x27d
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ReadDataSource_Handler({0xec8a80, 0xc0002477c0}, {0x1062030, 0xc0004112f0}, 0xc000408d00, 0x0)
        github.com/hashicorp/terraform-plugin-go@v0.23.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:572 +0x1a6
google.golang.org/grpc.(*Server).processUnaryRPC(0xc00014b800, {0x1062030, 0xc000411260}, {0x1066930, 0xc0002de180}, 0xc00040d7a0, 0xc0004887b0, 0x16ec580, 0x0)
        google.golang.org/grpc@v1.63.2/server.go:1369 +0xdf8
google.golang.org/grpc.(*Server).handleStream(0xc00014b800, {0x1066930, 0xc0002de180}, 0xc00040d7a0)
        google.golang.org/grpc@v1.63.2/server.go:1780 +0xe8b
google.golang.org/grpc.(*Server).serveStreams.func2.1()
        google.golang.org/grpc@v1.63.2/server.go:1019 +0x8b
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 52
        google.golang.org/grpc@v1.63.2/server.go:1030 +0x125

Error: The terraform-provider-github_v6.3.0 plugin crashed!

This is always indicative of a bug within the plugin. It would be immensely
helpful if you could report the crash with the plugin's maintainers so that it
can be fixed. The output above should help diagnose the issue.

2024-10-03T14:08:17.302+0200 [DEBUG] provider: plugin exited
2024-10-03T14:08:17.302+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2024-10-03T14:08:17.303+0200 [INFO]  provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/integrations/github/6.3.0/linux_amd64/terraform-provider-github_v6.3.0 id=309909
2024-10-03T14:08:17.303+0200 [DEBUG] provider: plugin exited

Panic Output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@corsin-ragettli corsin-ragettli added Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented labels Oct 3, 2024
@kfcampbell kfcampbell added Status: Up for grabs Issues that are ready to be worked on by anyone and removed Status: Triage This is being looked at and prioritized labels Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Up for grabs Issues that are ready to be worked on by anyone Type: Bug Something isn't working as documented
Projects
None yet
Development

No branches or pull requests

2 participants