Error processing command: Error generating elevated runner: Error preparing elevated powershell script: Error restoring file from $env:TEMP\winrmcp-a3199f9a-79a6-4b0e-612b-7f279e1d31dd.tmp to C:\Windows\Temp\packer-elevated-shell-5c748275-21d1-f725-68ba-0dce7a1ad627.ps1: unknown error Post https://<ipaddress>:5986/wsman: read tcp 10.5.0.22:64620-><ipaddress>:5986: wsarecv: An existing connection was forcibly closed by the remote host.
panic: runtime error: invalid memory address or nil pointer dereference
2019/02/25 23:41:27 packer.exe: [signal 0xc0000005 code=0x0 addr=0x10 pc=0x6735ad]
2019/02/25 23:41:27 packer.exe:
2019/02/25 23:41:27 packer.exe: goroutine 751 [running]:
2019/02/25 23:41:27 packer.exe: net/http.redirectBehavior(0x2820744, 0x4, 0x0, 0xc0000f5100, 0x0, 0x0, 0x0)
2019/02/25 23:41:27 packer.exe: /usr/local/Cellar/go/1.11.4/libexec/src/net/http/client.go:422 +0x2d
2019/02/25 23:41:27 packer.exe: net/http.(*Client).do(0xc0003e6ba0, 0xc0000f5100, 0x0, 0x0, 0x0)
2019/02/25 23:41:27 packer.exe: /usr/local/Cellar/go/1.11.4/libexec/src/net/http/client.go:655 +0x327
2019/02/25 23:41:27 packer.exe: net/http.(*Client).Do(0xc0003e6ba0, 0xc0000f5100, 0x6, 0xc0004282c0, 0x20)
2019/02/25 23:41:27 packer.exe: /usr/local/Cellar/go/1.11.4/libexec/src/net/http/client.go:509 +0x3c
2019/02/25 23:41:27 packer.exe: reflect.Value.call(0xc000064b40, 0xc000006c78, 0x13, 0x282059c, 0x4, 0xc0003f9f18, 0x3, 0x3, 0xc00016e9c0, 0x28e4d78, ...)
2019/02/25 23:41:27 packer.exe: /usr/local/Cellar/go/1.11.4/libexec/src/reflect/value.go:447 +0x45b
2019/02/25 23:41:27 packer.exe: reflect.Value.Call(0xc000064b40, 0xc000006c78, 0x13, 0xc0003f9f18, 0x3, 0x3, 0xc00028c200, 0xc0003f9f20, 0x97f8ec)
2019/02/25 23:41:27 packer.exe: /usr/local/Cellar/go/1.11.4/libexec/src/reflect/value.go:308 +0xab
2019/02/25 23:41:27 packer.exe: net/rpc.(*service).call(0xc00023c5c0, 0xc000235270, 0xc000306750, 0xc000306760, 0xc0000f3580, 0xc000251b40, 0x1fcc380, 0xc0006d0620, 0x16, 0x20327c0, ...)
2019/02/25 23:41:27 packer.exe: /usr/local/Cellar/go/1.11.4/libexec/src/net/rpc/server.go:384 +0x155
2019/02/25 23:41:27 packer.exe: created by net/rpc.(*Server).ServeCodec
2019/02/25 23:41:27 packer.exe: /usr/local/Cellar/go/1.11.4/libexec/src/net/rpc/server.go:481 +0x485
2019/02/25 23:41:27 [INFO] 0 bytes written for 'stdout'
2019/02/25 23:41:27 [INFO] 0 bytes written for 'stderr'
2019/02/25 23:41:27 [ERR] Error decoding response stream 40: EOF
2019/02/25 23:41:27 [ERR] Error decoding response stream 15: EOF
2019/02/25 23:41:27 [ERR] Error decoding response stream 37: EOF
2019/02/25 23:41:27 [INFO] (telemetry) ending azure-arm
2019/02/25 23:41:27 ui error: 2019-02-25T23:41:27Z: Build 'azure-arm' errored: unexpected EOF
2019/02/25 23:41:27 Builds completed. Waiting on interrupt barrier...
2019/02/25 23:41:27 machine readable: error-count []string{"1"}
2019/02/25 23:41:27 ui error:
==> Some builds didn't complete successfully and had errors:
2019/02/25 23:41:27 machine readable: azure-arm,error []string{"unexpected EOF"}
2019/02/25 23:41:27 ui error: --> azure-arm: unexpected EOF