Packer: Crash while provisioning with Powershell script. Error uploading ps script containing env vars: unexpected EOF

Created on 9 Dec 2019  ยท  3Comments  ยท  Source: hashicorp/packer

Overview of the Issue

Packer crashes during a powershell provisioning step.

Reproduction Steps

Run packer build. The build fails while uploading a powershell script with env vars due to an unexpected EOF. This uses the azure-arm builder. It was not an issue previously when I was using the Hyper-V builder. I apologize in advance for the atrocity that is windows-build-tools installation output.

Packer version

Packer v1.4.3

Simplified Packer Buildfile

Github detailed
format

Operating system and Environment details

Windows 1903 OS Build 18362.476

Log Fragments and crash.log files

Github detailed format

bug buildeazure provisionepowershell

All 3 comments

Hi! I think the bug causing this crash was solved in v1.5.0, in this PR: https://github.com/hashicorp/packer/pull/8369

If you update to v1.5.1 this shouldn't happen anymore :)

Confirmed go panic issue is resolved in 1.5.1, much thanks

I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

s4mur4i picture s4mur4i  ยท  3Comments

Tensho picture Tensho  ยท  3Comments

frezbo picture frezbo  ยท  3Comments

Nikoos picture Nikoos  ยท  3Comments

tleyden picture tleyden  ยท  3Comments