azavea / majorkirby

Puts cloudformation stacks into motion
Apache License 2.0
1 stars 1 forks source link

expired request error on long builds #11

Open flibbertigibbet opened 9 years ago

flibbertigibbet commented 9 years ago

Building just the CAC OpenTripPlanner server AMI with full data, packer completes the ansible run, but the command fails with the error:

==> Some builds didn't complete successfully and had errors:
--> otp: Error stopping instance: Request has expired. (RequestExpired)

The AMI does not get built, and the packer instance stays up.

hectcastro commented 9 years ago

I think majorkirby is returning a line of Packer error output here:

https://github.com/mitchellh/packer/blob/7d1db44ca4d1483cd80ea388a0c1256a0fe8aad8/builder/amazon/ebs/step_stop_instance.go#L29

This could be a scenario where Packer wasn't able to successfully complete an AWS API request and failed, which led majorkirby to mark it as a failure.

flibbertigibbet commented 9 years ago

The corresponding AWS RequestExpired error says "The request reached the service more than 15 minutes after the date stamp on the request or more than 15 minutes after the request expiration date (such as for pre-signed URLs), or the date stamp on the request is more than 15 minutes in the future."

Maybe the timestamped cleanup requests are being generated before the build happens, but not sent until the build finishes?