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/sql/database-engine/install/windows/error-rpc-server-unavailable-provisioning-account.md
+38-40Lines changed: 38 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,23 @@
1
1
---
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.
#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.
7
10
---
8
-
# SQL Server setup fails with "The RPC server is unavailable" when provisioning service accounts
9
11
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
11
13
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.
12
15
13
16
## Symptoms
14
-
15
-
You try to install SQL Server and during the service account provisioning phase, installation fails with error:
16
17
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`
18
19
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`:
20
21
21
22
```output
22
23
(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
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`.
51
52
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:
Error message text: The RPC server is unavailable.
63
64
CertUtil: -error command completed successfully.
64
65
```
65
66
66
-
67
67
## Cause
68
68
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:
70
70
71
71
- The "Remote Registry" service isn't running.
72
72
- Incorrect DNS settings.
73
73
- Incorrect Time and Time zone settings.
74
74
- The "TCP/IP NetBIOS Helper" service isn't running.
75
75
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).
77
77
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
79
79
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:
81
81
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
83
83
84
-
### Build an `ADLookup` application with .NET CLI
84
+
1. Open a Command Prompt or PowerShell terminal.
85
85
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:
89
87
90
88
```bash
91
89
dotnet --version
92
90
```
93
91
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.
95
93
96
-
1. Create a Project Folder
94
+
1. Create a project folder:
97
95
98
96
```bash
99
97
md ADLookup
100
98
cd ADLookup
101
99
```
102
100
103
-
1. Initialize a Console project
101
+
1. Initialize a console project:
104
102
105
103
```bash
106
104
dotnet new console -n ADLookup
@@ -109,9 +107,7 @@ These steps provide command line instructions on how to build the application. A
109
107
110
108
This step creates a basic console app structure.
111
109
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:
115
111
116
112
```csharp
117
113
usingSystem;
@@ -175,38 +171,35 @@ These steps provide command line instructions on how to build the application. A
175
171
}
176
172
```
177
173
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:
182
175
183
176
```bash
184
177
dotnet add package System.DirectoryServices
185
178
```
186
179
187
-
1. Build the project
180
+
1. Build the project:
188
181
189
182
```bash
190
183
dotnet build --configuration Release
191
184
```
192
185
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.
194
187
195
-
### Run the application
188
+
####Run the ADLookup application
196
189
197
190
1. Navigate to the directory where the executable is built:
198
191
199
192
```bash
200
-
cd bin\Release\netX.X\
193
+
cd bin\Release\net<VersionNumber>\
201
194
```
202
195
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:
204
197
205
198
```bash
206
199
adlookup CONTOSO domain
207
200
```
208
201
209
-
Results might look like this:
202
+
The output should be similar to the following example:
210
203
211
204
```output
212
205
Checking CONTOSO for type domain
@@ -222,14 +215,19 @@ These steps provide command line instructions on how to build the application. A
222
215
adlookup CONTOSO/SQLSvcAcct user
223
216
```
224
217
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.
226
220
227
-
Possible output forthe service account you're having issues with:
221
+
For a service account experiencing issues, the output should be similar to the following example:
228
222
229
223
```output
230
224
Checking CONTOSO/SQLSvcAcct fortype user
231
225
The string ADPath is : WinNT:// CONTOSO\SQLSvcAcct, user
232
226
Error Encountered: -2147023174
233
227
The path is invalid
234
228
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