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

error creating Amplify Branch: BadRequestException: Failed to create branch. The branch is deleting for the app. Please wait a few minutes before re-create this branch.

Open chrysanthoslianos opened this issue 3 years ago • 13 comments
trafficstars

Before opening, please confirm:

App Id

d9xa3jv6dubk3

Region

eu-west-1

Amplify Hosting feature

Not applicable

Describe the bug

To begin with, wanted to recreate an Amplify branch. Deleted the previous one for the same app, and now cannot recreate it (same name) with the message that the old one is still deleting. It has been like this for 4 days.

Expected behavior

New branch should come up correctly.

Reproduction steps

  1. Delete previous branch.
  2. Create branch via awscli/awsconsole/terraform with the same name as the deleted branch.
  3. Get error.

Build Settings

No response

Additional information

No response

chrysanthoslianos avatar May 03 '22 07:05 chrysanthoslianos

Hi @chrysanthoslianos 👋🏽 thank you for raising this issue. I was able to reproduce and have added this to our backlog for prioritization.

ghost avatar May 13 '22 15:05 ghost

Any updates?

Hoxni avatar Jun 06 '22 10:06 Hoxni

Just ran into a similar issue today

Andrewkizito avatar Jun 06 '22 14:06 Andrewkizito

Same error here in production :( any update? @hloriana

windsonrochazup avatar Jun 20 '22 22:06 windsonrochazup

try this. if you get error for connecting branch develop to env dev.

  1. create other branch. (eg. develop2).
  2. connect branch develop2 to env dev.
  3. connect branch develop to env dev.
  4. remove connection develop2.

raugisu avatar Aug 04 '22 09:08 raugisu

Experienced the same error. Can't re-create the main branch, branches with different names do work.

tomavanc avatar Aug 13 '22 12:08 tomavanc

same issue today, can not reconnect dev branch

LerGG avatar Sep 13 '22 18:09 LerGG

In my case it seemed i had to wait a few minutes before trying to reconnect the branch again.

Andrewkizito avatar Oct 12 '22 12:10 Andrewkizito

any updates?

Luttennet avatar Nov 23 '22 08:11 Luttennet

How many minutes?

Tusharrastogi9897 avatar Nov 24 '22 06:11 Tusharrastogi9897

@hloriana why was issue #2152 closed as duplicate? To me it is a different issue, the errors are different

ludokx avatar Dec 09 '22 23:12 ludokx

Hi, same doubt as @ludokx: why issue #2152 is closed as duplicate? I still have the problem with duplicated branch error and with no answers there nor here.

It could be related with Amplify CLI version updates?

geanque avatar May 09 '23 04:05 geanque

Getting this error now. How long do I need to wait? Has been way more than a few minutes.

At the very bare minimum, the error message text is misleading: Failed to create branch. The branch master is deleting for the app <appname>. Please wait a few minutes before re-create this branch.

choksheak avatar Mar 28 '24 18:03 choksheak