Skip to content

Instantly share code, notes, and snippets.

@akerl
Created May 3, 2019 15:32
Show Gist options
  • Save akerl/55d9778d423aa0c385e8527ea2301b7f to your computer and use it in GitHub Desktop.
Save akerl/55d9778d423aa0c385e8527ea2301b7f to your computer and use it in GitHub Desktop.
~/src/akerl/linode-account master* ⇡ akerl@codepad
❯ tfa
linode_stackscript.this: Refreshing state... (ID: 425349)
linode_domain.wg: Refreshing state... (ID: 1219892)
data.linode_profile.profile: Refreshing state...
linode_instance.codepad: Refreshing state... (ID: 12945190)
module.pink-vpn.linode_instance.vpn: Creating...
alerts.#: "" => "<computed>"
backups.#: "" => "<computed>"
backups_enabled: "" => "<computed>"
boot_config_label: "" => "<computed>"
config.#: "" => "1"
config.0.devices.#: "" => "1"
config.0.devices.0.sda.#: "" => "1"
config.0.devices.0.sda.0.disk_id: "" => "<computed>"
config.0.devices.0.sda.0.disk_label: "" => "root"
config.0.devices.0.sdb.#: "" => "<computed>"
config.0.devices.0.sdc.#: "" => "<computed>"
config.0.devices.0.sdd.#: "" => "<computed>"
config.0.devices.0.sde.#: "" => "<computed>"
config.0.devices.0.sdf.#: "" => "<computed>"
config.0.devices.0.sdg.#: "" => "<computed>"
config.0.devices.0.sdh.#: "" => "<computed>"
config.0.helpers.#: "" => "<computed>"
config.0.kernel: "" => "linode/grub2"
config.0.label: "" => "default"
config.0.root_device: "" => "<computed>"
config.0.run_level: "" => "default"
config.0.virt_mode: "" => "paravirt"
disk.#: "" => "1"
disk.0.authorized_keys.#: "" => "1"
disk.0.authorized_keys.0: "" => "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGJ8nnGTRnVJR6Sz6lnYdRchw2Z4S9DFOKTHuJBnMYBS"
disk.0.filesystem: "" => "<computed>"
disk.0.id: "" => "<computed>"
disk.0.image: "" => "private/6185374"
disk.0.label: "" => "root"
disk.0.read_only: "" => "<computed>"
disk.0.size: "" => "10240"
disk.0.stackscript_data.%: "" => "2"
disk.0.stackscript_data.deploy_repo: "<sensitive>" => "<sensitive>"
disk.0.stackscript_data.users: "<sensitive>" => "<sensitive>"
disk.0.stackscript_id: "" => "425349"
ip_address: "" => "<computed>"
ipv4.#: "" => "<computed>"
ipv6: "" => "<computed>"
label: "" => "pink-wg"
private_ip_address: "" => "<computed>"
region: "" => "eu-west"
specs.#: "" => "<computed>"
status: "" => "<computed>"
swap_size: "" => "<computed>"
type: "" => "g6-standard-1"
watchdog_enabled: "" => "true"
Error: Error applying plan:
1 error(s) occurred:
* module.pink-vpn.linode_instance.vpn: 1 error(s) occurred:
* linode_instance.vpn: unexpected EOF
Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
panic: assignment to entry in nil map
2019-05-03T15:27:14.800Z [DEBUG] plugin.terraform-provider-linode_v1.6.0_x4:
2019-05-03T15:27:14.800Z [DEBUG] plugin.terraform-provider-linode_v1.6.0_x4: goroutine 132 [running]:
2019-05-03T15:27:14.800Z [DEBUG] plugin.terraform-provider-linode_v1.6.0_x4: github.com/terraform-providers/terraform-provider-linode/linode.createInstanceDisk(0xc00054de00, 0xc0001bc1c0, 0x40, 0xc00012b470, 0x0, 0xbb8, 0xc00059c780, 0xc00059c8c0, 0xc00059c9c0, 0xc00059cac0, ...)
2019-05-03T15:27:14.800Z [DEBUG] plugin.terraform-provider-linode_v1.6.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-linode/linode/linode_instance_helpers.go:530 +0x630
2019-05-03T15:27:14.800Z [DEBUG] plugin.terraform-provider-linode_v1.6.0_x4: github.com/terraform-providers/terraform-provider-linode/linode.resourceLinodeInstanceCreate(0xc0003ed030, 0xf09ba0, 0xc0006fe000, 0xc0003ed030, 0x0)
2019-05-03T15:27:14.800Z [DEBUG] plugin.terraform-provider-linode_v1.6.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-linode/linode/resource_linode_instance.go:1022 +0x2254
2019-05-03T15:27:14.800Z [DEBUG] plugin.terraform-provider-linode_v1.6.0_x4: github.com/terraform-providers/terraform-provider-linode/vendor/github.com/hashicorp/terraform/helper/schema.(*Resource).Apply(0xc000281880, 0xc000384be0, 0xc0002a5aa0, 0xf09ba0, 0xc0006fe000, 0x40b801, 0xc000156b80, 0x4c1d4c)
2019-05-03T15:27:14.800Z [DEBUG] plugin.terraform-provider-linode_v1.6.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-linode/vendor/github.com/hashicorp/terraform/helper/schema/resource.go:225 +0x351
2019-05-03T15:27:14.800Z [DEBUG] plugin.terraform-provider-linode_v1.6.0_x4: github.com/terraform-providers/terraform-provider-linode/vendor/github.com/hashicorp/terraform/helper/schema.(*Provider).Apply(0xc0001ee1c0, 0xc000384b90, 0xc000384be0, 0xc0002a5aa0, 0xc00036e000, 0x18, 0x7fea713c7d80)
2019-05-03T15:27:14.800Z [DEBUG] plugin.terraform-provider-linode_v1.6.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-linode/vendor/github.com/hashicorp/terraform/helper/schema/provider.go:283 +0x9c
2019-05-03T15:27:14.800Z [DEBUG] plugin.terraform-provider-linode_v1.6.0_x4: github.com/terraform-providers/terraform-provider-linode/vendor/github.com/hashicorp/terraform/plugin.(*ResourceProviderServer).Apply(0xc00057a240, 0xc0002a5600, 0xc000147a70, 0x0, 0x0)
2019-05-03T15:27:14.800Z [DEBUG] plugin.terraform-provider-linode_v1.6.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-linode/vendor/github.com/hashicorp/terraform/plugin/resource_provider.go:527 +0x57
2019-05-03T15:27:14.800Z [DEBUG] plugin.terraform-provider-linode_v1.6.0_x4: reflect.Value.call(0xc000077020, 0xc000140020, 0x13, 0xf0dba4, 0x4, 0xc000156f18, 0x3, 0x3, 0xc000383d80, 0x101030302030302, ...)
2019-05-03T15:27:14.800Z [DEBUG] plugin.terraform-provider-linode_v1.6.0_x4: /opt/goenv/versions/1.11.5/src/reflect/value.go:447 +0x454
2019-05-03T15:27:14.800Z [DEBUG] plugin.terraform-provider-linode_v1.6.0_x4: reflect.Value.Call(0xc000077020, 0xc000140020, 0x13, 0xc00044e718, 0x3, 0x3, 0x18, 0xc000592a10, 0xf)
2019-05-03T15:27:14.800Z [DEBUG] plugin.terraform-provider-linode_v1.6.0_x4: /opt/goenv/versions/1.11.5/src/reflect/value.go:308 +0xa4
2019-05-03T15:27:14.800Z [DEBUG] plugin.terraform-provider-linode_v1.6.0_x4: net/rpc.(*service).call(0xc00059c000, 0xc0000a2280, 0xc0002980d0, 0xc0002980e0, 0xc000170080, 0xc000596680, 0xd5afe0, 0xc0002a5600, 0x16, 0xd5b020, ...)
2019-05-03T15:27:14.800Z [DEBUG] plugin.terraform-provider-linode_v1.6.0_x4: /opt/goenv/versions/1.11.5/src/net/rpc/server.go:384 +0x14e
2019-05-03T15:27:14.800Z [DEBUG] plugin.terraform-provider-linode_v1.6.0_x4: created by net/rpc.(*Server).ServeCodec
2019-05-03T15:27:14.800Z [DEBUG] plugin.terraform-provider-linode_v1.6.0_x4: /opt/goenv/versions/1.11.5/src/net/rpc/server.go:481 +0x47e
2019-05-03T15:27:14.801Z [DEBUG] plugin: plugin process exited: path=/home/akerl/src/akerl/linode-account/.terraform/plugins/linux_amd64/terraform-provider-linode_v1.6.0_x4
2019/05/03 15:27:14 [TRACE] root.pink-vpn: eval: *terraform.EvalWriteState
2019/05/03 15:27:14 [TRACE] root.pink-vpn: eval: *terraform.EvalApplyProvisioners
2019/05/03 15:27:14 [TRACE] root.pink-vpn: eval: *terraform.EvalIf
2019/05/03 15:27:14 [TRACE] root.pink-vpn: eval: *terraform.EvalWriteState
2019/05/03 15:27:14 [TRACE] root.pink-vpn: eval: *terraform.EvalWriteDiff
2019/05/03 15:27:14 [TRACE] root.pink-vpn: eval: *terraform.EvalApplyPost
2019/05/03 15:27:14 [ERROR] root.pink-vpn: eval: *terraform.EvalApplyPost, err: 1 error(s) occurred:
* linode_instance.vpn: unexpected EOF
2019/05/03 15:27:14 [ERROR] root.pink-vpn: eval: *terraform.EvalSequence, err: 1 error(s) occurred:
* linode_instance.vpn: unexpected EOF
2019/05/03 15:27:14 [TRACE] [walkApply] Exiting eval tree: module.pink-vpn.linode_instance.vpn
2019/05/03 15:27:14 [TRACE] dag/walk: upstream errored, not walking "module.pink-vpn.output.ip_address"
2019/05/03 15:27:14 [TRACE] dag/walk: upstream errored, not walking "output.pink-vpn-address"
2019/05/03 15:27:14 [TRACE] dag/walk: upstream errored, not walking "linode_domain_record.pink"
2019/05/03 15:27:14 [TRACE] dag/walk: upstream errored, not walking "provider.linode (close)"
2019/05/03 15:27:14 [TRACE] dag/walk: upstream errored, not walking "meta.count-boundary (count boundary fixup)"
2019/05/03 15:27:14 [TRACE] dag/walk: upstream errored, not walking "root"
2019/05/03 15:27:14 [TRACE] Preserving existing state lineage "142a6ab7-53ac-02fe-3a43-6930a1c7b8f9"
2019/05/03 15:27:14 [TRACE] Preserving existing state lineage "142a6ab7-53ac-02fe-3a43-6930a1c7b8f9"
2019/05/03 15:27:14 [TRACE] Preserving existing state lineage "142a6ab7-53ac-02fe-3a43-6930a1c7b8f9"
2019/05/03 15:27:14 [TRACE] Preserving existing state lineage "142a6ab7-53ac-02fe-3a43-6930a1c7b8f9"
2019/05/03 15:27:14 [DEBUG] plugin: waiting for all plugin processes to complete...
2019-05-03T15:27:14.812Z [WARN ] plugin: error closing client during Kill: err="connection is shut down"
2019-05-03T15:27:14.812Z [DEBUG] plugin.terraform: remote-exec-provisioner (internal) 2019/05/03 15:27:14 [ERR] plugin: plugin server: accept unix /tmp/plugin455005384: use of closed network connection
2019-05-03T15:27:14.812Z [DEBUG] plugin.terraform: remote-exec-provisioner (internal) 2019/05/03 15:27:14 [DEBUG] plugin: waiting for all plugin processes to complete...
2019-05-03T15:27:14.817Z [DEBUG] plugin: plugin process exited: path=/usr/bin/terraform
!!!!!!!!!!!!!!!!!!!!!!!!!!! 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
@ellisbenjamin
Copy link

Hey there Les,

Thanks for reporting this issue. I know it's been a long time, and I see that we have a PR in from you to fix this in the TF provider. I recently updated the provider for use with TF 0.12, which involved making some changes to resource_linode_stackscript.go as well. Would it be possible for you to send me a sample .tf file that caused this crash so that I can reproduce it?

Many enthusiastic thank you's,

Ben

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment