- Remove From My Forums
-
Question
-
Hi,
I have 3 sites linked over a VPN tunnel. In one of the remote site DC, I am getting the error «dsbindwithspnex() failed with error 1727» when I run DCDIAG. Basically the remote site DC with the error cannot connect to the FSMO owner
in the primary site. The primary site tunnel device is Cyberoam and remote site tunnel device is TMG 2010 (Enforce strict RPC compliance is unchecked on TMG rule & System policy rule). I only have this one DC in the remote site. A quick
search results in solutions such as system restoreAny ideas about how to fix the issue.
Regards
Mathew
Answers
-
Hi Liby,
Is the error message described as follow?
dsbindwithspnex() failed with error 1727
The remote procedure call failed and did not execute
This may be cause by the windows firewall is enabled on the remote server. The required RPC port is blocked.
I suggest you that you could disable the windows software-based firewall on the remote host and try the deployment again.
There is an article about troubleshooting the RPC server is unavailable for your reference.
Windows Server Troubleshooting: «The RPC server is unavailable»
http://social.technet.microsoft.com/wiki/contents/articles/4494.windows-server-troubleshooting-the-rpc-server-is-unavailable.aspx
Best Regards,
Jay
Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.
-
Proposed as answer by
Friday, December 4, 2015 9:15 AM
-
Marked as answer by
Mahdi Tehrani
Sunday, January 17, 2016 3:09 PM
-
Proposed as answer by
In this sql server tutorial, we will discuss how to fix error, the remote procedure call failed sql server configuration manager.
A few days back I got an error while using SQL Server Configuration Manager to list the services. The error states “The remote procedure call failed” and due to this I was unable to see the running services. The complete error message is shown in the image below.

Remote procedure call failed
After trying multiple solutions from the internet, I came across some common solutions to overcome this error. Now, in this SQL Server tutorial, we will discuss how to resolve “The remote procedure call failed” error with multiple solutions.
Let’s first undergo some of the common reasons due to why this error may occur.
- Running multiple versions: This error can occur when we are running multiple SQL Server versions in our system.
- SQL Server Services not running: The second main cause behind this error can be when the required SQL Server services are not running.
- Managed Object Format (MOF): The third reason behind this error could be when the .mof files are not installed or registered properly.
Fix-1: Use the latest version of SQL Server Configuration Manager
Now, if we have installed multiple SQL Server versions in our system and we are trying to use the older SQL Server Configuration Manager. Then this error may occur at your side.
- To solve this issue, simply navigate to the following path “C:WindowsSysWOW64“. And in the “SysWOW64” directory, search for “SQLServerManager“.

- Now, if there are multiple versions of SQL Server Configuration Manager then, run the latest version out of them.

Fix-2: Start the required SQL Server Services
As discussed in the second reason, the SQL Server Services could also be the reason behind the error. Now, the question is how to check for services without Configuration Manager.
- First, search and open the “Services” from the Windows search bar.

- Next, look for SQL Server Services from the list of services.
- Now, check the state of SQL Server (Instance Name), SQL Server Browser, and SQL Server Agent services.
- To start the services, right-click the service and click on “Properties” and change the startup type from Disabled to Automatic.

Fix-3: Re-register the *.mof files
As discussed above, the third reason behind this error can be when the *.mof files are not installed properly. The solution to overcome this issue can be by re-registering the *.mof files.
- For this, first, run the command prompt as administrator and execute the following given command
mofcomp.exe "C:Program Files (x86)Microsoft SQL Server100Sharedsqlmgmproviderxpsp2up.mof"
- And after executing the above command, we will get the following success messages.

Note: If you are using SQL Server 2008 R2 then, you may need to update your service pack to overcome this error.
By following all the given solutions, we can resolve the error and start using the SQL Server Configuration Manager.
So, in this tutorial, we have learned how to resolve “The remote procedure call failed” error in SQL Server Configuration Manager. In this, we have discussed some of the main reasons behind this error and also the possible solutions for them.
You may also like to read some of our tutorials on SQL Server.
- Full-text search in SQL Server
- How to get list of users in SQL Server
- Loop in SQL Server stored procedure
- What is a stored procedure in sql server
- Could not find stored procedure in SQL Server
- How to execute stored procedure in SQL Server
- SQL Server check user permissions on table
- SQL Server function return table
- View in SQL Server
- Conversion failed when converting date and/or time SQL Server
I hope this article will help to fix the below error:
- the remote procedure call failed sql server
- the remote procedure call failed and did not execute
- the remote procedure call failed sql server configuration manager
- the remote procedure call failed and did not execute 1727
- the remote procedure call failed sql server agent
- the remote procedure call failed windows 10 sql server configuration manager
- sql server services the remote procedure call failed 0x80076be
- the remote procedure call failed sql server 2012
- the remote procedure call failed sql server 2019
I am Bijay having more than 15 years of experience in the Software Industry. During this time, I have worked on MariaDB and used it in a lot of projects. Most of our readers are from the United States, Canada, United Kingdom, Australia, New Zealand, etc.
Want to learn MariaDB? Check out all the articles and tutorials that I wrote on MariaDB. Also, I am a Microsoft MVP.
Refer – http://social.technet.microsoft.com/wiki/contents/articles/4494.troubleshooting-the-rpc-server-is-unavailable.aspx
Introduction
Remote Procedure Call (RPC) is an inter-process communication technique to allow client and server software to communicate on a network. The RPC protocol is based on a client/server model. The client makes a procedure call that appears to be local but is actually run on a remote computer. During this process, the procedure call arguments are bundled and passed through the network to the server. The arguments are then unpacked and run on the server. The result is again bundled and passed back to the client, where it is converted to a return value for the client’s procedure call.
RPC is used by several components in Windows Server, such as the File Replication Service (FRS), Active Directory Replication, Certificate services, DCOM, domain join, DCPromo and RDP, NLB and Cluster, Microsoft Operations Master, Exchange and SQL.
The RPC Server
An RPC server is a communications interface provided by an application or service that allows remote clients to connect, pass commands, and transfer data using the RPC protocol. A typical example of an RPC server is Microsoft Exchange Server. Microsoft Exchange Server is an application running on a computer that supplies an RPC communications interface for an RPC client.
An application will register its RPC server with the operating system’s End Point Mapper (EPM) service so that the remote client can locate the RPC server. When the application registers with the EPM it will indicate the IP address and TCP port that it is listening on.
The RPC Client
An RPC client is an application running on any given computer that uses the RPC protocol to communicate with an RPC server. An example of a typical RPC client is the Microsoft Outlook application.
NOTE: In this document the terms RPC server and RPC client refer to the application running at both ends of an RPC communication.
RPC Quick Fixes
Common causes of RPC errors include:
- Errors resolving a DNS or NetBIOS name.
- The RPC service or related services may not be running.
- Problems with network connectivity.
- File and printer sharing is not enabled.
Use the following procedures to diagnose and repair common causes of RPC errors.
Unable to resolve DNS or NetBIOS names in an Active Directory environment
- Use the following commands to verify DNS is working for all DC’s or specific DC’s:
- To get a DNS status for all DCs in forest, run the following command:
- DCDIAG /TEST:DNS /V /E /F:<filename.log>
- The «/e» switch runs the DNS test against all DCs in an Active Directory Forest
To get DNS health on a single DC, run the command below.
- DCDIAG /TEST:DNS /V /S:<DCNAME> /F:<filename.log>
- The «/s:» switch runs the DNS test against a specified domain controller.
To verify that a domain controller can be located for a specific domain, run the command below.
- NLTEST /DSGETDC:<NetBIOS or DNS domain name>
- Servers and clients that are receiving the error should be checked to verify that they are configured with the appropriate DNS server. Servers should not be pointing to their ISP’s DNS servers in the preferred or alternate DNS server portion of the TCP/IP settings. The ISP’s DNS servers should only be used as forwarders in DNS.
- Ensure that at least one correct DNS record is registered on each domain controller.
- To ensure that a correct DNS record is registered on each domain controller, find this server’s Active Directory replication partners that run DNS.
- Open DNSManager and connect in turn to each of these replication partners.
- Find the host (A) resource record registration for this server on each of the other replication partner domain controllers.
- Delete those host (A) records that do not have IP addresses corresponding to any of this server’s IP addresses.
- If a domain controller has no host (A) records for this server, add at least one that corresponds to an IP address on this server. (If there are multiple IP addresses for this server, add at least one that is on the same network as the domain controller you are updating.)
- Name resolution may also fail with the RPC Server is unavailable error if NetBIOS over TCP/IP is disabled on the WINS tab in the advanced section of the TCP/IP properties. The NetBIOS over TCP/IP setting should be either enabled or default (use DHCP).
- Verify that a single label domain name is not being configured. DNS names that do not contain a suffix such as .com, .corp, .net, .org or .local are considered to be single-label DNS names. Microsoft doesn’t recommend using single label domain names because they cannot be registered with an Internet registrar and domain members do not perform dynamic updates to single-label DNS zones. Knowledge base article 826743
– «Clients cannot dynamically register DNS records in a single-label domain» provides instructions on how to configure your domain to allow dynamic registration of DNS records in a single label domain.
The RPC service or related services may not be started
Verify the status and startup type for the RPC and RPC locator services on the server that gets the error:
- By default, Windows server 2003 domain controllers and member servers all should have the RPC service started and set to Automatic startup and the RPC Locator service stopped and set to Manual Startup.
- Windows 2000 domain controllers should have the RPC and RPC Locator services both set to started and automatic startup, while Windows 2000 member servers should have the RPC service started and set to automatic startup while the RPC locator service should be started and set to manual startup.
- If you make any changes to the RPC service or to the RPC Locator service settings, restart the computer, and then test for the problem again.
- Additional Services that may result in «The RPC Server is Unavailable» errors are the TCP/IP NetBIOS helper service, Distributed File System service and Remote Registry service. These services should both be set to automatic and started. The Kerberos Key Distribution Center (KDC) should be Started and Automatic on Windows 2000 and Windows 2003 DCs. It should not be started and set to Disabled in all other cases.
Network Connectivity
Verify ports needed by RPC are open
Verify that ports greater than 1024 are not blocked. Clients connect to RPC Endpoint Mapper on port 135. RPC Endpoint Mapper then tells the client which randomly assigned port between 1024-65535 a requested service is listening on.
Ports may be blocked by a hardware firewall or a software firewall. Software firewalls include Internet Connection Firewall on computers running Windows Server 2003 or Windows XP, and Windows Firewall on computers running Windows Vista, Windows 7, Windows Server 2008 and Windows Server 2008 R2. A computer might also have third-party firewall software installed, or antivirus software with built-in firewall functionality. By default, port 135 TCP/UDP and ports 1024-65535 TCP must be open for RPC to work. You can restrict the ports greater than 1024 that RPC uses. However, RPC Endpoint Mapper is always on port 135.
File and Printer Sharing is not enabled
File and Printer sharing for Microsoft Networks will produce the error “RPC Server is unavailable” when you try to view or manage services on a remote computer using the Services snap-in. See the following example:
Unable to open service control manager database on <computer>.
Error 1722: The RPC server is unavailable.
This error message may occur if the File and Printer Sharing for Microsoft Networks component is not enabled on the remote computer.
Troubleshooting RPC
The process of an RPC client connecting to an RPC server can be broken down into four phases. This troubleshooting guide will discuss the events that occur at each phase, how to test these events, and how to identify if the phase completed successfully.
Phase 1: Name Resolution: Name resolution is the act of resolving a name to an IP address. This normally takes two forms: NetBIOS Name Resolution or the more common DNS Name Resolution.
Phase 2: TCP session establishment: TCP session establishment is the act of establishing a TCP connection between the RPC client and the RPC server. TCP sessions will be initiated by the RPC client via a TCP 3-way handshake with the RPC server.
Phase 3: RPC Discovery: When a client wants to connect to the RPC server supplied by the application it will contact the computer that hosts the RPC Server and discover how to connect to the RPC Server.
Phase 4: RPC Communication: RPC Communication is the act of making RPC requests to the application endpoint and receiving RPC responses from this application.
Data needed to troubleshoot the issue:
- Identify the client and server computers reporting the RPC error. Identify the DNS and WINS servers used by these computers. To do this:
- On each machine, open a command prompt and run ipconfig /all.
- Determine the IP address of both machines. If the server is part of a cluster get the cluster resource IP address as well. Identify the DNS servers and WINS servers that the RPC client is configured to use.
Note: You can also obtain this information by opening Control PanelNetwork and Sharing Center, clicking Local Area Connection and selecting Properties.
- Identify the application(s) reporting RPC Server Unavailable
- Simultaneous network traces (using Wireshark, Netmon, or a comparable network sniffer) from the machines hosting the RPC client and RPC Server while reproducing the task that results in a “RPC Server Unavailable” error.
- The network captures on both hosts should be started first.
- From a command prompt on the client run ipconfig /flushdns and nbtstat –R to clear the name resolution caches.
- Reproduce the error.
- Stop the traces and save them.
Name Resolution
Name Resolution consists of one or possibly more NetBIOS or DNS queries to locate the IP address for the RPC Server. Troubleshooting this phase requires verifying that a response is received to the name resolution request and that the response contains the correct IP address for the RPC server. Compare the IP address reported by DNS or NetBIOS in the network trace for the server with the IP addresses you noted earlier. If it does not match then check DNS and WINS and note if there is a difference.
DNS Name Resolution
To identify DNS Name Resolution in a network trace use the following filter in Network Monitor or Wireshark: “dns”. DNS resolution will be occurring at the client so open the network trace taken from the RPC client machine. You will be looking for one packet that is the query from the client to the DNS server and then the response packet from the DNS server. It will look similar to this:
If the trace shows the correct IP address for the RPC server was returned by the DNS server proceed to TCP Session Establishment.
If the trace does not show a correct IP address returned or you do not see any answer from the DNS server then reference the following resources to help with DNS name resolution troubleshooting.
For details on troubleshooting Active Directory related DNS issues go here.
For general DNS troubleshooting: http://support.microsoft.com/default.aspx?scid=kb;EN-US;330511
NetBIOS Name Resolution
NetBIOS queries come in two forms, WINS or NetBIOS Broadcasts. WINS will consist of a unicast query to a WINS server and a response from the WINS server.
NetBIOS broadcasts are queries broadcast to all hosts on the local subnet so name resolution is limited to only hosts on the subnet. The host with the name listed in the NetBIOS Broadcast will respond with its IP address.
To identify NetBIOS Name Resolution in a network trace, use the following filter in Network Monitor – “nbtns”. For Wireshark, use the following filter – ”nbns”. If the trace shows a successful resolution using WINS or NetBIOS queries proceed to TCP Session Establishment.
For details on troubleshooting this NetBIOS Name Resolution further:
http://technet.microsoft.com/en-us/library/cc940110.aspx
TCP Session Establishment
TCP Sessions always begin with a TCP 3-way handshake. The handshake should look similar to what is shown below. The RPC Client will send the first packet, known as the SYN packet. The computer hosting the RPC Server will send a SYN/ACK response, and then the RPC Client will send an ACK packet.
Scenarios that may cause the TCP session to fail
Firewall/Network
If a firewall or network problem is the culprit, it is likely a failure will occur during this phase. To diagnose this you will want to look at the network traces taken from the RPC Client and RPC Server. If a firewall or other network device is causing a problem it will usually manifest as a retransmit of the TCP SYN packet by the RPC Client about 3 seconds after the first TCP SYN is sent. This can be seen in a Netmon network trace using the display filter specification of “tcpsynretransmit==1”. In other cases, firewalls will allow the 3-way handshake to succeed but may block the RPC packets due to the contents of the packet at a higher level. In these cases it is possible to see the retransmit of the RPC packet within half a second of the original packet being sent. To identify this condition in a Netmon network trace use the display filter specification of “tcpretransmit==1”. To see either of these retransmit conditions in a trace taken using Wireshark use the display filter specification of “tcp.analysis.retransmission”.
The RPC Server is not actively listening.
It was noted earlier that an RPC Server will register itself and listen on a particular port and IP address of the host computer. If for some reason that fails the TCP layer will answer the SYN packet from the client with a Reset packet.
A device in the middle between the RPC Client and RPC Server will be resetting the connection attempt.
In the client side trace it will appear as if the server sent the TCP Reset while the trace from the server indicates the client is the source of the TCP Reset.
For both these scenarios, check for the presence of a Reset packet in the TCP three way handshake by using the display filter specification of “TCP.flags.reset==1”.
For troubleshooting this step see the following sections in this document:
- How to identify RPC traffic in a trace
- Connectivity
- RPC Services
- RPC Client Registry
If the 3-way handshake is successful, continue to the RPC Discovery phase.
RPC Discovery
The RPC Discovery phase will occur one of two ways. In both methods the client will know the identifier for the RPC Server it wants to contact and will supply that to the computer hosting the RPC Server and ask for information on how to contact the RPC Server. The identifier is different depending on which method is used and the RPC client will know ahead of time which method it wishes to use.
Discovery – RPC Over TCPIP
This method is a two-step process. First the RPC client will contact the End Point Mapper (EPM) on the machine hosting the RPC Server to find out what port and IP address that Server is listening on. Upon successful completion of this the RPC client will contact the RPC Server directly on the indicated IP address and Port. Below is a sample of what this would look like and a step by step explanation below it. This step depends on the successful TCP session establishment twice, first to the EPM and then to the RPC Server.
- The RPC Client will open a TCP session with TCP port 135 on the computer hosting RPC Server of interest. This can be picked out using the following filter syntax in Netmon or Wireshark: “tcp.port==135”
- The RCP Client will send an RPC Bind request using the UUID of the End Point Mapper and the RPC EPM should respond with a Bind ACK packet.
- The RPC Client will make a MAP request to the EPM to locate the IP address and port of the RPC Server of interest, identifying the RPC Server based on its UUID.
- The EPM will send back a MAP Response that indicates the IP and port the RPC Server is listening on.
- The RPC Client will then open a TCP session with the IP and port it received in the EPM MAP response.
- The client will send an RPC Bind Request to the RPC Server specifying the UUID of the RPC Server application and should get back a Bind ACK from the RPC Server.
- There will be an RPC Alter Context Request/Response in which authentication will take place. If an error is noted here then see the following section for help determining why the error is occurring – Authentication
- Perform some RPC operations…(Go to RPC Communication phase)
Discovery – RPC Over SMB
The second method an RPC Client may use to contact an RPC Server is RPC over SMB. This method depends upon first establishing an SMB session with the computer hosting the RPC Server and then using the Named Pipes protocol to communicate using RPC. So in effect there are several levels of encapsulation – RPC over Named Pipes over SMB over TCP. We will not address the SMB session setup in this document and the TCP session establishment has already been discussed.
With a successfully opened TCP and SMB session, next:
- The RPC Client will issue a SMB TreeConnectAndX for the tree name “IPC$”. This is a special hidden share for inter-process communication. It should get a positive response from the computer hosting the RPC Server.
- The RPC Client will then issue an SMB NTCreateAndX for the name of the PIPE of the RPC Server Application and should get back a positive response. Some examples are:
EVENTLOG = The Event log service
winreg = Remote Registry
svcctl = Service Control Manager
srvsvc = Server Service
- Next there is a Bind handshake. This is to “bind” the RPC client to the RPC server. There are a total of four packets involved:
- The RPC Client bind request containing the UUID of the desired RPC Server.
- A Write AndX response from the RPC Server
- A Read AndX request from the RPC Client.
- A Bind ACK response from the RPC Server.
At this time a RPC request to the RPC server component is expected.
RPC Communication
At this point RPC communication is occurring between the RPC Client and RPC Server. The troubleshooting steps involved at this stage are largely based on the application reporting the RPC failure.
For Active Directory processes or services please see Active Directory Symptoms.
For Microsoft Exchange related RPC errors please see: Analyzing Exchange RPC traffic over TCP/IP
How to identify the RPC traffic in a trace
RPC network traffic can take multiple forms. It is important to understand which form is in use in order to identify which TCP session is responsible for the RPC communication.
RPC over TCPIP
This is sometimes referred to as Traditional RPC or Sockets based RPC. An example of this is Outlook without “Outlook anywhere” or without http settings configured. A TCP session on TCP port 135 is established with the RPC server. To view this traffic in a trace use the filter: “tcp.port==135”. This session will be used in the RPC Discovery phase to locate the endpoint of the desired application.
RPC over HTTP
RPC connectivity for Internet connected hosts will typically use RPC over HTTP in order to traverse firewalls. Some examples of this can be seen with Terminal Services Gateway, Outlook Web Access, Outlook via “Outlook Anywhere”. This communication will be established on one or more connections to either TCP port 80 or 443(SSL). Since this typically traverses a public network, SSL or TCP port 443 is the more common method. Use the filter “tcp.port==80 or tcp.port==443” to locate either form inside network trace.
RPC over HTTP Port 80
For sessions over TCP port 80, the HTTP requests associated with RPC over HTTP will include a UserAgent header that contains the text “OutlookConnectorDS” and the version number of the connector.
RPC over HTTP Port 443
Sessions using TCP port 443 will initially establish a TLS session. After this TLS negotiation, the TCP Payload will be encrypted in TLS/SSL and the contents of the frames will not be readable in the trace. In this phase, look for failures due to improper certificates, inaccessible Certificate Revocation Lists, or untrusted certificate chains.
For more information on troubleshooting SSL/TLS see:
http://technet.microsoft.com/en-us/library/cc783349(WS.10).aspx
RPC over SMB aka “Named Pipes”
RPC can also take advantage of SMB sessions for the purpose of RPC communication. Some examples of this can be seen with Computer Management or the Remote Registry service. With the use of RPC over SMB:
- Establish TCP connection on TCP port 139 or 445.
- Negotiate dialect request/response
- SessionSetupANDX request/response. This sequence is used to establish the SMB Session. Authentication occurs during the SessionSetupANDX exchange.
If a failure in step 1 occurs, see additional troubleshooting steps see: File and Printer Sharing.
Kerberos Authentication
If Kerberos is used, and the client doesn’t currently have a Kerberos ticket for the RPC server, just after the Negotiate Dialect response is received, the client will obtain a Kerberos ticket for the Servername/cifs SPN of the RPC server. This exchange will occur over the Kerberos ports TCP or UDP port 88 between the client and a Domain Controller. SessionSetupANDX follows and will consist of a single SessionSetupANDX request which includes the Kerberos ticket, followed by a SessionSetupANDX Response indicating success or failure of the authentication.
For additional troubleshooting steps during authentication, see Authentication.
NTLM Authentication
If NTLM is used, SessionSetup will result in a SessionSetupANDX response with a status of STATUS_MORE_PROCESSING_REQUIRED. This response includes the NTLM challenge. The subsequent SessionSetupANDX Request will include the hashed credentials of the client. At this time, the RPC server must validate the credentials supplied by the user. To do this, the RPC server will contact a domain controller, and validate the credentials with the netlogon service, via RPC, on the domain controller. If this is successful, the RPC server will then respond to the client with a SessionSetupANDX Response indicating STATUS_SUCCESS.
For additional troubleshooting steps during authentication, see Authentication.
Troubleshooting Authentication
Verify that authentication is working correctly by checking for Time skew, UDP Fragmentation or an Invalid Kerberos Realm.
- Time skew can be verified by running net time /querysntp and net time /setsntp:<PDCe server name>. The /querysntp switch allows you to determine if a specific DC is manually configured as the authoritative time server. The /setsntp:<PDCe server name> switch can be used to synchronize the computer receiving the error with the PDC emulator. The PDC emulator is the authoritative time server by default.
- UDP fragmentation can cause replication errors that appear to have a source of RPC server is unavailable. Symptoms of UDP fragmentation being at the root of this problem include clients being unable to log on to the domain, administrators being unable join computers to the domain and Event ID 40960 & 40961 errors with a source of LSASRV and Kerberos errors with an Event ID of 10 in the system log.
Knowledge base article 244474
– «How to force Kerberos to use TCP instead of UDP in Windows Server 2003, in Microsoft Windows and XP, and in Microsoft Windows 2000» provides the steps to resolve this problem.
- An incorrect Kerberos realm can also be at the root of RPC server is unavailable problems. The symptoms that will be experience when the Kerberos realm is incorrect include the following errors when opening AD management tools:
Naming Convention could not be located because: No authority could be contacted for authentication. Contact your system administrator to verify that your domain is properly configured and is currently online.
-or-
Naming information cannot be located because: No authority could be contacted for authentication. Contact your system administrator to verify that your domain is properly configured and is currently online.
To verify that the correct Kerberos realm is configured, follow the steps in 837513
– «Domain controller is not functioning correctly».
Active Directory Symptoms:
1. If you are experiencing replication problems and getting RPC server is unavailable errors as is reported in repadmin /showreps below, use Portqry or Network Monitor to determine if RPC traffic is being blocked is the first step when attempting to troubleshoot RPC Server is unavailable errors.
[Replications Check,DC2] A recent replication attempt failed:
From DC1 to DC2
Naming Context: CN=Schema,CN=Configuration,DC=xl
The replication generated an error (1722):
The RPC server is unavailable.
The failure occurred at 2003-10-30 11:59.47.
The last success occurred at 2003-10-28 20:50.22.
26 failures have occurred since the last success.
[DC1] DsBind() failed with error 1722,
The RPC server is unavailable..
The source remains down. Please check the machine.
BermudaDC1 via RPC objectGuid: 28c78c72-3c95-499a-bcda137a250f069f
Last attempt @ 2003-10-30 11:58.15 failed, result 1722:
The RPC server is unavailable.
Troubleshooting: If IP Security Policies in Active Directory had the Assigned Value to Server (Request Security) set to Yes then these errors will result. Knowledge base article 313190 
2. If you are blocking all ICMP traffic between separate AD sites, you will receive the errors below in the output of DCDIAG when trying to replicate inter-site:
Testing server: contosoDC1
Starting test: Replications
* Replications Check
[Replications Check,DC1] A recent replication attempt failed:
From DC2 to DC1
Naming Context: CN=Schema,CN=Configuration,DC=litware,DC=com
The replication generated an error (1722):
The RPC server is unavailable.
The failure occurred at 2003-08-24 23:00.51.
The last success occurred at (never).
553 failures have occurred since the last success.
[DC2] DsBind() failed with error 1722,
The RPC server is unavailable..
The source remains down. Please check the machine.
REPLICATION LATENCY WARNING
DC1: A full synchronization is in progress
from DC2 to DC1
Replication of new changes along this path will be delayed.
[DC2] LDAP connection failed with error 58,
The specified server cannot perform the requested operation.
Troubleshooting: To resolve this issue, remove the ICMP traffic restriction between domain controllers. When establishing an RPC session prior to AD replication, ICMP traffic is used. If the ICMP fails, so does the RPC session establishment, and hence AD replication also fails. ISA 2004 can prevent ICMP traffic with the exception of computers specified in the Remote Management Computers computer set which can be configured in system policy.
3. The following error will appear when attempting to connect to the computer.
«computer <servername.domain.local> cannot be managed. The network path was not found. RPC server is unavailable.
Or when viewing the properties of the remote computer you will receive the error:
«Win32: The RPC server is unavailable».
Troubleshooting: Computer management is one of the better tools for testing RPC connectivity. When RPC traffic is being blocked, connections to other computers using the computer management console will fail.
4. When attempting to promote an additional domain controller in an Active Directory domain while the RPC service is blocked or not running, the following error will appear:
«The domain «domain.local» is not an Active Directory domain, or an Active Directory domain controller for the domain could not be contacted.
Troubleshooting:
5. Connections to computers via Remote Desktop may fail if RPC connectivity cannot be established. When attempting to logon on to the domain via Remote Desktop the following error will be produced in the form of a popup error message if RPC connectivity is the root of the problem:
«The system cannot log you on due to the following error: The RPC server is unavailable.”
You may also see the following errors on the Terminal server:
Error 1727: The remote procedure call failed and did not execute
Error 1722: The RPC server is unavailable.
Error 1723: The RPC server is too busy to complete this operation.
Error 1721: Not enough resources are available to complete this operation.
-or-
Event ID 5719:
Source: NetLogon
Description: No Windows NT Domain Controller is available for domain domain_name.
The following error occurred: There are currently no logon servers available to
service the logon request.
Event ID: 1219
Source: Winlogon
Details: Logon rejected for CONTOSO<computername>. Unable to obtain Terminal Server
User
Configuration. Error: The RPC server is unavailable.
Troubleshooting: These errors can be a result of the TCP/IP NetBIOS Helper service being disabled on the Terminal server or NetBIOS over TCP/IP being disabled on one of the NIC’s used to access the Terminal server. You should also verify that the Client for Microsoft networks is bound to the adapter used to access the Terminal server. You can tell if this is happening by looking at a Netdiag /v from the box for the following output:
Testing redirector and browser… Failed
NetBT transports test. . . . . . . : Failed
List of NetBt transports currently configured:
[FATAL] No NetBt transports are configured.
Redir and Browser test . . . . . . : Failed
List of transports currently bound to the Redir
NetBIOSSmb
[FATAL] The redir isn’t bound to any NetBt transports.
List of transports currently bound to the browser
[FATAL] The browser isn’t bound to any NetBt transports.
Troubleshooting Tools and Methods
Methods to generate RPC Traffic
Computer Management MMC to a remote host
Outlook to an Exchange server
RPCPing – http://support.microsoft.com/kb/831051
Tools for Testing RPC
RPCPing – http://support.microsoft.com/kb/831051
PortQry – http://support.microsoft.com/default.aspx?scid=kb;EN-US;832919
Pipelist – http://technet.microsoft.com/en-us/sysinternals/dd581625.aspx
RPCDump – http://support.microsoft.com/default.aspx?scid=kb;EN-US;325930
NSLookup – http://support.microsoft.com/default.aspx?scid=kb;EN-US;200525
NBLookup – http://support.microsoft.com/default.aspx?scid=kb;EN-US;830578
Tools for monitoring RPC
Network Monitor – Download 
Wireshark – Download
Using PortQry
You can use the Portqry tool to verify that the required ports are open. You should run the Portqry tool on a computer that is not receiving any RPC errors against a computer that is receiving RPC errors by using the -n switch. To this, follow these steps:
a. Click «Start», click «Run», type «cmd» in the «Open» box, and then click OK».
b. Type «portqry -n <problem_server> -e 135» (without the quotation marks).
The output will appear similar to the following examples:
Querying target system called:
<problem_server>
Attempting to resolve name to IP address…
Name resolved to 169.254.1.1
querying…
<problem_server>
TCP port 135 (epmap service): LISTENING
Using ephemeral source port
Querying Endpoint Mapper Database…
Server’s response:
UUID: f5cc59b4-4264-101a-8c59-08002b2f8426 NtFrs Service
ncacn_ip_tcp:65.53.63.16[1094]
UUID: e3514235-4b06-11d1-ab04-00c04fc2dcd2 MS NT Directory DRS Interface
ncacn_ip_tcp:65.53.63.16[1025]
UUID: e3514235-4b06-11d1-ab04-00c04fc2dcd2 MS NT Directory DRS Interface
ncacn_http:65.53.63.16[1029]
UUID: e3514235-4b06-11d1-ab04-00c04fc2dcd2 MS NT Directory DRS Interface
ncacn_http:65.53.63.16[6004]
If port 135 is blocked, the following will appear:
TCP port 135 (epmap service): NOT LISTENING However, for these RPC Endpoint Mapper errors it is likely that ports greater than 1024 are blocked, and not port 135.From the output, you know the DC is using port 1094 for FRS and 1025, 1029, and 6004 for Active Directory replication. You can use the Portqry tool again to check those ports. For example, you can test all the ports at the same time by using the Portqry tool with the -o switch. For example, type
«portqry -n <problem_server> -o 1094,1025,1029,6004″(Without the quotation marks)
If the ports all respond as «LISTENING,» it’s likely that blocked ports are not causing this problem. If any ports respond as «NOT LISTENING,» the ports are probably blocked.
Resources
RPC Blogs
Basics of RPC are covered here:
RPC to Go v.1: http://blogs.technet.com/b/networking/archive/2008/10/24/rpc-to-go-v-1.aspx
Architecture and a closer look at a connection to the RPC Endpoint mapper in a network capture.
RPC to Go v.2: http://blogs.technet.com/b/networking/archive/2008/12/04/rpc-to-go-v-2.aspx
This describes how RPC commands can be sent over Named Pipes in SMB via the IPC$ Tree.
RPC to Go v.3: http://blogs.technet.com/b/networking/archive/2009/04/28/rpc-to-go-v-3-named-pipes.aspx
Troubleshooting “RPC server is unavailable” error, reported in failing AD replication scenario.
http://blogs.technet.com/b/abizerh/archive/2009/06/11/troubleshooting-rpc-server-is-unavailable-error-reported-in-failing-ad-replication-scenario.aspx 
External TechNet Magazine article
This one is good. It lays out RPC basics really quickly and then moves on RPC errors. The information on MaxUserPort would need to be updated with the information about the dynamic port ranges that are used in Vista/W2008 are the high range of ports compared to the 1025-5000 for W2003.
How IT Works, Troubleshooting RPC Errors by Zubair Alexander:

KB Article
Troubleshooting RPC Endpoint Mapper errors using the Windows Server 2003 Support Tools from the product CD
http://support.microsoft.com/default.aspx?scid=kb%3bEN-US%3b839880
This entry was posted on May 16, 2012 at 3:10 PM and is filed under Active Directory.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
16 Replies
-
In the services, you’ve verified the RPC is running, set to automatic. And, the RPC Locator is set to Manual? Low tech…open a browser to verify you can see the network. I’ve actually had Microsoft Patches reconfigure my DC server’s firewall and block DC ports.
Was this post helpful?
thumb_up
thumb_down
-
What server O/S are you running on the DC you get the error?
Was this post helpful?
thumb_up
thumb_down
-
Der Geist Thanks for your reply. I have checked both services (RPC) is running. as for as patching is concern, this issue is also coming from the DCs that have not patches since last couple of month.
Plz suggest how can i fix it.
Was this post helpful?
thumb_up
thumb_down
-
@Hollywood-SpiceHead We are having mix environments . here we have four to five DCs running under server 2012 r2 & rest are having Server OS 2008R2. till the last month all were going good.
Now i am facing the 1727 error when we run repadmin/replsummary
Was this post helpful?
thumb_up
thumb_down
-
Try
disabling IPSec Policy Agent on the DC see if it helps you out…
Was this post helpful?
thumb_up
thumb_down
-
Have your verified the Network Location for each of your DCs? Is it Domain, or is it Public/Private?
Was this post helpful?
thumb_up
thumb_down
-
How many sites do you have in AD Sites & Services? Are they Subnets assigned to the correct sites?
Was this post helpful?
thumb_up
thumb_down
-
@Hollywood-SpiceHead i ahve doen by disabing Ipsec Agent but still issue is same. We have 20 Sites & each DC is associated with correct subnet. Some days before it was running smoothly.
Was this post helpful?
thumb_up
thumb_down
-
Windows firewall is disabled on all DCs . Instead of it we are using Mcaffee end point security agent on DCs
Was this post helpful?
thumb_up
thumb_down
-
Ensure all of your DC’s running DNS that the primary DNS server is 127.0.0.1 and the secondary if the closest DC to itself.
Was this post helpful?
thumb_up
thumb_down
-
Also if you ARE running McAfee you need to add exceptions for you DHCP and DNS folders.
Was this post helpful?
thumb_up
thumb_down
-
@
Hollywood-SpiceHeadMember …..yes we are using Macfee agent on each DC but all other DCs (Macfee Agent is install) are functioning properly.
Some times faulty DCs (The Dcs that are generating 1727 Error in repadmin /replsummary) remove the error & some times it (1727 Error) appears again.
Was this post helpful?
thumb_up
thumb_down
-
Ensure there is no firewall blocking port 135 on the server you are having issues with.
Was this post helpful?
thumb_up
thumb_down
-
@
Hollywood-SpiceHeadMember……..I have checked that no such ports (135 & all other DC ports) are blocked by firewall.
Was this post helpful?
thumb_up
thumb_down
-
Temporarily disable or uninstall the McAfee client and test your RPC.
Was this post helpful?
thumb_up
thumb_down
-
I have followed your instruction but issue is still same..
Was this post helpful?
thumb_up
thumb_down
Код ошибки 1727
#1 top2asus07

Cureit выдает ошибку 1727 при проверке , случается это на объекте: HDD0 MBR
dwsysinfo также выдает ошибку.
#2 RomaNNN
А в логе CureIt-а что?
#3 top2asus07

Что за лог куре ит? Проверка обрывается на пол пути , ошибка 1727, случается это на объекте: HDD0 MBR, и программа закрывается. Длится это уже на протяжении месяца , постоянно обновляю куре ит , но еще ни разу не получилось полностью сделать проверку.
Прикрепленные файлы:
hijackthis1.rar4,13К 3 Скачано раз
Сообщение было изменено top2asus07: 28 Август 2014 — 17:34
#4 lionmad

А защит никаких не ставили? Утилит от производителей диска или материнки? Ну и на последнее ощибки на диске проверить хорошо бы.
#5 rjhybtyrj

1727: у меня та же проблема. после такой «проверки и защиты» теперь сбоит вся система, переносной жесткий диск ( 2-х терабайтник) не виден, на другом компе проверяла (тот же антивир) — видит, но вся инфа скрыта, кроме родных системных файлов. так еще и антивир сам отключается постоянно! что делать? ну систему я переустановлю, а как лечить жесткач?
Сообщение было изменено rjhybtyrj: 09 Сентябрь 2014 — 06:55
#6 Lvenok

видит, но вся инфа скрыта, кроме родных системных файлов
Явный признак наличия сусликов или их последствия.
Источник
Устранение ошибки репликации контроллера домена 1727. Сбой удаленного вызова процедуры и не выполнен
В этой статье устранено сообщение об ошибке «Сбой удаленного вызова процедуры и не выполнено». Эта ошибка возникает во время репликации контроллера домена (DC) в Windows Server.
Область действия: Windows 10, версия 2004, Windows 10, версия 1909, Windows Server 2019, Windows Server 2012 R2, Windows Server 2016
Исходный номер базы знаний: 4019721
Симптомы
Эта ошибка репликации Active Directory (AD) отображается в одной или нескольких из следующих форм:
- Десятичное число: 1727
- Шестнадцатеричных: 0x6bf
- Символическое: RPC_S_CALL_FAILED_DNE
- Сообщение об ошибке: не удалось выполнить удаленный вызов процедуры.
Причина
Эта проблема возникает по одной из следующих причин:
- Проблема с сетевым подключением между двумя контроллерами домена. Дополнительные сведения см. в следующих разделах.
- Проблема с производительностью, вызываемая нагрузкой, на партнере репликации. Эта проблема менее распространена и часто является временной по своей природе. Дополнительные сведения см. в следующих разделах.
О проблеме с сетевым подключением
Эта проблема возникает, когда партнеру репликации контроллера домена не удается завершить подключение RPC к службе RPC репликации AD (UUID DRSR E3514235-4B06-11D1-AB04-00C04FC2DCD2). В частности, партнер репликации может выполнить привязку к сопоставитель конечных точек RPC, но не может выполнить привязку DRSR RPC.
- Брандмауэры
- Маршрутизаторы
- Оптимизаторы глобальной сети
- другие промежуточные сетевые устройства
- драйверы сетевого фильтра
О проблеме с производительностью
Эта проблема возникает, если выполняется одно из следующих условий:
- Сервер находится в невыполненной работе и не отвечает на подтверждение TCP или ответное сообщение. Таким образом, отправитель прерывает сеанс TCP.
- Сеть слишком медленная или ненадежная. Он не может доставить подтверждение TCP или ответное сообщение.
Решение
Чтобы устранить эту проблему, определите все последние изменения, которые повлияют на сеть между двумя контроллерами домена, и отменить эти изменения, если это возможно. Если последние изменения отсутствуют, необходимо полностью изучить сетевое подключение RPC между двумя контроллерами домена. Для этого выполните общие действия по устранению неполадок или подробные инструкции по устранению неполадок.
Общие действия по устранению неполадок
Во время воспроизведения проблемы выполните двойную запись сети. Для этого выполните указанные ниже действия.
- Запустите запись сети на обеих контроллерах домена.
- Вручную запустите репликацию между двумя контроллерами домена.
- Остановите обе стороны трассировки при возникновении ошибки.
Изучите беседу RPC между двумя контроллерами домена. Определите, есть ли когда-либо случай, в котором сообщение, отправленное из контроллера домена запроса, не будет получать ответ от партнера по репликации.
Иногда имеется частичный ответ, который включает подтверждение TCP-запроса piggy-back для сообщения запроса. Но трафик был изменен или ответ фактически не поступает в контроллер домена запрашивателя. Таким образом, стек TCP не получает подтверждение.
Подробные инструкции по устранению неполадок
Запустите запись сети на обоих контроллерах домена, прежде чем выполнять следующие действия для проверки подключения контроллера домена.
Проверка подключения к исходному контроллеру домена из целевого контроллера домена
Выполните следующие действия на целевом контроллере домена:
Проверьте, прослушивает ли исходный контроллер домена TCP-порт 135. Для этого выполните команду PortQry.exe -n -e 135 .
Если состояние порта — FILTERED, сбой репликации AD, скорее всего, завершится сбоем и вернет ошибку 1722. Попробуйте разрешить ошибку 1722, а затем проверьте, успешно ли выполняется репликация AD. Если проблема не исчезнет, перезапустите подробные инструкции по устранению неполадок.
Если состояние не фильтруется, команды возвращают базу данных модуля сопоставления конечных точек RPC. Найдите интерфейс MS NT Directory DRS , чтобы найти порт верхнего диапазона в базе данных сопоставляемого модуля сопоставления конечных точек, прослушиваемой исходным контроллером домена для репликации AD. Вы можете получить одну или несколько записей. Запишите порты для ncacn_ip_tcp.
Например, вы получите примерно такой пример, который представляет два порта верхнего диапазона 49159 и 49160:
UUID: e3514235-4b06-11d1-ab04-00c04fc2dcd2 MS NT Directory DRS Interface ncacn_ip_tcp:2012dc[49159] UUID: e3514235-4b06-11d1-ab04-00c04fc2dcd2 MS NT Directory DRS Interface ncacn_ip_tcp:2012dc[49160]
Порты верхнего диапазона относятся к контроллеру домена и назначаются динамически. Однако администратор может жестко заданный порт, используемый для репликации AD, используя следующее значение реестра.
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesNTDSParameters
Значение реестра: TCP/IP-порт
Тип значения: REG_DWORD
Данные значения: (доступный порт)
Проверьте подключение TCP-портов к портам верхнего диапазона, которые вы записали. Для этого выполните следующую команду:
Например, выполните следующие команды:
Если состояние порта — FILTERED, проверьте трассировку сети, чтобы определить, где заблокирован пакет.
Тестирование DNS. Убедитесь, что конечный контроллер домена может разрешать записи CNAME и HOST исходного контроллера домена. И убедитесь, что разрешенный IP-адрес является фактическим IP-адресом исходного контроллера домена. Если DNS указывает на старый или недопустимый IP-адрес, выполняется попытка подключения RPC к неправильному исходному контроллеру домена.
Проверка подключения конечного контроллера домена из исходного контроллера домена
Повторите шаг 1–3 на исходном контроллере домена.
Источник
Troubleshoot domain controller replication error 1727-The remote procedure call failed and did not execute
This article solves the error message «The remote procedure call failed and did not execute». This error occurs during domain controller (DC) replication on Windows Server.
Applies to: В Windows 10, version 2004, Windows 10, version 1909, Windows Server 2019, Windows Server 2012 R2, Windows Server 2016
Original KB number: В 4019721
Symptoms
This Active Directory (AD) replication error appears in one or more of the following forms:
- Decimal: 1727
- Hex: 0x6bf
- Symbolic: RPC_S_CALL_FAILED_DNE
- Error message: The remote procedure call failed and did not execute.
Cause
This problem occurs because of one of the following reasons:
- A network connectivity issue between the two domain controllers (DCs). See the following sections for details.
- A load-induced performance issue on the replication partner. This issue is less common and is often transient in nature. See the following sections for details.
About the network connectivity issue
This problem occurs when the DC’s replication partner can’t complete the RPC connection to AD Replication’s RPC Service (DRSR UUID E3514235-4B06-11D1-AB04-00C04FC2DCD2). More specifically, the replication partner can bind to the RPC endpoint mapper, but can’t complete the DRSR RPC bind.
Possible root causes include:
- firewalls
- routers
- WAN optimizers
- other intermediate network devices
- network filter drivers
About the performance issue
This problem occurs when one of the following conditions is true:
- The server is backlogged and doesn’t respond to the TCP ACK or the response message. So, the sender abandons the TCP session.
- The network is too slow or unreliable. It can’t deliver the TCP ACK or the response message.
Resolution
To resolve this problem, determine any recent changes that would affect the network between the two DCs and undo those changes if possible. If there are no recent changes, you must fully examine the RPC network connectivity between the two DCs. To do so, follow either the high-level troubleshooting steps or the detailed troubleshooting steps.
High-level troubleshooting steps
Take a double-sided network capture while you reproduce the problem. To do so, follow these steps:
- Start a network capture on both DCs.
- Manually start replication between the two DCs.
- Stop both sides of the trace when you receive the error.
Examine the RPC conversation between the two DCs. Determine whether there’s ever a case in which the message that’s sent from the requestor DC doesn’t incur a response from the replication partner.
Occasionally, there is a partial response that includes the piggy-back TCP ACK for the request message. But the traffic has been modified or the response doesn’t actually arrive at the requester DC. Therefore, the TCP stack doesn’t receive an ACK.
Detailed troubleshooting steps
Start a network capture on both DCs before you take the following steps to test DC connectivity.
Test the source DC connectivity from the destination DC
Follow these steps on the destination DC:
Verify whether the source DC is listening on TCP port 135. To do so, run the PortQry.exe -n -e 135 command.
If the port status is FILTERED, the AD replication failure is likely to fail and return error 1722 instead. Try resolving error 1722, and then check whether the AD replication succeeds. If the problem persists, restart the detailed troubleshooting steps.
If the status isn’t FILTERED, the commands return the RPC endpoint mapper database. Search for MS NT Directory DRS Interface to find the upper-range port in the endpoint mapper database that the source DC is listening on for AD replication. You may get one or more entries. Make a note of the ports for ncacn_ip_tcp.
For example, you get something that resembles the following example, which presents two upper-range ports 49159 and 49160:
UUID: e3514235-4b06-11d1-ab04-00c04fc2dcd2 MS NT Directory DRS Interface ncacn_ip_tcp:2012dc[49159] UUID: e3514235-4b06-11d1-ab04-00c04fc2dcd2 MS NT Directory DRS Interface ncacn_ip_tcp:2012dc[49160]
The upper-range ports are DC specific and are dynamically assigned. However, an administrator can hard-code the port that is used for AD replication by using the following registry value.
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesNTDSParameters
Registry value: TCP/IP Port
Value type: REG_DWORD
Value data: (available port)
Test TCP port connectivity to the upper-range ports that you note. To do so, run the following command:
For example, you run the following commands:
If port status is FILTERED, review the network trace that you’ve captured to determine where the packet is blocked.
Test DNS. Verify that the destination DC can resolve the CNAME and HOST records of the source DC. And verify that the resolved IP address is the actual IP address of the source DC. If DNS points to an old or invalid IP address, then RPC connection attempt is made to an incorrect source DC.
Источник
Что за ошибка error 1727
Добрый день ребят!
Столкнулись с проблемами репликации!
Что есть:
Один домен, три филиала, в каждом по одному DC (с ОС Windows Server 2008 R2- на двух DC и Wondows Server 2008 SP2 на третьем)!
Маршрутизация организована через каналы VPN с ISA Server и TMG. При маршрутизации весь трафик разрешен, так же и RPC трафик.
Файерволы на всех DC выключены.
Репликация создана автоматом с помощью KCC (в каждом сайте есть по два подключения созданных автоматически ). И все бы ничего, как в один прекрасный момент посыпались ошибочки о том что раздел конфигурации не смог реплицироваться на один из трех DC. И более того в сайте пропали все соединения для DC.
Команда repadmin так же выдает ошибку
Функция SyncAll сообщает о следующих ошибках:
Ошибка обращения к серверу 6d00ba0e-013f-4714-a91b-cc4fdbbed4
al (сетевая ошибка): 1727 (0x6bf):
Сбой при удаленном вызове процедуры. Вызов не произведен.
Далее еще лучше, пропадает Sysvol и NetLogon. Вчера восстановили, но репликация как ни шла так и не идет.
Вопрос:
Куда еще можно посмотреть ? Может на третьем DC и не должно быть подключений, вроде с неисправного DC репликация на остальные DC уходит а вот на текущий не идет репликация.
Люди тратят здоровье, что бы заработать $, а затем тратят $, что бы вернуть здоровье!
Ответы
Код ошибки 1727 означает, что RPC endpoint mapper (135/tcp) на удаленном компьютере доступен, а вот обратиться непосредственно к конечной точке, принимающей вызов нужной удаленной процедуры не получается.
Обычные причины: блокирован соответствующий порт где-то на брандмауэре между DC, либо шибко умный брандмауэр блокирует расширения протокола RPC (из 2003 SP1 и для расширенной поддержки 64-бит), о которых он не знает -в частности, так может вести себя и ISA Server, если на нем не установлены последние обновления.
Блокирование порта проверяется telnet’ом (впрочем, если брандмауэр понимает RPC, то он трафик на этот порт может не пропустить, если предварительно он не был указан в ответе от endpoint mapper)
Какой именно порт нужно проверить — смотреть с помощью rpcdump, UUID нужной службы —
Еще полезно посмотреть в логи ISA/TMG, стоящих между DC — там может быть указано, что соединение на нужный порт блокируется — тогда смотреть, каким правилом блокируется.
Второй случай можно проверить командой rpcdump -s другойой_DC с проблемного DC — команда вернет ошибку.
Эту проблему можно обойти , если на обоих участвующих в репликации контроллерах отключить использование расширений RPC: установить в реестре значение HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindows NTRpcServer2003NegotiateDisable :REG_DWORD=1 и перезагрузить DC
Источник
To totally unlock this section you need to Log-in
Remote Procedure Call (RPC) is an inter-process communication technique to allow client and server software to communicate on a network. The RPC protocol is based on a client/server model. The client makes a procedure call that appears to be local but is actually run on a remote computer. During this process, the procedure call arguments are bundled and passed through the network to the server. The arguments are then unpacked and run on the server. The result is again bundled and passed back to the client, where it is converted to a return value for the client’s procedure call.
RPC is used by several components in Windows Server, such as the File Replication Service (FRS), Active Directory Replication, Certificate services, DCOM, domain join, DCPromo and RDP, NLB and Cluster, Microsoft Operations Master, Exchange and SQL Server.
An RPC server is a communications interface provided by an application or service that allows remote clients to connect, pass commands, and transfer data using the RPC protocol. A typical example of an RPC server is Microsoft Exchange Server. Microsoft Exchange Server is an application running on a computer that supplies an RPC communications interface for an RPC client.
An application will register its RPC server with the operating system’s End Point Mapper (EPM) service so that the remote client can locate the RPC server. When the application registers with the EPM it will indicate the IP address and TCP port that it is listening on.
The RPC Client
An RPC client is an application running on any given computer that uses the RPC protocol to communicate with an RPC server. An example of a typical RPC client is the Microsoft Outlook application.
NOTE: In this article the terms RPC server and RPC client refer to the application running at both ends of an RPC communication.
RPC Quick Fixes
Common causes of RPC errors include:
- Errors resolving a DNS or NetBIOS name.
- The RPC service or related services may not be running.
- Number of connectivity Problems with network connectivity.
- File and printer sharing is not enabled.
Unable to resolve DNS or NetBIOS names in an Active Directory environment
Use the following commands to verify DNS is working for all DC’s or specific DC’s:
To get a DNS status for all DCs in forest, run the following command:
DCDIAG /TEST:DNS /V /E /F:<filename .log>
The «/e» switch runs the DNS test against all DCs in an Active Directory Forest.
To get DNS health on a single DC, run the command below:
DCDIAG /TEST:DNS /V /S:<dcname> /F:<filename .log>
The «/s:» switch runs the DNS test against a specified domain controller.
To verify that a domain controller can be located for a specific domain, run the command below.
NLTEST /DSGETDC:<netbios or DNS domain name>
- Servers and clients that are receiving the error should be checked to verify that they are configured with the appropriate DNS server.
- Servers should not be pointing to their ISP’s DNS servers in the preferred or alternate DNS server portion of the TCP/IP settings.
- The ISP’s DNS servers should only be used as forwarders in DNS.
Ensure that at least one correct DNS record is registered on each domain controller:
- To ensure that a correct DNS record is registered on each domain controller, find this server’s Active Directory replication partners that run DNS.
- Open DNSManager and connect in turn to each of these replication partners.
- Find the host (A) resource record registration for this server on each of the other replication partner domain controllers.
- Delete those host (A) records that do not have IP addresses corresponding to any of this server’s IP addresses.
- If a domain controller has no host (A) records for this server, add at least one that corresponds to an IP address on this server. (If there are multiple IP addresses for this server, add at least one that is on the same network as the domain controller you are updating.)
Name resolution may also fail with the RPC Server is unavailable error if NetBIOS over TCP/IP is disabled on the WINS tab in the advanced section of the TCP/IP properties. The NetBIOS over TCP/IP setting should be either enabled or default (use DHCP).
Verify that a single label domain name is not being configured. DNS names that do not contain a suffix such as .com, .corp, .net, .org or .local are considered to be single-label DNS names. Microsoft doesn’t recommend using single label domain names because they cannot be registered with an Internet registrar and domain members do not perform dynamic updates to single-label DNS zones.
The RPC service or related services may not be started
Verify the status and startup type for the RPC and RPC locator services on the server that gets the error:
- By default, Windows server 2003 domain controllers (and beyond) and member servers all should have the RPC service started and set to Automatic startup and the RPC Locator service stopped and set to Manual Startup.
- Windows 2000 (and beyond) domain controllers should have the RPC and RPC Locator services both set to started and automatic startup, while Windows 2000 member servers should have the RPC service started and set to automatic startup while the RPC locator service should be started and set to manual startup.
- If you make any changes to the RPC service or to the RPC Locator service settings, restart the computer, and then test for the problem again.
- Additional Services that may result in «The RPC Server is Unavailable» errors are the TCP/IP NetBIOS helper service, Distributed File System service and Remote Registry service. These services should both be set to automatic and started. The Kerberos Key Distribution Center (KDC) should be Started and Automatic on Windows 2000, Windows 2003 DCs (and beyond). It should not be started and set to Disabled in all other cases.
Network Connectivity
Verify ports needed by RPC are open: verify that ports greater than 1024 are not blocked. Clients connect to RPC Endpoint Mapper on port 135. RPC Endpoint Mapper then tells the client which randomly assigned port between 1024-65535 a requested service is listening on.
Ports may be blocked by a hardware firewall or a software firewall. Software firewalls include Internet Connection Firewall on computers running Windows Server 2003 or Windows XP, and Windows Firewall on computers running Windows Vista, Windows 7, Windows Server 2008 and Windows Server 2008 R2.
A computer might also have third-party firewall software installed, or antivirus software with built-in firewall functionality. By default, port 135 TCP/UDP and ports 1024-65535 TCP must be open for RPC to work. You can restrict the ports greater than 1024 that RPC uses. However, RPC Endpoint Mapper is always on port 135.
File and Printer Sharing is not enabled
File and Printer sharing for Microsoft Networks will produce the error RPC Server is unavailable when you try to view or manage services on a remote computer using the Services snap-in. See the following example:
Unable to open service control manager database on \. Error 1722: The RPC server is unavailable.
This error message may occur if the File and Printer Sharing for Microsoft Networks component is not enabled on the remote computer.
Troubleshooting RPC
The process of an RPC client connecting to an RPC server can be broken down into four phases. This troubleshooting guide will discuss the events that occur at each phase, how to test these events, and how to identify if the phase completed successfully.
- Phase 1: Name Resolution: Name resolution is the act of resolving a name to an IP address. This normally takes two forms: NetBIOS Name Resolution or the more common DNS Name Resolution.
- Phase 2: TCP session establishment: TCP session establishment is the act of establishing a TCP connection between the RPC client and the RPC server. TCP sessions will be initiated by the RPC client via a TCP 3-way handshake with the RPC server.
- Phase 3: RPC Discovery: When a client wants to connect to the RPC server supplied by the application it will contact the computer that hosts the RPC Server and discover how to connect to the RPC Server.
- Phase 4: RPC Communication: RPC Communication is the act of making RPC requests to the application endpoint and receiving RPC responses from this application.
Data needed to troubleshoot the issue:
Identify the client and server computers reporting the RPC error. Identify the DNS and WINS servers used by these computers. To do this:
- On each machine, open a command prompt and run ipconfig /all.
- Determine the IP address of both machines. If the server is part of a cluster get the cluster resource IP address as well. Identify the DNS servers and WINS servers that the RPC client is configured to use.
Note: You can also obtain this information by opening Control PanelNetwork and Sharing Center, clicking Local Area Connection and selecting Properties.
- Identify the application(s) reporting RPC Server Unavailable.
- Simultaneous network traces (using Wireshark, Netmon, or a comparable network sniffer) from the machines hosting the RPC client and RPC Server while reproducing the task that results in a “RPC Server Unavailable” error.
- The network captures on both hosts should be started first.
- From a command prompt on the client run ipconfig /flushdns and nbtstat –R to clear the name resolution caches.
- Reproduce the error.
- Stop the traces and save them.
Name Resolution
Name Resolution consists of one or possibly more NetBIOS or DNS queries to locate the IP address for the RPC Server. Troubleshooting this phase requires verifying that a response is received to the name resolution request and that the response contains the correct IP address for the RPC server. Compare the IP address reported by DNS or NetBIOS in the network trace for the server with the IP addresses you noted earlier. If it does not match then check DNS and WINS and note if there is a difference.
DNS Name Resolution
To identify DNS Name Resolution in a network trace use the following filter in Network Monitor or Wireshark: dns. DNS resolution will be occurring at the client so open the network trace taken from the RPC client machine. You will be looking for one packet that is the query from the client to the DNS server and then the response packet from the DNS server. It will look similar to this:
If the trace shows the correct IP address for the RPC server was returned by the DNS server proceed to TCP Session Establishment.
NetBIOS Name Resolution
NetBIOS queries come in two forms, WINS or NetBIOS Broadcasts. WINS will consist of a unicast query to a WINS server and a response from the WINS server.
NetBIOS broadcasts are queries broadcast to all hosts on the local subnet so name resolution is limited to only hosts on the subnet. The host with the name listed in the NetBIOS Broadcast will respond with its IP address.
To identify NetBIOS Name Resolution in a network trace, use the following filter in Network Monitor — “nbtns”. For Wireshark, use the following filter — nbns”. If the trace shows a successful resolution using WINS or NetBIOS queries proceed to TCP Session Establishment.
TCP Session Establishment
TCP Sessions always begin with a TCP 3-way handshake. The handshake should look similar to what is shown below. The RPC Client will send the first packet, known as the SYN packet. The computer hosting the RPC Server will send a SYN/ACK response, and then the RPC Client will send an ACK packet.
Scenarios that may cause the TCP session to fail:
Firewall/Network
If a firewall or network problem is the culprit, it is likely a failure will occur during this phase. To diagnose this you will want to look at the network traces taken from the RPC Client and RPC Server. If a firewall or other network device is causing a problem it will usually manifest as a retransmit of the TCP SYN packet by the RPC Client about 3 seconds after the first TCP SYN is sent.
This can be seen in a Netmon network trace using the display filter specification of “tcpsynretransmit==1”. In other cases, firewalls will allow the 3-way handshake to succeed but may block the RPC packets due to the contents of the packet at a higher level. In these cases it is possible to see the retransmit of the RPC packet within half a second of the original packet being sent.
To identify this condition in a Netmon network trace use the display filter specification of “tcpretransmit==1”.
To see either of these retransmit conditions in a trace taken using Wireshark use the display filter specification of “tcp.analysis.retransmission”.
The RPC Server is not actively listening
It was noted earlier that an RPC Server will register itself and listen on a particular port and IP address of the host computer. If for some reason that fails the TCP layer will answer the SYN packet from the client with a Reset packet.
A device in the middle between the RPC Client and RPC Server will be resetting the connection attempt.
In the client side trace it will appear as if the server sent the TCP Reset while the trace from the server indicates the client is the source of the TCP Reset.
For both these scenarios, check for the presence of a Reset packet in the TCP three way handshake by using the display filter specification of “TCP.flags.reset==1”.
If the 3-way handshake is successful, continue to the RPC Discovery phase.
RPC Discovery
The RPC Discovery phase will occur one of two ways. In both methods the client will know the identifier for the RPC Server it wants to contact and will supply that to the computer hosting the RPC Server and ask for information on how to contact the RPC Server. The identifier is different depending on which method is used and the RPC client will know ahead of time which method it wishes to use.
Discovery — RPC Over TCPIP
This method is a two-step process. First the RPC client will contact the End Point Mapper (EPM) on the machine hosting the RPC Server to find out what port and IP address that Server is listening on. Upon successful completion of this the RPC client will contact the RPC Server directly on the indicated IP address and Port. Below is a sample of what this would look like and a step by step explanation below it.
This step depends on the successful TCP session establishment twice, first to the EPM and then to the RPC Server.
- The RPC Client will open a TCP session with TCP port 135 on the computer hosting RPC Server of interest. This can be picked out using the following filter syntax in Netmon or Wireshark: “tcp.port==135”.
- The RPC Client will send an RPC Bind request using the UUID of the End Point Mapper and the RPC EPM should respond with a Bind ACK packet.
- The RPC Client will make a MAP request to the EPM to locate the IP address and port of the RPC Server of interest, identifying the RPC Server based on its UUID.
- The EPM will send back a MAP Response that indicates the IP and port the RPC Server is listening on.
- The RPC Client will then open a TCP session with the IP and port it received in the EPM MAP response.
- The client will send an RPC Bind Request to the RPC Server specifying the UUID of the RPC Server application and should get back a Bind ACK from the RPC Server.
- There will be an RPC Alter Context Request/Response in which authentication will take place. If an error is noted here then see the following section for help determining why the error is occurring — Authentication
- Perform some RPC operations…(Go to RPC Communication phase)
Discovery — RPC Over SMB
The second method an RPC Client may use to contact an RPC Server is RPC over SMB. This method depends upon first establishing an SMB session with the computer hosting the RPC Server and then using the Named Pipes protocol to communicate using RPC. So in effect there are several levels of encapsulation – RPC over Named Pipes over SMB over TCP. We will not address the SMB session setup in this document and the TCP session establishment has already been discussed.
With a successfully opened TCP and SMB session, next:
- The RPC Client will issue a SMB TreeConnectAndX for the tree name “IPC$”. This is a special hidden share for inter-process communication. It should get a positive response from the computer hosting the RPC Server.
- The RPC Client will then issue an SMB NTCreateAndX for the name of the PIPE of the RPC Server Application and should get back a positive response.
Some examples are:
EVENTLOG = The Event log service winreg = Remote Registry svcctl = Service Control Manager srvsvc = Server Service
Next there is a Bind handshake. This is to “bind” the RPC client to the RPC server. There are a total of four packets involved:
- The RPC Client bind request containing the UUID of the desired RPC Server.
- A Write AndX response from the RPC Server.
- A Read AndX request from the RPC Client.
- A Bind ACK response from the RPC Server.
- At this time a RPC request to the RPC server component is expected.
RPC Communication
At this point RPC communication is occurring between the RPC Client and RPC Server.
Active Directory RPC Issues Symptoms
If you are experiencing replication problems and getting RPC server is unavailable errors as is reported in repadmin /showreps below, use Portqry or Network Monitor to determine if RPC traffic is being blocked is the first step when attempting to troubleshoot RPC Server is unavailable errors.
[Replications Check,DC2] A recent replication attempt failed: From DC1 to DC2 Naming Context: CN=Schema,CN=Configuration,DC=xl The replication generated an error (1722): The RPC server is unavailable. The failure occurred at 2003-10-30 11:59.47. The last success occurred at 2003-10-28 20:50.22. 26 failures have occurred since the last success. [DC1] DsBind() failed with error 1722, The RPC server is unavailable.. The source remains down. Please check the machine. BermudaDC1 via RPC objectGuid: 28c78c72-3c95-499a-bcda137a250f069f Last attempt @ 2003-10-30 11:58.15 failed, result 1722: The RPC server is unavailable.
If you are blocking all ICMP traffic between separate AD sites, you will receive the errors below in the output of DCDIAG when trying to replicate inter-site:
Testing server: contosoDC1 Starting test: Replications * Replications Check [Replications Check,DC1] A recent replication attempt failed: From DC2 to DC1 Naming Context: CN=Schema,CN=Configuration,DC=litware,DC=com The replication generated an error (1722): The RPC server is unavailable. The failure occurred at 2003-08-24 23:00.51. The last success occurred at (never). 553 failures have occurred since the last success. [DC2] DsBind() failed with error 1722, The RPC server is unavailable.. The source remains down. Please check the machine. REPLICATION LATENCY WARNING DC1: A full synchronization is in progress from DC2 to DC1 Replication of new changes along this path will be delayed. [DC2] LDAP connection failed with error 58, The specified server cannot perform the requested operation.
To resolve this issue, remove the ICMP traffic restriction between domain controllers. When establishing an RPC session prior to AD replication, ICMP traffic is used. If the ICMP fails, so does the RPC session establishment, and hence AD replication also fails.
ISA 2004 (and newer solutions) can prevent ICMP traffic with the exception of computers specified in the Remote Management Computers computer set which can be configured in system policy.
The following error will appear when attempting to connect to the computer:
computer < \servername.domain.local> cannot be managed. The network path was not found. RPC server is unavailable.
Or when viewing the properties of the remote computer you will receive the error:
"Win32: The RPC server is unavailable".
Computer management is one of the better tools for testing RPC connectivity. When RPC traffic is being blocked, connections to other computers using the computer management console will fail.
When attempting to promote an additional domain controller in an Active Directory domain while the RPC service is blocked or not running, the following error will appear:
The domain "domain.local" is not an Active Directory domain, or an Active Directory domain controller for the domain could not be contacted.
Check if the system is on the same network segment, if a proper DNS server has been configured to translate pre-existing domain name and to contact an existing domain controller of the domain to which we are attempting to add the new one.
Connections to computers via Remote Desktop may fail if RPC connectivity cannot be established: when attempting to logon on to the domain via Remote Desktop the following error will be produced in the form of a popup error message if RPC connectivity is the root of the problem:
"The system cannot log you on due to the following error: The RPC server is unavailable.”
You may also see the following errors on the Terminal server:
Error 1727: The remote procedure call failed and did not execute Error 1722: The RPC server is unavailable. Error 1723: The RPC server is too busy to complete this operation. Error 1721: Not enough resources are available to complete this operation.
Event ID 5719: Source: NetLogon Description: No Windows NT Domain Controller is available for domain domain_name. The following error occurred: There are currently no logon servers available to service the logon request.
Event ID: 1219: Source: Winlogon Details: Logon rejected for CONTOSO. Unable to obtain Terminal Server User Configuration. Error: The RPC server is unavailable.
These errors can be a result of the TCP/IP NetBIOS Helper service being disabled on the Terminal server or NetBIOS over TCP/IP being disabled on one of the NIC’s used to access the Terminal server.
You should also verify that the Client for Microsoft networks is bound to the adapter used to access the Terminal server. You can tell if this is happening by looking at a Netdiag /v from the box for the following output:
Testing redirector and browser... Failed NetBT transports test. . . . . . . : Failed List of NetBt transports currently configured: [FATAL] No NetBt transports are configured. Redir and Browser test . . . . . . : Failed List of transports currently bound to the Redir NetBIOSSmb [FATAL] The redir isn't bound to any NetBt transports. List of transports currently bound to the browser [FATAL] The browser isn't bound to any NetBt transports.
Using PortQry
You can use the Portqry tool to verify that the required ports are open. You should run the Portqry tool on a computer that is not receiving any RPC errors against a computer that is receiving RPC errors by using the -n switch. To this, follow these steps:
- Click «Start«, click «Run«, type «cmd» in the «Open» box, and then click OK.
- Type:
portqry -n <problem_server> -e 135
The output will appear similar to the following examples:
Querying target system called:
<problem_server>
Attempting to resolve name to IP address...
Name resolved to 169.254.1.1
querying...
<problem_server>
TCP port 135 (epmap service): LISTENING
Using ephemeral source port
Querying Endpoint Mapper Database...
Server's response:
UUID: f5cc59b4-4264-101a-8c59-08002b2f8426 NtFrs Service ncacn_ip_tcp:65.53.63.16[1094] UUID: e3514235-4b06-11d1-ab04-00c04fc2dcd2 MS NT Directory DRS Interface ncacn_ip_tcp:65.53.63.16[1025] UUID: e3514235-4b06-11d1-ab04-00c04fc2dcd2 MS NT Directory DRS Interface ncacn_http:65.53.63.16[1029] UUID: e3514235-4b06-11d1-ab04-00c04fc2dcd2 MS NT Directory DRS Interface ncacn_http:65.53.63.16[6004]
If port 135 is blocked, the following will appear:
TCP port 135 (epmap service): NOT LISTENING
However, for these RPC Endpoint Mapper errors it is likely that ports greater than 1024 are blocked, and not port 135.From the output, you know the DC is using port 1094 for FRS and 1025, 1029, and 6004 for Active Directory replication. You can use the Portqry tool again to check those ports. For example, you can test all the ports at the same time by using the Portqry tool with the -o switch. For example, type:
portqry -n <problem_server> -o 1094,1025,1029,6004
If the ports all respond as «LISTENING,» it’s likely that blocked ports are not causing this problem. If any ports respond as «NOT LISTENING,» the ports are probably blocked.
Download PortQry
The following link will let you download PortQryV2 tool.
PortQRY


hijackthis1.rar4,13К 3 Скачано раз
