Skip to content

Commit 47166cd

Browse files
edits
1 parent 4abe98e commit 47166cd

File tree

1 file changed

+58
-77
lines changed

1 file changed

+58
-77
lines changed

articles/container-registry/troubleshoot-connected-registry-arc.md

Lines changed: 58 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -6,70 +6,53 @@ ms.author: tejaswikolli; gaking
66
ms.service: azure-container-registry
77
ms.topic: troubleshooting-known-issue #Don't change.
88
ms.date: 05/09/2024
9-
109
#customer intent: As a customer, I want to understand the common issues with the connected registry Arc extension and how to troubleshoot them.
11-
1210
---
1311

14-
#Troubleshoot connected registry extension
12+
# Troubleshoot connected registry extension
1513

1614
This article discusses some common error messages that you may receive when you install or update the connected registry extension for Arc-enabled Kubernetes clusters.
1715

18-
##How is the connected registry extension installed
16+
## How is the connected registry extension installed
1917

2018
The connected registry extension is released as a helm chart and installed by Helm V3. All components of the connected registry extension are installed in _connected-registry_ namespace. You can use the following commands to check the extension status.
2119

22-
Bash
23-
24-
```
20+
```bash
2521
# get the extension status
26-
2722
az k8s-extension show --name <extension-name>
28-
2923
# check status of all pods of connected registry extension
30-
3124
kubectl get pod -n connected-registry
32-
3325
# get events of the extension
34-
3526
kubectl get events -n connected-registry --sort-by='.lastTimestamp'
3627
```
3728

29+
## Common errors
3830

39-
##Common Errors
40-
41-
###Error: can't reuse a name that is still in use
31+
### Error: can't reuse a name that is still in use
4232

4333
This error means the extension name you specified already exists. If the name is already in use, you need to use another name.
4434

45-
###Error: unable to create new content in namespace _connected-registry_ because it's being terminated
35+
### Error: unable to create new content in namespace _connected-registry_ because it's being terminated
4636

4737
This error happens when an uninstallation operation isn't finished, and another installation operation is triggered. You can run `az k8s-extension show` command to check the provisioning status of the extension and make sure the extension has been uninstalled before taking other actions.
4838

49-
###Error: failed in download the Chart path not found
39+
### Error: failed in download the Chart path not found
5040

5141
This error happens when you specify the wrong extension version. You need to make sure the specified version exists. If you want to use the latest version, you don't need to specify `--version`.
5242

53-
54-
55-
##Common Scenarios
43+
## Common Scenarios
5644

57-
###Scenario 1: Installation fails but doesn't show an error message
45+
### Scenario 1: Installation fails but doesn't show an error message
5846

5947
If the extension generates an error message when you create or update it, you can inspect where the creation failed by running the `az k8s-extension list` command:
6048

61-
62-
```
49+
```bash
6350
az k8s-extension list \
64-
6551
--resource-group <my-resource-group-name> \
66-
6752
--cluster-name <my-cluster-name> \
68-
6953
--cluster-type connectedClusters
7054
```
7155

72-
7356
**Solution:** Restart the cluster, register the service provider, or delete and reinstall connected registry
7457

7558
To fix this issue, try the following methods:
@@ -80,135 +63,134 @@ To fix this issue, try the following methods:
8063

8164
- Force delete and reinstall the connected registry extension.
8265

83-
84-
85-
**Scenario 2: Targeted connected registry version doesn't exist**
66+
### Scenario 2: Targeted connected registry version doesn't exist
8667

8768
When you try to install the connected registry extension to target a specific version, you receive an error message that states that the connected registry version doesn't exist.
8869

8970
**Solution:** Install again for a supported connected registry version
9071

9172
Try again to install the extension. Make sure that you use a supported version of connected registry.
9273

93-
94-
95-
##Common Issues
74+
## Common Issues
9675

97-
##
98-
**Issue: Extension creation stuck in Running state**
76+
### Issue: Extension creation stuck in Running state
9977

10078
**Possibility 1:** Issue with Persistent Volume Claim (PVC)
10179

10280
- Check status of connected registry PVC
103-
104-
`kubectl get pvc -n connected-registry -o yaml connected-registry-pvc`
81+
```bash
82+
kubectl get pvc -n connected-registry -o yaml connected-registry-pvc
83+
```
10584

10685
The value of _phase_ under _status_ should be _bound_. If it doesn’t change from _pending_, delete the extension.
10786

10887
- Check whether the desired storage class is in your list of storage classes:
10988

110-
`kubectl get storageclass --all-namespaces`
89+
```bash
90+
kubectl get storageclass --all-namespaces
91+
```
11192

112-
- If not, recreate the extension and add
113-
114-
`--config pvc.storageClassName=”standard”`
93+
- If not, recreate the extension and add
94+
95+
```bash
96+
--config pvc.storageClassName=”standard”`
97+
```
11598

11699
- Alternatively, it could be an issue with not having enough space for the PVC. Recreate the extension with the parameter
117100

118-
`--config pvc.storageRequest=”250Gi”`
101+
```bash
102+
--config pvc.storageRequest=”250Gi”`
103+
```
119104

120105
**Possibility 2:** Connection String is bad
121106

122107
- Check the logs for the connected registry Pod:
123108

124-
`kubectl get pod -n connected-registry`
109+
```bash
110+
kubectl get pod -n connected-registry
111+
```
125112

126113
- Copy the name of the connected registry pod (e.g.: “connected-registry-8d886cf7f-w4prp") and paste it into the following command:
127114

128-
`kubectl logs -n connected-registry connected-registry-8d886cf7f-w4prp`
115+
```bash
116+
kubectl logs -n connected-registry connected-registry-8d886cf7f-w4prp
117+
```
129118

130119
- If you see the following error message, the connected registry's connection string is bad:
131120

132-
`Response: '{"errors":[{"code":"UNAUTHORIZED","message":"Incorrect Password","detail":"Please visit https://aka.ms/acr#UNAUTHORIZED for more information."}]}'`
121+
```bash
122+
Response: '{"errors":[{"code":"UNAUTHORIZED","message":"Incorrect Password","detail":"Please visit https://aka.ms/acr#UNAUTHORIZED for more information."}]}'
123+
```
133124

134125
- Ensure that a _protected-settings-extension.json_ file has been created
135126

136-
`cat protected-settings-extension.json`
127+
```bash
128+
cat protected-settings-extension.json
129+
```
137130

138131
- If needed, regenerate _protected-settings-extension.json_
139132

140-
141-
```
133+
```bash
142134
cat << EOF > protected-settings-extension.json
143-
144135
{
145-
146136
"connectionString": "$(az acr connected-registry get-settings \
147-
148137
--name myconnectedregistry \
149-
150138
--registry myacrregistry \
151-
152139
--parent-protocol https \
153-
154140
--generate-password 1 \
155-
156141
--query ACR_REGISTRY_CONNECTION_STRING --output tsv --yes)"
157-
158142
}
159-
160143
EOF
161-
```
162-
144+
```
163145

164146
- Update the extension to include the new connection string
165147

166-
167-
```
148+
```bash
168149
az k8s-extension update \
169-
170150
--cluster-name <myarck8scluster> \
171-
172151
--cluster-type connectedClusters \
173-
174152
--name <myconnectedregistry> \
175-
176153
-g <myresourcegroup> \
177-
178154
--config-protected-file protected-settings-extension.json
179155
```
180-
181156

182-
**Issue: Extension created, but connected registry is not an “Online” state**
157+
### Issue: Extension created, but connected registry is not an “Online” state**
183158

184159
**Possibility 1:** Previous connected registry has not been deactivated
185160

186161
This scenario commonly happens when a previous connected registry extension has been deleted and a new one has been created for the same connected registry.
187162

188163
- Check the logs for the connected registry Pod:
189164

190-
`kubectl get pod -n connected-registry`
165+
```bash
166+
kubectl get pod -n connected-registry
167+
```
191168

192-
- Copy the name of the connected registry pod (e.g.: “connected-registry-8d886cf7f-w4prp") and paste it into the following command:
169+
- Copy the name of the connected registry pod (e.g.: “connected-registry-xxxxxxxxx-xxxxx") and paste it into the following command:
193170

194-
`kubectl logs -n connected-registry connected-registry-8d886cf7f-w4prp`
171+
```bash
172+
kubectl logs -n connected-registry connected-registry-xxxxxxxxx-xxxxx
173+
```
195174

196175
- If you see the following error message, the connected registry needs to be deactivated:
197176

198177
`Response: '{"errors":[{"code":"ALREADY_ACTIVATED","message":"Failed to activate the connected registry as it is already activated by another instance. Only one instance is supported at any time.","detail":"Please visit https://aka.ms/acr#ALREADY_ACTIVATED for more information."}]}'`
199178

200179
- Run the following command to deactivate:
201180

202-
`az acr connected-registry deactivate -n <myconnectedregistry> -r <mycontainerregistry>`
181+
```azurecli
182+
az acr connected-registry deactivate -n <myconnectedregistry> -r <mycontainerregistry>
183+
```
203184

204185
After a few minutes, the connected registry pod should be recreated, and the error should disappear.
205186

206-
207-
##Enable Logging
187+
## Enable Logging
208188

209189
- Run the [az acr connected-registry update] command to update the connected registry extension with the debug log level:
210190

211-
`az acr connected-registry update --registry mycloudregistry --name myacrregistry --log-level debug`
191+
```azurecli
192+
az acr connected-registry update --registry mycloudregistry --name myacrregistry --log-level debug
193+
```
212194

213195
- The following log levels can be applied to aid in troubleshooting:
214196

@@ -236,9 +218,8 @@ The az cli log level controls the verbosity of the output messages during the op
236218

237219
**--debug** enables full debug logs. Debug logs provide the most detailed information, including all the information provided at the "verbose" level plus more details intended for diagnosing problems.
238220

239-
240221
## Next steps
241222

242223
> [!div class="nextstepaction"]
243224
> [Quickstart: Deploying the Connected Registry Arc Extension](quickstart-connected-registry-arc-cli.md)
244-
> [Glossary of terms](connected-registry-glossary.md)
225+
> [Glossary of terms](connected-registry-glossary.md)

0 commit comments

Comments
 (0)