Skip to content

Instantly share code, notes, and snippets.

@laurelmay
Created February 21, 2020 00:06
Show Gist options
  • Save laurelmay/560865c2f02500b8b1bb0d75a47f5da3 to your computer and use it in GitHub Desktop.
Save laurelmay/560865c2f02500b8b1bb0d75a47f5da3 to your computer and use it in GitHub Desktop.
2020/02/20 19:02:22 [INFO] Packer version: 1.5.4 [go1.13.7 linux amd64]
2020/02/20 19:02:22 Checking 'PACKER_CONFIG' for a config file path
2020/02/20 19:02:22 'PACKER_CONFIG' not set; checking the default config file path
2020/02/20 19:02:22 Attempting to open config file: /home/lakerka/.packerconfig
2020/02/20 19:02:22 [WARN] Config file doesn't exist: /home/lakerka/.packerconfig
2020/02/20 19:02:22 Setting cache directory: /home/lakerka/Documents/cs-vm-build/packer/hcl/packer_cache
2020/02/20 19:02:22 Creating plugin client for path: /home/lakerka/Documents/cs-vm-build/packer/hcl/packer
2020/02/20 19:02:22 Starting plugin: /home/lakerka/Documents/cs-vm-build/packer/hcl/packer []string{"/home/lakerka/Documents/cs-vm-build/packer/hcl/packer", "plugin", "packer-builder-virtualbox-iso"}
2020/02/20 19:02:22 Waiting for RPC address for: /home/lakerka/Documents/cs-vm-build/packer/hcl/packer
2020/02/20 19:02:22 packer-builder-virtualbox-iso plugin: [INFO] Packer version: 1.5.4 [go1.13.7 linux amd64]
2020/02/20 19:02:22 packer-builder-virtualbox-iso plugin: Checking 'PACKER_CONFIG' for a config file path
2020/02/20 19:02:22 packer-builder-virtualbox-iso plugin: 'PACKER_CONFIG' not set; checking the default config file path
2020/02/20 19:02:22 packer-builder-virtualbox-iso plugin: Attempting to open config file: /home/lakerka/.packerconfig
2020/02/20 19:02:22 packer-builder-virtualbox-iso plugin: [WARN] Config file doesn't exist: /home/lakerka/.packerconfig
2020/02/20 19:02:22 packer-builder-virtualbox-iso plugin: Setting cache directory: /home/lakerka/Documents/cs-vm-build/packer/hcl/packer_cache
2020/02/20 19:02:22 packer-builder-virtualbox-iso plugin: args: []string{"packer-builder-virtualbox-iso"}
2020/02/20 19:02:22 packer-builder-virtualbox-iso plugin: Plugin address: unix /tmp/packer-plugin481897617
2020/02/20 19:02:22 packer-builder-virtualbox-iso plugin: Waiting for connection...
2020/02/20 19:02:22 Received unix RPC address for /home/lakerka/Documents/cs-vm-build/packer/hcl/packer: addr is /tmp/packer-plugin481897617
2020/02/20 19:02:22 packer-builder-virtualbox-iso plugin: Serving a plugin connection...
2020/02/20 19:02:22 waiting for all plugin processes to complete...
2020/02/20 19:02:22 /home/lakerka/Documents/cs-vm-build/packer/hcl/packer: plugin process exited
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x7e9d35]
goroutine 1 [running]:
github.com/zclconf/go-cty/cty.Type.Equals(...)
/Users/mmarsh/go/pkg/mod/github.com/azr/[email protected]/cty/type.go:39
github.com/zclconf/go-cty/cty/convert.conversionTupleToList(0x4946de0, 0xc0006c7020, 0x4946c60, 0xc0004517d0, 0x409f01, 0xc00072e690)
/Users/mmarsh/go/pkg/mod/github.com/azr/[email protected]/cty/convert/conversion_collection.go:227 +0x145
github.com/zclconf/go-cty/cty/convert.getConversionKnown(0x4946de0, 0xc0006c7020, 0x4946ce0, 0xc000098000, 0xc000534001, 0xf)
/Users/mmarsh/go/pkg/mod/github.com/azr/[email protected]/cty/convert/conversion.go:131 +0x55e
github.com/zclconf/go-cty/cty/convert.getConversion(0x4946de0, 0xc0006c7020, 0x4946ce0, 0xc000098000, 0xc000098001, 0xc0006c7000)
/Users/mmarsh/go/pkg/mod/github.com/azr/[email protected]/cty/convert/conversion.go:12 +0x56
github.com/zclconf/go-cty/cty/convert.GetConversionUnsafe(0x4946de0, 0xc0006c7020, 0x4946ce0, 0xc000098000, 0x2)
/Users/mmarsh/go/pkg/mod/github.com/azr/[email protected]/cty/convert/public.go:33 +0x4e
github.com/zclconf/go-cty/cty/convert.Convert(0x4946de0, 0xc0006c7020, 0x3546bc0, 0xc0006c7040, 0x4946ce0, 0xc000098000, 0xc0000991b0, 0x2, 0x2, 0xc000236450, ...)
/Users/mmarsh/go/pkg/mod/github.com/azr/[email protected]/cty/convert/public.go:47 +0x8c
github.com/hashicorp/hcl/v2/hcldec.(*AttrSpec).decode(0xc0001dce70, 0xc000060240, 0x0, 0x0, 0x0, 0xc00044d1c0, 0x0, 0x0, 0x41a2dc0, 0xc000236450, ...)
/Users/mmarsh/go/pkg/mod/github.com/hashicorp/hcl/[email protected]/hcldec/spec.go:207 +0x312
github.com/hashicorp/hcl/v2/hcldec.ObjectSpec.decode(0xc0001dc9c0, 0xc000060240, 0x0, 0x0, 0x0, 0xc00044d1c0, 0xc00072edd0, 0x42d671, 0x4345e70, 0xc00072edd0, ...)
/Users/mmarsh/go/pkg/mod/github.com/hashicorp/hcl/[email protected]/hcldec/spec.go:79 +0x238
github.com/hashicorp/hcl/v2/hcldec.decode(0x4945ea0, 0xc0002d8fd0, 0x0, 0x0, 0x0, 0xc00044d1c0, 0x4946b60, 0xc0001dc9c0, 0xddb500, 0x4921ba0, ...)
/Users/mmarsh/go/pkg/mod/github.com/hashicorp/hcl/[email protected]/hcldec/decode.go:21 +0x118
github.com/hashicorp/hcl/v2/hcldec.Decode(...)
/Users/mmarsh/go/pkg/mod/github.com/hashicorp/hcl/[email protected]/hcldec/public.go:15
github.com/hashicorp/packer/hcl2template.decodeHCL2Spec(0x4945ea0, 0xc0002d8fd0, 0xc00044d1c0, 0x7f852c9bf1b0, 0xc00044d380, 0x0, 0x0, 0x0, 0xc000432000, 0x7f852ec26008, ...)
/Users/mmarsh/Projects/packer/hcl2template/decode.go:17 +0xa0
github.com/hashicorp/packer/hcl2template.(*Parser).startBuilder(0xc000639370, 0xc000526d80, 0xc00044d1c0, 0xc000532108, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/Users/mmarsh/Projects/packer/hcl2template/types.source.go:54 +0x2e4
github.com/hashicorp/packer/hcl2template.(*Parser).getBuilds(0xc00072f370, 0xc000257300, 0x0, 0x0, 0xc000257300, 0x0, 0x0, 0x0)
/Users/mmarsh/Projects/packer/hcl2template/types.packer_config.go:104 +0x1d3
github.com/hashicorp/packer/hcl2template.(*Parser).Parse(0xc000639370, 0x7ffcaf9bf6dd, 0x1, 0x0, 0xc0004701a0, 0xc000639330, 0x4da3ad, 0x7ffcaf9bf6dd, 0x1, 0x4961520)
/Users/mmarsh/Projects/packer/hcl2template/types.packer_config.go:167 +0xd1
github.com/hashicorp/packer/command.(*BuildCommand).GetBuildsFromHCL(0xc0001dc8a0, 0x7ffcaf9bf6dd, 0x1, 0x0, 0x0, 0xc000432000, 0x1)
/Users/mmarsh/Projects/packer/command/build.go:107 +0x123
github.com/hashicorp/packer/command.(*BuildCommand).GetBuilds(0xc0001dc8a0, 0x7ffcaf9bf6dd, 0x1, 0x1, 0x1, 0x7fffffffffffffff, 0x0)
/Users/mmarsh/Projects/packer/command/build.go:136 +0x543
github.com/hashicorp/packer/command.(*BuildCommand).RunContext(0xc0001dc8a0, 0x4945820, 0xc000464900, 0xc00004c1a0, 0x1, 0x1, 0xc000464900)
/Users/mmarsh/Projects/packer/command/build.go:185 +0xca
github.com/hashicorp/packer/command.(*BuildCommand).Run(0xc0001dc8a0, 0xc00004c1a0, 0x1, 0x1, 0x0)
/Users/mmarsh/Projects/packer/command/build.go:55 +0x201
github.com/mitchellh/cli.(*CLI).Run(0xc0001443c0, 0xc0001443c0, 0x1, 0x1)
/Users/mmarsh/go/pkg/mod/github.com/mitchellh/[email protected]/cli.go:255 +0x1da
main.wrappedMain(0x0)
/Users/mmarsh/Projects/packer/main.go:238 +0x853
main.realMain(0x0)
/Users/mmarsh/Projects/packer/main.go:124 +0xbb
main.main()
/Users/mmarsh/Projects/packer/main.go:34 +0x22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment