-
Notifications
You must be signed in to change notification settings - Fork 6
Troubleshooting
Kazunori Kajihiro edited this page Jan 22, 2020
·
3 revisions
Barcelona uses CloudFormation to handle deployments. Sometimes when deploying to staging or production it might freeze if you provide the wrong version hash e.g. bcn deploy -e staging --tag $COMMIT_HASH
. The deploy will eventually timeout, but sometimes you don't want to wait around for the deployment to finish.
- Login and go to services menu and select "Cloud Formation"
- Look for the cloud formation template that says
UPDATE_IN_PROGRESS
- Select it and click "Actions -> Cancel Update"
- Formation template will rollback to previous template and say
ROLLBACK_IN_POGRESS
Note, you will need to wait several minutes for the rollback to complete before deploying again.
- Login and go to services menu and select "Amazon ECS"
- Check for the event tab of the services you are deploying, it is repeating starting task
- Click "Update" and update the "number of tasks" to zero
- Deployment of the ECS service will complete without succeeding to run the task
- CloudFormation completes the update so you can deploy the fix again