'amazon-ebs' errored: Script exited with non-zero exit status: 1.Allowed exit codes are: [0]

11 views
Skip to first unread message

Venkatesh R

unread,
Mar 22, 2020, 12:05:38 AM3/22/20
to Packer
Packer Build fails with below error:

==> amazon-ebs: Script exited with non-zero exit status: 1.Allowed exit codes are: [0]
[live ] ==> amazon-ebs: Step "StepProvision" failed, aborting...
[live ] ==> amazon-ebs: aborted: skipping cleanup of step "StepConnect"
[live ] ==> amazon-ebs: aborted: skipping cleanup of step "StepGetPassword"
[live ] ==> amazon-ebs: aborted: skipping cleanup of step "StepRunSourceInstance"
[live ] ==> amazon-ebs: aborted: skipping cleanup of step "StepCleanupVolumes"
[live ] ==> amazon-ebs: aborted: skipping cleanup of step "StepSecurityGroup"
[live ] ==> amazon-ebs: aborted: skipping cleanup of step "StepKeyPair"
[live ] ==> amazon-ebs: aborted: skipping cleanup of step "StepNetworkInfo"
[live ] ==> amazon-ebs: aborted: skipping cleanup of step "StepSourceAMIInfo"
[live ] ==> amazon-ebs: aborted: skipping cleanup of step "StepPreValidate"
[live ] Build 'amazon-ebs' errored: Script exited with non-zero exit status: 1.Allowed exit codes are: [0]

Does packer gets timed out ? is there any logs that can be used for troubleshooting ?

Rickard von Essen

unread,
Mar 22, 2020, 3:49:06 AM3/22/20
to packe...@googlegroups.com
Add -on-error=ask flag to packer build and the you can access the instance when it fails and poke around.

If this is a bash script add set -x to the top of the script and it will echo each command before executing it. 

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/d6a3d261-6f7a-44e4-83fd-54ab42cbd8bc%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages