Skip to content

Commit 43fd3fc

Browse files
Merge pull request #277088 from houk-ms/hongkun/aks
[Service Connector] Add common errors to aks trouble shooting doc
2 parents 3d47123 + 243638b commit 43fd3fc

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

articles/service-connector/how-to-use-service-connector-in-aks.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,58 @@ If there's an error during the extension installation, and the error message in
183183
kubectl logs job/sc-job -n sc-system
184184
```
185185

186+
### Common errors and mitigations
187+
188+
#### Conflict
189+
190+
**Error Message:**
191+
`Operation returned an invalid status code: Conflict`.
192+
193+
**Reason:**
194+
This error usually occurs when attempting to create a service connection while the AKS (Azure Kubernetes Service) cluster is in an updating state. The service connection update conflicts with the ongoing update.
195+
196+
**Mitigation:**
197+
Ensure your cluster is in a "Succeeded" state before retrying the creation. It resolves most errors related to conflicts.
198+
199+
#### Timeout
200+
201+
**Error Message:**
202+
- `Long running operation failed with status 'Failed'. Unable to get a response from the Agent in time`.
203+
- `Timed out waiting for the resource to come to a ready/completed state`
204+
205+
**Reason:**
206+
This error often happens when the Kubernetes job used to create or update the Service Connector cluster extension fails to be scheduled due to resource limitations or other issues.
207+
208+
**Mitigation:**
209+
Refer to [Check Kubernetes cluster logs](#check-kubernetes-cluster-logs) to identify and resolve the detailed reasons. A common issue is that no nodes are available due to preemption. In this case, consider adding more nodes or enabling auto-scaling for your nodes.
210+
211+
#### Unauthorized resource access
212+
213+
**Error Message:**
214+
`You do not have permission to perform ... If access was recently granted, please refresh your credentials`.
215+
216+
**Reason:**
217+
Service Connector requires permissions to operate the Azure resources you want to connect to, in order to perform connection operations on your behalf. This error indicates a lack of necessary permissions on some Azure resources.
218+
219+
**Mitigation:**
220+
Check the permissions on the Azure resources specified in the error message. Obtain the required permissions and retry the creation.
221+
222+
#### Other issues
223+
224+
If the above mitigations don't resolve your issue, try resetting the service connector cluster extension by removing it and then retrying the creation. This method is expected to resolve most issues related to the Service Connector cluster extension.
225+
226+
Use the following CLI commands to reset the extension:
227+
228+
```azurecli
229+
az extension add --name k8s-extension
230+
231+
az k8s-extension delete \
232+
--resource-group <MyClusterResourceGroup> \
233+
--cluster-name <MyCluster> \
234+
--cluster-type managedClusters \
235+
--name sc-extension
236+
```
237+
186238
## Next steps
187239

188240
Learn how to integrate different target services and read about their configuration settings and authentication methods.

0 commit comments

Comments
 (0)