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
Copy file name to clipboardExpand all lines: support/azure/azure-storage/files/file-sync/file-sync-troubleshoot-installation.md
+44-12Lines changed: 44 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,13 +3,14 @@ title: Troubleshoot Azure File Sync agent installation and server registration
3
3
description: Troubleshoot common issues with installing the Azure File Sync agent and registering Windows Server with the Storage Sync Service.
4
4
author: khdownie
5
5
ms.service: azure-file-storage
6
-
ms.date: 04/30/2025
6
+
ms.date: 07/11/2025
7
7
ms.author: kendownie
8
8
ms.custom: sap:File Sync
9
9
---
10
+
10
11
# Troubleshoot Azure File Sync agent installation and server registration
11
12
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.
13
14
14
15
## Agent installation
15
16
@@ -28,7 +29,7 @@ If the value for the `RebootNeeded` property is `True`, a restart is required.
28
29
29
30
<aid="agent-update-hangs"></a>**Agent update does not complete**
30
31
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:
32
33
33
34
-*AfsUpdater.exe* hangs at "installing updates."
34
35
- 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
38
39
To resolve this issue, perform the following steps:
39
40
40
41
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.
@@ -70,7 +71,6 @@ For this example, the agent installation failed with error code -2147287035 (ERR
70
71
71
72
The agent installation failed due to insufficient system resources. To resolve this issue, free up memory on the server and retry installation.
72
73
73
-
74
74
<aid="agent-installation-gpo"></a>**Agent installation fails with error: Storage Sync Agent Setup Wizard ended prematurely because of an error**
75
75
76
76
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
113
113
> drive letter:\ is not accessible.
114
114
> The parameter is incorrect.
115
115
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.
| 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). |
117
147
118
148
## Server registration
119
149
@@ -136,6 +166,7 @@ To test the network connectivity on the server, run the following PowerShell com
<aid="server-registration-catastrophic-error"></a>**Server registration using the `Register-AzStorageSyncServer` cmdlet fails with the error: Catastrophic failure (0x8000FFFF)**
140
171
141
172
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
<aid="server-registration-missing-resource-groups"></a>**Server registration doesn't list all resource groups**
172
204
173
205
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
181
213
To resolve the issue, follow these steps:
182
214
183
215
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.
186
218
187
219
**Server registration fails with error: operation returned an invalid status code 'Unauthorized'**
188
220
@@ -206,7 +238,7 @@ After completing the manual registration, verify that the server appears under *
206
238
207
239
:::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.":::
208
240
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).
210
242
211
243
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:
> If the server is part of a cluster, the `Reset-StorageSyncServer``-CleanClusterRegistration` parameter will unregister all servers in the cluster.
220
252
221
253
<aid="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
227
259
If a server isn't listed under **Registered servers** for a Storage Sync Service:
228
260
229
261
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.
0 commit comments