amplify-hosting icon indicating copy to clipboard operation
amplify-hosting copied to clipboard

An error occurred during the push operation: Cannot iteratively rollback as the following step does not contain a previousMetaKey: {"status":"DEPLOYING"}

Open alzotov opened this issue 3 years ago • 3 comments

Before opening, please confirm:

App Id

d3oybpl8qpijc0 --envName stage

Region

ap-norteast-1

Amplify Console feature

No response

Describe the bug

amplify push fails with error: An error occurred during the push operation: Cannot iteratively rollback as the following step does not contain a previousMetaKey: {"status":"DEPLOYING"}

(I had once this command results with unusual status like: deploying in the cloud... - instead of usual digest of app params)

Expected behavior

{"status":"DEPLOYING"} must be temporary status ending up with some final status

Reproduction steps

amplify push

(I had once this command results with unusual status like: deploying in the cloud... - instead of usual digest of app params)

Build Settings

No response

Additional information

No response

alzotov avatar Feb 14 '22 03:02 alzotov

Hi :wave:, thanks for opening! While we look into this...

If this issue is related to custom domains, be sure to check the custom domains troubleshooting guide to see if that helps. Also, there is a more general troubleshooting FAQ that may be helpful for other questions.

Lastly, please make sure you've specified the App ID and Region in the issue!

github-actions[bot] avatar Feb 14 '22 03:02 github-actions[bot]

Hi @alzotov

  1. Could you please provide more details as to which commands did you execute before you got to this state.
  2. Do you have any manual changes in the cloud ?
  3. Could you please provide the file-names of all the files in your deployment bucket.

sachscode avatar Feb 19 '22 04:02 sachscode

it happens to me as well, I was deploying using amplify push and the machine crashed, then I tried amplify push --force and amplify push --iterative-rollback but give me this error Screenshot 2022-08-02 at 17 31 49

mostafasany avatar Aug 02 '22 15:08 mostafasany

This happens when your deployment was interrupted or aborted unexpectedly due to a network error or something like that. Amplify CLI doesn't have any power to fix this issue but you can work around by following the steps below.

  • Find your deployment bucket in the team-provider-info.json file. env -> awscloudformation -> DeploymentBucketName will give you the bucket name.
  • Go to Amazon S3 console and search for the bucket.
  • Inside the bucket, there should be a file called deployment-state.json. Delete this file.
  • Run amplify push or amplify push --force again.

simsek97 avatar Dec 23 '22 03:12 simsek97

god bless you solved the problem

david-startinvest avatar Feb 24 '23 00:02 david-startinvest

This happens when your deployment was interrupted or aborted unexpectedly due to a network error or something like that. Amplify CLI doesn't have any power to fix this issue but you can work around by following the steps below.

  • Find your deployment bucket in the team-provider-info.json file. env -> awscloudformation -> DeploymentBucketName will give you the bucket name.
  • Go to Amazon S3 console and search for the bucket.
  • Inside the bucket, there should be a file called deployment-state.json. Delete this file.
  • Run amplify push or amplify push --force again.

You saved my life 👍

JeHwanYoo avatar Aug 23 '23 05:08 JeHwanYoo

If the aws doesn't take this issue seriously, amplify can only be used by very experienced DB architects. If you can set the PK and Index at once without making a single mistake, you may not face this problem...

JeHwanYoo avatar Aug 29 '23 09:08 JeHwanYoo