Skip to content

Commit 2213ac1

Browse files
committed
writer edits
1 parent 2bc5080 commit 2213ac1

1 file changed

Lines changed: 38 additions & 40 deletions

File tree

support/sql/database-engine/install/windows/error-rpc-server-unavailable-provisioning-account.md

Lines changed: 38 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
---
2-
title: SQL Server setup fails with "The RPC server is unavailable" when provisioning service accounts
3-
description: This article helps you troubleshoot a problem where setting SQL Server instances fails when provisioning the service account.
2+
title: SQL Server Setup Fails With "The RPC server is unavailable" When Provisioning Service Accounts
3+
description: This article provides troubleshooting guidance for "The RPC server is unavailable" errors when provisioning service accounts during SQL Server setup.
44
ms.date: 08/26/2025
55
ms.custom: sap:Installation, Patching, Upgrade, Uninstall
66
ms.author: jopilov
7+
ms.topic: troubleshooting-problem-resolution
8+
9+
#customer intent: As a developer or IT administrator, I want to resolve "The RPC server is unavailable" errors during SQL setup so that I can successfully setup SQL Server.
710
---
8-
# SQL Server setup fails with "The RPC server is unavailable" when provisioning service accounts
911

10-
This article helps you troubleshoot a problem where setting SQL Server instances fails when provisioning the service account.
12+
# "The RPC server is unavailable" error when provisioning service accounts during SQL Server setup
1113

14+
This article helps you troubleshoot "The RPC server is unavailable" errors when setting up SQL Server instances. This error can occur during the service account provisioning phase of the SQL Server setup.
1215

1316
## Symptoms
14-
15-
You try to install SQL Server and during the service account provisioning phase, installation fails with error:
1617

17-
`The RPC Server is unavailable.`
18+
During the service account provisioning phase of the SQL Server install, installation fails with the error: `The RPC Server is unavailable`
1819

19-
This error happens when SQL Server setup provisions service accounts for the SQL Server services. Here are the entries in the setup log indicating where the failure occurred. Let’s assume that the account chosen for the SQL Server services is a domain account with name CONTOSO\SQLSvcAcct:
20+
The following example log indicates a failure during service account provisioning. In this example, the service account being provisioned is a domain account with the name `CONTOSO\SQLSvcAcct`:
2021

2122
```output
2223
(05) 2024-01-19 15:00:42 Slp: Sco.User.LookupADEntry - Attempting to find user account CONTOSO\SQLSvcAcct
@@ -47,60 +48,57 @@ This error happens when SQL Server setup provisions service accounts for the SQL
4748
(05) 2024-01-19 15:01:03 Slp: ----------------------------------------
4849
```
4950

50-
You can see from the log that [System.DirectoryServices.DirectoryEntries.Find()](/dotnet/api/system.directoryservices.directoryentries.find) method is failing with the error: The RPC server is unavailable.
51+
The log shows that the [System.DirectoryServices.DirectoryEntries.Find()](/dotnet/api/system.directoryservices.directoryentries.find) method is failing with the error: `The RPC server is unavailable`.
5152

52-
You can look up the HResult error `0x800706ba` by using CertUtil.exe command line tool.
53+
You can look up the HResult error `0x800706ba` using the `certutil.exe` command line tool:
5354

5455
```cmd
5556
certutil /error 0x800706ba
5657
```
5758

58-
Result:
59+
You should receive the following output:
5960

6061
```output
6162
0x800706ba (WIN32: 1722 RPC_S_SERVER_UNAVAILABLE) -- 2147944122 (-2147023174)
6263
Error message text: The RPC server is unavailable.
6364
CertUtil: -error command completed successfully.
6465
```
6566

66-
6767
## Cause
6868

69-
This error is typically related to Windows issues. For more information, you can see [The system can't log you on with the following error: The RPC server is unavailable](../../../../windows-server/user-profiles-and-logon/not-log-on-error-rpc-server-unavailable.md). The article lists these reasons:
69+
An underlying Windows issue is typically the cause of this error, such as:
7070

7171
- The "Remote Registry" service isn't running.
7272
- Incorrect DNS settings.
7373
- Incorrect Time and Time zone settings.
7474
- The "TCP/IP NetBIOS Helper" service isn't running.
7575

76-
## Resolution
76+
For more information, see [The system can't log you on with the following error: The RPC server is unavailable](~/windows-server/user-profiles-and-logon/not-log-on-error-rpc-server-unavailable.md#cause).
7777

78-
Troubleshoot the Windows error by following [The system can't log you on with the following error: The RPC server is unavailable](../../../../windows-server/user-profiles-and-logon/not-log-on-error-rpc-server-unavailable.md).
78+
### Verify that the SQL Server setup process isn't the issue
7979

80-
## More information
80+
Using the following steps, you can build and run a test application to reproduce the `The RPC Server is unavailable` error and verify that the SQL Server setup process isn't the cause of failure:
8181

82-
Here's a sample C# (.NET Framework) application that you can build yourself. The goal is to test the account that is having issues. The application is likely to reproduce the same `The RPC Server is unavailable.` error and eliminate SQL Setup process as a possible cause.
82+
#### Build the ADLookup application
8383

84-
### Build an `ADLookup` application with .NET CLI
84+
1. Open a Command Prompt or PowerShell terminal.
8585

86-
These steps provide command line instructions on how to build the application. Alternatively, you can use Visual Studio to accomplish the same result.
87-
88-
1. Ensure the .NET SDK is installed on your machine
86+
1. Ensure the [.NET SDK](https://dotnet.microsoft.com/en-us/download) is installed on your machine:
8987

9088
```bash
9189
dotnet --version
9290
```
9391

94-
1. Open a Command Prompt or PowerShell terminal
92+
If the .NET SDK is correctly installed, this command should output the SDK's version number.
9593

96-
1. Create a Project Folder
94+
1. Create a project folder:
9795

9896
```bash
9997
md ADLookup
10098
cd ADLookup
10199
```
102100

103-
1. Initialize a Console project
101+
1. Initialize a console project:
104102

105103
```bash
106104
dotnet new console -n ADLookup
@@ -109,9 +107,7 @@ These steps provide command line instructions on how to build the application. A
109107

110108
This step creates a basic console app structure.
111109

112-
1. Replace the `Program.cs` contents with this code
113-
114-
You can copy-paste the code into the file using a text editor.
110+
1. Using a text editor, replace the contents of `Program.cs` with:
115111

116112
```csharp
117113
using System;
@@ -175,38 +171,35 @@ These steps provide command line instructions on how to build the application. A
175171
}
176172
```
177173

178-
179-
180-
1. Add required References
181-
The code uses `System.DirectoryServices`, which might require adding a reference.
174+
1. Add required references to the project:
182175

183176
```bash
184177
dotnet add package System.DirectoryServices
185178
```
186179

187-
1. Build the project
180+
1. Build the project:
188181

189182
```bash
190183
dotnet build --configuration Release
191184
```
192185

193-
This compiles the code and generates an `.exe` in the `bin\Release\netX.X\` folder (depending on your .NET version).
186+
This step compiles the code and generates an `ADLookup.exe` in the `bin\Release\net<VersionNumber>\` folder.
194187

195-
### Run the application
188+
#### Run the ADLookup application
196189

197190
1. Navigate to the directory where the executable is built:
198191

199192
```bash
200-
cd bin\Release\netX.X\
193+
cd bin\Release\net<VersionNumber>\
201194
```
202195

203-
1. Run the `ADLookup.exe` with the **domain** parameter to look up the domain name first:
196+
1. Run `ADLookup.exe` with the **domain** parameter to look up the domain name first:
204197

205198
```bash
206199
adlookup CONTOSO domain
207200
```
208201

209-
Results might look like this:
202+
The output should be similar to the following example:
210203

211204
```output
212205
Checking CONTOSO for type domain
@@ -222,14 +215,19 @@ These steps provide command line instructions on how to build the application. A
222215
adlookup CONTOSO/SQLSvcAcct user
223216
```
224217

225-
Note: the forward slash, not back slash
218+
> [!NOTE]
219+
> You must use a forward slash to separate the domain and account name, not a backslash.
226220

227-
Possible output for the service account you're having issues with:
221+
For a service account experiencing issues, the output should be similar to the following example:
228222

229223
```output
230224
Checking CONTOSO/SQLSvcAcct for type user
231225
The string ADPath is : WinNT:// CONTOSO\SQLSvcAcct, user
232226
Error Encountered: -2147023174
233227
The path is invalid
234228
Press any key to quit
235-
```
229+
```
230+
231+
## Solution
232+
233+
To troubleshoot underlying Windows issues causing the SQL Server setup to fail, see [The system can't log you on with the following error: The RPC server is unavailable](~/windows-server/user-profiles-and-logon/not-log-on-error-rpc-server-unavailable.md#resolution).

0 commit comments

Comments
 (0)