hashicorp / hashicorp/packer-plugin-azure
AVD Windows10 Intermittent failing for Communicator ended with: 4294770688
- Dominant language
- Go
- Stars
- 63
- Forks
- 103
- PR merge metrics
- No merged PRs in 30d
Description
#### Overview of the Issue
Packer build failing for error code 4294770688 (0xFFFD0000)
```
[64f6f026-0959-4788-bfe8-da8ebd42ae51] PACKER 2024/11/23 00:31:24 packer-provisioner-powershell plugin: [INFO] 108 bytes written for 'uploadData'
[64f6f026-0959-4788-bfe8-da8ebd42ae51] PACKER 2024/11/23 00:31:24 [INFO] 108 bytes written for 'uploadData'
[64f6f026-0959-4788-bfe8-da8ebd42ae51] PACKER 2024/11/23 00:31:24 packer-plugin-azure_v2.2.0_x5.0_linux_amd64 plugin: 2024/11/23 00:31:24 Uploading file to 'c:/Windows/Temp/script-6741214e-d20a-1e9a-333a-a21f90faaaca.ps1'
[64f6f026-0959-4788-bfe8-da8ebd42ae51] PACKER 2024/11/23 00:31:31 packer-plugin-azure_v2.2.0_x5.0_linux_amd64 plugin: 2024/11/23 00:31:31 [INFO] starting remote command: powershell -executionpolicy bypass -file "C:/Windows/Temp/packer-elevated-shell-67412259-0659-7bfd-11e5-cf6f26b919fb.ps1"
[64f6f026-0959-4788-bfe8-da8ebd42ae51] PACKER 2024/11/23 00:31:33 packer-plugin-azure_v2.2.0_x5.0_linux_amd64 plugin: 2024/11/23 00:31:33 [INFO] command 'powershell -executionpolicy bypass -file "C:/Windows/Temp/packer-elevated-shell-67412259-0659-7bfd-11e5-cf6f26b919fb.ps1"' exited with code: 4294770688
[64f6f026-0959-4788-bfe8-da8ebd42ae51] PACKER 2024/11/23 00:31:33 packer-plugin-azure_v2.2.0_x5.0_linux_amd64 plugin: 2024/11/23 00:31:33 [INFO] RPC endpoint: Communicator ended with: 4294770688
[64f6f026-0959-4788-bfe8-da8ebd42ae51] PACKER 2024/11/23 00:31:33 ui: azure-arm: Windows PowerShell
[64f6f026-0959-4788-bfe8-da8ebd42ae51] PACKER 2024/11/23 00:31:33 [INFO] 217 bytes written for 'stderr'
[64f6f026-0959-4788-bfe8-da8ebd42ae51] PACKER 2024/11/23 00:31:33 [INFO] 145 bytes written for 'stdout'
[64f6f026-0959-4788-bfe8-da8ebd42ae51] PACKER 2024/11/23 00:31:33 [INFO] RPC client: Communicator ended with: 4294770688
[64f6f026-0959-4788-bfe8-da8ebd42ae51] PACKER 2024/11/23 00:31:33 [INFO] RPC endpoint: Communicator ended with: 4294770688
[64f6f026-0959-4788-bfe8-da8ebd42ae51] PACKER 2024/11/23 00:31:33 ui error: ==> azure-arm: The argument 'C:/Windows/Temp/packer-elevated-shell-67412259-0659-7bfd-11e5-cf6f26b919fb.ps1' to the -File parameter does not exist. Provide the path to an existing '.ps1' file as an argument to the -File parameter.
[64f6f026-0959-4788-bfe8-da8ebd42ae51] PACKER 2024/11/23 00:31:33 packer-provisioner-powershell plugin: [INFO] 145 bytes written for 'stdout'
[64f6f026-0959-4788-bfe8-da8ebd42ae51] PACKER 2024/11/23 00:31:33 packer-provisioner-powershell plugin: [INFO] 217 bytes written for 'stderr'
[64f6f026-0959-4788-bfe8-da8ebd42ae51] PACKER 2024/11/23 00:31:33 packer-provisioner-powershell plugin: [INFO] RPC client: Communicator ended with: 4294770688
[64f6f026-0959-4788-bfe8-da8ebd42ae51] PACKER 2024/11/23 00:31:33 ui: azure-arm: Copyright (C) Microsoft Corporation. All rights reserved.
```
#### Reproduction Steps
This is intermittent failure. Currently 1 out of 7 build failing randomly on customize step. Customize steps are simple. Below is Azure Image Builder customize config.
```
{
"inline": [
"Write-Output '*** End customizer section: test5 *** '",
"Write-Output '*** End customizer section: test5 *** '"
],
"name": "test5",
"runAsSystem": true,
"runElevated": true,
"scriptUri": null,
"sha256Checksum": null,
"type": "PowerShell",
"validExitCodes": null
}
```
#### Plugin and Packer version
Packer version: 1.11.2 [go1.21.12 linux amd64]
packer-plugin-azure_v2.2.0_x5.0_linux_amd64
Contributor guide
Research direction
Start by reproducing the failure with Packer 1.11.2, packer-plugin-azure v2.2.0, and the supplied Azure Image Builder PowerShell customize configuration. Inspect the communicator and PowerShell provisioner path handling around the missing temporary .ps1 file. Done means identifying and preventing the intermittent failure, supported by repeated successful builds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, go, powershell
- Domain
- cloud, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100