We have an automated process which runs our packer templates multiple times per week. We have consistently received the following error only in the Australia East region:
Full logs:
2019-05-03T11:56:42.8365945Z ##[debug]**************************************/
2019-05-03T11:56:42.8366311Z ##[debug]Match start index: -1
2019-05-03T11:56:42.8366671Z ##[debug]Match start index: -1
2019-05-03T11:56:42.8379167Z ==> mo-prod-australia east-1556883083-win2019: Uploading the Windows update elevated script...
2019-05-03T11:56:42.8379460Z
2019-05-03T11:56:42.8379871Z ##[debug]Parsing log line to extract output...
2019-05-03T11:56:42.8380407Z ##[debug]/*************************************
2019-05-03T11:56:42.8380927Z ##[debug]==> mo-prod-australia east-1556883083-win2019: Uploading the Windows update elevated script...
2019-05-03T11:56:42.8381369Z ##[debug]**************************************/
2019-05-03T11:56:42.8381724Z ##[debug]Match start index: -1
2019-05-03T11:56:42.8382193Z ##[debug]Match start index: -1
2019-05-03T11:56:48.0633961Z ==> mo-prod-australia east-1556883083-win2019: Uploading the Windows update check for reboot required elevated script...
2019-05-03T11:56:48.0634634Z
2019-05-03T11:56:48.0635512Z ##[debug]Parsing log line to extract output...
2019-05-03T11:56:48.0636042Z ##[debug]/*************************************
2019-05-03T11:56:48.0636560Z ##[debug]==> mo-prod-australia east-1556883083-win2019: Uploading the Windows update check for reboot required elevated script...
2019-05-03T11:56:48.0637050Z ##[debug]**************************************/
2019-05-03T11:56:48.0637448Z ##[debug]Match start index: -1
2019-05-03T11:56:48.0637814Z ##[debug]Match start index: -1
2019-05-03T11:56:53.1754529Z ==> mo-prod-australia east-1556883083-win2019: Uploading the Windows update script...
2019-05-03T11:56:53.1754853Z
2019-05-03T11:56:53.1755398Z ##[debug]Parsing log line to extract output...
2019-05-03T11:56:53.1755834Z ##[debug]/*************************************
2019-05-03T11:56:53.1756291Z ##[debug]==> mo-prod-australia east-1556883083-win2019: Uploading the Windows update script...
2019-05-03T11:56:53.1756871Z ##[debug]**************************************/
2019-05-03T11:56:53.1757286Z ##[debug]Match start index: -1
2019-05-03T11:56:53.1757707Z ##[debug]Match start index: -1
2019-05-03T11:56:58.8793518Z ==> mo-prod-australia east-1556883083-win2019: Running Windows update...
2019-05-03T11:56:58.8793829Z
2019-05-03T11:56:58.8794450Z ##[debug]Parsing log line to extract output...
2019-05-03T11:56:58.8794886Z ##[debug]/*************************************
2019-05-03T11:56:58.8795330Z ##[debug]==> mo-prod-australia east-1556883083-win2019: Running Windows update...
2019-05-03T11:56:58.8795783Z ##[debug]**************************************/
2019-05-03T11:56:58.8796160Z ##[debug]Match start index: -1
2019-05-03T11:56:58.8796525Z ##[debug]Match start index: -1
2019-05-03T11:57:01.9346862Z mo-prod-australia east-1556883083-win2019: Searching for Windows updates...
2019-05-03T11:57:01.9347227Z
2019-05-03T11:57:01.9347777Z ##[debug]Parsing log line to extract output...
2019-05-03T11:57:01.9348180Z ##[debug]/*************************************
2019-05-03T11:57:01.9348778Z ##[debug] mo-prod-australia east-1556883083-win2019: Searching for Windows updates...
2019-05-03T11:57:01.9349227Z ##[debug]**************************************/
2019-05-03T11:57:01.9349740Z ##[debug]Match start index: -1
2019-05-03T11:57:01.9350190Z ##[debug]Match start index: -1
2019-05-03T11:57:05.9334108Z mo-prod-australia east-1556883083-win2019: Found Windows update (2018-10-15; 20.72 MB): Update for Adobe Flash Player for Windows Server 2019 (1809) for x64-based Systems (KB4462930)
2019-05-03T11:57:05.9334600Z
2019-05-03T11:57:05.9335212Z ##[debug]Parsing log line to extract output...
2019-05-03T11:57:05.9335627Z ##[debug]/*************************************
2019-05-03T11:57:05.9336207Z ##[debug] mo-prod-australia east-1556883083-win2019: Found Windows update (2018-10-15; 20.72 MB): Update for Adobe Flash Player for Windows Server 2019 (1809) for x64-based Systems (KB4462930)
2019-05-03T11:57:05.9337116Z ##[debug]**************************************/
2019-05-03T11:57:05.9337539Z ##[debug]Match start index: -1
2019-05-03T11:57:05.9337903Z ##[debug]Match start index: -1
2019-05-03T11:57:05.9338437Z mo-prod-australia east-1556883083-win2019: Found Windows update (2019-03-01; 64.24 MB): 2019-02 Cumulative Update for .NET Framework 3.5 and 4.7.2 for Windows Server 2019 for x64 (KB4486553)
2019-05-03T11:57:05.9338830Z
2019-05-03T11:57:05.9339203Z ##[debug]Parsing log line to extract output...
2019-05-03T11:57:05.9339615Z ##[debug]/*************************************
2019-05-03T11:57:05.9340170Z ##[debug] mo-prod-australia east-1556883083-win2019: Found Windows update (2019-03-01; 64.24 MB): 2019-02 Cumulative Update for .NET Framework 3.5 and 4.7.2 for Windows Server 2019 for x64 (KB4486553)
2019-05-03T11:57:05.9340735Z ##[debug]**************************************/
2019-05-03T11:57:05.9341135Z ##[debug]Match start index: -1
2019-05-03T11:57:05.9341928Z ##[debug]Match start index: -1
2019-05-03T11:57:05.9342371Z mo-prod-australia east-1556883083-win2019: Found Windows update (2019-04-09; 42.38 MB): Windows Malicious Software Removal Tool x64 - April 2019 (KB890830)
2019-05-03T11:57:05.9342648Z
2019-05-03T11:57:05.9342994Z ##[debug]Parsing log line to extract output...
2019-05-03T11:57:05.9343798Z ##[debug]/*************************************
2019-05-03T11:57:05.9344331Z ##[debug] mo-prod-australia east-1556883083-win2019: Found Windows update (2019-04-09; 42.38 MB): Windows Malicious Software Removal Tool x64 - April 2019 (KB890830)
2019-05-03T11:57:05.9344860Z ##[debug]**************************************/
2019-05-03T11:57:05.9345232Z ##[debug]Match start index: -1
2019-05-03T11:57:05.9345593Z ##[debug]Match start index: -1
2019-05-03T11:57:05.9348502Z mo-prod-australia east-1556883083-win2019: Found Windows update (2019-04-09; 20.73 MB): 2019-04 Security Update for Adobe Flash Player for Windows Server 2019 for x64-based Systems (KB4493478)
2019-05-03T11:57:05.9348884Z
2019-05-03T11:57:05.9349400Z ##[debug]Parsing log line to extract output...
2019-05-03T11:57:05.9349942Z ##[debug]/*************************************
2019-05-03T11:57:05.9350483Z ##[debug] mo-prod-australia east-1556883083-win2019: Found Windows update (2019-04-09; 20.73 MB): 2019-04 Security Update for Adobe Flash Player for Windows Server 2019 for x64-based Systems (KB4493478)
2019-05-03T11:57:05.9351032Z ##[debug]**************************************/
2019-05-03T11:57:05.9351394Z ##[debug]Match start index: -1
2019-05-03T11:57:05.9351742Z ##[debug]Match start index: -1
2019-05-03T11:57:05.9352204Z mo-prod-australia east-1556883083-win2019: Found Windows update (2019-05-03; 185.16 MB): Definition Update for Windows Defender Antivirus - KB2267602 (Definition 1.293.758.0)
2019-05-03T11:57:05.9352572Z
2019-05-03T11:57:05.9352943Z ##[debug]Parsing log line to extract output...
2019-05-03T11:57:05.9354048Z ##[debug]/*************************************
2019-05-03T11:57:05.9354626Z ##[debug] mo-prod-australia east-1556883083-win2019: Found Windows update (2019-05-03; 185.16 MB): Definition Update for Windows Defender Antivirus - KB2267602 (Definition 1.293.758.0)
2019-05-03T11:57:05.9355194Z ##[debug]**************************************/
2019-05-03T11:57:05.9355568Z ##[debug]Match start index: -1
2019-05-03T11:57:05.9355927Z ##[debug]Match start index: -1
2019-05-03T11:57:05.9360282Z mo-prod-australia east-1556883083-win2019: Found Windows update (2019-04-09; 14486.29 MB): 2019-04 Cumulative Update for Windows Server 2019 (1809) for x64-based Systems (KB4493509)
2019-05-03T11:57:05.9360627Z
2019-05-03T11:57:05.9361049Z ##[debug]Parsing log line to extract output...
2019-05-03T11:57:05.9361467Z ##[debug]/*************************************
2019-05-03T11:57:05.9362336Z ##[debug] mo-prod-australia east-1556883083-win2019: Found Windows update (2019-04-09; 14486.29 MB): 2019-04 Cumulative Update for Windows Server 2019 (1809) for x64-based Systems (KB4493509)
2019-05-03T11:57:05.9363212Z ##[debug]**************************************/
2019-05-03T11:57:05.9363969Z ##[debug]Match start index: -1
2019-05-03T11:57:05.9364333Z ##[debug]Match start index: -1
2019-05-03T11:57:05.9364724Z mo-prod-australia east-1556883083-win2019: Downloading Windows updates (3 updates; 14735.69 MB)...
2019-05-03T11:57:05.9364950Z
2019-05-03T11:57:05.9365297Z ##[debug]Parsing log line to extract output...
2019-05-03T11:57:05.9365708Z ##[debug]/*************************************
2019-05-03T11:57:05.9366174Z ##[debug] mo-prod-australia east-1556883083-win2019: Downloading Windows updates (3 updates; 14735.69 MB)...
2019-05-03T11:57:05.9366767Z ##[debug]**************************************/
2019-05-03T11:57:05.9367364Z ##[debug]Match start index: -1
2019-05-03T11:57:05.9368526Z ##[debug]Match start index: -1
2019-05-03T11:57:19.7353351Z mo-prod-australia east-1556883083-win2019: Installing Windows updates...
2019-05-03T11:57:19.7353942Z
2019-05-03T11:57:19.7354484Z ##[debug]Parsing log line to extract output...
2019-05-03T11:57:19.7354914Z ##[debug]/*************************************
2019-05-03T11:57:19.7355359Z ##[debug] mo-prod-australia east-1556883083-win2019: Installing Windows updates...
2019-05-03T11:57:19.7355799Z ##[debug]**************************************/
2019-05-03T11:57:19.7356186Z ##[debug]Match start index: -1
2019-05-03T11:57:19.7356673Z ##[debug]Match start index: -1
2019-05-03T12:01:14.7118082Z mo-prod-australia east-1556883083-win2019: Waiting for the Windows Modules Installer to exit...
2019-05-03T12:01:14.7118654Z
2019-05-03T12:01:14.7119582Z ##[debug]Parsing log line to extract output...
2019-05-03T12:01:14.7120131Z ##[debug]/*************************************
2019-05-03T12:01:14.7120702Z ##[debug] mo-prod-australia east-1556883083-win2019: Waiting for the Windows Modules Installer to exit...
2019-05-03T12:01:14.7121250Z ##[debug]**************************************/
2019-05-03T12:01:14.7121763Z ##[debug]Match start index: -1
2019-05-03T12:01:14.7122219Z ##[debug]Match start index: -1
2019-05-03T12:03:20.3245693Z ==> mo-prod-australia east-1556883083-win2019: Waiting for machine to restart...
2019-05-03T12:03:20.3246093Z
2019-05-03T12:03:20.3247052Z ##[debug]Parsing log line to extract output...
2019-05-03T12:03:20.3247556Z ##[debug]/*************************************
2019-05-03T12:03:20.3248293Z ##[debug]==> mo-prod-australia east-1556883083-win2019: Waiting for machine to restart...
2019-05-03T12:03:20.3248848Z ##[debug]**************************************/
2019-05-03T12:03:20.3249426Z ##[debug]Match start index: -1
2019-05-03T12:03:20.3249807Z ##[debug]Match start index: -1
2019-05-03T12:03:25.6095111Z Build 'mo-prod-australia east-1556883083-win2019' errored: unexpected EOF
2019-05-03T12:03:25.6097880Z
2019-05-03T12:03:25.6098564Z ##[debug]Parsing log line to extract output...
2019-05-03T12:03:25.6100019Z ##[debug]/*************************************
2019-05-03T12:03:25.6100678Z ##[debug]Build 'mo-prod-australia east-1556883083-win2019' errored: unexpected EOF
2019-05-03T12:03:25.6101284Z ##[debug]**************************************/
2019-05-03T12:03:25.6101773Z ##[debug]Match start index: -1
2019-05-03T12:03:25.6102201Z ##[debug]Match start index: -1
2019-05-03T12:03:25.6102362Z
2019-05-03T12:03:25.6102505Z
2019-05-03T12:03:25.6102854Z ##[debug]Parsing log line to extract output...
2019-05-03T12:03:25.6103262Z ##[debug]/*************************************
2019-05-03T12:03:25.6103673Z ##[debug]
2019-05-03T12:03:25.6104096Z ##[debug]**************************************/
2019-05-03T12:03:25.6104483Z ##[debug]Match start index: -1
2019-05-03T12:03:25.6104840Z ##[debug]Match start index: -1
2019-05-03T12:03:25.6105139Z ==> Some builds didn't complete successfully and had errors:
2019-05-03T12:03:25.6105307Z
2019-05-03T12:03:25.6105665Z ##[debug]Parsing log line to extract output...
2019-05-03T12:03:25.6106219Z ##[debug]/*************************************
2019-05-03T12:03:25.6107187Z ##[debug]==> Some builds didn't complete successfully and had errors:
2019-05-03T12:03:25.6107735Z ##[debug]**************************************/
2019-05-03T12:03:25.6108144Z ##[debug]Match start index: -1
2019-05-03T12:03:25.6108523Z ##[debug]Match start index: -1
2019-05-03T12:03:25.6108811Z --> mo-prod-australia east-1556883083-win2019: unexpected EOF
2019-05-03T12:03:25.6108996Z
2019-05-03T12:03:25.6109299Z ==> Builds finished but no artifacts were created.
2019-05-03T12:03:25.6109504Z
2019-05-03T12:03:25.6109868Z ##[debug]Parsing log line to extract output...
2019-05-03T12:03:25.6110495Z ##[debug]/*************************************
2019-05-03T12:03:25.6111020Z ##[debug]--> mo-prod-australia east-1556883083-win2019: unexpected EOF
==> Builds finished but no artifacts were created.
2019-05-03T12:03:25.6111558Z ##[debug]**************************************/
2019-05-03T12:03:25.6112245Z ##[debug]Match start index: -1
2019-05-03T12:03:25.6112608Z ##[debug]Match start index: -1
2019-05-03T12:03:25.6978796Z panic: runtime error: invalid memory address or nil pointer dereference
2019-05-03T12:03:25.6979360Z 2019/05/03 12:03:25 packer.exe: [signal 0xc0000005 code=0x0 addr=0x10 pc=0x6718bd]
2019-05-03T12:03:25.6979681Z 2019/05/03 12:03:25 packer.exe:
2019-05-03T12:03:25.6979961Z 2019/05/03 12:03:25 packer.exe: goroutine 2437 [running]:
2019-05-03T12:03:25.6980327Z 2019/05/03 12:03:25 packer.exe: net/http.redirectBehavior(0x262156d, 0x4, 0x0, 0xc000180800, 0x0, 0x0, 0x0)
2019-05-03T12:03:25.6980743Z 2019/05/03 12:03:25 packer.exe: /usr/local/Cellar/go/1.11.1/libexec/src/net/http/client.go:422 +0x2d
2019-05-03T12:03:25.6981123Z 2019/05/03 12:03:25 packer.exe: net/http.(Client).do(0xc000171cb0, 0xc000180800, 0x0, 0x0, 0x0)
2019-05-03T12:03:25.6981544Z 2019/05/03 12:03:25 packer.exe: /usr/local/Cellar/go/1.11.1/libexec/src/net/http/client.go:655 +0x327
2019-05-03T12:03:25.6981959Z 2019/05/03 12:03:25 packer.exe: net/http.(Client).Do(0xc000171cb0, 0xc000180800, 0x6, 0xc0002fab60, 0x20)
2019-05-03T12:03:25.6982375Z 2019/05/03 12:03:25 packer.exe: /usr/local/Cellar/go/1.11.1/libexec/src/net/http/client.go:509 +0x3c
2019-05-03T12:03:25.6982856Z 2019/05/03 12:03:25 packer.exe: github.com/hashicorp/packer/vendor/github.com/masterzen/winrm.clientRequest.Post(0x28efee0, 0xc0002d0650, 0xc0004ac800, 0xc0002bf600, 0x0, 0x0, 0x0, 0x0)
2019-05-03T12:03:25.6983356Z 2019/05/03 12:03:25 packer.exe: /Users/azr/go/src/github.com/hashicorp/packer/vendor/github.com/masterzen/winrm/http.go:82 +0x2c9
2019-05-03T12:03:25.6983886Z 2019/05/03 12:03:25 packer.exe: github.com/hashicorp/packer/vendor/github.com/masterzen/winrm.ClientNTLM.Post(0x28efee0, 0xc0002d0650, 0xc0004ac800, 0xc0002bf600, 0xc0002bf600, 0xc0004cf320, 0x263000b, 0xd)
2019-05-03T12:03:25.6984416Z 2019/05/03 12:03:25 packer.exe: /Users/azr/go/src/github.com/hashicorp/packer/vendor/github.com/masterzen/winrm/ntlm.go:22 +0x50
2019-05-03T12:03:25.6984927Z 2019/05/03 12:03:25 packer.exe: github.com/hashicorp/packer/vendor/github.com/masterzen/winrm.(Client).sendRequest(0xc0004ac800, 0xc0002bf600, 0xc0002bf600, 0xc0002bf600, 0x978ed9, 0x56413e0)
2019-05-03T12:03:25.6985452Z 2019/05/03 12:03:25 packer.exe: /Users/azr/go/src/github.com/hashicorp/packer/vendor/github.com/masterzen/winrm/client.go:102 +0x4a
2019-05-03T12:03:25.6986080Z 2019/05/03 12:03:25 packer.exe: github.com/hashicorp/packer/vendor/github.com/masterzen/winrm.(Client).CreateShell(0xc0004ac800, 0x0, 0x0, 0x0)
2019-05-03T12:03:25.6986538Z 2019/05/03 12:03:25 packer.exe: /Users/azr/go/src/github.com/hashicorp/packer/vendor/github.com/masterzen/winrm/client.go:81 +0xa0
2019-05-03T12:03:25.6987109Z 2019/05/03 12:03:25 packer.exe: github.com/hashicorp/packer/communicator/winrm.(Communicator).Start(0xc00046b500, 0xc00016eae0, 0xc0004899a0, 0x28f0420)
2019-05-03T12:03:25.6987574Z 2019/05/03 12:03:25 packer.exe: /Users/azr/go/src/github.com/hashicorp/packer/communicator/winrm/communicator.go:78 +0x3a
2019-05-03T12:03:25.6988034Z 2019/05/03 12:03:25 packer.exe: github.com/hashicorp/packer/packer/rpc.(CommunicatorServer).Start(0xc0002beea0, 0xc00017de00, 0xc0002d00d0, 0x0, 0x0)
2019-05-03T12:03:25.6988666Z 2019/05/03 12:03:25 packer.exe: /Users/azr/go/src/github.com/hashicorp/packer/packer/rpc/communicator.go:263 +0x1f9
2019-05-03T12:03:25.6989139Z 2019/05/03 12:03:25 packer.exe: reflect.Value.call(0xc000728ea0, 0xc000482498, 0x13, 0x26213d5, 0x4, 0xc000439f18, 0x3, 0x3, 0xc0006bb080, 0x200010001, ...)
2019-05-03T12:03:25.6989571Z 2019/05/03 12:03:25 packer.exe: /usr/local/Cellar/go/1.11.1/libexec/src/reflect/value.go:447 +0x450
2019-05-03T12:03:25.6990112Z 2019/05/03 12:03:25 packer.exe: reflect.Value.Call(0xc000728ea0, 0xc000482498, 0x13, 0xc000439f18, 0x3, 0x3, 0x2, 0x0, 0x0)
2019-05-03T12:03:25.6990514Z 2019/05/03 12:03:25 packer.exe: /usr/local/Cellar/go/1.11.1/libexec/src/reflect/value.go:308 +0xab
2019-05-03T12:03:25.6990961Z 2019/05/03 12:03:25 packer.exe: net/rpc.(service).call(0xc00073f000, 0xc0006f1b30, 0xc0001682d0, 0xc000168300, 0xc000178d00, 0xc00017d8a0, 0x1e57de0, 0xc00017de00, 0x16, 0x1ebc660, ...)
2019-05-03T12:03:25.6992162Z 2019/05/03 12:03:25 packer.exe: /usr/local/Cellar/go/1.11.1/libexec/src/net/rpc/server.go:384 +0x155
2019-05-03T12:03:25.6992518Z 2019/05/03 12:03:25 packer.exe: created by net/rpc.(Server).ServeCodec
2019-05-03T12:03:25.6992889Z 2019/05/03 12:03:25 packer.exe: /usr/local/Cellar/go/1.11.1/libexec/src/net/rpc/server.go:481 +0x485
2019-05-03T12:03:25.6993244Z 2019/05/03 12:03:25 [INFO] 0 bytes written for 'stdout'
2019-05-03T12:03:25.6993535Z 2019/05/03 12:03:25 [INFO] 0 bytes written for 'stderr'
2019-05-03T12:03:25.6993848Z 2019/05/03 12:03:25 [ERR] Error decoding response stream 63: EOF
2019-05-03T12:03:25.6994149Z 2019/05/03 12:03:25 [INFO] (telemetry) ending azure-arm
2019-05-03T12:03:25.6994498Z 2019/05/03 12:03:25 ui error: Build 'mo-prod-australia east-1556883083-win2019' errored: unexpected EOF
2019-05-03T12:03:25.6994859Z 2019/05/03 12:03:25 Builds completed. Waiting on interrupt barrier...
2019-05-03T12:03:25.6995316Z 2019/05/03 12:03:25 [ERR] Error decoding response stream 84: EOF
2019-05-03T12:03:25.6995629Z 2019/05/03 12:03:25 machine readable: error-count []string{"1"}
2019-05-03T12:03:25.6996066Z 2019/05/03 12:03:25 ui error:
2019-05-03T12:03:25.6996362Z ==> Some builds didn't complete successfully and had errors:
2019-05-03T12:03:25.6996718Z 2019/05/03 12:03:25 machine readable: mo-prod-australia east-1556883083-win2019,error []string{"unexpected EOF"}
2019-05-03T12:03:25.6997113Z 2019/05/03 12:03:25 ui error: --> mo-prod-australia east-1556883083-win2019: unexpected EOF
2019-05-03T12:03:25.6997418Z 2019/05/03 12:03:25 ui:
2019-05-03T12:03:25.6997679Z ==> Builds finished but no artifacts were created.
2019-05-03T12:03:25.6997975Z 2019/05/03 12:03:25 [INFO] (telemetry) Finalizing.
2019-05-03T12:03:25.6998320Z 2019/05/03 12:03:25 packer-provisioner-windows-update.exe: 2019/05/03 12:03:25 [INFO] 0 bytes written for 'stdout'
2019-05-03T12:03:25.6998748Z 2019/05/03 12:03:25 packer-provisioner-windows-update.exe: 2019/05/03 12:03:25 [INFO] 0 bytes written for 'stderr'
2019-05-03T12:03:25.6999175Z 2019/05/03 12:03:25 packer-provisioner-windows-update.exe: 2019/05/03 12:03:25 Waiting for machine to reboot with timeout: 4h0m0s
2019-05-03T12:03:25.6999618Z 2019/05/03 12:03:25 packer-provisioner-windows-update.exe: 2019/05/03 12:03:25 Waiting for machine to become available...
2019-05-03T12:03:25.7000167Z 2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019-05-03T12:03:25.7000604Z 2019/05/03 12:03:25 waiting for all plugin processes to complete...
2019-05-03T12:03:25.7001056Z 2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019-05-03T12:03:25.7001535Z 2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019-05-03T12:03:25.7002074Z 2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019-05-03T12:03:25.7003256Z 2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019-05-03T12:03:25.7003646Z 2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019-05-03T12:03:25.7004029Z 2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019-05-03T12:03:25.7004613Z 2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019-05-03T12:03:25.7005001Z 2019/05/03 12:03:25 [INFO] (telemetry) ending windows-update
2019-05-03T12:03:25.7005356Z 2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019-05-03T12:03:25.7005728Z 2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019-05-03T12:03:25.7006114Z 2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019-05-03T12:03:25.7006592Z 2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019-05-03T12:03:25.7006990Z 2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019-05-03T12:03:25.7007377Z 2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019-05-03T12:03:25.7007868Z 2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019-05-03T12:03:25.7008236Z 2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019-05-03T12:03:25.7008591Z 2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019-05-03T12:03:25.7009083Z 2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019-05-03T12:03:25.7009468Z 2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019-05-03T12:03:25.7009856Z 2019/05/03 12:03:25 f:\agent1_work\r294\a\packer-provisioner-windows-update.exe: plugin process exited
2019-05-03T12:03:25.7010257Z 2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019-05-03T12:03:25.7010469Z
2019-05-03T12:03:25.7010762Z
2019-05-03T12:03:25.7011377Z ##[debug]Parsing log line to extract output...
2019-05-03T12:03:25.7011795Z ##[debug]/*****************************
2019-05-03T12:03:25.7020979Z ##[debug]panic: runtime error: invalid memory address or nil pointer dereference
2019/05/03 12:03:25 packer.exe: [signal 0xc0000005 code=0x0 addr=0x10 pc=0x6718bd]
2019/05/03 12:03:25 packer.exe:
2019/05/03 12:03:25 packer.exe: goroutine 2437 [running]:
2019/05/03 12:03:25 packer.exe: net/http.redirectBehavior(0x262156d, 0x4, 0x0, 0xc000180800, 0x0, 0x0, 0x0)
2019/05/03 12:03:25 packer.exe: /usr/local/Cellar/go/1.11.1/libexec/src/net/http/client.go:422 +0x2d
2019/05/03 12:03:25 packer.exe: net/http.(*Client).do(0xc000171cb0, 0xc000180800, 0x0, 0x0, 0x0)
2019/05/03 12:03:25 packer.exe: /usr/local/Cellar/go/1.11.1/libexec/src/net/http/client.go:655 +0x327
2019/05/03 12:03:25 packer.exe: net/http.(*Client).Do(0xc000171cb0, 0xc000180800, 0x6, 0xc0002fab60, 0x20)
2019/05/03 12:03:25 packer.exe: /usr/local/Cellar/go/1.11.1/libexec/src/net/http/client.go:509 +0x3c
2019/05/03 12:03:25 packer.exe: github.com/hashicorp/packer/vendor/github.com/masterzen/winrm.clientRequest.Post(0x28efee0, 0xc0002d0650, 0xc0004ac800, 0xc0002bf600, 0x0, 0x0, 0x0, 0x0)
2019/05/03 12:03:25 packer.exe: /Users/azr/go/src/github.com/hashicorp/packer/vendor/github.com/masterzen/winrm/http.go:82 +0x2c9
2019/05/03 12:03:25 packer.exe: github.com/hashicorp/packer/vendor/github.com/masterzen/winrm.ClientNTLM.Post(0x28efee0, 0xc0002d0650, 0xc0004ac800, 0xc0002bf600, 0xc0002bf600, 0xc0004cf320, 0x263000b, 0xd)
2019/05/03 12:03:25 packer.exe: /Users/azr/go/src/github.com/hashicorp/packer/vendor/github.com/masterzen/winrm/ntlm.go:22 +0x50
2019/05/03 12:03:25 packer.exe: github.com/hashicorp/packer/vendor/github.com/masterzen/winrm.(*Client).sendRequest(0xc0004ac800, 0xc0002bf600, 0xc0002bf600, 0xc0002bf600, 0x978ed9, 0x56413e0)
2019/05/03 12:03:25 packer.exe: /Users/azr/go/src/github.com/hashicorp/packer/vendor/github.com/masterzen/winrm/client.go:102 +0x4a
2019/05/03 12:03:25 packer.exe: github.com/hashicorp/packer/vendor/github.com/masterzen/winrm.(*Client).CreateShell(0xc0004ac800, 0x0, 0x0, 0x0)
2019/05/03 12:03:25 packer.exe: /Users/azr/go/src/github.com/hashicorp/packer/vendor/github.com/masterzen/winrm/client.go:81 +0xa0
2019/05/03 12:03:25 packer.exe: github.com/hashicorp/packer/communicator/winrm.(*Communicator).Start(0xc00046b500, 0xc00016eae0, 0xc0004899a0, 0x28f0420)
2019/05/03 12:03:25 packer.exe: /Users/azr/go/src/github.com/hashicorp/packer/communicator/winrm/communicator.go:78 +0x3a
2019/05/03 12:03:25 packer.exe: github.com/hashicorp/packer/packer/rpc.(*CommunicatorServer).Start(0xc0002beea0, 0xc00017de00, 0xc0002d00d0, 0x0, 0x0)
2019/05/03 12:03:25 packer.exe: /Users/azr/go/src/github.com/hashicorp/packer/packer/rpc/communicator.go:263 +0x1f9
2019/05/03 12:03:25 packer.exe: reflect.Value.call(0xc000728ea0, 0xc000482498, 0x13, 0x26213d5, 0x4, 0xc000439f18, 0x3, 0x3, 0xc0006bb080, 0x200010001, ...)
2019/05/03 12:03:25 packer.exe: /usr/local/Cellar/go/1.11.1/libexec/src/reflect/value.go:447 +0x450
2019/05/03 12:03:25 packer.exe: reflect.Value.Call(0xc000728ea0, 0xc000482498, 0x13, 0xc000439f18, 0x3, 0x3, 0x2, 0x0, 0x0)
2019/05/03 12:03:25 packer.exe: /usr/local/Cellar/go/1.11.1/libexec/src/reflect/value.go:308 +0xab
2019/05/03 12:03:25 packer.exe: net/rpc.(*service).call(0xc00073f000, 0xc0006f1b30, 0xc0001682d0, 0xc000168300, 0xc000178d00, 0xc00017d8a0, 0x1e57de0, 0xc00017de00, 0x16, 0x1ebc660, ...)
2019/05/03 12:03:25 packer.exe: /usr/local/Cellar/go/1.11.1/libexec/src/net/rpc/server.go:384 +0x155
2019/05/03 12:03:25 packer.exe: created by net/rpc.(*Server).ServeCodec
2019/05/03 12:03:25 packer.exe: /usr/local/Cellar/go/1.11.1/libexec/src/net/rpc/server.go:481 +0x485
2019/05/03 12:03:25 [INFO] 0 bytes written for 'stdout'
2019/05/03 12:03:25 [INFO] 0 bytes written for 'stderr'
2019/05/03 12:03:25 [ERR] Error decoding response stream 63: EOF
2019/05/03 12:03:25 [INFO] (telemetry) ending azure-arm
2019/05/03 12:03:25 ui error: Build 'mo-prod-australia east-1556883083-win2019' errored: unexpected EOF
2019/05/03 12:03:25 Builds completed. Waiting on interrupt barrier...
2019/05/03 12:03:25 [ERR] Error decoding response stream 84: EOF
2019/05/03 12:03:25 machine readable: error-count []string{"1"}
2019/05/03 12:03:25 ui error:
==> Some builds didn't complete successfully and had errors:
2019/05/03 12:03:25 machine readable: mo-prod-australia east-1556883083-win2019,error []string{"unexpected EOF"}
2019/05/03 12:03:25 ui error: --> mo-prod-australia east-1556883083-win2019: unexpected EOF
2019/05/03 12:03:25 ui:
==> Builds finished but no artifacts were created.
2019/05/03 12:03:25 [INFO] (telemetry) Finalizing.
2019/05/03 12:03:25 packer-provisioner-windows-update.exe: 2019/05/03 12:03:25 [INFO] 0 bytes written for 'stdout'
2019/05/03 12:03:25 packer-provisioner-windows-update.exe: 2019/05/03 12:03:25 [INFO] 0 bytes written for 'stderr'
2019/05/03 12:03:25 packer-provisioner-windows-update.exe: 2019/05/03 12:03:25 Waiting for machine to reboot with timeout: 4h0m0s
2019/05/03 12:03:25 packer-provisioner-windows-update.exe: 2019/05/03 12:03:25 Waiting for machine to become available...
2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019/05/03 12:03:25 waiting for all plugin processes to complete...
2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019/05/03 12:03:25 [INFO] (telemetry) ending windows-update
2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019/05/03 12:03:25 f:\agent1_work\r294\a\packer-provisioner-windows-update.exe: plugin process exited
2019/05/03 12:03:25 f:\agent1_work_temp\1556883079054\packer\packer.exe: plugin process exited
2019-05-03T12:03:25.7030899Z ##[debug]**************************************/
2019-05-03T12:03:25.7031344Z ##[debug]Match start index: -1
2019-05-03T12:03:25.7031744Z ##[debug]Match start index: -1
2019-05-03T12:03:25.7620325Z
2019-05-03T12:03:25.7620767Z
2019-05-03T12:03:25.7621168Z !!!!!!!!!!!!!!!!!!!!!!!!!!! PACKER CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
2019-05-03T12:03:25.7621374Z
2019-05-03T12:03:25.7621631Z Packer crashed! This is always indicative of a bug within Packer.
2019-05-03T12:03:25.7622009Z A crash log has been placed at "crash.log" relative to your current
2019-05-03T12:03:25.7622366Z working directory. It would be immensely helpful if you could please
2019-05-03T12:03:25.7622715Z report the crash with Packer1 so that we can fix this.
2019-05-03T12:03:25.7622893Z
2019-05-03T12:03:25.7623141Z 1: https://github.com/hashicorp/packer/issues
2019-05-03T12:03:25.7623296Z
2019-05-03T12:03:25.7623562Z !!!!!!!!!!!!!!!!!!!!!!!!!!! PACKER CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
2019-05-03T12:03:25.7623748Z
2019-05-03T12:03:25.7624254Z ##[debug]Parsing log line to extract output...
2019-05-03T12:03:25.7624661Z ##[debug]/*************************************
2019-05-03T12:03:25.7625524Z ##[debug]
!!!!!!!!!!!!!!!!!!!!!!!!!!! PACKER CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
Packer crashed! This is always indicative of a bug within Packer.
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 Packer1 so that we can fix this.
!!!!!!!!!!!!!!!!!!!!!!!!!!! PACKER CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
This same exact template works in the other 3 regions we run this in Azure (East US, North Europe, West US). This failure has happened every single time over the past 2 weeks.
Note that we did not use the windows-update plug in before that. We recently upgraded our images from Windows 2016 to Windows 2019 and need the plug in because the Azure Marketplace Windows 2019 images do not have all the critical updates installed. I am reporting this issue to the plug in because the template also worked on Windows Server 2019 in Azure Australia East region before the addition of the windows-update plug in.
I have upgraded to the latest version of this plugin (v0.7.0) but it has the same error. Additionally, I have upgraded our Packer version from 1.3.2 to 1.4.0 and have a different error with Packer that I reported:
But, I have upgraded Packer to version 1.3.5 and it has the same EOF error.