AWS cloud setup fails while waiting for AMI

Steffen's Avatar

Steffen

29 Feb, 2020 06:31 AM

I am unable to add an AWS cloud to my AppVeyor Server instance because the process fails while waiting for AMI. AWS takes a long time to create a snapshot and AMI is pending because of that. The setup script fails even though I see AWS making progress whith the snapshot creation and eventually completing the snapshot and creating the AMI.

[...]
==> amazon-ebs: Stopping the source instance...
    amazon-ebs: Stopping instance
==> amazon-ebs: Waiting for the instance to stop...
==> amazon-ebs: Creating AMI Appveyor Worker Windows Server 2019 5e59e7db-9fa3-8498-06f0-47ece7b9a488 from instance i-0732ff4b49e0b8e95
    amazon-ebs: AMI: ami-0c7768663211eac69
==> amazon-ebs: Waiting for AMI to become ready...
==> amazon-ebs: Error waiting for AMI. Reason: <nil>
==> amazon-ebs: Terminating the source AWS instance...
==> amazon-ebs: Cleaning up any extra volumes...
==> amazon-ebs: Deleting temporary security group...
==> amazon-ebs: Deleting temporary keypair...
Build 'amazon-ebs' errored: Error waiting for AMI. Reason: <nil>

==> Some builds didn't complete successfully and had errors:
--> amazon-ebs: Error waiting for AMI. Reason: <nil>

==> Builds finished but no artifacts were created.
WARNING: Packer build failed.

It seems to me that the script is simply timing out. When the script fails, neither the snapshot nor the AMI is deleted from AWS automatically, so I have to do it myself.

  1. Support Staff 1 Posted by Feodor Fitsner on 29 Feb, 2020 05:12 PM

    Feodor Fitsner's Avatar

    Just wondering why you decided to run Windows builds on AWS? AWS doesn't have by-minute pricing for Windows instances, so for every, even 1-minute build, you will be paying for 1 hour minimum.

  2. 2 Posted by Steffen on 01 Mar, 2020 12:41 AM

    Steffen's Avatar

    I didn't know that. I blindly tried AWS after first trying Google cloud and Azure. Azure cloud setup failed but Google cloud works for me now.

  3. Support Staff 3 Posted by Feodor Fitsner on 02 Mar, 2020 03:41 AM

    Feodor Fitsner's Avatar

    OK, Google is generally a good option.

  4. Feodor Fitsner closed this discussion on 02 May, 2020 09:02 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac