Skip to content

Commit b199709

Browse files
authored
Merge pull request #9320 from khdownie/kendownie071225
add troubleshooting for arc extension install
2 parents 0d0cc64 + e5480b3 commit b199709

File tree

1 file changed

+44
-12
lines changed

1 file changed

+44
-12
lines changed

support/azure/azure-storage/files/file-sync/file-sync-troubleshoot-installation.md

Lines changed: 44 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ title: Troubleshoot Azure File Sync agent installation and server registration
33
description: Troubleshoot common issues with installing the Azure File Sync agent and registering Windows Server with the Storage Sync Service.
44
author: khdownie
55
ms.service: azure-file-storage
6-
ms.date: 04/30/2025
6+
ms.date: 07/11/2025
77
ms.author: kendownie
88
ms.custom: sap:File Sync
99
---
10+
1011
# Troubleshoot Azure File Sync agent installation and server registration
1112

12-
After deploying the Storage Sync Service, the next steps in deploying Azure File Sync are installing the Azure File Sync agent and registering Windows Server with the Storage Sync Service. This article is designed to help you troubleshoot and resolve issues that you might encounter during these steps.
13+
After deploying the Storage Sync Service, the next steps in deploying Azure File Sync are installing the Azure File Sync agent and registering Windows Server with the Storage Sync Service. This article helps you troubleshoot and resolve issues that you might encounter during these steps.
1314

1415
## Agent installation
1516

@@ -28,7 +29,7 @@ If the value for the `RebootNeeded` property is `True`, a restart is required.
2829

2930
<a id="agent-update-hangs"></a>**Agent update does not complete**
3031

31-
When upgrading the Azure File Sync agent, you may experience one of the following symptoms:
32+
When upgrading the Azure File Sync agent, you might experience one of the following symptoms:
3233

3334
- *AfsUpdater.exe* hangs at "installing updates."
3435
- Agent installation hangs at "Stopping monitoring agent."
@@ -38,7 +39,7 @@ This issue occurs if the currently installed Azure File Sync agent version is ea
3839
To resolve this issue, perform the following steps:
3940

4041
1. Open **Task Manager**.
41-
2. Right-click the **LogMan** process and select **End task**. Repeat this step until all LogMan processes are stopped and the agent update completes successfully.
42+
1. Right-click the **LogMan** process and select **End task**. Repeat this step until all LogMan processes are stopped and the agent update completes successfully.
4243

4344
<a id="agent-installation-failures"></a>**Troubleshoot agent installation failures**
4445

@@ -70,7 +71,6 @@ For this example, the agent installation failed with error code -2147287035 (ERR
7071

7172
The agent installation failed due to insufficient system resources. To resolve this issue, free up memory on the server and retry installation.
7273

73-
7474
<a id="agent-installation-gpo"></a>**Agent installation fails with error: Storage Sync Agent Setup Wizard ended prematurely because of an error**
7575

7676
In the agent installation log, the following error is logged:
@@ -113,7 +113,37 @@ After creating a server endpoint on Windows Server 2012 R2, the following error
113113
> drive letter:\ is not accessible.
114114
> The parameter is incorrect.
115115
116-
To resolve this issue, install [KB2919355](https://support.microsoft.com/help/2919355/windows-rt-8-1-windows-8-1-windows-server-2012-r2-update-april-2014) and restart the server. If this update can't install because a later update is already installed, go to **Windows Update**, install the latest updates for Windows Server 2012 R2 and restart the server.
116+
To resolve this issue, install [KB2919355](https://support.microsoft.com/help/2919355/windows-rt-8-1-windows-8-1-windows-server-2012-r2-update-april-2014) and restart the server. If this update can't install because a later update is already installed, go to **Windows Update**, install the latest updates for Windows Server 2012 R2, and restart the server.
117+
118+
## Agent installation via Azure Arc extension
119+
120+
To learn about installing the Azure File Sync Agent for Windows, see [Install and manage the Azure File Sync agent extension on Azure Arc-enabled Windows servers](/azure/storage/file-sync/file-sync-extension).
121+
122+
### Troubleshoot installation failure
123+
124+
1. Navigate to your **Arc Server** in the Azure portal.
125+
1. Go to the **Extensions** blade for the server.
126+
1. Locate `AzureFileSyncAgentExtension` and select **View Details** under the **Status** column.
127+
1. Review the **Error Message** field for detailed information on why the extension deployment failed.
128+
129+
> [!IMPORTANT]
130+
> The failed extension must be uninstalled and then reinstalled **after** performing the required remediation steps. Save the error message details for troubleshooting or when contacting Azure File Sync support. Uninstalling the extension will remove these details.
131+
132+
#### Error code reference and remediation
133+
134+
| **Error Message** | **Error Code** | **Remediation Steps** |
135+
|-------------------|----------------|------------------------|
136+
| Cannot install Azure File Sync agent because .NET Framework 4.7.2 or later is required. Install the latest .NET Framework and try again | 206 | Install .NET Framework 4.7.2 or higher. Reboot the machine afterward. |
137+
| Azure File Sync agent is already installed. No further action needed. | 0 | No action required. The extension is installed, but no customization is applied. |
138+
| The Azure File Sync agent is only supported on RTM (Release to Manufacturing) versions of supported operating systems. | 51 | Azure File Sync agent and extension are supported only on RTM versions of Windows Server 2016, 2019, 2022, and 2025. |
139+
| Proxy settings error. `UseCustomProxy` is enabled but ProxyAddress is missing or invalid. ProxyAddress must be specified without port and length must be less than 255 characters. | 201 | Ensure `ProxyAddress` is specified. Must be under 255 characters. |
140+
| Proxy settings error. `UseCustomProxy` is enabled but ProxyPort is missing or invalid. Proxy port must be a number between 1 and 65535 | 202 | Provide a valid `ProxyPort` (numeric value between 1 and 65535) when `UseCustomProxy` is enabled. |
141+
| Proxy settings error. `ProxyAuthRequired` is enabled but ProxyUsername is missing or invalid. `ProxyUsername` length must be between 3 and 255 characters | 203 | Ensure `ProxyUsername` is specified and its length is between 3 and 255 characters. |
142+
| Proxy settings error. `ProxyAuthRequired` is enabled but ProxyPassword is missing or empty | 204 | Provide a non-empty `ProxyPassword` when `ProxyAuthRequired` is enabled. |
143+
| A system reboot is pending due to Storage Sync file rename operations. Restart your server before installing the Azure File Sync agent. | 83 | A reboot is required. Restart the server before attempting agent installation again. |
144+
| The file signature is not valid. Or Signature validation failed for the downloaded MSI file | 86 | The installer file might be corrupted or tampered with. Re-download the MSI file from a trusted source. |
145+
| Certificate chain validation failed. | 86 | Ensure the required root certificates are installed. Refer to [this documentation](/azure/aks/aksarc/aks-edge-howto-offline-install).<br><br>**If using a proxy**, ensure the following domains are bypassed:<br>`login.microsoftonline.com`, `management.azure.com`, `go.microsoft.com`, `download.microsoft.com`, `download.windowsupdate.com`, `crl.microsoft.com`, `oneocsp.microsoft.com`, `ocsp.msocsp.com`, `www.microsoft.com`.<br><br>Restart the machine to apply any updates. |
146+
| Azure File Sync agent download or configuration failed. Details: Failed to configure auto update settings: Agent install directory not found in registry. Please check the installation. | 214 | 1. Open an elevated PowerShell session and check if .NET 4.7.2 or higher is installed:<br>```$releaseKey = (Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" -ErrorAction SilentlyContinue).Release```<br>2. If `$releaseKey` is less than `461808`, .NET 4.7.2 isn't installed.<br>3. Download and install .NET Framework 4.7.2 or later from the [official .NET download site](https://dotnet.microsoft.com/download/dotnet-framework). |
117147

118148
## Server registration
119149

@@ -136,6 +166,7 @@ To test the network connectivity on the server, run the following PowerShell com
136166
Import-Module "C:\Program Files\Azure\StorageSyncAgent\StorageSync.Management.ServerCmdlets.dll"
137167
Debug-StorageSyncServer -TestNetworkConnectivity
138168
```
169+
139170
<a id="server-registration-catastrophic-error"></a>**Server registration using the `Register-AzStorageSyncServer` cmdlet fails with the error: Catastrophic failure (0x8000FFFF)**
140171

141172
A server registration using the `Register-AzStorageSyncServer` cmdlet fails with the following error:
@@ -168,6 +199,7 @@ You can also work around this issue by using the following PowerShell commands t
168199
Connect-AzAccount -Subscription "<guid>" -Tenant "<guid>"
169200
Register-AzStorageSyncServer -ResourceGroupName "<your-resource-group-name>" -StorageSyncServiceName "<your-storage-sync-service-name>"
170201
```
202+
171203
<a id="server-registration-missing-resource-groups"></a>**Server registration doesn't list all resource groups**
172204

173205
When registering a server using *ServerRegistration.exe*, some resource groups are missing when you select the **Resource Group** drop-down.
@@ -181,8 +213,8 @@ This error occurs when the server lacks the required .NET Framework version. Azu
181213
To resolve the issue, follow these steps:
182214

183215
1. Download and install .NET Framework 4.7.2 or a later version.
184-
2. Restart the server after the installation.
185-
3. Retry the server registration using the server registration UI or PowerShell.
216+
1. Restart the server after the installation.
217+
1. Retry the server registration using the server registration UI or PowerShell.
186218

187219
**Server registration fails with error: operation returned an invalid status code 'Unauthorized'**
188220

@@ -206,7 +238,7 @@ After completing the manual registration, verify that the server appears under *
206238

207239
:::image type="content" source="media/file-sync-troubleshoot-installation/server-already-registered-error.png" alt-text="Screenshot that shows the Server Registration dialog box with the 'server is already registered' error message.":::
208240

209-
This message with error code 0x80C80064 appears if the server was previously registered with a Storage Sync Service. To unregister the server from the current Storage Sync Service and then register with a new Storage Sync Service, complete the steps that are described in [Unregister a server with Azure File Sync](/azure/storage/file-sync/file-sync-server-registration#unregister-the-server-with-storage-sync-service).
241+
This message with error code 0x80C80064 appears if the server was previously registered with a Storage Sync Service. To unregister the server from the current Storage Sync Service and then register with a new Storage Sync Service, complete the steps in [Unregister a server with Azure File Sync](/azure/storage/file-sync/file-sync-server-registration#unregister-the-server-with-storage-sync-service).
210242

211243
If the server isn't listed under **Registered servers** in the Storage Sync Service, on the server that you want to unregister, run the following PowerShell commands:
212244

@@ -215,7 +247,7 @@ Import-Module "C:\Program Files\Azure\StorageSyncAgent\StorageSync.Management.Se
215247
Reset-StorageSyncServer
216248
```
217249

218-
> [!Note]
250+
> [!NOTE]
219251
> If the server is part of a cluster, the `Reset-StorageSyncServer` `-CleanClusterRegistration` parameter will unregister all servers in the cluster.
220252
221253
<a id="web-site-not-trusted"></a>**When I register a server, I see numerous "web site not trusted" responses. Why?**
@@ -227,8 +259,8 @@ This issue occurs when the **Enhanced Internet Explorer Security** policy is ena
227259
If a server isn't listed under **Registered servers** for a Storage Sync Service:
228260

229261
1. Sign in to the server that you want to register.
230-
2. Open File Explorer, and then go to the Storage Sync Agent installation directory (the default location is *C:\Program Files\Azure\StorageSyncAgent*).
231-
3. Run *ServerRegistration.exe*, and complete the wizard to register the server with a Storage Sync Service.
262+
1. Open File Explorer, and then go to the Storage Sync Agent installation directory (the default location is *C:\Program Files\Azure\StorageSyncAgent*).
263+
1. Run *ServerRegistration.exe*, and complete the wizard to register the server with a Storage Sync Service.
232264

233265
## See also
234266

0 commit comments

Comments
 (0)