Attach your template. On Nov 22, 2016 2:32 PM, "sam engr" <[email protected]> wrote:
> Team, > > I am trying to build AWS centos7 ami through packr. I am using 0.12.0 > version though I am getting the same error on 0.10.2 as well. > Packer is hanging while stopping the aws instance meanwhile it does create > the AMI but I don't see a proper handshake. > > Can someone to sort this out? > > > Enter code here... > > [1;32m==> amazon-ebs: Stopping the source instance... [0m > 2016/11/22 11:45:37 ui: [1;32m==> amazon-ebs: Waiting for the instance to > stop... [0m > 2016/11/22 11:45:37 packer: 2016/11/22 11:45:37 Waiting for state to become: > stopped > 2016/11/22 11:45:37 packer: 2016/11/22 11:45:37 Using 2s as polling delay > (change with AWS_POLL_DELAY_SECONDS) > 2016/11/22 11:45:37 packer: 2016/11/22 11:45:37 Allowing 300s to complete > (change with AWS_TIMEOUT_SECONDS) > [1;32m==> amazon-ebs: Waiting for the instance to stop... [0m > [Pipeline] } > [Pipeline] // withCredentials > [Pipeline] } > [Pipeline] // withEnv > [Pipeline] } > [Pipeline] // node > [Pipeline] End of Pipeline > java.lang.NullPointerException: Cannot invoke method ami() on null object > at > org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:91) > at > org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:48) > at > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) > at > org.codehaus.groovy.runtime.callsite.NullCallSite.call(NullCallSite.java:35) > at > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) > at > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) > at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:151) > at > org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:146) > at > com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:16) > at WorkflowScript.run(WorkflowScript:17) > > > > I am running as follows > PACKER_LOG=1 packer build rebuild_ami.json > > Thanks > > Sohail > > -- > 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/bb76de93-0a63-4c92-bd9b-2075b389bcc3%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/bb76de93-0a63-4c92-bd9b-2075b389bcc3%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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_JrH6xvW%3DQ2h%2B0PkrnginHAx_KNAXp-CgTrwF03vR5AQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
