Skip to content

Instantly share code, notes, and snippets.

@anish
Last active December 10, 2018 23:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anish/adfa2873d5ca3964892304ec4c3d6aed to your computer and use it in GitHub Desktop.
Save anish/adfa2873d5ca3964892304ec4c3d6aed to your computer and use it in GitHub Desktop.
packer_communicator_none_crash
2018/12/10 15:19:49 packer: 2018/12/10 15:19:49 Running the provision hook
Build 'sfdc-base' errored: unexpected EOF
==> Some builds didn't complete successfully and had errors:
--> sfdc-base: unexpected EOF
==> Builds finished but no artifacts were created.
2018/12/10 15:19:49 packer: panic: interface conversion: interface is nil, not packer.Communicator
2018/12/10 15:19:49 packer:
2018/12/10 15:19:49 packer: goroutine 83 [running]:
panic: interface conversion: interface is nil, not packer.Communicator
2018/12/10 15:19:49 packer:
2018/12/10 15:19:49 packer: goroutine 83 [running]:
2018/12/10 15:19:49 packer: github.com/hashicorp/packer/common.(*StepCleanupTempKeys).Run(0xc42000e010, 0x3c2e4c0, 0xc42030cf00, 0x3c2c000, 0xc4203f0420, 0x0)
2018/12/10 15:19:49 packer: /dump/workspace/sfdc/packer6/src/github.com/hashicorp/packer/common/step_cleanup_temp_keys.go:23 +0x9e
2018/12/10 15:19:49 packer: github.com/hashicorp/packer/helper/multistep.(*BasicRunner).Run(0xc42030cec0, 0x3c2c000, 0xc4203f0420)
2018/12/10 15:19:49 packer: /dump/workspace/sfdc/packer6/src/github.com/hashicorp/packer/helper/multistep/basic_runner.go:72 +0x229
2018/12/10 15:19:49 packer: github.com/hashicorp/packer/builder/qemu.(*Builder).Run(0xc42008c680, 0x3c32280, 0xc4202a31c0, 0x3c23ac0, 0xc4202aa310, 0x3c2e880, 0xc42000e008, 0xc4203f0000, 0x0, 0xc4204e8480, ...)
2018/12/10 15:19:49 packer: /dump/workspace/sfdc/packer6/src/github.com/hashicorp/packer/builder/qemu/builder.go:449 +0xe16
2018/12/10 15:19:49 packer: github.com/hashicorp/packer/packer/rpc.(*BuilderServer).Run(0xc4204d80c0, 0x1, 0xc4202aa0f0, 0x0, 0x0)
2018/12/10 15:19:49 packer: /dump/workspace/sfdc/packer6/src/github.com/hashicorp/packer/packer/rpc/builder.go:94 +0x1ea
2018/12/10 15:19:49 packer: reflect.Value.call(0xc4204e8480, 0xc42019e060, 0x13, 0x28641af, 0x4, 0xc4203abf20, 0x3, 0x3, 0xc4200bbe00, 0xc4202f2ca0, ...)
2018/12/10 15:19:49 packer: /usr/local/go/src/reflect/value.go:434 +0x91f
2018/12/10 15:19:49 packer: reflect.Value.Call(0xc4204e8480, 0xc42019e060, 0x13, 0xc4202b9f20, 0x3, 0x3, 0xc4202b9f60, 0x71af23, 0x2159900)
2018/12/10 15:19:49 packer: /usr/local/go/src/reflect/value.go:302 +0xa4
2018/12/10 15:19:49 packer: net/rpc.(*service).call(0xc420508100, 0xc420508080, 0xc4202d6010, 0xc42046e200, 0xc4201a0440, 0x2174600, 0xc4202aa0bc, 0x18a, 0x2102400, 0xc4202aa0f0, ...)
2018/12/10 15:19:49 packer: /usr/local/go/src/net/rpc/server.go:387 +0x144
2018/12/10 15:19:49 packer: created by net/rpc.(*Server).ServeCodec
2018/12/10 15:19:49 packer: /usr/local/go/src/net/rpc/server.go:481 +0x404
2018/12/10 15:19:49 [INFO] (telemetry) ending qemu
2018/12/10 15:19:49 /media/data/workspace/sfdc/packer6/src/github.com/hashicorp/packer/bin/packer: plugin process exited
2018/12/10 15:19:49 ui error: Build 'sfdc-base' errored: unexpected EOF
2018/12/10 15:19:49 Builds completed. Waiting on interrupt barrier...
2018/12/10 15:19:49 machine readable: error-count []string{"1"}
2018/12/10 15:19:49 ui error:
==> Some builds didn't complete successfully and had errors:
2018/12/10 15:19:49 machine readable: sfdc-base,error []string{"unexpected EOF"}
2018/12/10 15:19:49 ui error: --> sfdc-base: unexpected EOF
2018/12/10 15:19:49 ui:
==> Builds finished but no artifacts were created.
2018/12/10 15:19:49 [INFO] (telemetry) Finalizing.
2018/12/10 15:19:49 waiting for all plugin processes to complete...
2018/12/10 15:19:49 /media/data/workspace/sfdc/packer6/src/github.com/hashicorp/packer/bin/packer: plugin process exited
2018/12/10 15:19:49 packer: github.com/hashicorp/packer/common.(*StepCleanupTempKeys).Run(0xc42000e010, 0x3c2e4c0, 0xc42030cf00, 0x3c2c000, 0xc4203f0420, 0x0)
2018/12/10 15:19:49 packer: /dump/workspace/sfdc/packer6/src/github.com/hashicorp/packer/common/step_cleanup_temp_keys.go:23 +0x9e
2018/12/10 15:19:49 packer: github.com/hashicorp/packer/helper/multistep.(*BasicRunner).Run(0xc42030cec0, 0x3c2c000, 0xc4203f0420)
2018/12/10 15:19:49 packer: /dump/workspace/sfdc/packer6/src/github.com/hashicorp/packer/helper/multistep/basic_runner.go:72 +0x229
2018/12/10 15:19:49 packer: github.com/hashicorp/packer/builder/qemu.(*Builder).Run(0xc42008c680, 0x3c32280, 0xc4202a31c0, 0x3c23ac0, 0xc4202aa310, 0x3c2e880, 0xc42000e008, 0xc4203f0000, 0x0, 0xc4204e8480, ...)
2018/12/10 15:19:49 packer: /dump/workspace/sfdc/packer6/src/github.com/hashicorp/packer/builder/qemu/builder.go:449 +0xe16
2018/12/10 15:19:49 packer: github.com/hashicorp/packer/packer/rpc.(*BuilderServer).Run(0xc4204d80c0, 0x1, 0xc4202aa0f0, 0x0, 0x0)
2018/12/10 15:19:49 packer: /dump/workspace/sfdc/packer6/src/github.com/hashicorp/packer/packer/rpc/builder.go:94 +0x1ea
2018/12/10 15:19:49 packer: reflect.Value.call(0xc4204e8480, 0xc42019e060, 0x13, 0x28641af, 0x4, 0xc4203abf20, 0x3, 0x3, 0xc4200bbe00, 0xc4202f2ca0, ...)
2018/12/10 15:19:49 packer: /usr/local/go/src/reflect/value.go:434 +0x91f
2018/12/10 15:19:49 packer: reflect.Value.Call(0xc4204e8480, 0xc42019e060, 0x13, 0xc4202b9f20, 0x3, 0x3, 0xc4202b9f60, 0x71af23, 0x2159900)
2018/12/10 15:19:49 packer: /usr/local/go/src/reflect/value.go:302 +0xa4
2018/12/10 15:19:49 packer: net/rpc.(*service).call(0xc420508100, 0xc420508080, 0xc4202d6010, 0xc42046e200, 0xc4201a0440, 0x2174600, 0xc4202aa0bc, 0x18a, 0x2102400, 0xc4202aa0f0, ...)
2018/12/10 15:19:49 packer: /usr/local/go/src/net/rpc/server.go:387 +0x144
2018/12/10 15:19:49 packer: created by net/rpc.(*Server).ServeCodec
2018/12/10 15:19:49 packer: /usr/local/go/src/net/rpc/server.go:481 +0x404
2018/12/10 15:19:49 [INFO] (telemetry) ending qemu
2018/12/10 15:19:49 /media/data/workspace/sfdc/packer6/src/github.com/hashicorp/packer/bin/packer: plugin process exited
2018/12/10 15:19:49 ui error: Build 'sfdc-base' errored: unexpected EOF
2018/12/10 15:19:49 Builds completed. Waiting on interrupt barrier...
2018/12/10 15:19:49 machine readable: error-count []string{"1"}
2018/12/10 15:19:49 ui error:
==> Some builds didn't complete successfully and had errors:
2018/12/10 15:19:49 machine readable: sfdc-base,error []string{"unexpected EOF"}
2018/12/10 15:19:49 ui error: --> sfdc-base: unexpected EOF
==> Builds finished but no artifacts were created.
2018/12/10 15:19:49 [INFO] (telemetry) Finalizing.
2018/12/10 15:19:49 waiting for all plugin processes to complete...
2018/12/10 15:19:49 /media/data/workspace/sfdc/packer6/src/github.com/hashicorp/packer/bin/packer: plugin process exited
"builders": [
{
"name": "sfdc-base",
"communicator": "none",
"type": "qemu",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/base-netinstall-{{user `build_target` }}.cfg<enter><wait>"
],
"boot_wait": "10s",
"iso_urls": [
"CentOS-7-x86_64-NetInstall-1810.iso",
"https://mirrors.edge.kernel.org/centos/7.5.1804/isos/x86_64/CentOS-7-x86_64-NetInstall-1810.iso"
],
"iso_checksum": "d74ea11d73e7183fbbd8dcdc4f1a74a5",
"iso_checksum_type": "md5",
"accelerator": "kvm",
"vm_name": "{{user `build_target` }}-{{user `build_patch` }}.raw",
"machine_type": "pc",
"disk_interface": "virtio",
"disk_compression": "false",
"net_device": "virtio-net-pci",
"format": "raw",
"headless": "false",
"http_directory": "configs",
"disk_size": "8192",
"qemuargs": [
["-m", "2048"],
["-k", "en-us"]
],
"shutdown_command": "shutdown -P now",
"shutdown_timeout": "20m",
"output_directory": "build-{{build_name}}-{{user `build_target`}}"
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment