Closed trondstromme closed 1 year ago
same with v4-50-0_x4
β·
β Error: Plugin did not respond
β
β with oci_logging_unified_agent_configuration.os_audit,
β on logging.tf line 76, in resource "oci_logging_unified_agent_configuration" "os_audit":
β 76: resource "oci_logging_unified_agent_configuration" "os_audit" {
β
β The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ApplyResourceChange call. The plugin logs may contain more details.
β΅
Stack trace from the terraform-provider-oci_v4.50.0_x4 plugin:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x30de3e9]
goroutine 66 [running]:
github.com/terraform-providers/terraform-provider-oci/oci.(*LoggingUnifiedAgentConfigurationResourceCrud).ID(0xc00166bbc0, 0x3ff4480, 0xc00166bbc0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-oci/oci/logging_unified_agent_configuration_resource.go:439 +0x9
github.com/terraform-providers/terraform-provider-oci/oci.getResourceOCID(...)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-oci/oci/errors.go:191
github.com/terraform-providers/terraform-provider-oci/oci.newCustomError(0x3ff4480, 0xc00166bbc0, 0x466c500, 0xc002260150, 0x0, 0x40d800)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-oci/oci/errors.go:76 +0x7b2
github.com/terraform-providers/terraform-provider-oci/oci.handleError(...)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-oci/oci/errors.go:150
github.com/terraform-providers/terraform-provider-oci/oci.CreateResource(0xc000466b60, 0x4729d40, 0xc00166bbc0, 0x0, 0x0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-oci/oci/crud_helpers.go:341 +0xe9
github.com/terraform-providers/terraform-provider-oci/oci.createLoggingUnifiedAgentConfiguration(0xc000466b60, 0x4123360, 0xc0021a45a0, 0x2, 0x62bd780)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-oci/oci/logging_unified_agent_configuration_resource.go:403 +0xee
github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Resource).Apply(0xc000f57f40, 0xc0015a8960, 0xc00160cca0, 0x4123360, 0xc0021a45a0, 0x393e401, 0xc001006e58, 0xc00166a420)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-oci/vendor/github.com/hashicorp/terraform-plugin-sdk/helper/schema/resource.go:320 +0x375
github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Provider).Apply(0xc000128400, 0xc001663a38, 0xc0015a8960, 0xc00160cca0, 0xc001653708, 0xc001f34d50, 0x398fb80)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-oci/vendor/github.com/hashicorp/terraform-plugin-sdk/helper/schema/provider.go:294 +0x99
github.com/hashicorp/terraform-plugin-sdk/internal/helper/plugin.(*GRPCProviderServer).ApplyResourceChange(0xc00000f840, 0x4725180, 0xc001ff61b0, 0xc000466000, 0xc00000f840, 0xc001ff61b0, 0xc001530ba0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-oci/vendor/github.com/hashicorp/terraform-plugin-sdk/internal/helper/plugin/grpc_provider.go:895 +0x8ab
github.com/hashicorp/terraform-plugin-sdk/internal/tfplugin5._Provider_ApplyResourceChange_Handler(0x3fa9de0, 0xc00000f840, 0x4725180, 0xc001ff61b0, 0xc001608060, 0x0, 0x4725180, 0xc001ff61b0, 0xc001612000, 0x5c1)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-oci/vendor/github.com/hashicorp/terraform-plugin-sdk/internal/tfplugin5/tfplugin5.pb.go:3305 +0x214
google.golang.org/grpc.(*Server).processUnaryRPC(0xc00123a380, 0x4739ac0, 0xc0005c3380, 0xc0000d6200, 0xc001511aa0, 0x62732e0, 0x0, 0x0, 0x0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-oci/vendor/google.golang.org/grpc/server.go:1194 +0x522
google.golang.org/grpc.(*Server).handleStream(0xc00123a380, 0x4739ac0, 0xc0005c3380, 0xc0000d6200, 0x0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-oci/vendor/google.golang.org/grpc/server.go:1517 +0xd05
google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc0000722f0, 0xc00123a380, 0x4739ac0, 0xc0005c3380, 0xc0000d6200)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-oci/vendor/google.golang.org/grpc/server.go:859 +0xa5
created by google.golang.org/grpc.(*Server).serveStreams.func1
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-oci/vendor/google.golang.org/grpc/server.go:857 +0x1fd
Error: The terraform-provider-oci_v4.50.0_x4 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.
We also just bumped into this with v4.51.0_x4
:
Error: Plugin did not respond12:26:53 β12:26:53 β... in resource "oci_logging_log" "these":
12:26:53 β 10: resource "oci_logging_log" "these" {12:26:53 β12:26:53 β The plugin encountered an error, and failed to respond to the
12:26:53 β plugin.(*GRPCProvider).ApplyResourceChange call. The plugin logs may
12:26:53 β contain more details.
12:26:53 β΅12:26:53 12:26:53 Stack trace from the terraform-provider-oci_v4.51.0_x4 plugin:
12:26:53 12:26:53 panic: runtime error: invalid memory address or nil pointer dereference
12:26:53 [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x3157c46]
12:26:53 12:26:53 goroutine 674 [running]:
12:26:53 github.com/terraform-providers/terraform-provider-oci/oci.(*LoggingLogResourceCrud).ID(0xc00200a090, 0x4052380, 0xc00200a090)
12:26:53 /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-oci/oci/logging_log_resource.go:207 +0x26
12:26:53 github.com/terraform-providers/terraform-provider-oci/oci.getResourceOCID(...)
12:26:53 /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-oci/oci/errors.go:191
12:26:53 github.com/terraform-providers/terraform-provider-oci/oci.newCustomError(0x4052380, 0xc00200a090, 0x473f3c0, 0xc00186eb00, 0x0, 0x40d800)
12:26:53 /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-oci/oci/errors.go:76 +0x7b2
12:26:53 github.com/terraform-providers/terraform-provider-oci/oci.handleError(...)
12:26:53 /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-oci/oci/errors.go:150
12:26:53 github.com/terraform-providers/terraform-provider-oci/oci.CreateResource(0xc001e071f0, 0x47ff1a0, 0xc00200a090, 0x0, 0x0)
12:26:53 /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-oci/oci/crud_helpers.go:341 +0xe9
12:26:53 github.com/terraform-providers/terraform-provider-oci/oci.createLoggingLog(0xc001e071f0, 0x41ea500, 0xc001da8160, 0x2, 0x63ebc40)
12:26:53 /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-oci/oci/logging_log_resource.go:171 +0xee
12:26:53 github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Resource).Apply(0xc000f32f00, 0xc001ef9040, 0xc001a5ac40, 0x41ea500, 0xc001da8160, 0x39ea201, 0xc001f9ea98, 0xc001fd90b0)
12:26:53 /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-oci/vendor/github.com/hashicorp/terraform-plugin-sdk/helper/schema/resource.go:320 +0x375
12:26:53 github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Provider).Apply(0xc000364380, 0xc002349a38, 0xc001ef9040, 0xc001a5ac40, 0xc001fcf948, 0xc001fc63c0, 0x3a3cd20)
12:26:53 /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-oci/vendor/github.com/hashicorp/terraform-plugin-sdk/helper/schema/provider.go:294 +0x99
12:26:53 github.com/hashicorp/terraform-plugin-sdk/internal/helper/plugin.(*GRPCProviderServer).ApplyResourceChange(0xc00000f420, 0x47fa560, 0xc001fbe9f0, 0xc001e06d20, 0xc00000f420, 0xc001fbe9f0, 0xc00202dba0)
12:26:53 /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-oci/vendor/github.com/hashicorp/terraform-plugin-sdk/internal/helper/plugin/grpc_provider.go:895 +0x8ab
12:26:53 github.com/hashicorp/terraform-plugin-sdk/internal/tfplugin5._Provider_ApplyResourceChange_Handler(0x406b840, 0xc00000f420, 0x47fa560, 0xc001fbe9f0, 0xc001d95140, 0x0, 0x47fa560, 0xc001fbe9f0, 0xc001fe4000, 0x535)
12:26:53 /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-oci/vendor/github.com/hashicorp/terraform-plugin-sdk/internal/tfplugin5/tfplugin5.pb.go:3305 +0x214
12:26:53 google.golang.org/grpc.(*Server).processUnaryRPC(0xc001232380, 0x480f020, 0xc000001680, 0xc0023bf100, 0xc000acba70, 0x63a1600, 0x0, 0x0, 0x0)
12:26:53 /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-oci/vendor/google.golang.org/grpc/server.go:1194 +0x522
12:26:53 google.golang.org/grpc.(*Server).handleStream(0xc001232380, 0x480f020, 0xc000001680, 0xc0023bf100, 0x0)
12:26:53 /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-oci/vendor/google.golang.org/grpc/server.go:1517 +0xd05
12:26:53 google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc000558610, 0xc001232380, 0x480f020, 0xc000001680, 0xc0023bf100)
12:26:53 /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-oci/vendor/google.golang.org/grpc/server.go:859 +0xa5
12:26:53 created by google.golang.org/grpc.(*Server).serveStreams.func1
12:26:53 /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-oci/vendor/google.golang.org/grpc/server.go:857 +0x1fd
12:26:53 12:26:53 Error: The terraform-provider-oci_v4.51.0_x4 plugin crashed!
12:26:53 12:26:53 This is always indicative of a bug within the plugin. It would be immensely
12:26:53 helpful if you could report the crash with the plugin's maintainers so that it
12:26:53 can be fixed. The output above should help diagnose the issue.
12:26:53
We are very sorry that we couldn't respond to each and every issue reported on GitHub. Although we have refined the process to prioritize customer issues on GitHub, since this issue was reported a while ago, there is a good chance it may have been fixed in the latest version of Terraform Provider OCI. If you are still experiencing this issue, please create a new issue and label it as Bug.
Community Note
Terraform Version and Provider Version
Terraform v1.0.9 on linux_amd64
Affected Resource(s)
oci_logging_unified_agent_configuration
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
log, log group and agent configuration should be created
Actual Behavior
on initial run, returned:
then deleted agent configuration on second run
Steps to Reproduce
terraform apply
Important Factoids
References