Skip to content

Instantly share code, notes, and snippets.

@spanktar
Created October 27, 2016 20:23
Show Gist options
  • Save spanktar/c848aa43cff7f046e18449e723cd505d to your computer and use it in GitHub Desktop.
Save spanktar/c848aa43cff7f046e18449e723cd505d to your computer and use it in GitHub Desktop.
panic:Error applying plan:
runtime error: invalid memory address or nil pointer dereference
2016/10/27 12:22:17 [DEBUG] plugin: terraform: [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x3ed9c0]
2016/10/27 12:22:17 [DEBUG] plugin: terraform:
2016/10/27 12:22:17 [DEBUG] plugin: terraform: goroutine 2404 [running]:
2016/10/27 12:22:17 [DEBUG] plugin: terraform: panic(0x24c3860, 0xc4200100c0)
2016/10/27 12:22:17 [DEBUG] plugin: terraform: /opt/go/src/runtime/panic.go:500 +0x1a1
2016/10/27 12:22:17 [DEBUG] plugin: terraform: github.com/hashicorp/terraform/builtin/providers/aws.resourceAwsElasticacheReplicationGroupRead(0xc42031efc0, 0x2220fc0, 0xc42045e180, 0x0, 0x0)
2016/10/27 12:22:17 [DEBUG] plugin: terraform: /opt/gopath/src/github.com/hashicorp/terraform/builtin/providers/aws/resource_aws_elasticache_replication_group.go:241 +0x860
2016/10/27 12:22:17 [DEBUG] plugin: terraform: github.com/hashicorp/terraform/builtin/providers/aws.resourceAwsElasticacheReplicationGroupCreate(0xc42031efc0, 0x2220fc0, 0xc42045e180, 0xc4206df660, 0x15df1)
2016/10/27 12:22:17 [DEBUG] plugin: terraform: /opt/gopath/src/github.com/hashicorp/terraform/builtin/providers/aws/resource_aws_elasticache_replication_group.go:159 +0xf3f
2016/10/27 12:22:17 [DEBUG] plugin: terraform: github.com/hashicorp/terraform/helper/schema.(*Resource).Apply(0xc420a1fe00, 0xc42070b2c0, 0xc4206a8080, 0x2220fc0, 0xc42045e180, 0x1, 0xc4206b6cf0, 0x18)
2016/10/27 12:22:17 [DEBUG] plugin: terraform: /opt/gopath/src/github.com/hashicorp/terraform/helper/schema/resource.go:162 +0x30e
2016/10/27 12:22:17 [DEBUG] plugin: terraform: github.com/hashicorp/terraform/helper/schema.(*Provider).Apply(0xc420537b90, 0xc420373880, 0xc42070b2c0, 0xc4206a8080, 0x0, 0x9f4da7, 0xc420128620)
2016/10/27 12:22:17 [DEBUG] plugin: terraform: /opt/gopath/src/github.com/hashicorp/terraform/helper/schema/provider.go:178 +0x9b
2016/10/27 12:22:17 [DEBUG] plugin: terraform: github.com/hashicorp/terraform/plugin.(*ResourceProviderServer).Apply(0xc420682980, 0xc4206c5fc0, 0xc4206df9b0, 0x0, 0x0)
2016/10/27 12:22:17 [DEBUG] plugin: terraform: /opt/gopath/src/github.com/hashicorp/terraform/plugin/resource_provider.go:460 +0x57
2016/10/27 12:22:17 [DEBUG] plugin: terraform: reflect.Value.call(0xc42045a3c0, 0xc4201c5318, 0x13, 0x2a8503f, 0x4, 0xc4203afed0, 0x3, 0x3, 0x22fb6e0, 0xc42082c900, ...)
2016/10/27 12:22:17 [DEBUG] plugin: terraform: /opt/go/src/reflect/value.go:434 +0x5c8
2016/10/27 12:22:17 [DEBUG] plugin: terraform: reflect.Value.Call(0xc42045a3c0, 0xc4201c5318, 0x13, 0xc4203afed0, 0x3, 0x3, 0xc4205bf194, 0x100000000, 0xc42058e701)
2016/10/27 12:22:17 [DEBUG] plugin: terraform: /opt/go/src/reflect/value.go:302 +0xa4
2016/10/27 12:22:17 [DEBUG] plugin: terraform: net/rpc.(*service).call(0xc420726a40, 0xc420726a00, 0xc4202175d0, 0xc42020ca80, 0xc42072f460, 0x2222e80, 0xc4206c5fc0, 0x16, 0x2222ec0, 0xc4206df9b0, ...)
2016/10/27 12:22:17 [DEBUG] plugin: terraform: /opt/go/src/net/rpc/server.go:383 +0x148
2016/10/27 12:22:17 [DEBUG] plugin: terraform: created by net/rpc.(*Server).ServeCodec
2016/10/27 12:22:17 [DEBUG] plugin: terraform: /opt/go/src/net/rpc/server.go:477 +0x421
2016/10/27 12:22:17 [DEBUG] root: eval: *terraform.EvalWriteState
2016/10/27 12:22:17 [DEBUG] root: eval: *terraform.EvalApplyProvisioners
2016/10/27 12:22:17 [DEBUG] root: eval: *terraform.EvalIf
2016/10/27 12:22:17 [DEBUG] root: eval: *terraform.EvalWriteState
2016/10/27 12:22:17 [DEBUG] root: eval: *terraform.EvalWriteDiff
2016/10/27 12:22:17 [DEBUG] root: eval: *terraform.EvalApplyPost
2016/10/27 12:22:17 [ERROR] root: eval: *terraform.EvalApplyPost, err: 1 error(s) occurred:
* aws_elasticache_replication_group.redis: unexpected EOF
2016/10/27 12:22:17 [ERROR] root: eval: *terraform.EvalSequence, err: 1 error(s) occurred:
* aws_elasticache_replication_group.redis: unexpected EOF
2016/10/27 12:22:17 [ERROR] root: eval: *terraform.EvalOpFilter, err: 1 error(s) occurred:
* aws_elasticache_replication_group.redis: unexpected EOF
2016/10/27 12:22:17 [ERROR] root: eval: *terraform.EvalSequence, err: 1 error(s) occurred:
* aws_elasticache_replication_group.redis: unexpected EOF
2016/10/27 12:22:17 [TRACE] [walkApply] Exiting eval tree: aws_elasticache_replication_group.redis
2016/10/27 12:22:17 [DEBUG] vertex provider.aws (close), got dep: aws_elasticache_replication_group.redis
2016/10/27 12:22:17 [DEBUG] vertex root, got dep: provider.aws (close)
2016/10/27 12:22:17 [DEBUG] vertex root, got dep: output.AWS INFO
2016/10/27 12:22:17 [DEBUG] vertex root, got dep: var.dockerhub_buildbot_access_token
2016/10/27 12:22:17 [DEBUG] vertex root, got dep: var.elasticsearch_b
2016/10/27 12:22:17 [DEBUG] vertex root, got dep: var.consul_encrypt_key
2016/10/27 12:22:17 [DEBUG] vertex root, got dep: var.logging_c
2016/10/27 12:22:17 [DEBUG] vertex root, got dep: output.Git hash
2016/10/27 12:22:17 [DEBUG] vertex root, got dep: output.VPC ID
2016/10/27 12:22:17 [DEBUG] vertex root, got dep: output.Bastion SSH
2016/10/27 12:22:17 [DEBUG] plugin: /usr/local/Caskroom/terraform-0.7.7/0.7.7/terraform: plugin process exited
2016/10/27 12:22:17 [TRACE] Preserving existing state lineage "0a84dfc7-f3c3-4ee1-9da3-05f81280693c"
2016/10/27 12:22:17 [TRACE] Preserving existing state lineage "0a84dfc7-f3c3-4ee1-9da3-05f81280693c"
2016/10/27 12:22:17 [DEBUG] Uploading remote state to S3: {
Body: buffer(0xc4209fef90),
Bucket: "tfstate-devops",
ContentLength: 187628,
ContentType: "application/json",
Key: "us-west-2/devops/terraform.tfstate"
}
2016/10/27 12:22:17 [DEBUG] plugin: waiting for all plugin processes to complete...
1 error(s) occurred:
* aws_elasticache_replication_group.redis: unexpected EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment