The packer builds are failing at windows-update script upload.
2021/07/22 13:54:29 machine readable: azure-arm,error []string{"Error uploading file to $env:TEMP\\winrmcp---.tmp: Couldn't create shell: unknown error Post \"https://-------/wsman\": EOF"}
PACKER ERR ==> Builds finished but no artifacts were created.
PACKER OUT --> azure-arm: Error uploading file to $env:TEMP\winrmcp--------.tmp: Couldn't create shell: unknown error Post "https://-------/wsman": EOF
PACKER ERR 2021/07/22 13:54:29 [INFO] (telemetry) Finalizing.
I suspect reason is /tmp script gets deleted during multiple windows restart or updates. Upload does not have retry so it failed after trying once if I understood correctly. Check here - packer-windows-update/provisioner.go.
I saw similar errors for powershell provisioner but it is retryable so it started upload again. This also gets confirm from packer-powershell/provisioner.go, where both upload and run are retryable.
We need to add similar retry for upload in packer-windows-update. What do you think?
The packer builds are failing at windows-update script upload.
I suspect reason is /tmp script gets deleted during multiple windows restart or updates. Upload does not have retry so it failed after trying once if I understood correctly. Check here - packer-windows-update/provisioner.go.
I saw similar errors for powershell provisioner but it is retryable so it started upload again. This also gets confirm from packer-powershell/provisioner.go, where both upload and run are retryable.
We need to add similar retry for upload in packer-windows-update. What do you think?