|
1 | 1 | --- |
2 | 2 | title: Container group remains in transitioning state |
3 | 3 | description: Learn how to resolve a problem that causes a container group to get stuck in the transitioning state (status code 409, ContainerGroupTransitioning). |
4 | | -ms.date: 06/25/2024 |
5 | | -author: tysonfms |
6 | | -ms.author: tysonfreeman |
| 4 | +ms.date: 01/15/2025 |
| 5 | +author: kennethgp |
| 6 | +ms.author: kegonzal |
7 | 7 | editor: v-jsitser |
8 | | -ms.reviewer: v-leedennis |
9 | 8 | ms.service: azure-container-instances |
10 | 9 | ms.topic: troubleshooting-problem-resolution |
11 | 10 | ms.custom: sap:Configuration and Setup |
12 | 11 | #Customer intent: As an Azure administrator, I want to learn how to resume a container group that's stuck in a transitioning state so that I can successfully perform a container group operation (such as create, start, restart, stop, or delete). |
13 | 12 | --- |
14 | 13 | # Container group remains in transitioning state |
15 | 14 |
|
16 | | -This article discusses how to resolve an operational failure that occurs when a container group remains in a transitioning state indefinitely in Microsoft Azure Container Instances. The article also discusses failures that occur during container group operations to [create, start, restart](/azure/container-instances/container-state#create-start-and-restart-operations), [stop, or delete](/azure/container-instances/container-state#stop-and-delete-operations) a container group. |
| 15 | +This article discusses how to resolve an operational failure that occurs when a container group remains in a transitioning state indefinitely in Microsoft Azure Container Instances. The article also discusses failures that occur during container group operations to [start, restart](/azure/container-instances/container-state#create-start-and-restart-operations), [stop, or delete](/azure/container-instances/container-state#stop-and-delete-operations) a container group. |
17 | 16 |
|
18 | 17 | ## Symptoms |
19 | 18 |
|
20 | | -When you do something that directly or indirectly triggers a container group operation, such as deleting an Azure Kubernetes Service (AKS) cluster, you receive the following error message: |
| 19 | +When you issue a start/stop operation on a container group, you receive the following error message: |
21 | 20 |
|
22 | | -> **InternalErrorCode**: "ContainerGroupTransitioning" |
23 | | -> **StatusCode**: "409" |
24 | | -> **Message**: "The container group '\<container-group-name>' is still transitioning, please retry later." |
| 21 | +**InternalErrorCode**: "ContainerGroupTransitioning" |
| 22 | +**StatusCode**: "409" |
| 23 | +**Message**: "The container group '\<container-group-name>' is still transitioning, please retry later." |
25 | 24 |
|
26 | 25 | ## Cause |
27 | 26 |
|
28 | | -During a continuous start operation of the container group, sidecar containers in Container Instances aren't terminated as expected. In this situation, the container group is stuck in the **Succeeded** state. |
| 27 | +### Cause 1: After stop operation |
29 | 28 |
|
30 | | -## Solution 1: Stop and restart the container group |
| 29 | +During a continuous stop operation of the container group, system sidecar containers in the container group aren't terminated in time. |
31 | 30 |
|
32 | | -1. In the [Azure portal](https://portal.azure.com), search for and select **Container instances**. |
| 31 | +### Cause 2: After start operation |
33 | 32 |
|
34 | | -1. In the list of container instances, select the name of your container group (container instance). |
| 33 | +The stopped state for previous operation wasn't propagated yet or didn't propagate correctly (known platform issue). |
35 | 34 |
|
36 | | -1. On the **Overview** page of your container group, select **Stop** to stop the container group. In the **Stop container instances** dialog box, select **Yes** to confirm this action. |
| 35 | +## Solution 1 |
37 | 36 |
|
38 | | -1. Wait until the container group is completely stopped. (This can take up to three minutes.) |
39 | | - |
40 | | -1. Select **Start** to start the container group again. |
41 | | - |
42 | | -## Solution 2: Stop the container group for a non-running container (deployed by Logic Apps) |
43 | | - |
44 | | -If the [container is deployed by using an Azure Logic App](/azure/connectors/connectors-create-api-container-instances?toc=%2Fazure%2Fcontainer-instances%2Ftoc.json&bc=%2Fazure%2Fcontainer-instances%2Fbreadcrumb%2Ftoc.json), check the state of the container. If the container isn't in the **Running** state, stop the container group. For more information, see [Run sentiment analysis based on triggers with Azure Container Instances (ACI) and the ACI Logic Apps connector](https://github.com/Azure-Samples/aci-logicapps-integration). |
| 37 | +- Wait until the container group is fully stopped to allow the system sidecars to fully terminate (allow at least 10 seconds between operations). |
| 38 | +- If the [container is deployed by using an Azure Logic App](/azure/connectors/connectors-create-api-container-instances?toc=%2Fazure%2Fcontainer-instances%2Ftoc.json&bc=%2Fazure%2Fcontainer-instances%2Fbreadcrumb%2Ftoc.json), check the state of the container and then make sure the status is **Stopped** before issuing a start operation. |
| 39 | +- For job container groups (process runs once and exits, restart policy is **Never**) in **Terminated** state, issue a stop operation before a start operation to make sure the correct status is propagated first. You can also issue a restart operation. A restart operation avoids a new container group deployment and instead restarts the application process inside the container. |
45 | 40 |
|
46 | 41 | > [!NOTE] |
47 | | -> As a best practice, we recommend that you check the state of the container before you stop or start a container group. If you start a container group that already has a running container, you might cause the transitioning state problem. |
| 42 | +> As a best practice, we recommend that you always issue a stop operation before a start operation to ensure the correct status is propagated. If you start a container group that already has a running container, you might cause the transitioning state problem. |
48 | 43 |
|
49 | | -## Solution 3: Open a support ticket |
| 44 | +## Solution 2: Open a support ticket |
50 | 45 |
|
51 | | -If the previous solutions don't fix the problem, and you still encounter the error message, open a support ticket. |
| 46 | +If the previous solutions don't fix the problem and you still encounter the error message, open a support ticket. |
52 | 47 |
|
53 | | -## More information |
| 48 | +## Resources |
54 | 49 |
|
55 | 50 | - [Tutorial: Deploy a multi-container group using a Resource Manager template](/azure/container-instances/container-instances-multi-container-group) |
56 | | - |
57 | 51 | - [Azure Container Instances states](/azure/container-instances/container-state) |
58 | | - |
59 | 52 | - [Manually stop or start containers in Azure Container Instances](/azure/container-instances/container-instances-stop-start) |
60 | | - |
61 | 53 | - [Update containers in Azure Container Instances](/azure/container-instances/container-instances-update) |
62 | | - |
63 | | - |
0 commit comments