Skip to content

Commit 1329edf

Browse files
committed
Learn Editor: Update troubleshoot-resource-bridge.md
1 parent 910c957 commit 1329edf

File tree

1 file changed

+23
-14
lines changed

1 file changed

+23
-14
lines changed

articles/azure-arc/resource-bridge/troubleshoot-resource-bridge.md

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,31 @@ This article provides information on troubleshooting and resolving issues that c
1111

1212
## General issues
1313

14-
### Logs
14+
### Logs collection
1515

16-
For issues encountered with Arc resource bridge, collect logs for further investigation using the Azure CLI [`az arcappliance logs`](/cli/azure/arcappliance/logs) command. This command needs to be run from the same management machine that was used to run commands to deploy the Arc resource bridge. If there's a problem collecting logs, most likely the management machine is unable to reach the Appliance VM, and the network administrator needs to allow communication between the management machine to the Appliance VM.
16+
For issues encountered with Arc resource bridge, collect logs for further investigation using the Azure CLI [`az arcappliance logs`](/cli/azure/arcappliance/logs) command. This command needs to be run from the same management machine that was used to run commands to deploy the Arc resource bridge. If there's a problem collecting logs, most likely the management machine is unable to reach the Appliance VM, and the network administrator needs to allow communication between the management machine to the Appliance VM. You can collect the Arc resource bridge logs by passing either the appliance VM IP or the kubeconfig in the [az arcappliance logs command](/cli/azure/arcappliance/logs?view=azure-cli-latest#commands).
1717

18-
The `az arcappliance logs` command requires SSH to the Azure Arc resource bridge VM. The SSH key is saved to the management machine. To use a different machine to run the logs command, make sure the following files are copied to the machine in the same location:
18+
An example to collect Arc resource bridge logs on VMware using the appliance VM IP address:
1919

20-
```azurecli
21-
$HOME\.KVA\.ssh\logkey.pub
22-
$HOME\.KVA\.ssh\logkey
23-
```
20+
```azurecli
21+
az arcappliance logs vmware --ip 192.168.0.2 --username vsphereuseraccount --password vsphereaccountpswd
22+
```
23+
24+
An example to collect Arc resource bridge logs for Azure Stack HCI using the appliance VM IP address:
25+
26+
```azurecli
27+
az arcappliance logs hci --ip 192.168.02 --cloudagent 192.168.05 --loginconfigfile c:\clusterstorage\moc\workingdir\kvatoken.tok
28+
```
29+
30+
If you are unsure of your appliance VM IP, there is also the option to use the kubeconfig. You can retrieve the kubeconfig by running the [get-credentials command](/cli/azure/arcappliance?view=azure-cli-latest) then run the logs command.
31+
32+
```azurecli
33+
az arcappliance get-credentials --resource-group my-rg-01 --name arb-name --credentials-dir C:\ProgramData\arbcreds
34+
az arcappliance logs vmware --kubeconfig C:\ProgramData\arbcreds --username vsphereuseraccount --password vsphereaccountpswd
35+
```
36+
### Arc resource bridge is offline
37+
38+
If the resource bridge is offline, this is typically due to a change in networking in the infrastructure, environment or cluster that stops the appliance VM from being able to function or communicate with its counterpart Azure resource. If you are unable to determine what has changed in the infrastructure, environment or cluster, you can attempt to reboot the appliance VM, collect logs and submit a support ticket for further investigation.
2439

2540
### Remote PowerShell isn't supported
2641

@@ -40,12 +55,6 @@ To resolve this issue, delete the appliance and update the appliance YAML file.
4055

4156
If Arc resource bridge is experiencing a network communication problem or is offline, you may see an "Appliance Network Unavailable" error when trying to perform an action that interacts with the resource bridge or an extension operating on top of the bridge. In general, any network or infrastructure connectivity issue to the appliance VM may cause this error. This error can also surface as "Error while dialing dial tcp xx.xx.xxx.xx:55000: connect: no route to host" and this is typically a network communication problem. The problem could be that communication from the host to the Arc resource bridge VM needs to be opened with the help of your network administrator. It could be that there was a temporary network issue not allowing the host to reach the Arc resource bridge VM and once the network issue is resolved, you can retry the operation. You may also need to check that the appliance VM for Arc resource bridge isn't stopped. In the case of Azure Stack HCI, the host storage may be full which has caused the appliance VM to pause and the storage will need to be addressed.
4257

43-
### Connection closed before server preface received
44-
45-
When there are multiple attempts to deploy Arc resource bridge, expired credentials left on the management machine might cause future deployments to fail. The error will contain the message `Unavailable desc = connection closed before server preface received`. This error will surface in various `az arcappliance` commands including `validate`, `prepare` and `delete`.
46-
47-
To resolve this error, the .wssd\python and .wssd\kva folders in the user profile directory need to be manually deleted from the management machine. Depending on where the deployment errored, there might not be a kva folder to delete. You can delete these folders manually by navigating to the user profile directory (typically `C:\Users\<username>`), then deleting the `.wssd\python` and `.wssd\kva` folders. After they are deleted, retry the command that failed.
48-
4958
### Token refresh error
5059

5160
When you run the Azure CLI commands, the following error might be returned: *The refresh token has expired or is invalid due to sign-in frequency checks by conditional access.* The error occurs because when you sign in to Azure, the token has a maximum lifetime. When that lifetime is exceeded, you need to sign in to Azure again by using the `az login` command.
@@ -111,7 +120,7 @@ If the result is `The response ended prematurely while waiting for the next fram
111120
### .local not supported
112121
When trying to set the configuration for Arc resource bridge, you might receive an error message similar to:
113122

114-
`"message": "Post \"https://esx.lab.local/52b-bcbc707ce02c/disk-0.vmdk\": dial tcp: lookup esx.lab.local: no such host"`
123+
`"message": "Post \"https://esx.lab.local/52c-acac707ce02c/disk-0.vmdk\": dial tcp: lookup esx.lab.local: no such host"`
115124

116125
This occurs when a `.local` path is provided for a configuration setting, such as proxy, dns, datastore or management endpoint (such as vCenter). Arc resource bridge appliance VM uses Azure Linux OS, which doesn't support `.local` by default. A workaround could be to provide the IP address where applicable.
117126

0 commit comments

Comments
 (0)