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. On Sun, Mar 22, 2020, 05:05 Venkatesh R <[email protected]> wrote: > 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 ? > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/packer-tool/d6a3d261-6f7a-44e4-83fd-54ab42cbd8bc%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/d6a3d261-6f7a-44e4-83fd-54ab42cbd8bc%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CALz9Rt_kzYK3EKSd4%3DaT42xnF1ASAsUCZaNO_R5TWQe9UNDk-A%40mail.gmail.com.
