Closed miltador closed 7 years ago
Hi @miltador , I can think of a couple of explanations for this. I have a few more questions to help diagnose:
--debug log
do you see any more informative log messages?CloudFormation -> project-staging -> Change Sets (tab)
?Hi, @mweagle.
I can also tell that once this error occurs, if I wait for 1-2 minutes and rerun, it then provisions the project for about ~10 minutes to completion which is loooong.
Thanks for the info @miltador
This looks like a race condition when quickly creating/destroying CloudFormation ChangeSets:
[15:41:38][Step 3/3] time="2017-02-14T15:41:38+01:00" level=info msg="No changes detected for service" StackName=LicensePortalService-staging
When the empty change set is detected, Sparta attempts to delete the AWS changeset, but as it's still in CREATE_IN_PROGRESS
mode, the subsequent delete fails.
When this happens are there local changes that you're trying to push to AWS, or is this more analogous to an ensure
operation?
Mostly it's just updating of my functions code, not changing AWS configuration itself or adding new functions.
Sparta could retry in a polling loop, but that's more a mitigation than a solution. Does this happen all the time? What's your typical workflow in terms of publishing? When this happens, does the Sparta output match what you see in the AWS console?
This happens every day.
Currently build server publishes the service to the staging
stage on every change in VCS.
When it happens I think it matches to what I see in AWS console, and in ChaneSets the change set quickly changes status from yellow to green.
Hi @miltador - keeping this open for the next Sparta release to see if there's a better way to handle the race condition.
Hi @miltador - encountered this issue today. Looking to see how it might be mitigated.
Hi @miltador - finally was able to reproduce this. Resolved in Sparta 0.11.2. Thanks!
I often come up with the mentioned error while provisioning my service. The process then shuts down. I have to relaunch the provisioning process several times then to get it working.
The command I use is:
go run main.go provision --s3Bucket $S3_BUCKET --tags staging
Output log: