Skip to content

Instantly share code, notes, and snippets.

@DanHam
Created May 10, 2020 12:52
Show Gist options
  • Save DanHam/e3f7f8041facfd15f593a66f653fe983 to your computer and use it in GitHub Desktop.
Save DanHam/e3f7f8041facfd15f593a66f653fe983 to your computer and use it in GitHub Desktop.
Gist for Packer Issue: amazon-ebssurrogate crash
2020/05/10 12:41:41 [INFO] Packer version: 1.6.0-dev (9c37d2072) [go1.14.2 darwin amd64]
2020/05/10 12:41:41 Checking 'PACKER_CONFIG' for a config file path
2020/05/10 12:41:41 'PACKER_CONFIG' not set; checking the default config file path
2020/05/10 12:41:41 Attempting to open config file: /Users/dan/.packerconfig
2020/05/10 12:41:41 [WARN] Config file doesn't exist: /Users/dan/.packerconfig
2020/05/10 12:41:41 Setting cache directory: /Users/dan/working/packer-templates-cloud/debian/packer_cache
2020/05/10 12:41:41 Creating plugin client for path: /Users/dan/working/go/bin/packer
2020/05/10 12:41:41 Starting plugin: /Users/dan/working/go/bin/packer []string{"/Users/dan/working/go/bin/packer", "plugin", "packer-builder-amazon-ebssurrogate"}
2020/05/10 12:41:41 Waiting for RPC address for: /Users/dan/working/go/bin/packer
2020/05/10 12:41:41 packer-builder-amazon-ebssurrogate plugin: [INFO] Packer version: 1.6.0-dev (9c37d2072) [go1.14.2 darwin amd64]
2020/05/10 12:41:41 packer-builder-amazon-ebssurrogate plugin: Checking 'PACKER_CONFIG' for a config file path
2020/05/10 12:41:41 packer-builder-amazon-ebssurrogate plugin: 'PACKER_CONFIG' not set; checking the default config file path
2020/05/10 12:41:41 packer-builder-amazon-ebssurrogate plugin: Attempting to open config file: /Users/dan/.packerconfig
2020/05/10 12:41:41 packer-builder-amazon-ebssurrogate plugin: [WARN] Config file doesn't exist: /Users/dan/.packerconfig
2020/05/10 12:41:41 packer-builder-amazon-ebssurrogate plugin: Setting cache directory: /Users/dan/working/packer-templates-cloud/debian/packer_cache
2020/05/10 12:41:41 packer-builder-amazon-ebssurrogate plugin: args: []string{"packer-builder-amazon-ebssurrogate"}
2020/05/10 12:41:41 packer-builder-amazon-ebssurrogate plugin: Plugin address: unix /var/folders/yd/7yz4bzgn3b99x8zq9mzjvxw80000gp/T/packer-plugin879428335
2020/05/10 12:41:41 packer-builder-amazon-ebssurrogate plugin: Waiting for connection...
2020/05/10 12:41:41 Received unix RPC address for /Users/dan/working/go/bin/packer: addr is /var/folders/yd/7yz4bzgn3b99x8zq9mzjvxw80000gp/T/packer-plugin879428335
2020/05/10 12:41:41 packer-builder-amazon-ebssurrogate plugin: Serving a plugin connection...
2020/05/10 12:41:41 Creating plugin client for path: /Users/dan/working/go/bin/packer
2020/05/10 12:41:41 Starting plugin: /Users/dan/working/go/bin/packer []string{"/Users/dan/working/go/bin/packer", "plugin", "packer-provisioner-shell"}
2020/05/10 12:41:41 Waiting for RPC address for: /Users/dan/working/go/bin/packer
2020/05/10 12:41:41 packer-provisioner-shell plugin: [INFO] Packer version: 1.6.0-dev (9c37d2072) [go1.14.2 darwin amd64]
2020/05/10 12:41:41 packer-provisioner-shell plugin: Checking 'PACKER_CONFIG' for a config file path
2020/05/10 12:41:41 packer-provisioner-shell plugin: 'PACKER_CONFIG' not set; checking the default config file path
2020/05/10 12:41:41 packer-provisioner-shell plugin: Attempting to open config file: /Users/dan/.packerconfig
2020/05/10 12:41:41 packer-provisioner-shell plugin: [WARN] Config file doesn't exist: /Users/dan/.packerconfig
2020/05/10 12:41:41 packer-provisioner-shell plugin: Setting cache directory: /Users/dan/working/packer-templates-cloud/debian/packer_cache
2020/05/10 12:41:41 packer-provisioner-shell plugin: args: []string{"packer-provisioner-shell"}
2020/05/10 12:41:41 packer-provisioner-shell plugin: Plugin address: unix /var/folders/yd/7yz4bzgn3b99x8zq9mzjvxw80000gp/T/packer-plugin037198571
2020/05/10 12:41:41 packer-provisioner-shell plugin: Waiting for connection...
2020/05/10 12:41:41 Received unix RPC address for /Users/dan/working/go/bin/packer: addr is /var/folders/yd/7yz4bzgn3b99x8zq9mzjvxw80000gp/T/packer-plugin037198571
2020/05/10 12:41:41 packer-provisioner-shell plugin: Serving a plugin connection...
2020/05/10 12:41:41 Creating plugin client for path: /Users/dan/working/go/bin/packer
2020/05/10 12:41:41 Starting plugin: /Users/dan/working/go/bin/packer []string{"/Users/dan/working/go/bin/packer", "plugin", "packer-provisioner-file"}
2020/05/10 12:41:41 Waiting for RPC address for: /Users/dan/working/go/bin/packer
2020/05/10 12:41:41 packer-provisioner-file plugin: [INFO] Packer version: 1.6.0-dev (9c37d2072) [go1.14.2 darwin amd64]
2020/05/10 12:41:41 packer-provisioner-file plugin: Checking 'PACKER_CONFIG' for a config file path
2020/05/10 12:41:41 packer-provisioner-file plugin: 'PACKER_CONFIG' not set; checking the default config file path
2020/05/10 12:41:41 packer-provisioner-file plugin: Attempting to open config file: /Users/dan/.packerconfig
2020/05/10 12:41:41 packer-provisioner-file plugin: [WARN] Config file doesn't exist: /Users/dan/.packerconfig
2020/05/10 12:41:41 packer-provisioner-file plugin: Setting cache directory: /Users/dan/working/packer-templates-cloud/debian/packer_cache
2020/05/10 12:41:41 packer-provisioner-file plugin: args: []string{"packer-provisioner-file"}
2020/05/10 12:41:41 packer-provisioner-file plugin: Plugin address: unix /var/folders/yd/7yz4bzgn3b99x8zq9mzjvxw80000gp/T/packer-plugin638325775
2020/05/10 12:41:41 packer-provisioner-file plugin: Waiting for connection...
2020/05/10 12:41:41 Received unix RPC address for /Users/dan/working/go/bin/packer: addr is /var/folders/yd/7yz4bzgn3b99x8zq9mzjvxw80000gp/T/packer-plugin638325775
2020/05/10 12:41:41 packer-provisioner-file plugin: Serving a plugin connection...
2020/05/10 12:41:41 Creating plugin client for path: /Users/dan/working/go/bin/packer
2020/05/10 12:41:41 Starting plugin: /Users/dan/working/go/bin/packer []string{"/Users/dan/working/go/bin/packer", "plugin", "packer-provisioner-shell"}
2020/05/10 12:41:41 Waiting for RPC address for: /Users/dan/working/go/bin/packer
2020/05/10 12:41:41 packer-provisioner-shell plugin: [INFO] Packer version: 1.6.0-dev (9c37d2072) [go1.14.2 darwin amd64]
2020/05/10 12:41:41 packer-provisioner-shell plugin: Checking 'PACKER_CONFIG' for a config file path
2020/05/10 12:41:41 packer-provisioner-shell plugin: 'PACKER_CONFIG' not set; checking the default config file path
2020/05/10 12:41:41 packer-provisioner-shell plugin: Attempting to open config file: /Users/dan/.packerconfig
2020/05/10 12:41:41 packer-provisioner-shell plugin: [WARN] Config file doesn't exist: /Users/dan/.packerconfig
2020/05/10 12:41:41 packer-provisioner-shell plugin: Setting cache directory: /Users/dan/working/packer-templates-cloud/debian/packer_cache
2020/05/10 12:41:41 packer-provisioner-shell plugin: args: []string{"packer-provisioner-shell"}
2020/05/10 12:41:41 packer-provisioner-shell plugin: Plugin address: unix /var/folders/yd/7yz4bzgn3b99x8zq9mzjvxw80000gp/T/packer-plugin477603419
2020/05/10 12:41:41 Received unix RPC address for /Users/dan/working/go/bin/packer: addr is /var/folders/yd/7yz4bzgn3b99x8zq9mzjvxw80000gp/T/packer-plugin477603419
2020/05/10 12:41:41 packer-provisioner-shell plugin: Waiting for connection...
2020/05/10 12:41:41 packer-provisioner-shell plugin: Serving a plugin connection...
2020/05/10 12:41:41 Build debug mode: false
2020/05/10 12:41:41 Force build: false
2020/05/10 12:41:41 On error:
2020/05/10 12:41:41 Preparing build: amazon-ebssurrogate
2020/05/10 12:41:41 Waiting on builds to complete...
2020/05/10 12:41:41 Starting build run: amazon-ebssurrogate
2020/05/10 12:41:41 Running builder: amazon-ebssurrogate
2020/05/10 12:41:41 [INFO] (telemetry) Starting builder amazon-ebssurrogate
2020/05/10 12:41:41 packer-builder-amazon-ebssurrogate plugin: Found region eu-west-2
2020/05/10 12:41:41 packer-builder-amazon-ebssurrogate plugin: [INFO] AWS Auth provider used: "SharedConfigCredentials: /Users/dan/.aws/credentials"
2020/05/10 12:41:41 packer-builder-amazon-ebssurrogate plugin: [INFO] (aws): No AWS timeout and polling overrides have been set. Packer will default to waiter-specific delays and timeouts. If you would like to customize the length of time between retries and max number of retries you may do so by setting the environment variables AWS_POLL_DELAY_SECONDS and AWS_MAX_ATTEMPTS to your desired values.
2020/05/10 12:41:42 packer-builder-amazon-ebssurrogate plugin: Using AMI Filters {
2020/05/10 12:41:42 packer-builder-amazon-ebssurrogate plugin: Filters: [{
2020/05/10 12:41:42 packer-builder-amazon-ebssurrogate plugin: Name: "name",
2020/05/10 12:41:42 packer-builder-amazon-ebssurrogate plugin: Values: ["debian-stretch-hvm-x86_64-gp2-*"]
2020/05/10 12:41:42 packer-builder-amazon-ebssurrogate plugin: }],
2020/05/10 12:41:42 packer-builder-amazon-ebssurrogate plugin: Owners: ["379101102735"]
2020/05/10 12:41:42 packer-builder-amazon-ebssurrogate plugin: }
2020/05/10 12:41:43 packer-builder-amazon-ebssurrogate plugin: [DEBUG] Waiting for temporary security group: sg-0e0c63f0feeadeb0b
2020/05/10 12:41:43 packer-builder-amazon-ebssurrogate plugin: [DEBUG] Found security group sg-0e0c63f0feeadeb0b
2020/05/10 12:41:43 packer-builder-amazon-ebssurrogate plugin: [DEBUG] base64 encoding user data...
2020/05/10 12:42:15 packer-builder-amazon-ebssurrogate plugin: [INFO] Not using winrm communicator, skipping get password...
2020/05/10 12:42:15 packer-builder-amazon-ebssurrogate plugin: [INFO] Waiting for SSH, up to timeout: 15m0s
2020/05/10 12:42:15 packer-builder-amazon-ebssurrogate plugin: Using host value: 3.8.8.143
2020/05/10 12:42:15 packer-builder-amazon-ebssurrogate plugin: [INFO] Attempting SSH connection to 3.8.8.143:22...
2020/05/10 12:42:15 packer-builder-amazon-ebssurrogate plugin: [DEBUG] reconnecting to TCP connection for SSH
2020/05/10 12:42:15 packer-builder-amazon-ebssurrogate plugin: [DEBUG] handshaking with SSH
2020/05/10 12:42:15 packer-builder-amazon-ebssurrogate plugin: [DEBUG] handshake complete!
2020/05/10 12:42:15 packer-builder-amazon-ebssurrogate plugin: [DEBUG] Opening new ssh session
2020/05/10 12:42:16 packer-builder-amazon-ebssurrogate plugin: [INFO] agent forwarding enabled
2020/05/10 12:42:16 packer-builder-amazon-ebssurrogate plugin: Running the provision hook
2020/05/10 12:42:16 [INFO] (telemetry) Starting provisioner shell
2020/05/10 12:42:16 packer-provisioner-shell plugin: Opening /var/folders/yd/7yz4bzgn3b99x8zq9mzjvxw80000gp/T/packer-shell464826702 for reading
2020/05/10 12:42:16 packer-provisioner-shell plugin: [INFO] 48 bytes written for 'uploadData'
2020/05/10 12:42:16 packer-builder-amazon-ebssurrogate plugin: [DEBUG] Opening new ssh session
2020/05/10 12:42:16 [INFO] 48 bytes written for 'uploadData'
---
PROVISIONER OUTPUT
---
2020/05/10 12:46:21 packer-provisioner-shell plugin: [INFO] RPC client: Communicator ended with: 0
2020/05/10 12:46:21 [INFO] (telemetry) ending shell
2020/05/10 12:48:10 packer-builder-amazon-ebssurrogate plugin: panic: runtime error: invalid memory address or nil pointer dereference
2020/05/10 12:48:10 packer-builder-amazon-ebssurrogate plugin: [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x53adf62]
2020/05/10 12:48:10 packer-builder-amazon-ebssurrogate plugin:
2020/05/10 12:48:10 packer-builder-amazon-ebssurrogate plugin: goroutine 36 [running]:
2020/05/10 12:48:10 packer-builder-amazon-ebssurrogate plugin: github.com/hashicorp/packer/builder/amazon/common.(*StepCreateSSMTunnel).Cleanup(0xc00052e1e0, 0x86625c0, 0xc0002473b0)
2020/05/10 12:48:10 packer-builder-amazon-ebssurrogate plugin: /Users/dan/working/go/src/github.com/hashicorp/packer/builder/amazon/common/step_create_ssm_tunnel.go:95 +0xf2
2020/05/10 12:48:10 packer-builder-amazon-ebssurrogate plugin: github.com/hashicorp/packer/helper/multistep.(*BasicRunner).Run(0xc000247530, 0x8687b40, 0xc000896c40, 0x86625c0, 0xc0002473b0)
2020/05/10 12:48:10 packer-builder-amazon-ebssurrogate plugin: /Users/dan/working/go/src/github.com/hashicorp/packer/helper/multistep/basic_runner.go:79 +0x2c6
2020/05/10 12:48:10 packer-builder-amazon-ebssurrogate plugin: github.com/hashicorp/packer/builder/amazon/ebssurrogate.(*Builder).Run(0xc00027d800, 0x8687b40, 0xc000896c40, 0x86a1960, 0xc000246e70, 0x8613320, 0xc00000f2c0, 0x0, 0x0, 0xc000092bd0, ...)
2020/05/10 12:48:10 packer-builder-amazon-ebssurrogate plugin: /Users/dan/working/go/src/github.com/hashicorp/packer/builder/amazon/ebssurrogate/builder.go:364 +0x1ad4
2020/05/10 12:48:10 packer-builder-amazon-ebssurrogate plugin: github.com/hashicorp/packer/packer/rpc.(*BuilderServer).Run(0xc0001d3b40, 0x1, 0xc0001b65f0, 0x0, 0x0)
2020/05/10 12:48:10 packer-builder-amazon-ebssurrogate plugin: /Users/dan/working/go/src/github.com/hashicorp/packer/packer/rpc/builder.go:117 +0x1bd
2020/05/10 12:48:10 packer-builder-amazon-ebssurrogate plugin: reflect.Value.call(0xc0001b4c60, 0xc000010108, 0x13, 0x7f0b098, 0x4, 0xc000092f08, 0x3, 0x3, 0x8032740, 0xc00006d800, ...)
2020/05/10 12:48:10 packer-builder-amazon-ebssurrogate plugin: /opt/local/lib/go/src/reflect/value.go:460 +0x8ab
2020/05/10 12:48:10 packer-builder-amazon-ebssurrogate plugin: reflect.Value.Call(0xc0001b4c60, 0xc000010108, 0x13, 0xc00051b708, 0x3, 0x3, 0xc00088ee38, 0xc0008807d8, 0x405f9c0)
2020/05/10 12:48:10 packer-builder-amazon-ebssurrogate plugin: /opt/local/lib/go/src/reflect/value.go:321 +0xb4
2020/05/10 12:48:10 packer-builder-amazon-ebssurrogate plugin: net/rpc.(*service).call(0xc0001d3bc0, 0xc00018edc0, 0xc0001b6c48, 0xc0001b6c50, 0xc00050e380, 0xc0001aba00, 0x722f100, 0xc0001b624c, 0x18a, 0x715f280, ...)
2020/05/10 12:48:10 packer-builder-amazon-ebssurrogate plugin: /opt/local/lib/go/src/net/rpc/server.go:377 +0x17f
2020/05/10 12:48:10 packer-builder-amazon-ebssurrogate plugin: created by net/rpc.(*Server).ServeCodec
2020/05/10 12:48:10 packer-builder-amazon-ebssurrogate plugin: /opt/local/lib/go/src/net/rpc/server.go:474 +0x42b
2020/05/10 12:48:10 /Users/dan/working/go/bin/packer: plugin process exited
2020/05/10 12:48:10 [INFO] (telemetry) ending amazon-ebssurrogate
2020/05/10 12:48:10 machine readable: error-count []string{"1"}
==> Some builds didn't complete successfully and had errors:
2020/05/10 12:48:10 machine readable: amazon-ebssurrogate,error []string{"unexpected EOF"}
==> Builds finished but no artifacts were created.
2020/05/10 12:48:10 [INFO] (telemetry) Finalizing.
2020/05/10 12:48:10 waiting for all plugin processes to complete...
2020/05/10 12:48:10 /Users/dan/working/go/bin/packer: plugin process exited
2020/05/10 12:48:10 /Users/dan/working/go/bin/packer: plugin process exited
2020/05/10 12:48:10 /Users/dan/working/go/bin/packer: plugin process exited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment