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

plan crahes updating aws_db_parameter_group #4294

Closed
j4ybee opened this issue Dec 13, 2015 · 49 comments
Closed

plan crahes updating aws_db_parameter_group #4294

j4ybee opened this issue Dec 13, 2015 · 49 comments

Comments

@j4ybee
Copy link

j4ybee commented Dec 13, 2015

There is a crash in AWS provider's aws_db_parameter_group. I did not change anything in my tf file so maybe there is a change in the underlying AWS API. I use release is 0.6.8.

terraform plan --target=aws_db_parameter_group.default
Refreshing Terraform state prior to plan...

aws_db_parameter_group.default: Refreshing state... (ID: rds-pg)
Error refreshing state: 1 error(s) occurred:

* aws_db_parameter_group.default: unexpected EOF
panic: runtime error: invalid memory address or nil pointer dereference
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: [signal 0xb code=0x1 addr=0x0 pc=0x1cd6fc]
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: 
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: goroutine 22 [running]:
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/builtin/providers/aws.flattenParameters(0x82193a068, 0x1, 0x1, 0x0, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/gopath/src/github.com/hashicorp/terraform/builtin/providers/aws/structure.go:404 +0x11c
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/builtin/providers/aws.resourceAwsDbParameterGroupRead(0x8217f0480, 0x8b2240, 0x821b50000, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/gopath/src/github.com/hashicorp/terraform/builtin/providers/aws/resource_aws_db_parameter_group.go:137 +0x687
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/helper/schema.(*Resource).Refresh(0x82196dd80, 0x8219f3500, 0x8b2240, 0x821b50000, 0x821b36978, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/gopath/src/github.com/hashicorp/terraform/helper/schema/resource.go:209 +0x430
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/helper/schema.(*Provider).Refresh(0x821b01650, 0x821a9db40, 0x8219f3500, 0x1, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/gopath/src/github.com/hashicorp/terraform/helper/schema/provider.go:187 +0x1da
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/rpc.(*ResourceProviderServer).Refresh(0x82195ef20, 0x821ca6f50, 0x821ca7490, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/gopath/src/github.com/hashicorp/terraform/rpc/resource_provider.go:345 +0x6a
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: reflect.Value.call(0xaed340, 0xcf4000, 0x13, 0xd84a20, 0x4, 0x8219cbed8, 0x3, 0x3, 0x0, 0x0, ...)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/reflect/value.go:432 +0x120a
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: reflect.Value.Call(0xaed340, 0xcf4000, 0x13, 0x8219cbed8, 0x3, 0x3, 0x0, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/reflect/value.go:300 +0xb1
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net/rpc.(*service).call(0x821aebf80, 0x821aebf40, 0x821b22190, 0x821958580, 0x82195f860, 0x8b3680, 0x821ca6f50, 0x16, 0x8b36e0, 0x821ca7490, ...)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/rpc/server.go:383 +0x1c1
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: created by net/rpc.(*Server).ServeCodec
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/rpc/server.go:477 +0x4ac
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: 
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: goroutine 1 [IO wait]:
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net.runtime_pollWait(0x88219cb068, 0x72, 0x8217e21e0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/runtime/netpoll.go:157 +0x60
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net.(*pollDesc).Wait(0x821944060, 0x72, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/fd_poll_runtime.go:73 +0x3a
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net.(*pollDesc).WaitRead(0x821944060, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/fd_poll_runtime.go:78 +0x36
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net.(*netFD).accept(0x821944000, 0x0, 0x88219cb128, 0x82195e040)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/fd_unix.go:408 +0x27c
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net.(*UnixListener).AcceptUnix(0x82193c280, 0x8218d7cc0, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/unixsock_posix.go:304 +0x53
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net.(*UnixListener).Accept(0x82193c280, 0x0, 0x0, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/unixsock_posix.go:314 +0x41
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/rpc.(*Server).Accept(0x8219382b0, 0x88219ca0c0, 0x82193c280)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/gopath/src/github.com/hashicorp/terraform/rpc/server.go:33 +0x34
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/plugin.Serve(0x821dbff08)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/gopath/src/github.com/hashicorp/terraform/plugin/server.go:88 +0x7cc
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: main.main()
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/gopath/src/github.com/hashicorp/terraform/builtin/bins/provider-aws/main.go:11 +0x40
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: 
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: goroutine 17 [syscall]:
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: os/signal.loop()
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/os/signal/signal_unix.go:22 +0x18
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: created by os/signal.init.1
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/os/signal/signal_unix.go:28 +0x37
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: 
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: goroutine 18 [select, locked to thread]:
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: runtime.gopark(0x1028948, 0x8217fc728, 0xd8c6e0, 0x6, 0x18, 0x2)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/runtime/proc.go:185 +0x163
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: runtime.selectgoImpl(0x8217fc728, 0x0, 0x18)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/runtime/select.go:392 +0xa64
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: runtime.selectgo(0x8217fc728)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/runtime/select.go:212 +0x12
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: runtime.ensureSigM.func1()
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/runtime/signal1_unix.go:227 +0x323
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: runtime.goexit()
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/runtime/asm_amd64.s:1696 +0x1
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: 
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: goroutine 19 [chan receive]:
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/plugin.Serve.func1(0x8219460c0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/gopath/src/github.com/hashicorp/terraform/plugin/server.go:79 +0x66
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: created by github.com/hashicorp/terraform/plugin.Serve
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/gopath/src/github.com/hashicorp/terraform/plugin/server.go:85 +0x7aa
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: 
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: goroutine 33 [select]:
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: github.com/hashicorp/yamux.(*Stream).Read(0x8219164e0, 0x821995000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/gopath/src/github.com/hashicorp/yamux/stream.go:125 +0x3f0
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: bufio.(*Reader).fill(0x8217f0ae0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/bufio/bufio.go:97 +0x1e9
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: bufio.(*Reader).Read(0x8217f0ae0, 0x8218aca00, 0x1, 0x9, 0x0, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/bufio/bufio.go:207 +0x260
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: io.ReadAtLeast(0x882198ec58, 0x8217f0ae0, 0x8218aca00, 0x1, 0x9, 0x1, 0x0, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/io/io.go:298 +0xe6
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: io.ReadFull(0x882198ec58, 0x8217f0ae0, 0x8218aca00, 0x1, 0x9, 0x0, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/io/io.go:316 +0x62
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: encoding/gob.decodeUintReader(0x882198ec58, 0x8217f0ae0, 0x8218aca00, 0x9, 0x9, 0x0, 0x1, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/encoding/gob/decode.go:121 +0x92
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: encoding/gob.(*Decoder).recvMessage(0x82185e480, 0x82189f860)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/encoding/gob/decoder.go:76 +0x5e
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: encoding/gob.(*Decoder).decodeTypeSequence(0x82185e480, 0x1028900, 0x82185e480)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/encoding/gob/decoder.go:140 +0x47
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: encoding/gob.(*Decoder).DecodeValue(0x82185e480, 0x8ba220, 0x8218b07a0, 0x16, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/encoding/gob/decoder.go:208 +0x15d
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: encoding/gob.(*Decoder).Decode(0x82185e480, 0x8ba220, 0x8218b07a0, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/encoding/gob/decoder.go:185 +0x289
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net/rpc.(*gobServerCodec).ReadRequestHeader(0x8218b69c0, 0x8218b07a0, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/rpc/server.go:403 +0x51
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net/rpc.(*Server).readRequestHeader(0x8218b2540, 0x882198ee58, 0x8218b69c0, 0x0, 0x0, 0x8218b07a0, 0x82189fb00, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/rpc/server.go:576 +0x90
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net/rpc.(*Server).readRequest(0x8218b2540, 0x882198ee58, 0x8218b69c0, 0x8218b2540, 0x8218aca20, 0x82185e380, 0x0, 0x0, 0x0, 0x0, ...)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/rpc/server.go:543 +0x8b
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net/rpc.(*Server).ServeCodec(0x8218b2540, 0x882198ee58, 0x8218b69c0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/rpc/server.go:462 +0x8c
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net/rpc.(*Server).ServeConn(0x8218b2540, 0x882198ed80, 0x8219164e0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/rpc/server.go:454 +0x4ee
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/rpc.(*Server).ServeConn(0x8219382b0, 0x8821a0a060, 0x821960000)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/gopath/src/github.com/hashicorp/terraform/rpc/server.go:76 +0x528
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: created by github.com/hashicorp/terraform/rpc.(*Server).Accept
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/gopath/src/github.com/hashicorp/terraform/rpc/server.go:39 +0x180
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: 
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: goroutine 34 [IO wait]:
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net.runtime_pollWait(0x88219cafa8, 0x72, 0x8217e21e0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/runtime/netpoll.go:157 +0x60
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net.(*pollDesc).Wait(0x82195a060, 0x72, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/fd_poll_runtime.go:73 +0x3a
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net.(*pollDesc).WaitRead(0x82195a060, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/fd_poll_runtime.go:78 +0x36
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net.(*netFD).Read(0x82195a000, 0x821970000, 0x1000, 0x1000, 0x0, 0x882198a050, 0x8217e21e0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/fd_unix.go:232 +0x23a
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net.(*conn).Read(0x821960000, 0x821970000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/net.go:172 +0xe4
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: bufio.(*Reader).fill(0x82196e000)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/bufio/bufio.go:97 +0x1e9
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: bufio.(*Reader).Read(0x82196e000, 0x8218ac980, 0xc, 0xc, 0x8218ac982, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/bufio/bufio.go:207 +0x260
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: io.ReadAtLeast(0x882198ec58, 0x82196e000, 0x8218ac980, 0xc, 0xc, 0xc, 0x0, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/io/io.go:298 +0xe6
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: io.ReadFull(0x882198ec58, 0x82196e000, 0x8218ac980, 0xc, 0xc, 0xc, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/io/io.go:316 +0x62
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: github.com/hashicorp/yamux.(*Session).recvLoop(0x82197a000, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/gopath/src/github.com/hashicorp/yamux/session.go:408 +0x11e
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: github.com/hashicorp/yamux.(*Session).recv(0x82197a000)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/gopath/src/github.com/hashicorp/yamux/session.go:396 +0x21
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: created by github.com/hashicorp/yamux.newSession
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/gopath/src/github.com/hashicorp/yamux/session.go:104 +0x4b1
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: 
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: goroutine 35 [select]:
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: github.com/hashicorp/yamux.(*Session).send(0x82197a000)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/gopath/src/github.com/hashicorp/yamux/session.go:358 +0x5e1
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: created by github.com/hashicorp/yamux.newSession
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/gopath/src/github.com/hashicorp/yamux/session.go:105 +0x4d3
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: 
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: goroutine 36 [select]:
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: github.com/hashicorp/yamux.(*Session).keepalive(0x82197a000)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/gopath/src/github.com/hashicorp/yamux/session.go:292 +0x240
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: created by github.com/hashicorp/yamux.newSession
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/gopath/src/github.com/hashicorp/yamux/session.go:107 +0x506
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: 
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: goroutine 6 [select]:
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: github.com/hashicorp/yamux.(*Session).AcceptStream(0x82197a000, 0x10280a0, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/gopath/src/github.com/hashicorp/yamux/session.go:191 +0x19d
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/rpc.(*muxBroker).Run(0x8218b0200)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/gopath/src/github.com/hashicorp/terraform/rpc/mux_broker.go:107 +0x34
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: created by github.com/hashicorp/terraform/rpc.(*Server).ServeConn
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/gopath/src/github.com/hashicorp/terraform/rpc/server.go:65 +0x38f
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: 
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: goroutine 11 [select]:
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net/http.(*persistConn).writeLoop(0x82197a370)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/http/transport.go:1009 +0x40c
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: created by net/http.(*Transport).dialConn
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/http/transport.go:686 +0xc9d
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: 
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: goroutine 44 [select]:
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: github.com/hashicorp/yamux.(*Stream).Read(0x821a22d00, 0x821b3d000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/gopath/src/github.com/hashicorp/yamux/stream.go:125 +0x3f0
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: bufio.(*Reader).fill(0x82196f4a0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/bufio/bufio.go:97 +0x1e9
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: bufio.(*Reader).Read(0x82196f4a0, 0x821b22170, 0x1, 0x9, 0x0, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/bufio/bufio.go:207 +0x260
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: io.ReadAtLeast(0x882198ec58, 0x82196f4a0, 0x821b22170, 0x1, 0x9, 0x1, 0x0, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/io/io.go:298 +0xe6
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: io.ReadFull(0x882198ec58, 0x82196f4a0, 0x821b22170, 0x1, 0x9, 0x82196c180, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/io/io.go:316 +0x62
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: encoding/gob.decodeUintReader(0x882198ec58, 0x82196f4a0, 0x821b22170, 0x9, 0x9, 0x0, 0x1, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/encoding/gob/decode.go:121 +0x92
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: encoding/gob.(*Decoder).recvMessage(0x821958780, 0x821b49800)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/encoding/gob/decoder.go:76 +0x5e
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: encoding/gob.(*Decoder).decodeTypeSequence(0x821958780, 0x1028900, 0x821958780)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/encoding/gob/decoder.go:140 +0x47
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: encoding/gob.(*Decoder).DecodeValue(0x821958780, 0x8ba220, 0x82195ef40, 0x16, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/encoding/gob/decoder.go:208 +0x15d
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: encoding/gob.(*Decoder).Decode(0x821958780, 0x8ba220, 0x82195ef40, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/encoding/gob/decoder.go:185 +0x289
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net/rpc.(*gobServerCodec).ReadRequestHeader(0x821b01800, 0x82195ef40, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/rpc/server.go:403 +0x51
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net/rpc.(*Server).readRequestHeader(0x821aebf40, 0x882198ee58, 0x821b01800, 0x0, 0x0, 0x82195ef40, 0x821b49b00, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/rpc/server.go:576 +0x90
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net/rpc.(*Server).readRequest(0x821aebf40, 0x882198ee58, 0x821b01800, 0x821aebf40, 0x821b22190, 0x821958580, 0x0, 0x0, 0x0, 0x0, ...)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/rpc/server.go:543 +0x8b
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net/rpc.(*Server).ServeCodec(0x821aebf40, 0x882198ee58, 0x821b01800)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/rpc/server.go:462 +0x8c
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net/rpc.(*Server).ServeConn(0x821aebf40, 0x882198ed80, 0x821a22d00)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/rpc/server.go:454 +0x4ee
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/rpc.serve(0x882198ed80, 0x821a22d00, 0xe52bc0, 0x10, 0xcf3ea0, 0x82195ef20)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/gopath/src/github.com/hashicorp/terraform/rpc/server.go:146 +0x1f8
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/rpc.(*dispenseServer).ResourceProvider.func1(0x8218b0220, 0x3)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/gopath/src/github.com/hashicorp/terraform/rpc/server.go:102 +0x24a
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: created by github.com/hashicorp/terraform/rpc.(*dispenseServer).ResourceProvider
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/gopath/src/github.com/hashicorp/terraform/rpc/server.go:103 +0x62
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: 
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: goroutine 10 [IO wait]:
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net.runtime_pollWait(0x88219caee8, 0x72, 0x8217e21e0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/runtime/netpoll.go:157 +0x60
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net.(*pollDesc).Wait(0x821b6e0d0, 0x72, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/fd_poll_runtime.go:73 +0x3a
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net.(*pollDesc).WaitRead(0x821b6e0d0, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/fd_poll_runtime.go:78 +0x36
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net.(*netFD).Read(0x821b6e070, 0x8219e8000, 0x400, 0x400, 0x0, 0x882198a050, 0x8217e21e0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/fd_unix.go:232 +0x23a
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net.(*conn).Read(0x821b70008, 0x8219e8000, 0x400, 0x400, 0x0, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/net.go:172 +0xe4
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: crypto/tls.(*block).readFromUntil(0x821a6d290, 0x8821a4a128, 0x821b70008, 0x5, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/crypto/tls/conn.go:455 +0xcc
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: crypto/tls.(*Conn).readRecord(0x821b7e000, 0x1028917, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/crypto/tls/conn.go:540 +0x2d1
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: crypto/tls.(*Conn).Read(0x821b7e000, 0x821971000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/crypto/tls/conn.go:901 +0x167
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net/http.noteEOFReader.Read(0x8821990c58, 0x821b7e000, 0x82197a3c8, 0x821971000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/http/transport.go:1370 +0x67
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net/http.(*noteEOFReader).Read(0x821a801c0, 0x821971000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     <autogenerated>:126 +0xd0
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: bufio.(*Reader).fill(0x821b63a40)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/bufio/bufio.go:97 +0x1e9
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: bufio.(*Reader).Peek(0x821b63a40, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/bufio/bufio.go:132 +0xcc
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net/http.(*persistConn).readLoop(0x82197a370)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/http/transport.go:876 +0xf7
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: created by net/http.(*Transport).dialConn
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/http/transport.go:685 +0xc78
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: 
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: goroutine 52 [IO wait]:
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net.runtime_pollWait(0x88219cae28, 0x72, 0x8217e21e0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/runtime/netpoll.go:157 +0x60
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net.(*pollDesc).Wait(0x8218b40d0, 0x72, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/fd_poll_runtime.go:73 +0x3a
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net.(*pollDesc).WaitRead(0x8218b40d0, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/fd_poll_runtime.go:78 +0x36
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net.(*netFD).Read(0x8218b4070, 0x8219bf000, 0x1000, 0x1000, 0x0, 0x882198a050, 0x8217e21e0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/fd_unix.go:232 +0x23a
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net.(*conn).Read(0x821960010, 0x8219bf000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/net.go:172 +0xe4
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: crypto/tls.(*block).readFromUntil(0x821a02d20, 0x8821a4a128, 0x821960010, 0x5, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/crypto/tls/conn.go:455 +0xcc
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: crypto/tls.(*Conn).readRecord(0x8217e4580, 0x1028917, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/crypto/tls/conn.go:540 +0x2d1
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: crypto/tls.(*Conn).Read(0x8217e4580, 0x821a1b000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/crypto/tls/conn.go:901 +0x167
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net/http.noteEOFReader.Read(0x8821990c58, 0x8217e4580, 0x8219f41b8, 0x821a1b000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/http/transport.go:1370 +0x67
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net/http.(*noteEOFReader).Read(0x8219b10a0, 0x821a1b000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     <autogenerated>:126 +0xd0
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: bufio.(*Reader).fill(0x821946ea0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/bufio/bufio.go:97 +0x1e9
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: bufio.(*Reader).Peek(0x821946ea0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/bufio/bufio.go:132 +0xcc
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net/http.(*persistConn).readLoop(0x8219f4160)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/http/transport.go:876 +0xf7
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: created by net/http.(*Transport).dialConn
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/http/transport.go:685 +0xc78
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: 
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: goroutine 53 [select]:
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: net/http.(*persistConn).writeLoop(0x8219f4160)
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/http/transport.go:1009 +0x40c
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws: created by net/http.(*Transport).dialConn
2015/12/13 17:49:36 [DEBUG] terraform-provider-aws:     /opt/go/src/net/http/transport.go:686 +0xc9d
2015/12/13 17:49:36 [ERROR] root: eval: *terraform.EvalRefresh, err: aws_db_parameter_group.default: unexpected EOF
2015/12/13 17:49:36 [ERROR] root: eval: *terraform.EvalSequence, err: aws_db_parameter_group.default: unexpected EOF
2015/12/13 17:49:36 [ERROR] root: eval: *terraform.EvalOpFilter, err: aws_db_parameter_group.default: unexpected EOF
2015/12/13 17:49:36 [ERROR] root: eval: *terraform.EvalSequence, err: aws_db_parameter_group.default: unexpected EOF
2015/12/13 17:49:36 [INFO] Exiting eval tree: aws_db_parameter_group.default
2015/12/13 17:49:36 [DEBUG] vertex provider.aws (close), got dep: aws_db_parameter_group.default
2015/12/13 17:49:36 [DEBUG] vertex root, got dep: provider.aws (close)
2015/12/13 17:49:36 [DEBUG] vertex root, got dep: var.subnet_ids_priv
2015/12/13 17:49:36 [DEBUG] vertex root, got dep: var.foo-certchain
2015/12/13 17:49:36 [DEBUG] vertex root, got dep: var.subnet_id_priv_1a
2015/12/13 17:49:36 [DEBUG] vertex root, got dep: var.num_lp_nodes
2015/12/13 17:49:36 [DEBUG] vertex root, got dep: var.subnet_id_pub_1b
2015/12/13 17:49:36 [DEBUG] vertex root, got dep: var.num_kp_nodes
2015/12/13 17:49:36 [DEBUG] vertex root, got dep: var.lp_as
2015/12/13 17:49:36 [DEBUG] vertex root, got dep: var.frontend
2015/12/13 17:49:36 [DEBUG] vertex root, got dep: var.key_name
2015/12/13 17:49:36 [DEBUG] vertex root, got dep: var.route53_zone_id
2015/12/13 17:49:36 [DEBUG] vertex root, got dep: var.vpc-id
2015/12/13 17:49:36 [DEBUG] vertex root, got dep: provisioner.chef
2015/12/13 17:49:36 [DEBUG] vertex root, got dep: var.num_fe_nodes
2015/12/13 17:49:36 [DEBUG] vertex root, got dep: var.subnet_ids_pub
2015/12/13 17:49:36 [DEBUG] vertex root, got dep: var.kp_as
2015/12/13 17:49:36 [DEBUG] vertex root, got dep: var.subnet_id_pub_1a
2015/12/13 17:49:36 [DEBUG] vertex root, got dep: var.db_password
2015/12/13 17:49:36 [DEBUG] vertex root, got dep: var.foo-key
2015/12/13 17:49:36 [DEBUG] vertex root, got dep: output.bastion_host
2015/12/13 17:49:36 [DEBUG] vertex root, got dep: var.subnet_id_priv_1b
2015/12/13 17:49:36 [DEBUG] /Users/jens/Development/terraform_0.6.8/terraform-provider-aws: plugin process exited
2015/12/13 17:49:36 [DEBUG] waiting for all plugin processes to complete...
2015/12/13 17:49:36 [DEBUG] /Users/jens/Development/terraform_0.6.8/terraform-provisioner-chef: plugin process exited
@stack72
Copy link
Contributor

stack72 commented Dec 13, 2015

@j4ybee is this the first time this has happened? Have you recently upgraded?

@apparentlymart
Copy link
Contributor

Based on where the crash occurred it would appear that the RDS API returned a nil ParameterValue for one of the parameters.

Seems like flattenParameters needs to be more defensive in parsing the parameter list returned from the AWS client library.

@j4ybee
Copy link
Author

j4ybee commented Dec 13, 2015

Yes, this is the first time. I worked on 0.6.6 the past weeks. When the
error occurred I upgraded to 0.6.8 but the problem resides.
Am 13.12.2015 18:25 schrieb "Paul Stack" notifications@github.com:

@j4ybee https://github.com/j4ybee is this the first time this has
happened? Have you recently upgraded?


Reply to this email directly or view it on GitHub
#4294 (comment)
.

@stack72
Copy link
Contributor

stack72 commented Dec 14, 2015

@j4ybee 1 more question, do you have any custom db_parameter_groups or are you using the defaults?

@marcinwalczyk
Copy link

I'm experiencing same issue but with MySQL. Everything worked well last week. I'm using terraform 0.6.8. Here is my RDS definition:

 resource "aws_db_instance" "db-mysql-dev" {
    identifier = "db-mysql-dev"
    alldbted_storage = 40
    engine = "mysql"
    engine_version = "5.6.23"
    instance_class = "db.t2.small"
    name = "db"
    username = "root"
    password = "${var.aws_rds_password}"
    db_subnet_group_name = "db-mysql-dev-subnet"
    parameter_group_name = "db-mysql-dev-parameter-group"
    vpc_security_group_ids =["${var.aws_security_group}", "${aws_security_group.db-mysql-dev-sg.id}"]
    publicly_accessible = false
    multi_az = false
    maintenance_window = "mon:01:00-mon:02:00"                              
    backup_window = "02:00-03:00"
    backup_retention_period = 3
    depends_on = ["aws_db_subnet_group.db-mysql-dev-subnet"]

}

resource "aws_db_subnet_group" "db-mysql-dev-subnet" {
    name = "db-mysql-dev-subnet"
    description = "DB db-mysql-dev-subnet group"
    subnet_ids = ["${var.aws_subnet_1_az_1a}","${var.aws_subnet_2_az_1b}","${var.aws_subnet_3_az_1c}"]
}

resource "aws_db_parameter_group" "db-mysql-dev-parameter-group" {
    name = "db-mysql-dev-parameter-group"
    family = "mysql5.6"
    description = "RDS db-mysql-dev-parameter-group parameter group"
}

@stack72
Copy link
Contributor

stack72 commented Dec 14, 2015

Ah! Thanks @marcinwalczyk. So it looks like empty parameter groups are the issue! Sending a PR now to fix

@j4ybee
Copy link
Author

j4ybee commented Dec 14, 2015

My parameter group is an unchanged copy of the "default.mysql5.5" standard
parameter group from AWS.

On Mon, Dec 14, 2015 at 9:09 AM, Paul Stack notifications@github.com
wrote:

@j4ybee https://github.com/j4ybee 1 more question, do you have any
custom db_parameter_groups or are you using the defaults?


Reply to this email directly or view it on GitHub
#4294 (comment)
.

@stack72
Copy link
Contributor

stack72 commented Dec 14, 2015

so this is very strange, I have a test that covers this in Terraform. The test looks as follows:

func TestAccAWSDBParameterGroupOnly(t *testing.T) {
    var v rds.DBParameterGroup

    resource.Test(t, resource.TestCase{
        PreCheck:     func() { testAccPreCheck(t) },
        Providers:    testAccProviders,
        CheckDestroy: testAccCheckAWSDBParameterGroupDestroy,
        Steps: []resource.TestStep{
            resource.TestStep{
                Config: testAccAWSDBParameterGroupOnlyConfig,
                Check: resource.ComposeTestCheckFunc(
                    testAccCheckAWSDBParameterGroupExists("aws_db_parameter_group.bar", &v),
                    testAccCheckAWSDBParameterGroupAttributes(&v),
                    resource.TestCheckResourceAttr(
                        "aws_db_parameter_group.bar", "name", "parameter-group-test-terraform"),
                    resource.TestCheckResourceAttr(
                        "aws_db_parameter_group.bar", "family", "mysql5.6"),
                    resource.TestCheckResourceAttr(
                        "aws_db_parameter_group.bar", "description", "Test parameter group for terraform"),
                ),
            },
        },
    })
}

When I pass the following config into the test, it passes:

resource "aws_db_parameter_group" "bar" {
    name = "parameter-group-test-terraform"
    family = "mysql5.6"
    description = "Test parameter group for terraform"
}

Test Result:

TF_LOG=1 make testacc TEST=./builtin/providers/aws TESTARGS='-run=AWSDBParameterGroupOnly' 2>~/tf.log
go generate ./...
TF_ACC=1 go test ./builtin/providers/aws -v -run=AWSDBParameterGroupOnly -timeout 90m
=== RUN   TestAccAWSDBParameterGroupOnly
--- PASS: TestAccAWSDBParameterGroupOnly (11.66s)
PASS
ok      github.com/hashicorp/terraform/builtin/providers/aws    11.678s

The only thing I am going to do differently in a PR is to check that there are Parameters in the group before trying to flatten them

@j4ybee
Copy link
Author

j4ybee commented Dec 14, 2015

Sorry, I have to correct myself. @stack72 per definition I am also using an empty parameter group!

resource "aws_db_parameter_group" "default" {
  name = "rds-pg"
  family = "mysql5.5"
  description = "RDS default parameter group"
}

@stack72
Copy link
Contributor

stack72 commented Dec 14, 2015

Thanks @j4ybee and @marcinwalczyk - there is a PR now open that should fix this :)

@marcinwalczyk
Copy link

I've built terraform with your fix and the issue still exists. Just in case I'm including output from my execution. What additional information can I post in order to help with investigation

Refreshing Terraform state prior to plan...

aws_db_parameter_group.oca-mysql-dev-parameter-group: Refreshing state... (ID: oca-mysql-dev-parameter-group)�
Error refreshing state: 1 error(s) occurred:

* aws_db_parameter_group.oca-mysql-dev-parameter-group: unexpected EOF�
panic: runtime error: invalid memory address or nil pointer dereference
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: [signal 0xb code=0x1 addr=0x0 pc=0x1d5bbc]
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: 
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: goroutine 81 [running]:
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/builtin/providers/aws.flattenParameters(0xc82015a080, 0x1, 0x1, 0x0, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /Users/marcinwalczyk/Golang/src/github.com/hashicorp/terraform/builtin/providers/aws/structure.go:404 +0x11c
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/builtin/providers/aws.resourceAwsDbParameterGroupRead(0xc8205a8840, 0x8c9740, 0xc82037e000, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /Users/marcinwalczyk/Golang/src/github.com/hashicorp/terraform/builtin/providers/aws/resource_aws_db_parameter_group.go:147 +0x6a9
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/helper/schema.(*Resource).Refresh(0xc8202dca40, 0xc8201e92c0, 0x8c9740, 0xc82037e000, 0xc82022e038, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /Users/marcinwalczyk/Golang/src/github.com/hashicorp/terraform/helper/schema/resource.go:209 +0x430
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/helper/schema.(*Provider).Refresh(0xc820362600, 0xc820171040, 0xc8201e92c0, 0x1, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /Users/marcinwalczyk/Golang/src/github.com/hashicorp/terraform/helper/schema/provider.go:187 +0x1da
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/rpc.(*ResourceProviderServer).Refresh(0xc8202d8fc0, 0xc8204b4f50, 0xc8204b5430, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /Users/marcinwalczyk/Golang/src/github.com/hashicorp/terraform/rpc/resource_provider.go:345 +0x6a
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: reflect.Value.call(0xb0c640, 0xd19c80, 0x13, 0xdac3c0, 0x4, 0xc820611ed8, 0x3, 0x3, 0x0, 0x0, ...)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/reflect/value.go:432 +0x120a
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: reflect.Value.Call(0xb0c640, 0xd19c80, 0x13, 0xc820611ed8, 0x3, 0x3, 0x0, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/reflect/value.go:300 +0xb1
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net/rpc.(*service).call(0xc820358c40, 0xc820358c00, 0xc8202db8a0, 0xc820233b80, 0xc8202d9900, 0x8cab80, 0xc8204b4f50, 0x16, 0x8cabe0, 0xc8204b5430, ...)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/rpc/server.go:383 +0x1c1
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: created by net/rpc.(*Server).ServeCodec
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/rpc/server.go:477 +0x4ac
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: 
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: goroutine 1 [IO wait]:
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net.runtime_pollWait(0x19e1db0, 0x72, 0xc82000a1f0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/runtime/netpoll.go:157 +0x60
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net.(*pollDesc).Wait(0xc8200ea1b0, 0x72, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/fd_poll_runtime.go:73 +0x3a
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net.(*pollDesc).WaitRead(0xc8200ea1b0, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/fd_poll_runtime.go:78 +0x36
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net.(*netFD).accept(0xc8200ea150, 0x0, 0x19e1e70, 0xc820158040)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/fd_unix.go:408 +0x27c
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net.(*UnixListener).AcceptUnix(0xc8200e4620, 0xc82010bcc0, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/unixsock_posix.go:304 +0x53
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net.(*UnixListener).Accept(0xc8200e4620, 0x0, 0x0, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/unixsock_posix.go:314 +0x41
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/rpc.(*Server).Accept(0xc8200e6c40, 0x19e0e08, 0xc8200e4620)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /Users/marcinwalczyk/Golang/src/github.com/hashicorp/terraform/rpc/server.go:33 +0x34
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/plugin.Serve(0xc820621f08)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /Users/marcinwalczyk/Golang/src/github.com/hashicorp/terraform/plugin/server.go:88 +0x7cc
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: main.main()
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /Users/marcinwalczyk/Golang/src/github.com/hashicorp/terraform/builtin/bins/provider-aws/main.go:11 +0x40
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: 
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: goroutine 6 [syscall]:
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: os/signal.loop()
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/os/signal/signal_unix.go:22 +0x18
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: created by os/signal.init.1
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/os/signal/signal_unix.go:28 +0x37
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: 
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: goroutine 7 [select, locked to thread]:
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: runtime.gopark(0x1059348, 0xc82002e728, 0xdb40b8, 0x6, 0x18, 0x2)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/runtime/proc.go:185 +0x163
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: runtime.selectgoImpl(0xc82002e728, 0x0, 0x18)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/runtime/select.go:392 +0xa64
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: runtime.selectgo(0xc82002e728)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/runtime/select.go:212 +0x12
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: runtime.ensureSigM.func1()
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/runtime/signal1_unix.go:227 +0x323
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: runtime.goexit()
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/runtime/asm_amd64.s:1721 +0x1
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: 
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: goroutine 8 [chan receive]:
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/plugin.Serve.func1(0xc820018960)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /Users/marcinwalczyk/Golang/src/github.com/hashicorp/terraform/plugin/server.go:79 +0x66
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: created by github.com/hashicorp/terraform/plugin.Serve
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /Users/marcinwalczyk/Golang/src/github.com/hashicorp/terraform/plugin/server.go:85 +0x7aa
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: 
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: goroutine 17 [select]:
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: github.com/hashicorp/yamux.(*Stream).Read(0xc8200c09c0, 0xc8201ab000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /Users/marcinwalczyk/Golang/src/github.com/hashicorp/yamux/stream.go:125 +0x3f0
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: bufio.(*Reader).fill(0xc820018cc0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/bufio/bufio.go:97 +0x1e9
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: bufio.(*Reader).Read(0xc820018cc0, 0xc8200e6e20, 0x1, 0x9, 0x0, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/bufio/bufio.go:207 +0x260
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: io.ReadAtLeast(0x19e1e98, 0xc820018cc0, 0xc8200e6e20, 0x1, 0x9, 0x1, 0x0, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/io/io.go:298 +0xe6
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: io.ReadFull(0x19e1e98, 0xc820018cc0, 0xc8200e6e20, 0x1, 0x9, 0x0, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/io/io.go:316 +0x62
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: encoding/gob.decodeUintReader(0x19e1e98, 0xc820018cc0, 0xc8200e6e20, 0x9, 0x9, 0x0, 0x1, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/encoding/gob/decode.go:121 +0x92
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: encoding/gob.(*Decoder).recvMessage(0xc820086700, 0xc8200d3860)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/encoding/gob/decoder.go:76 +0x5e
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: encoding/gob.(*Decoder).decodeTypeSequence(0xc820086700, 0x1059300, 0xc820086700)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/encoding/gob/decoder.go:140 +0x47
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: encoding/gob.(*Decoder).DecodeValue(0xc820086700, 0x8d1600, 0xc8200e4c60, 0x16, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/encoding/gob/decoder.go:208 +0x15d
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: encoding/gob.(*Decoder).Decode(0xc820086700, 0x8d1600, 0xc8200e4c60, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/encoding/gob/decoder.go:185 +0x289
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net/rpc.(*gobServerCodec).ReadRequestHeader(0xc8200e9170, 0xc8200e4c60, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/rpc/server.go:403 +0x51
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net/rpc.(*Server).readRequestHeader(0xc82010c700, 0x19e1ff8, 0xc8200e9170, 0x0, 0x0, 0xc8200e4c60, 0xc8200d3b00, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/rpc/server.go:576 +0x90
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net/rpc.(*Server).readRequest(0xc82010c700, 0x19e1ff8, 0xc8200e9170, 0xc82010c700, 0xc8200e6e40, 0xc820086600, 0x0, 0x0, 0x0, 0x0, ...)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/rpc/server.go:543 +0x8b
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net/rpc.(*Server).ServeCodec(0xc82010c700, 0x19e1ff8, 0xc8200e9170)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/rpc/server.go:462 +0x8c
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net/rpc.(*Server).ServeConn(0xc82010c700, 0x19e1f20, 0xc8200c09c0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/rpc/server.go:454 +0x4ee
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/rpc.(*Server).ServeConn(0xc8200e6c40, 0x1a1c060, 0xc82015a000)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /Users/marcinwalczyk/Golang/src/github.com/hashicorp/terraform/rpc/server.go:76 +0x528
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: created by github.com/hashicorp/terraform/rpc.(*Server).Accept
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /Users/marcinwalczyk/Golang/src/github.com/hashicorp/terraform/rpc/server.go:39 +0x180
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: 
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: goroutine 18 [IO wait]:
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net.runtime_pollWait(0x19e1cf0, 0x72, 0xc82000a1f0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/runtime/netpoll.go:157 +0x60
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net.(*pollDesc).Wait(0xc820154060, 0x72, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/fd_poll_runtime.go:73 +0x3a
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net.(*pollDesc).WaitRead(0xc820154060, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/fd_poll_runtime.go:78 +0x36
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net.(*netFD).Read(0xc820154000, 0xc820174000, 0x1000, 0x1000, 0x0, 0x19dc050, 0xc82000a1f0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/fd_unix.go:232 +0x23a
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net.(*conn).Read(0xc82015a000, 0xc820174000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/net.go:172 +0xe4
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: bufio.(*Reader).fill(0xc820172000)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/bufio/bufio.go:97 +0x1e9
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: bufio.(*Reader).Read(0xc820172000, 0xc8200e6db0, 0xc, 0xc, 0xc8200e6db2, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/bufio/bufio.go:207 +0x260
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: io.ReadAtLeast(0x19e1e98, 0xc820172000, 0xc8200e6db0, 0xc, 0xc, 0xc, 0x0, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/io/io.go:298 +0xe6
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: io.ReadFull(0x19e1e98, 0xc820172000, 0xc8200e6db0, 0xc, 0xc, 0xc, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/io/io.go:316 +0x62
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: github.com/hashicorp/yamux.(*Session).recvLoop(0xc82017e000, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /Users/marcinwalczyk/Golang/src/github.com/hashicorp/yamux/session.go:408 +0x11e
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: github.com/hashicorp/yamux.(*Session).recv(0xc82017e000)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /Users/marcinwalczyk/Golang/src/github.com/hashicorp/yamux/session.go:396 +0x21
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: created by github.com/hashicorp/yamux.newSession
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /Users/marcinwalczyk/Golang/src/github.com/hashicorp/yamux/session.go:104 +0x4b1
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: 
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: goroutine 19 [select]:
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: github.com/hashicorp/yamux.(*Session).send(0xc82017e000)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /Users/marcinwalczyk/Golang/src/github.com/hashicorp/yamux/session.go:358 +0x5e1
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: created by github.com/hashicorp/yamux.newSession
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /Users/marcinwalczyk/Golang/src/github.com/hashicorp/yamux/session.go:105 +0x4d3
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: 
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: goroutine 20 [select]:
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: github.com/hashicorp/yamux.(*Session).keepalive(0xc82017e000)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /Users/marcinwalczyk/Golang/src/github.com/hashicorp/yamux/session.go:292 +0x240
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: created by github.com/hashicorp/yamux.newSession
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /Users/marcinwalczyk/Golang/src/github.com/hashicorp/yamux/session.go:107 +0x506
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: 
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: goroutine 9 [select]:
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: github.com/hashicorp/yamux.(*Session).AcceptStream(0xc82017e000, 0x1058aa0, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /Users/marcinwalczyk/Golang/src/github.com/hashicorp/yamux/session.go:191 +0x19d
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/rpc.(*muxBroker).Run(0xc8200e46c0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /Users/marcinwalczyk/Golang/src/github.com/hashicorp/terraform/rpc/mux_broker.go:107 +0x34
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: created by github.com/hashicorp/terraform/rpc.(*Server).ServeConn
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /Users/marcinwalczyk/Golang/src/github.com/hashicorp/terraform/rpc/server.go:65 +0x38f
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: 
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: goroutine 14 [select]:
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: github.com/hashicorp/yamux.(*Stream).Read(0xc8200c11e0, 0xc820375000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /Users/marcinwalczyk/Golang/src/github.com/hashicorp/yamux/stream.go:125 +0x3f0
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: bufio.(*Reader).fill(0xc8201b77a0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/bufio/bufio.go:97 +0x1e9
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: bufio.(*Reader).Read(0xc8201b77a0, 0xc8202db880, 0x1, 0x9, 0x0, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/bufio/bufio.go:207 +0x260
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: io.ReadAtLeast(0x19e1e98, 0xc8201b77a0, 0xc8202db880, 0x1, 0x9, 0x1, 0x0, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/io/io.go:298 +0xe6
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: io.ReadFull(0x19e1e98, 0xc8201b77a0, 0xc8202db880, 0x1, 0x9, 0xc820170180, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/io/io.go:316 +0x62
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: encoding/gob.decodeUintReader(0x19e1e98, 0xc8201b77a0, 0xc8202db880, 0x9, 0x9, 0x0, 0x1, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/encoding/gob/decode.go:121 +0x92
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: encoding/gob.(*Decoder).recvMessage(0xc820233d80, 0xc82025d800)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/encoding/gob/decoder.go:76 +0x5e
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: encoding/gob.(*Decoder).decodeTypeSequence(0xc820233d80, 0x1059300, 0xc820233d80)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/encoding/gob/decoder.go:140 +0x47
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: encoding/gob.(*Decoder).DecodeValue(0xc820233d80, 0x8d1600, 0xc8202d8fe0, 0x16, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/encoding/gob/decoder.go:208 +0x15d
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: encoding/gob.(*Decoder).Decode(0xc820233d80, 0x8d1600, 0xc8202d8fe0, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/encoding/gob/decoder.go:185 +0x289
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net/rpc.(*gobServerCodec).ReadRequestHeader(0xc8203627b0, 0xc8202d8fe0, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/rpc/server.go:403 +0x51
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net/rpc.(*Server).readRequestHeader(0xc820358c00, 0x19e1ff8, 0xc8203627b0, 0x0, 0x0, 0xc8202d8fe0, 0xc82025db00, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/rpc/server.go:576 +0x90
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net/rpc.(*Server).readRequest(0xc820358c00, 0x19e1ff8, 0xc8203627b0, 0xc820358c00, 0xc8202db8a0, 0xc820233b80, 0x0, 0x0, 0x0, 0x0, ...)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/rpc/server.go:543 +0x8b
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net/rpc.(*Server).ServeCodec(0xc820358c00, 0x19e1ff8, 0xc8203627b0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/rpc/server.go:462 +0x8c
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net/rpc.(*Server).ServeConn(0xc820358c00, 0x19e1f20, 0xc8200c11e0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/rpc/server.go:454 +0x4ee
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/rpc.serve(0x19e1f20, 0xc8200c11e0, 0xe7c470, 0x10, 0xd19b20, 0xc8202d8fc0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /Users/marcinwalczyk/Golang/src/github.com/hashicorp/terraform/rpc/server.go:146 +0x1f8
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/rpc.(*dispenseServer).ResourceProvider.func1(0xc8200e46e0, 0x3)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /Users/marcinwalczyk/Golang/src/github.com/hashicorp/terraform/rpc/server.go:102 +0x24a
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: created by github.com/hashicorp/terraform/rpc.(*dispenseServer).ResourceProvider
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /Users/marcinwalczyk/Golang/src/github.com/hashicorp/terraform/rpc/server.go:103 +0x62
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: 
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: goroutine 65 [IO wait]:
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net.runtime_pollWait(0x19e1c30, 0x72, 0xc82000a1f0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/runtime/netpoll.go:157 +0x60
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net.(*pollDesc).Wait(0xc8201bbe90, 0x72, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/fd_poll_runtime.go:73 +0x3a
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net.(*pollDesc).WaitRead(0xc8201bbe90, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/fd_poll_runtime.go:78 +0x36
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net.(*netFD).Read(0xc8201bbe30, 0xc8202f4c00, 0x400, 0x400, 0x0, 0x19dc050, 0xc82000a1f0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/fd_unix.go:232 +0x23a
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net.(*conn).Read(0xc8202387e8, 0xc8202f4c00, 0x400, 0x400, 0x0, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/net.go:172 +0xe4
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: crypto/tls.(*block).readFromUntil(0xc8202ef740, 0x1a649c8, 0xc8202387e8, 0x5, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/crypto/tls/conn.go:455 +0xcc
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: crypto/tls.(*Conn).readRecord(0xc820382840, 0x1059317, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/crypto/tls/conn.go:540 +0x2d1
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: crypto/tls.(*Conn).Read(0xc820382840, 0xc820397000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/crypto/tls/conn.go:901 +0x167
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net/http.noteEOFReader.Read(0x1adc668, 0xc820382840, 0xc82023a7e8, 0xc820397000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/http/transport.go:1370 +0x67
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net/http.(*noteEOFReader).Read(0xc820302c60, 0xc820397000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     <autogenerated>:126 +0xd0
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: bufio.(*Reader).fill(0xc8201b6b40)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/bufio/bufio.go:97 +0x1e9
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: bufio.(*Reader).Peek(0xc8201b6b40, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/bufio/bufio.go:132 +0xcc
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net/http.(*persistConn).readLoop(0xc82023a790)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/http/transport.go:876 +0xf7
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: created by net/http.(*Transport).dialConn
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/http/transport.go:685 +0xc78
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: 
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: goroutine 66 [select]:
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net/http.(*persistConn).writeLoop(0xc82023a790)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/http/transport.go:1009 +0x40c
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: created by net/http.(*Transport).dialConn
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/http/transport.go:686 +0xc9d
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: 
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: goroutine 87 [IO wait]:
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net.runtime_pollWait(0x19e1b70, 0x72, 0xc82000a1f0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/runtime/netpoll.go:157 +0x60
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net.(*pollDesc).Wait(0xc820016a00, 0x72, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/fd_poll_runtime.go:73 +0x3a
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net.(*pollDesc).WaitRead(0xc820016a00, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/fd_poll_runtime.go:78 +0x36
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net.(*netFD).Read(0xc8200169a0, 0xc82029e000, 0x1000, 0x1000, 0x0, 0x19dc050, 0xc82000a1f0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/fd_unix.go:232 +0x23a
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net.(*conn).Read(0xc820238248, 0xc82029e000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/net.go:172 +0xe4
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: crypto/tls.(*block).readFromUntil(0xc820286390, 0x1a649c8, 0xc820238248, 0x5, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/crypto/tls/conn.go:455 +0xcc
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: crypto/tls.(*Conn).readRecord(0xc8201a8580, 0x1059317, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/crypto/tls/conn.go:540 +0x2d1
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: crypto/tls.(*Conn).Read(0xc8201a8580, 0xc820292000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/crypto/tls/conn.go:901 +0x167
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net/http.noteEOFReader.Read(0x1adc668, 0xc8201a8580, 0xc82017e318, 0xc820292000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/http/transport.go:1370 +0x67
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net/http.(*noteEOFReader).Read(0xc820288be0, 0xc820292000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     <autogenerated>:126 +0xd0
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: bufio.(*Reader).fill(0xc8205a9da0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/bufio/bufio.go:97 +0x1e9
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: bufio.(*Reader).Peek(0xc8205a9da0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/bufio/bufio.go:132 +0xcc
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net/http.(*persistConn).readLoop(0xc82017e2c0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/http/transport.go:876 +0xf7
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: created by net/http.(*Transport).dialConn
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/http/transport.go:685 +0xc78
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: 
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: goroutine 88 [select]:
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: net/http.(*persistConn).writeLoop(0xc82017e2c0)
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/http/transport.go:1009 +0x40c
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws: created by net/http.(*Transport).dialConn
2015/12/14 13:08:22 [DEBUG] terraform-provider-aws:     /usr/local/go/src/net/http/transport.go:686 +0xc9d
2015/12/14 13:08:22 [ERROR] root: eval: *terraform.EvalRefresh, err: aws_db_parameter_group.oca-mysql-dev-parameter-group: unexpected EOF
2015/12/14 13:08:22 [ERROR] root: eval: *terraform.EvalSequence, err: aws_db_parameter_group.oca-mysql-dev-parameter-group: unexpected EOF
2015/12/14 13:08:22 [ERROR] root: eval: *terraform.EvalOpFilter, err: aws_db_parameter_group.oca-mysql-dev-parameter-group: unexpected EOF
2015/12/14 13:08:22 [ERROR] root: eval: *terraform.EvalSequence, err: aws_db_parameter_group.oca-mysql-dev-parameter-group: unexpected EOF
2015/12/14 13:08:22 [INFO] Exiting eval tree: aws_db_parameter_group.oca-mysql-dev-parameter-group
2015/12/14 13:08:22 [DEBUG] vertex provider.aws (close), got dep: aws_db_parameter_group.oca-mysql-dev-parameter-group
2015/12/14 13:08:22 [DEBUG] vertex root, got dep: provider.aws (close)
2015/12/14 13:08:22 [DEBUG] vertex root, got dep: provisioner.remote-exec
2015/12/14 13:08:22 [DEBUG] /Users/marcinwalczyk/Golang/bin/terraform-provider-aws: plugin process exited
2015/12/14 13:08:22 [DEBUG] waiting for all plugin processes to complete...
2015/12/14 13:08:22 [DEBUG] /Users/marcinwalczyk/Golang/bin/terraform-provisioner-remote-exec: plugin process exited
2015/12/14 13:08:22 [DEBUG] /Users/marcinwalczyk/Golang/bin/terraform-provisioner-file: plugin process exited
2015/12/14 13:08:22 [DEBUG] /Users/marcinwalczyk/Golang/bin/terraform-provisioner-chef: plugin process exited
2015/12/14 13:08:22 [DEBUG] /Users/marcinwalczyk/Golang/bin/terraform-provisioner-local-exec: plugin process exited



!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!

Terraform crashed! This is always indicative of a bug within Terraform.
A crash log has been placed at "crash.log" relative to your current
working directory. It would be immensely helpful if you could please
report the crash with Terraform[1] so that we can fix this.

When reporting bugs, please include your terraform version. That
information is available on the first line of crash.log. You can also
get it by running 'terraform --version' on the command line.

[1]: https://github.com/hashicorp/terraform/issues

!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!

@Seraf
Copy link

Seraf commented Dec 14, 2015

Hello,

Same for me, tried the fix and issue still here.

I was in 0.6.7 and everything was working fine until few hours ago.

I pass a parametergroup to all my databases. Here is my trace if it can help :

aws_db_parameter_group.rds-optimized: Refreshing state... (ID: rds-optimized)
aws_iam_role.infra: Refreshing state... (ID: infra)
aws_vpc.main: Refreshing state... (ID: vpc-315ed454)
aws_iam_instance_profile.infra_profile: Refreshing state... (ID: infra_profile)
Error refreshing state: 2 error(s) occurred:

* aws_db_parameter_group.rds-optimized: unexpected EOF
* aws_vpc.main: unexpected EOF
panic: runtime error: invalid memory address or nil pointer dereference
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: [signal 0xb code=0x1 addr=0x0 pc=0x59e54d]
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: 
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: goroutine 53 [running]:
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/builtin/providers/aws.flattenParameters(0xc2083f5e80, 0x8, 0x8, 0x0, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/pkgsets/go1.4.2/global/src/github.com/hashicorp/terraform/builtin/providers/aws/structure.go:404 +0x38d
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/builtin/providers/aws.resourceAwsDbParameterGroupRead(0xc2081d5bc0, 0xc3e0e0, 0xc2080561c0, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/pkgsets/go1.4.2/global/src/github.com/hashicorp/terraform/builtin/providers/aws/resource_aws_db_parameter_group.go:147 +0x658
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/helper/schema.(*Resource).Refresh(0xc2080b5940, 0xc2081924b0, 0xc3e0e0, 0xc2080561c0, 0xc208067d80, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/pkgsets/go1.4.2/global/src/github.com/hashicorp/terraform/helper/schema/resource.go:209 +0x475
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/helper/schema.(*Provider).Refresh(0xc2080b9380, 0xc20818f380, 0xc2081924b0, 0xc3f520, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/pkgsets/go1.4.2/global/src/github.com/hashicorp/terraform/helper/schema/provider.go:187 +0x1c7
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/rpc.(*ResourceProviderServer).Refresh(0xc208120f80, 0xc208319810, 0xc208366130, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/pkgsets/go1.4.2/global/src/github.com/hashicorp/terraform/rpc/resource_provider.go:345 +0x73
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: reflect.Value.call(0xe79ea0, 0x107b000, 0x13, 0x1105f00, 0x4, 0xc2083cdf28, 0x3, 0x3, 0x0, 0x0, ...)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/reflect/value.go:419 +0x10e5
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: reflect.Value.Call(0xe79ea0, 0x107b000, 0x13, 0xc2083cdf28, 0x3, 0x3, 0x0, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/reflect/value.go:296 +0xbc
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net/rpc.(*service).call(0xc208061c40, 0xc208061c00, 0xc2080abf30, 0xc2080aed00, 0xc2081219e0, 0xc3f4c0, 0xc208319810, 0x16, 0xc3f520, 0xc208366130, ...)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/rpc/server.go:382 +0x1f7
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: created by net/rpc.(*Server).ServeCodec
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/rpc/server.go:476 +0x44a
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: 
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: goroutine 1 [IO wait]:
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net.(*pollDesc).Wait(0xc208012ca0, 0x72, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/fd_poll_runtime.go:84 +0x47
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net.(*pollDesc).WaitRead(0xc208012ca0, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/fd_poll_runtime.go:89 +0x43
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net.(*netFD).accept(0xc208012c40, 0x0, 0x7fb60c572db0, 0xc20800b4a0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/fd_unix.go:419 +0x40b
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net.(*UnixListener).AcceptUnix(0xc20801cf80, 0x435020, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/unixsock_posix.go:282 +0x56
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net.(*UnixListener).Accept(0xc20801cf80, 0x0, 0x0, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/unixsock_posix.go:293 +0x4c
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/rpc.(*Server).Accept(0xc20800b330, 0x7fb60c573738, 0xc20801cf80)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/pkgsets/go1.4.2/global/src/github.com/hashicorp/terraform/rpc/server.go:33 +0x37
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/plugin.Serve(0xc20800b310)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/pkgsets/go1.4.2/global/src/github.com/hashicorp/terraform/plugin/server.go:88 +0x7e8
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: main.main()
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/pkgsets/go1.4.2/global/src/github.com/hashicorp/terraform/builtin/bins/provider-aws/main.go:11 +0x6d
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: 
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: goroutine 5 [syscall]:
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: os/signal.loop()
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/os/signal/signal_unix.go:21 +0x1f
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: created by os/signal.init·1
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/os/signal/signal_unix.go:27 +0x35
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: 
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: goroutine 7 [chan receive]:
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/plugin.func·007()
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/pkgsets/go1.4.2/global/src/github.com/hashicorp/terraform/plugin/server.go:79 +0x69
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: created by github.com/hashicorp/terraform/plugin.Serve
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/pkgsets/go1.4.2/global/src/github.com/hashicorp/terraform/plugin/server.go:85 +0x7c4
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: 
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: goroutine 8 [select]:
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: github.com/hashicorp/yamux.(*Stream).Read(0xc208030dd0, 0xc2080d5000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/pkgsets/go1.4.2/global/src/github.com/hashicorp/yamux/stream.go:125 +0x3ed
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: bufio.(*Reader).fill(0xc20802c720)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/bufio/bufio.go:97 +0x1ce
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: bufio.(*Reader).Read(0xc20802c720, 0xc20800b550, 0x1, 0x9, 0x401192, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/bufio/bufio.go:174 +0x26c
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: io.ReadAtLeast(0x7fb60c574890, 0xc20802c720, 0xc20800b550, 0x1, 0x9, 0x1, 0x0, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/io/io.go:298 +0xf1
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: io.ReadFull(0x7fb60c574890, 0xc20802c720, 0xc20800b550, 0x1, 0x9, 0x2c, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/io/io.go:316 +0x6d
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: encoding/gob.decodeUintReader(0x7fb60c574890, 0xc20802c720, 0xc20800b550, 0x9, 0x9, 0x0, 0x1, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/encoding/gob/decode.go:121 +0x99
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: encoding/gob.(*Decoder).recvMessage(0xc2080ae580, 0xc20804e360)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/encoding/gob/decoder.go:76 +0x55
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: encoding/gob.(*Decoder).decodeTypeSequence(0xc2080ae580, 0xc20801d600, 0x16)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/encoding/gob/decoder.go:140 +0x47
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: encoding/gob.(*Decoder).DecodeValue(0xc2080ae580, 0xc461e0, 0xc20801d6a0, 0x16, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/encoding/gob/decoder.go:208 +0x192
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: encoding/gob.(*Decoder).Decode(0xc2080ae580, 0xc461e0, 0xc20801d6a0, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/encoding/gob/decoder.go:185 +0x297
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net/rpc.(*gobServerCodec).ReadRequestHeader(0xc2080a48d0, 0xc20801d6a0, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/rpc/server.go:402 +0x5e
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net/rpc.(*Server).readRequestHeader(0xc2080b4140, 0x7fb60c5749f0, 0xc2080a48d0, 0x0, 0x0, 0xc20801d6a0, 0xc20800b500, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/rpc/server.go:575 +0x97
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net/rpc.(*Server).readRequest(0xc2080b4140, 0x7fb60c5749f0, 0xc2080a48d0, 0xc2080ae480, 0xc20801d120, 0xc6c0a0, 0x0, 0x0, 0x0, 0x0, ...)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/rpc/server.go:542 +0xa2
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net/rpc.(*Server).ServeCodec(0xc2080b4140, 0x7fb60c5749f0, 0xc2080a48d0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/rpc/server.go:461 +0x6d
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net/rpc.(*Server).ServeConn(0xc2080b4140, 0x7fb60c574918, 0xc208030dd0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/rpc/server.go:453 +0x208
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/rpc.(*Server).ServeConn(0xc20800b330, 0x7fb60c574830, 0xc208036098)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/pkgsets/go1.4.2/global/src/github.com/hashicorp/terraform/rpc/server.go:76 +0x530
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: created by github.com/hashicorp/terraform/rpc.(*Server).Accept
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/pkgsets/go1.4.2/global/src/github.com/hashicorp/terraform/rpc/server.go:39 +0x173
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: 
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: goroutine 9 [IO wait]:
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net.(*pollDesc).Wait(0xc208012d10, 0x72, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/fd_poll_runtime.go:84 +0x47
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net.(*pollDesc).WaitRead(0xc208012d10, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/fd_poll_runtime.go:89 +0x43
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net.(*netFD).Read(0xc208012cb0, 0xc208011000, 0x1000, 0x1000, 0x0, 0x7fb60c572db0, 0xc208356008)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/fd_unix.go:242 +0x40f
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net.(*conn).Read(0xc208036098, 0xc208011000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/net.go:121 +0xdc
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: bufio.(*Reader).fill(0xc20802c2a0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/bufio/bufio.go:97 +0x1ce
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: bufio.(*Reader).Read(0xc20802c2a0, 0xc20800b4d0, 0xc, 0xc, 0xc208356010, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/bufio/bufio.go:174 +0x26c
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: io.ReadAtLeast(0x7fb60c574890, 0xc20802c2a0, 0xc20800b4d0, 0xc, 0xc, 0xc, 0x0, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/io/io.go:298 +0xf1
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: io.ReadFull(0x7fb60c574890, 0xc20802c2a0, 0xc20800b4d0, 0xc, 0xc, 0xc, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/io/io.go:316 +0x6d
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: github.com/hashicorp/yamux.(*Session).recvLoop(0xc208062790, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/pkgsets/go1.4.2/global/src/github.com/hashicorp/yamux/session.go:408 +0x10d
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: github.com/hashicorp/yamux.(*Session).recv(0xc208062790)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/pkgsets/go1.4.2/global/src/github.com/hashicorp/yamux/session.go:396 +0x28
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: created by github.com/hashicorp/yamux.newSession
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/pkgsets/go1.4.2/global/src/github.com/hashicorp/yamux/session.go:104 +0x499
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: 
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: goroutine 10 [select]:
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: github.com/hashicorp/yamux.(*Session).send(0xc208062790)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/pkgsets/go1.4.2/global/src/github.com/hashicorp/yamux/session.go:358 +0x554
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: created by github.com/hashicorp/yamux.newSession
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/pkgsets/go1.4.2/global/src/github.com/hashicorp/yamux/session.go:105 +0x4b3
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: 
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: goroutine 11 [select]:
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: github.com/hashicorp/yamux.(*Session).keepalive(0xc208062790)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/pkgsets/go1.4.2/global/src/github.com/hashicorp/yamux/session.go:292 +0x230
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: created by github.com/hashicorp/yamux.newSession
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/pkgsets/go1.4.2/global/src/github.com/hashicorp/yamux/session.go:107 +0x4de
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: 
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: goroutine 13 [select]:
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: github.com/hashicorp/yamux.(*Session).AcceptStream(0xc208062790, 0xc200000003, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/pkgsets/go1.4.2/global/src/github.com/hashicorp/yamux/session.go:191 +0x1a8
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/rpc.(*muxBroker).Run(0xc20801d0e0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/pkgsets/go1.4.2/global/src/github.com/hashicorp/terraform/rpc/mux_broker.go:107 +0x37
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: created by github.com/hashicorp/terraform/rpc.(*Server).ServeConn
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/pkgsets/go1.4.2/global/src/github.com/hashicorp/terraform/rpc/server.go:65 +0x388
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: 
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: goroutine 45 [select]:
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: github.com/hashicorp/yamux.(*Stream).Read(0xc208176680, 0xc2081c6000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/pkgsets/go1.4.2/global/src/github.com/hashicorp/yamux/stream.go:125 +0x3ed
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: bufio.(*Reader).fill(0xc20802d560)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/bufio/bufio.go:97 +0x1ce
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: bufio.(*Reader).Read(0xc20802d560, 0xc2080abf10, 0x1, 0x9, 0xc2080f7858, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/bufio/bufio.go:174 +0x26c
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: io.ReadAtLeast(0x7fb60c574890, 0xc20802d560, 0xc2080abf10, 0x1, 0x9, 0x1, 0x0, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/io/io.go:298 +0xf1
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: io.ReadFull(0x7fb60c574890, 0xc20802d560, 0xc2080abf10, 0x1, 0x9, 0x1, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/io/io.go:316 +0x6d
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: encoding/gob.decodeUintReader(0x7fb60c574890, 0xc20802d560, 0xc2080abf10, 0x9, 0x9, 0x0, 0x1, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/encoding/gob/decode.go:121 +0x99
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: encoding/gob.(*Decoder).recvMessage(0xc2080aef00, 0xc208001c20)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/encoding/gob/decoder.go:76 +0x55
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: encoding/gob.(*Decoder).decodeTypeSequence(0xc2080aef00, 0xc208354d00, 0x16)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/encoding/gob/decoder.go:140 +0x47
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: encoding/gob.(*Decoder).DecodeValue(0xc2080aef00, 0xc461e0, 0xc208354d60, 0x16, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/encoding/gob/decoder.go:208 +0x192
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: encoding/gob.(*Decoder).Decode(0xc2080aef00, 0xc461e0, 0xc208354d60, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/encoding/gob/decoder.go:185 +0x297
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net/rpc.(*gobServerCodec).ReadRequestHeader(0xc2080b9530, 0xc208354d60, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/rpc/server.go:402 +0x5e
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net/rpc.(*Server).readRequestHeader(0xc208061c00, 0x7fb60c5749f0, 0xc2080b9530, 0x0, 0x0, 0xc208354d60, 0xc2080abf00, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/rpc/server.go:575 +0x97
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net/rpc.(*Server).readRequest(0xc208061c00, 0x7fb60c5749f0, 0xc2080b9530, 0xc2080aed00, 0xc208355600, 0xc3f4c0, 0x0, 0x0, 0x0, 0x0, ...)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/rpc/server.go:542 +0xa2
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net/rpc.(*Server).ServeCodec(0xc208061c00, 0x7fb60c5749f0, 0xc2080b9530)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/rpc/server.go:461 +0x6d
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net/rpc.(*Server).ServeConn(0xc208061c00, 0x7fb60c574918, 0xc208176680)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/rpc/server.go:453 +0x208
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/rpc.serve(0x7fb60c574918, 0xc208176680, 0x119ae10, 0x10, 0x107aea0, 0xc208120f80)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/pkgsets/go1.4.2/global/src/github.com/hashicorp/terraform/rpc/server.go:146 +0x1f9
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/rpc.func·001()
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/pkgsets/go1.4.2/global/src/github.com/hashicorp/terraform/rpc/server.go:102 +0x265
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: created by github.com/hashicorp/terraform/rpc.(*dispenseServer).ResourceProvider
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/pkgsets/go1.4.2/global/src/github.com/hashicorp/terraform/rpc/server.go:103 +0x107
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: 
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: goroutine 51 [IO wait]:
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net.(*pollDesc).Wait(0xc2080a9720, 0x72, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/fd_poll_runtime.go:84 +0x47
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net.(*pollDesc).WaitRead(0xc2080a9720, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/fd_poll_runtime.go:89 +0x43
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net.(*netFD).Read(0xc2080a96c0, 0xc2082e8800, 0x800, 0x800, 0x0, 0x7fb60c572db0, 0xc20834b300)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/fd_unix.go:242 +0x40f
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net.(*conn).Read(0xc208036e48, 0xc2082e8800, 0x800, 0x800, 0x0, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/net.go:121 +0xdc
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: crypto/tls.(*block).readFromUntil(0xc20831a6c0, 0x7fb60c579660, 0xc208036e48, 0x5, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/crypto/tls/conn.go:454 +0xe6
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: crypto/tls.(*Conn).readRecord(0xc20805a840, 0x17, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/crypto/tls/conn.go:539 +0x2da
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: crypto/tls.(*Conn).Read(0xc20805a840, 0xc20813c000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/crypto/tls/conn.go:904 +0x166
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net/http.noteEOFReader.Read(0x7fb60c57e080, 0xc20805a840, 0xc2081c8268, 0xc20813c000, 0x1000, 0x1000, 0xe0a460, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/http/transport.go:1270 +0x6e
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net/http.(*noteEOFReader).Read(0xc20831d020, 0xc20813c000, 0x1000, 0x1000, 0xc20800c900, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     <autogenerated>:125 +0xd4
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: bufio.(*Reader).fill(0xc2081d5800)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/bufio/bufio.go:97 +0x1ce
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: bufio.(*Reader).Peek(0xc2081d5800, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/bufio/bufio.go:132 +0xf0
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net/http.(*persistConn).readLoop(0xc2081c8210)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/http/transport.go:842 +0xa4
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: created by net/http.(*Transport).dialConn
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/http/transport.go:660 +0xc9f
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: 
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: goroutine 65 [syscall, locked to thread]:
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: runtime.goexit()
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/runtime/asm_amd64.s:2232 +0x1
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: 
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: goroutine 52 [select]:
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net/http.(*persistConn).writeLoop(0xc2081c8210)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/http/transport.go:945 +0x41d
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: created by net/http.(*Transport).dialConn
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/http/transport.go:661 +0xcbc
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: 
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: goroutine 63 [runnable]:
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net/http.(*persistConn).readLoop(0xc2081c8840)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/http/transport.go:928 +0x9ce
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: created by net/http.(*Transport).dialConn
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/http/transport.go:660 +0xc9f
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: 
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: goroutine 56 [select]:
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net/http.(*persistConn).roundTrip(0xc2081c88f0, 0xc20832cb00, 0x0, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/http/transport.go:1082 +0x7ad
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net/http.(*Transport).RoundTrip(0xc208054480, 0xc20819d930, 0xc208119e90, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/http/transport.go:235 +0x558
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net/http.send(0xc20819d930, 0x7fb60c573100, 0xc208054480, 0x24, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/http/client.go:219 +0x4fc
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net/http.(*Client).send(0xc208118a20, 0xc20819d930, 0x24, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/http/client.go:142 +0x15b
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net/http.(*Client).doFollowingRedirects(0xc208118a20, 0xc20819d930, 0x1400478, 0x0, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/http/client.go:367 +0xb25
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net/http.(*Client).Do(0xc208118a20, 0xc20819d930, 0xece00af85, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/http/client.go:177 +0x192
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: github.com/aws/aws-sdk-go/aws/corehandlers.func·002(0xc20838f080)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/pkgsets/go1.4.2/global/src/github.com/aws/aws-sdk-go/aws/corehandlers/handlers.go:65 +0x5e
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: github.com/aws/aws-sdk-go/aws/request.(*HandlerList).Run(0xc20838f1b0, 0xc20838f080)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/pkgsets/go1.4.2/global/src/github.com/aws/aws-sdk-go/aws/request/handlers.go:115 +0xa1
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: github.com/aws/aws-sdk-go/aws/request.(*Request).Send(0xc20838f080, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/pkgsets/go1.4.2/global/src/github.com/aws/aws-sdk-go/aws/request/request.go:225 +0x53a
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: github.com/aws/aws-sdk-go/service/ec2.(*EC2).DescribeVpcAttribute(0xc208036238, 0xc20829f480, 0xc, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/pkgsets/go1.4.2/global/src/github.com/aws/aws-sdk-go/service/ec2/api.go:4334 +0x5c
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/builtin/providers/aws.resourceAwsVpcRead(0xc20802cf60, 0xc3e0e0, 0xc2080561c0, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/pkgsets/go1.4.2/global/src/github.com/hashicorp/terraform/builtin/providers/aws/resource_aws_vpc.go:157 +0x4c2
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/helper/schema.(*Resource).Refresh(0xc208061a40, 0xc208192c90, 0xc3e0e0, 0xc2080561c0, 0xc2081c40a8, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/pkgsets/go1.4.2/global/src/github.com/hashicorp/terraform/helper/schema/resource.go:209 +0x475
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/helper/schema.(*Provider).Refresh(0xc2080b9380, 0xc208146ec0, 0xc208192c90, 0xc3f520, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/pkgsets/go1.4.2/global/src/github.com/hashicorp/terraform/helper/schema/provider.go:187 +0x1c7
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/rpc.(*ResourceProviderServer).Refresh(0xc208120f80, 0xc208366510, 0xc208366a30, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/pkgsets/go1.4.2/global/src/github.com/hashicorp/terraform/rpc/resource_provider.go:345 +0x73
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: reflect.Value.call(0xe79ea0, 0x107b000, 0x13, 0x1105f00, 0x4, 0xc2083d7f28, 0x3, 0x3, 0x0, 0x0, ...)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/reflect/value.go:419 +0x10e5
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: reflect.Value.Call(0xe79ea0, 0x107b000, 0x13, 0xc2083d7f28, 0x3, 0x3, 0x0, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/reflect/value.go:296 +0xbc
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net/rpc.(*service).call(0xc208061c40, 0xc208061c00, 0xc2080abf30, 0xc2080aed00, 0xc208120fa0, 0xc3f4c0, 0xc208366510, 0x16, 0xc3f520, 0xc208366a30, ...)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/rpc/server.go:382 +0x1f7
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: created by net/rpc.(*Server).ServeCodec
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/rpc/server.go:476 +0x44a
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: 
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: goroutine 66 [IO wait]:
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net.(*pollDesc).Wait(0xc2080a9c60, 0x72, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/fd_poll_runtime.go:84 +0x47
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net.(*pollDesc).WaitRead(0xc2080a9c60, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/fd_poll_runtime.go:89 +0x43
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net.(*netFD).Read(0xc2080a9c00, 0xc2083b4000, 0x1000, 0x1000, 0x0, 0x7fb60c572db0, 0xc20832caf8)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/fd_unix.go:242 +0x40f
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net.(*conn).Read(0xc208036b18, 0xc2083b4000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/net.go:121 +0xdc
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: crypto/tls.(*block).readFromUntil(0xc208131320, 0x7fb60c579660, 0xc208036b18, 0x5, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/crypto/tls/conn.go:454 +0xe6
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: crypto/tls.(*Conn).readRecord(0xc20838e840, 0x17, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/crypto/tls/conn.go:539 +0x2da
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: crypto/tls.(*Conn).Read(0xc20838e840, 0xc2083b5000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/crypto/tls/conn.go:904 +0x166
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net/http.noteEOFReader.Read(0x7fb60c57e080, 0xc20838e840, 0xc2081c8948, 0xc2083b5000, 0x1000, 0x1000, 0xe0a460, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/http/transport.go:1270 +0x6e
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net/http.(*noteEOFReader).Read(0xc20830a4e0, 0xc2083b5000, 0x1000, 0x1000, 0xc20800c900, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     <autogenerated>:125 +0xd4
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: bufio.(*Reader).fill(0xc2083c6720)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/bufio/bufio.go:97 +0x1ce
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: bufio.(*Reader).Peek(0xc2083c6720, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/bufio/bufio.go:132 +0xf0
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net/http.(*persistConn).readLoop(0xc2081c88f0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/http/transport.go:842 +0xa4
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: created by net/http.(*Transport).dialConn
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/http/transport.go:660 +0xc9f
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: 
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: goroutine 67 [select]:
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net/http.(*persistConn).writeLoop(0xc2081c88f0)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/http/transport.go:945 +0x41d
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: created by net/http.(*Transport).dialConn
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/http/transport.go:661 +0xcbc
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: 
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: goroutine 64 [select]:
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: net/http.(*persistConn).writeLoop(0xc2081c8840)
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/http/transport.go:945 +0x41d
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws: created by net/http.(*Transport).dialConn
2015/12/14 13:39:33 [DEBUG] terraform-provider-aws:     /home/seraf/.gvm/gos/go1.4.2/src/net/http/transport.go:661 +0xcbc
2015/12/14 13:39:33 [ERROR] root: eval: *terraform.EvalRefresh, err: aws_db_parameter_group.rds-optimized: unexpected EOF
2015/12/14 13:39:33 [ERROR] root: eval: *terraform.EvalSequence, err: aws_db_parameter_group.rds-optimized: unexpected EOF
2015/12/14 13:39:33 [ERROR] root: eval: *terraform.EvalOpFilter, err: aws_db_parameter_group.rds-optimized: unexpected EOF
2015/12/14 13:39:33 [ERROR] root: eval: *terraform.EvalSequence, err: aws_db_parameter_group.rds-optimized: unexpected EOF
2015/12/14 13:39:33 [INFO] Exiting eval tree: aws_db_parameter_group.rds-optimized
2015/12/14 13:39:33 [ERROR] root: eval: *terraform.EvalRefresh, err: aws_vpc.main: unexpected EOF
2015/12/14 13:39:33 [ERROR] root: eval: *terraform.EvalSequence, err: aws_vpc.main: unexpected EOF
2015/12/14 13:39:33 [ERROR] root: eval: *terraform.EvalOpFilter, err: aws_vpc.main: unexpected EOF
2015/12/14 13:39:33 [ERROR] root: eval: *terraform.EvalSequence, err: aws_vpc.main: unexpected EOF
2015/12/14 13:39:33 [INFO] Exiting eval tree: aws_vpc.main

@stack72
Copy link
Contributor

stack72 commented Dec 14, 2015

Thanks @Seraf - so you were in 0.6.7 and then upgraded and got the error? Or the error still exists in 0.6.7?

@Seraf
Copy link

Seraf commented Dec 14, 2015

@stack72 I got the error without changing terraform or anything. I did an apply the 08 December and it worked. Without changing anything, today it doesn't work.

I guess Amazon changed something on their side ...

@stack72
Copy link
Contributor

stack72 commented Dec 14, 2015

interesting! Looking down that line of thought now

@stack72
Copy link
Contributor

stack72 commented Dec 14, 2015

thanks for testing this @marcinwalczyk - that behaviour follows along the same line of thought that a test was already in place for this. I am trying to investigate what else it could be right now

@Seraf
Copy link

Seraf commented Dec 14, 2015

@stack72 if it can help, here is a log.Printf("[DEBUG] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> describeParametersResp.Parameters: %s <<<<<<<<<<<<<<<<<<<<<<<<<", describeParametersResp.Parameters) just before the flatten():

2015/12/14 14:05:10 [DEBUG] terraform-provider-aws: 2015/12/14 14:05:10 [DEBUG] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> describeParametersResp.Parameters: [{
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   AllowedValues: "5242880-18446744073709551615",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   ApplyType: "static",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   DataType: "integer",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   Description: "The size in bytes of the memory buffer innodb uses to cache data and indexes of its tables",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   IsModifiable: true,
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   ParameterName: "innodb_buffer_pool_size",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   ParameterValue: "{DBInstanceClassMemory*2/3}",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   Source: "user"
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws: } {
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   AllowedValues: "0,1",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   ApplyType: "dynamic",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   DataType: "boolean",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   Description: "Enforces restrictions on stored functions / triggers - logging for replication.",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   IsModifiable: true,
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   ParameterName: "log_bin_trust_function_creators",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   ParameterValue: "1",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   Source: "user"
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws: } {
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   AllowedValues: "1024-1073741824",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   ApplyType: "dynamic",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   DataType: "integer",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   Description: "This value by default is small, to catch large (possibly incorrect) packets. Must be increased if using large BLOB columns or long strings. As big as largest BLOB. ",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   IsModifiable: true,
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   ParameterName: "max_allowed_packet",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   ParameterValue: "67108864",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   Source: "user"
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws: } {
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   AllowedValues: "16384-1844674407370954752",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   ApplyType: "dynamic",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   DataType: "integer",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   Description: "Maximum size to which MEMORY tables are allowed to grow.",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   IsModifiable: true,
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   ParameterName: "max_heap_table_size",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   ParameterValue: "134217728",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   Source: "user"
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws: } {
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   AllowedValues: "0-9223372036854774784",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   ApplyType: "dynamic",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   DataType: "integer",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   Description: "The amount of memory allocated for caching query results.",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   IsModifiable: true,
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   ParameterName: "query_cache_size",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   ParameterValue: "67108864",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   Source: "user"
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws: } {
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   AllowedValues: "0-2",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   ApplyType: "static",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   DataType: "integer",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   Description: "For query results either don't cache (=OFF), cache except for NO_CACHE (=ON), or only CACHE (=DEMAND)",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   IsModifiable: true,
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   ParameterName: "query_cache_type",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   ParameterValue: "1",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   Source: "user"
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws: } {
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   AllowedValues: "Africa/Cairo,Africa/Casablanca,Africa/Harare,Africa/Monrovia,Africa/Nairobi,Africa/Tripoli,Africa/Windhoek,America/Araguaina,America/Asuncion,America/Bogota,America/Caracas,America/Chihuahua,America/Cuiaba,America/Denver,America/Fortaleza,America/Guatemala,America/Halifax,America/Manaus,America/Matamoros,America/Monterrey,America/Montevideo,America/Phoenix,America/Santiago,America/Tijuana,Asia/Amman,Asia/Ashgabat,Asia/Baghdad,Asia/Baku,Asia/Bangkok,Asia/Beirut,Asia/Calcutta,Asia/Damascus,Asia/Dhaka,Asia/Irkutsk,Asia/Jerusalem,Asia/Kabul,Asia/Karachi,Asia/Kathmandu,Asia/Krasnoyarsk,Asia/Magadan,Asia/Muscat,Asia/Novosibirsk,Asia/Riyadh,Asia/Seoul,Asia/Shanghai,Asia/Singapore,Asia/Taipei,Asia/Tehran,Asia/Tokyo,Asia/Ulaanbaatar,Asia/Vladivostok,Asia/Yakutsk,Asia/Yerevan,Atlantic/Azores,Australia/Adelaide,Australia/Brisbane,Australia/Darwin,Australia/Hobart,Australia/Perth,Australia/Sydney,Canada/Newfoundland,Canada/Saskatchewan,Brazil/East,Europe/Amsterdam,Europe/Athens,Europe/Dublin,Europe/Helsinki,Europe/Istanbul,Europe/Kaliningrad,Europe/Moscow,Europe/Paris,Europe/Prague,Europe/Sarajevo,Pacific/Auckland,Pacific/Fiji,Pacific/Guam,Pacific/Honolulu,Pacific/Samoa,US/Alaska,US/Central,US/Eastern,US/East-Indiana,US/Pacific,UTC",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   ApplyType: "dynamic",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   DataType: "string",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   Description: "The server time zone",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   IsModifiable: false,
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   ParameterName: "time_zone",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   Source: "user"
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws: } {
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   AllowedValues: "1024-18446744073709551615",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   ApplyType: "dynamic",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   DataType: "integer",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   Description: "If an in-memory temporary table exceeds the limit, MySQL automatically converts it to an on-disk MyISAM table. Increased value can improve perf for many advanced GROUP BY queries.",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   IsModifiable: true,
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   ParameterName: "tmp_table_size",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   ParameterValue: "134217728",
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws:   Source: "user"
2015/12/14 14:05:10 [DEBUG] terraform-provider-aws: }] <<<<<<<<<<<<<<<<<<<<<<<<<

And the parameter group :

resource "aws_db_parameter_group" "rds-optimized" {
    name = "rds-optimized"
    family = "mysql5.6"
    description = "Optimizations"

    parameter {
      name = "log_bin_trust_function_creators"
      value = "1"
    }
    parameter {
      name = "query_cache_type"
      value = "1"
      apply_method = "pending-reboot"
    }

    parameter {
      name = "innodb_buffer_pool_size"
      value = "{DBInstanceClassMemory*2/3}"
      apply_method = "pending-reboot"
    }

    parameter {
      name = "max_allowed_packet"
      value = "67108864"
      apply_method = "pending-reboot"
    }

    parameter {
      name = "query_cache_size"
      value = "67108864"
      apply_method = "pending-reboot"
    }

    parameter {
      name = "tmp_table_size"
      value = "134217728"
      apply_method = "pending-reboot"
    }

    parameter {
      name = "max_heap_table_size"
      value = "134217728"
      apply_method = "pending-reboot"
    }
}

@Seraf
Copy link

Seraf commented Dec 14, 2015

@stack72 I don't know Go yet (I need to learn it ^^) but the structure of parameters may have change ? Removing the flattenparameters() makes my rds working :)

I'm now able to do a plan

@stack72
Copy link
Contributor

stack72 commented Dec 14, 2015

@Seraf I just ran an acceptance test with your exact config from above and all passed :(

This is most strange

TF_LOG=1 make testacc TEST=./builtin/providers/aws TESTARGS='-run=AWSDBParameterGroupOnly' 2>~/tf.log
go generate ./...
TF_ACC=1 go test ./builtin/providers/aws -v -run=AWSDBParameterGroupOnly -timeout 90m
=== RUN   TestAccAWSDBParameterGroupOnly
--- PASS: TestAccAWSDBParameterGroupOnly (9.44s)
PASS
ok      github.com/hashicorp/terraform/builtin/providers/aws    9.459s

The config was as follows:

const testAccAWSDBParameterGroupOnlyConfig = `
resource "aws_db_parameter_group" "rds-optimized" {
    name = "rds-optimized"
    family = "mysql5.6"
    description = "Optimizations"

    parameter {
      name = "log_bin_trust_function_creators"
      value = "1"
    }
    parameter {
      name = "query_cache_type"
      value = "1"
      apply_method = "pending-reboot"
    }

    parameter {
      name = "innodb_buffer_pool_size"
      value = "{DBInstanceClassMemory*2/3}"
      apply_method = "pending-reboot"
    }

    parameter {
      name = "max_allowed_packet"
      value = "67108864"
      apply_method = "pending-reboot"
    }

    parameter {
      name = "query_cache_size"
      value = "67108864"
      apply_method = "pending-reboot"
    }

    parameter {
      name = "tmp_table_size"
      value = "134217728"
      apply_method = "pending-reboot"
    }

    parameter {
      name = "max_heap_table_size"
      value = "134217728"
      apply_method = "pending-reboot"
    }
}
`

@j4ybee
Copy link
Author

j4ybee commented Dec 14, 2015

@stack72 could it be that the API behaves differently in different AWS regions? I am working in eu-central-1.

@stack72
Copy link
Contributor

stack72 commented Dec 14, 2015

Changing now to use that region.... stand by :)

@stack72
Copy link
Contributor

stack72 commented Dec 14, 2015

@j4ybee config is now this

const testAccAWSDBParameterGroupOnlyConfig = `
provider "aws" {
  region = "eu-central-1"
}
resource "aws_db_parameter_group" "rds-optimized" {
    name = "rds-optimized"
    family = "mysql5.6"
    description = "Optimizations"

    parameter {
      name = "log_bin_trust_function_creators"
      value = "1"
    }
    parameter {
      name = "query_cache_type"
      value = "1"
      apply_method = "pending-reboot"
    }

    parameter {
      name = "innodb_buffer_pool_size"
      value = "{DBInstanceClassMemory*2/3}"
      apply_method = "pending-reboot"
    }

    parameter {
      name = "max_allowed_packet"
      value = "67108864"
      apply_method = "pending-reboot"
    }

    parameter {
      name = "query_cache_size"
      value = "67108864"
      apply_method = "pending-reboot"
    }

    parameter {
      name = "tmp_table_size"
      value = "134217728"
      apply_method = "pending-reboot"
    }

    parameter {
      name = "max_heap_table_size"
      value = "134217728"
      apply_method = "pending-reboot"
    }
}
`

And I get the following result:

TF_LOG=1 make testacc TEST=./builtin/providers/aws TESTARGS='-run=AWSDBParameterGroupOnly' 2>~/tf.log
go generate ./...
TF_ACC=1 go test ./builtin/providers/aws -v -run=AWSDBParameterGroupOnly -timeout 90m
=== RUN   TestAccAWSDBParameterGroupOnly
--- PASS: TestAccAWSDBParameterGroupOnly (7.87s)
PASS
ok      github.com/hashicorp/terraform/builtin/providers/aws    7.886s

@Seraf
Copy link

Seraf commented Dec 14, 2015

@stack72 but we are few to have the error even if the tests PASS. So I guess tests missed something. As said in my last comment, I found that removing the flattenParameters and using d.Set("parameter", describeParametersResp.Parameters) seems to work where master and your PR fails.

Maybe tests are faking a AWSClient and hardcode a rdsconn property, that could explain why tests are okay on the structure, but fails to flat the datastructure ?

These are just guesses, I have never even looked terraform code and I'm not a Go developper ;-)

@j4ybee
Copy link
Author

j4ybee commented Dec 14, 2015

@stack72 Strange! I agree with @Seraf: we both did neither change the according terraform file nor did we change our terraform version, but still flattenParameters suddenly can't handle the input from AWS RDS anymore...

@stack72
Copy link
Contributor

stack72 commented Dec 14, 2015

@Seraf the tests are actually creating real resources in the AWS console. Flatten parameters is a method that is required to turn an array of []*rds.Parameter into a map for string representation:

e.g.

aws_db_parameter_group.rds-optimized
  arn:                               "" => "<computed>"
  description:                       "" => "Optimizations" (forces new resource)
  family:                            "" => "mysql5.6" (forces new resource)
  name:                              "" => "rds-optimized" (forces new resource)
  parameter.#:                       "" => "7"
  parameter.1703363726.apply_method: "" => ""
  parameter.1703363726.name:         "" => "query_cache_type"
  parameter.1703363726.value:        "" => "1"
  parameter.1843611063.apply_method: "" => ""
  parameter.1843611063.name:         "" => "tmp_table_size"
  parameter.1843611063.value:        "" => "134217728"
  parameter.3002323818.apply_method: "" => ""
  parameter.3002323818.name:         "" => "max_heap_table_size"
  parameter.3002323818.value:        "" => "134217728"
  parameter.36611763.apply_method:   "" => ""
  parameter.36611763.name:           "" => "max_allowed_packet"
  parameter.36611763.value:          "" => "67108864"
  parameter.3705142661.apply_method: "" => ""
  parameter.3705142661.name:         "" => "innodb_buffer_pool_size"
  parameter.3705142661.value:        "" => "{DBInstanceClassMemory*2/3}"
  parameter.484865451.apply_method:  "" => ""
  parameter.484865451.name:          "" => "query_cache_size"
  parameter.484865451.value:         "" => "67108864"
  parameter.950177639.apply_method:  "" => ""
  parameter.950177639.name:          "" => "log_bin_trust_function_creators"
  parameter.950177639.value:         "" => "1"

By using this flattened structure, we can easily identify changes to the parameters.

I am still trying to investigate more here

P.

@stack72
Copy link
Contributor

stack72 commented Dec 14, 2015

so I just ran this code with Terraform 0.6.8 in the same way you will have - plan, apply, destroy (not acceptance tests)

I get the following

https://gist.github.com/stack72/ea3af8e87971c62a2a6e

P.

@Seraf
Copy link

Seraf commented Dec 14, 2015

@stack72 the problem is not on the parameter group itself, but on the rds database WITH this group :)
I can terraform other resources with target. But when I target a database using this parameter group it fails.

I can terraform postgresql rds which doesn't have parameter groups and it works.

@stack72
Copy link
Contributor

stack72 commented Dec 14, 2015

@Seraf the rds instance only takes a db_parameter_group_name - it doesn't call the flattenParameters func. All the panic traces through the thread above all refer to the flattenParameters func

@j4ybee
Copy link
Author

j4ybee commented Dec 14, 2015

@stack72 but plan makes a comparison of the db_parameter_group parameters somewhere, right?

@dtryon
Copy link

dtryon commented Dec 14, 2015

+1
I'm getting the same issue on 0.6.3 and 0.6.8. I haven't changed anything in the terraform files for a few weeks. Are we sure this is not an AWS api change for mysql rds?

Error refreshing state: 4 error(s) occurred:

panic: runtime error: invalid memory address or nil pointer dereference
2015/12/14 14:45:36 terraform-provider-aws: [signal 0xb code=0x1 addr=0x0 pc=0x132fcd]
...
...
...
!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
* 1 error(s) occurred:

* aws_db_parameter_group.name_db_mysql_parameter_group: unexpected EOF
* 1 error(s) occurred:

* aws_subnet.public_subnet: unexpected EOF
* 1 error(s) occurred:

* aws_vpc.name_vpc_ireland: unexpected EOF
* 1 error(s) occurred:

* aws_subnet.app_subnet: unexpected EOF

@Seraf
Copy link

Seraf commented Dec 14, 2015

@stack72

On the params passed to flattenParameters() I get :

2015/12/14 16:07:10 [DEBUG] terraform-provider-aws: 2015/12/14 16:07:10 [DEBUG] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> len Parameters : %!s(int=8) <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws: 2015/12/14 16:07:10 [DEBUG] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> i : {
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   AllowedValues: "5242880-18446744073709551615",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   ApplyType: "static",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   DataType: "integer",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   Description: "The size in bytes of the memory buffer innodb uses to cache data and indexes of its tables",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   IsModifiable: true,
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   ParameterName: "innodb_buffer_pool_size",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   ParameterValue: "{DBInstanceClassMemory*2/3}",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   Source: "user"
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws: } <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws: 2015/12/14 16:07:10 [DEBUG] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> i : {
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   AllowedValues: "0,1",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   ApplyType: "dynamic",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   DataType: "boolean",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   Description: "Enforces restrictions on stored functions / triggers - logging for replication.",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   IsModifiable: true,
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   ParameterName: "log_bin_trust_function_creators",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   ParameterValue: "1",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   Source: "user"
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws: } <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws: 2015/12/14 16:07:10 [DEBUG] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> i : {
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   AllowedValues: "1024-1073741824",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   ApplyType: "dynamic",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   DataType: "integer",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   Description: "This value by default is small, to catch large (possibly incorrect) packets. Must be increased if using large BLOB columns or long strings. As big as largest BLOB. ",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   IsModifiable: true,
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   ParameterName: "max_allowed_packet",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   ParameterValue: "67108864",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   Source: "user"
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws: } <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws: 2015/12/14 16:07:10 [DEBUG] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> i : {
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   AllowedValues: "16384-1844674407370954752",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   ApplyType: "dynamic",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   DataType: "integer",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   Description: "Maximum size to which MEMORY tables are allowed to grow.",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   IsModifiable: true,
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   ParameterName: "max_heap_table_size",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   ParameterValue: "134217728",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   Source: "user"
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws: } <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws: 2015/12/14 16:07:10 [DEBUG] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> i : {
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   AllowedValues: "0-9223372036854774784",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   ApplyType: "dynamic",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   DataType: "integer",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   Description: "The amount of memory allocated for caching query results.",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   IsModifiable: true,
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   ParameterName: "query_cache_size",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   ParameterValue: "67108864",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   Source: "user"
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws: } <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws: 2015/12/14 16:07:10 [DEBUG] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> i : {
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   AllowedValues: "0-2",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   ApplyType: "static",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   DataType: "integer",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   Description: "For query results either don't cache (=OFF), cache except for NO_CACHE (=ON), or only CACHE (=DEMAND)",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   IsModifiable: true,
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   ParameterName: "query_cache_type",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   ParameterValue: "1",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   Source: "user"
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws: } <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws: 2015/12/14 16:07:10 [DEBUG] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> i : {
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   AllowedValues: "Africa/Cairo,Africa/Casablanca,Africa/Harare,Africa/Monrovia,Africa/Nairobi,Africa/Tripoli,Africa/Windhoek,America/Araguaina,America/Asuncion,America/Bogota,America/Caracas,America/Chihuahua,America/Cuiaba,America/Denver,America/Fortaleza,America/Guatemala,America/Halifax,America/Manaus,America/Matamoros,America/Monterrey,America/Montevideo,America/Phoenix,America/Santiago,America/Tijuana,Asia/Amman,Asia/Ashgabat,Asia/Baghdad,Asia/Baku,Asia/Bangkok,Asia/Beirut,Asia/Calcutta,Asia/Damascus,Asia/Dhaka,Asia/Irkutsk,Asia/Jerusalem,Asia/Kabul,Asia/Karachi,Asia/Kathmandu,Asia/Krasnoyarsk,Asia/Magadan,Asia/Muscat,Asia/Novosibirsk,Asia/Riyadh,Asia/Seoul,Asia/Shanghai,Asia/Singapore,Asia/Taipei,Asia/Tehran,Asia/Tokyo,Asia/Ulaanbaatar,Asia/Vladivostok,Asia/Yakutsk,Asia/Yerevan,Atlantic/Azores,Australia/Adelaide,Australia/Brisbane,Australia/Darwin,Australia/Hobart,Australia/Perth,Australia/Sydney,Canada/Newfoundland,Canada/Saskatchewan,Brazil/East,Europe/Amsterdam,Europe/Athens,Europe/Dublin,Europe/Helsinki,Europe/Istanbul,Europe/Kaliningrad,Europe/Moscow,Europe/Paris,Europe/Prague,Europe/Sarajevo,Pacific/Auckland,Pacific/Fiji,Pacific/Guam,Pacific/Honolulu,Pacific/Samoa,US/Alaska,US/Central,US/Eastern,US/East-Indiana,US/Pacific,UTC",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   ApplyType: "dynamic",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   DataType: "string",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   Description: "The server time zone",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   IsModifiable: false,
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   ParameterName: "time_zone",
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws:   Source: "user"
2015/12/14 16:07:10 [DEBUG] terraform-provider-aws: } <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

There's no ParameterValue attribute for the last item with the server time zone. Here is the error I guess ;) : https://github.com/hashicorp/terraform/blob/master/builtin/providers/aws/structure.go#L404

@stack72
Copy link
Contributor

stack72 commented Dec 14, 2015

@Seraf is this from your defined config?

@Seraf
Copy link

Seraf commented Dec 14, 2015

@stack72 I confirm that was the problem :

func flattenParameters(list []*rds.Parameter) []map[string]interface{} {
        result := make([]map[string]interface{}, 0, len(list))
        for _, i := range list {
                if i.ParameterValue != nil {
                        result = append(result, map[string]interface{}{
                                "name":  strings.ToLower(*i.ParameterName),
                                "value": strings.ToLower(*i.ParameterValue),
                        })
                }
        }
        return result
}

That makes my plan OK. I don't know where this time_zone parameter come from and if it was present before. But I guess that was added by AWS recently as we are a lot with different version to have the same bug. I'm not sure how the parameter time_zone is necessary to API calls as he doesn't seems to have a default value ...

Here is my db instance :

resource "aws_db_instance" "rds-mysql-eu-we1_prod" {
    depends_on = ["aws_security_group.rds-mysql-eu-we1_prod"]
    identifier = "rds-mysql-eu-we1-prod"
    allocated_storage = 10
    engine = "mysql"
    engine_version = "5.6.23"
    instance_class = "db.t2.small"
    name = "customer_prod"
    username = "customer"
    password = "xxxxxxxxxxxxx"
    multi_az = true
    apply_immediately = true
    maintenance_window = "tue:06:00-tue:07:00"
    backup_window = "02:00-04:00"
    backup_retention_period = 3
    parameter_group_name = "${aws_db_parameter_group.rds-optimized.id}"
    vpc_security_group_ids = ["${aws_security_group.rds-mysql-eu-we1_prod.id}"]
    db_subnet_group_name = "${aws_db_subnet_group.rds-mysql-eu-we1_prod.id}"

    tags {
        Name = "RDS-MYSQL-EU-WE1-PROD"
        subnet = "private"
        client = "${var.client}"
        env = "prod"
        role = "database"
        type = "mysql"
    }
}

@catsby
Copy link
Contributor

catsby commented Dec 14, 2015

That makes my plan OK. I don't know where this time_zone parameter come from and if it was present before. But I guess that was added by AWS recently as we are a lot with different version to have the same bug.

This seems to be the crux of it, and likely the simple fix. I'm testing things now, I'd like to understand why this was added, and when, but we may not find out... I suspect it's on the API side either way.

This seems to only be added if the db parameter group is actually used by a database(?). Attempts to reproduce it have failed when only using the db group itself... still testing things out
Thanks all! We'll get this patched up

@catsby
Copy link
Contributor

catsby commented Dec 14, 2015

Hey friends –

@stack72 and I have been unable to reproduce this, but clearly something is up 😱 The time_zone parameter name is likely the culprit since it has no value, and guarding against that scenario is easy enough, but we'd like to understand why it's there...

Can I get a summary of what regions this has been found in, and are you using a classic or VPC environment? I've tested several regions in VPCs with no luck, I'm trying class but it's pretty slow going...

Thanks!

@Seraf
Copy link

Seraf commented Dec 14, 2015

@catsby I guess it's a combination of differents parameters as you said as there's not a lot of activity on this thread.
I'm using a vpc on eu-west-1. I posted my db instance and parameter group above. I've also searched on api docs for any changes or something like this, but with no luck :(

Anyway thanks for the support :)

@dtryon
Copy link

dtryon commented Dec 14, 2015

Found in EU (Ireland) for me. That is eu-west-1. VPC for me as well.
Thank you!

@j4ybee
Copy link
Author

j4ybee commented Dec 14, 2015

@catsby VPC @ eu-central-1 and I have an empty parameter group (doesn't show anything when diff-ed against the AWS default default.mysql5.5). The parameter time_zone has been there all along (also without a value set to it). It defaults to UTC on AWS RDS instances without a chance for modification.

I didn't find any API changes, but there have been additional features released to AWS RDS on december 4th and 12th that could account for a change in behavior:
https://forums.aws.amazon.com/ann.jspa?annID=3404
https://forums.aws.amazon.com/ann.jspa?annID=3428

I will try to get a quote on that from AWS...

@marcinwalczyk
Copy link

I'm using a VPC on eu-west-1

@catsby
Copy link
Contributor

catsby commented Dec 14, 2015

I've opened a patch for this here #4318

Unfortunately I can't reproduce the issue, so while I'm sure it will behave correctly, I can't verify. Can someone who's experiencing this issue try it out?

@catsby catsby added the waiting-response An issue/pull request is waiting for a response from the community label Dec 14, 2015
@j4ybee
Copy link
Author

j4ybee commented Dec 14, 2015

@catsby I successfully tested your patch. Thx for the support!

@jen20 jen20 removed the waiting-response An issue/pull request is waiting for a response from the community label Dec 14, 2015
@jen20
Copy link
Contributor

jen20 commented Dec 14, 2015

Hi, @j4ybee - the patch @catsby put together at #4318 is merged to master now. If anyone else experiencing the issue on this thread still sees it with that patch, please reopen and let us know!

@jen20 jen20 closed this as completed Dec 14, 2015
@Seraf
Copy link

Seraf commented Dec 15, 2015

It does the job. Thanks !

@j4ybee
Copy link
Author

j4ybee commented Dec 15, 2015

Hey y'all, @catsby,

AWS has confirmed that this was a bug in the RDS API that is now resolved. I can confirm that the parameter in question ("time_zone") doesn't have an empty "ParameterValue" anymore.

But I guess it still is a good thing to have the fix in place to be more resilient here.

@catsby
Copy link
Contributor

catsby commented Dec 15, 2015

Thanks @j4ybee ! Is there a publicly accessible (or at least accessible with any AWS Account) link for that response, just to record for posterity?

@j4ybee
Copy link
Author

j4ybee commented Dec 15, 2015

Goog point @catsby. Unfortunately, I only have a business support ticket which is not public. I bounced this back to AWS...

@stack72
Copy link
Contributor

stack72 commented Dec 15, 2015

I'd like to bill them for a day's debugging LOL

(In actual seriousness, glad to see it's actually fixed at the source now)

@catsby
Copy link
Contributor

catsby commented Dec 15, 2015

Thank you @j4ybee

@ghost
Copy link

ghost commented Apr 29, 2020

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.

@ghost ghost locked and limited conversation to collaborators Apr 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants