You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#customer intent: As a customer, I want to understand the common issues with the connected registry Arc extension and how to troubleshoot them.
11
-
12
10
---
13
11
14
-
#Troubleshoot connected registry extension
12
+
#Troubleshoot connected registry extension
15
13
16
14
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.
17
15
18
-
##How is the connected registry extension installed
16
+
##How is the connected registry extension installed
19
17
20
18
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.
21
19
22
-
Bash
23
-
24
-
```
20
+
```bash
25
21
# get the extension status
26
-
27
22
az k8s-extension show --name <extension-name>
28
-
29
23
# check status of all pods of connected registry extension
30
-
31
24
kubectl get pod -n connected-registry
32
-
33
25
# get events of the extension
34
-
35
26
kubectl get events -n connected-registry --sort-by='.lastTimestamp'
36
27
```
37
28
29
+
## Common errors
38
30
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
42
32
43
33
This error means the extension name you specified already exists. If the name is already in use, you need to use another name.
44
34
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
46
36
47
37
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.
48
38
49
-
###Error: failed in download the Chart path not found
39
+
###Error: failed in download the Chart path not found
50
40
51
41
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`.
52
42
53
-
54
-
55
-
##Common Scenarios
43
+
## Common Scenarios
56
44
57
-
###Scenario 1: Installation fails but doesn't show an error message
45
+
###Scenario 1: Installation fails but doesn't show an error message
58
46
59
47
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:
60
48
61
-
62
-
```
49
+
```bash
63
50
az k8s-extension list \
64
-
65
51
--resource-group <my-resource-group-name>\
66
-
67
52
--cluster-name <my-cluster-name>\
68
-
69
53
--cluster-type connectedClusters
70
54
```
71
55
72
-
73
56
**Solution:** Restart the cluster, register the service provider, or delete and reinstall connected registry
74
57
75
58
To fix this issue, try the following methods:
@@ -80,135 +63,134 @@ To fix this issue, try the following methods:
80
63
81
64
- Force delete and reinstall the connected registry extension.
82
65
83
-
84
-
85
-
**Scenario 2: Targeted connected registry version doesn't exist**
66
+
### Scenario 2: Targeted connected registry version doesn't exist
86
67
87
68
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.
88
69
89
70
**Solution:** Install again for a supported connected registry version
90
71
91
72
Try again to install the extension. Make sure that you use a supported version of connected registry.
92
73
93
-
94
-
95
-
##Common Issues
74
+
## Common Issues
96
75
97
-
##
98
-
**Issue: Extension creation stuck in Running state**
76
+
### Issue: Extension creation stuck in Running state
99
77
100
78
**Possibility 1:** Issue with Persistent Volume Claim (PVC)
101
79
102
80
- 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
+
```
105
84
106
85
The value of _phase_ under _status_ should be _bound_. If it doesn’t change from _pending_, delete the extension.
107
86
108
87
- Check whether the desired storage class is in your list of storage classes:
109
88
110
-
`kubectl get storageclass --all-namespaces`
89
+
```bash
90
+
kubectl get storageclass --all-namespaces
91
+
```
111
92
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
+
```
115
98
116
99
- Alternatively, it could be an issue with not having enough space for the PVC. Recreate the extension with the parameter
117
100
118
-
`--config pvc.storageRequest=”250Gi”`
101
+
```bash
102
+
--config pvc.storageRequest=”250Gi”`
103
+
```
119
104
120
105
**Possibility 2:** Connection String is bad
121
106
122
107
- Check the logs for the connected registry Pod:
123
108
124
-
`kubectl get pod -n connected-registry`
109
+
```bash
110
+
kubectl get pod -n connected-registry
111
+
```
125
112
126
113
- Copy the name of the connected registry pod (e.g.: “connected-registry-8d886cf7f-w4prp") and paste it into the following command:
- If you see the following error message, the connected registry's connection string is bad:
131
120
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
+
```
133
124
134
125
- Ensure that a _protected-settings-extension.json_ file has been created
135
126
136
-
`cat protected-settings-extension.json`
127
+
```bash
128
+
cat protected-settings-extension.json
129
+
```
137
130
138
131
- If needed, regenerate _protected-settings-extension.json_
**Issue: Extension created, but connected registry is not an “Online” state**
157
+
### Issue: Extension created, but connected registry is not an “Online” state**
183
158
184
159
**Possibility 1:** Previous connected registry has not been deactivated
185
160
186
161
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.
187
162
188
163
- Check the logs for the connected registry Pod:
189
164
190
-
`kubectl get pod -n connected-registry`
165
+
```bash
166
+
kubectl get pod -n connected-registry
167
+
```
191
168
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:
- If you see the following error message, the connected registry needs to be deactivated:
197
176
198
177
`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."}]}'`
az acr connected-registry update --registry mycloudregistry --name myacrregistry --log-level debug
193
+
```
212
194
213
195
- The following log levels can be applied to aid in troubleshooting:
214
196
@@ -236,9 +218,8 @@ The az cli log level controls the verbosity of the output messages during the op
236
218
237
219
**--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.
238
220
239
-
240
221
## Next steps
241
222
242
223
> [!div class="nextstepaction"]
243
224
> [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