“RPC server is unavailable” - causes and solutions to the error. "RPC server unavailable" error: Key solutions to the problem When the RPC error appears

“RPC server is unavailable” - causes and solutions to the error.
“RPC server is unavailable” - causes and solutions to the error. "RPC server unavailable" error: Key solutions to the problem When the RPC error appears

Dieser Artikel enthält Informationen zur Behebung des Fehlers "RPC-Server ist nicht verfügbar" unter Microsoft Windows Server.

Inhaltsverzeichnis

1. Einführung

"RPC-Server is not verfügbar" ist ein relativ häufiger Fehler in Windows, der in einer Vielzahl von Situationen auftreten kann, wobei die meisten mit der Kommunikation zwischen zwei Computern in einem Netzwerk zusammenhängen. Er kann jedoch auch bei lokalen Vorgängen auf einem Computer auftreten. Der Übersichtlichkeit halber wird in diesem Artikel der Computer, auf dem die RPC-Kommunikation gestartet wird, als der Client und der Computer, mit dem kommuniziert wird, als der Server bezeichnet.

Remote Procedure Call (RPC) ist ein Mechanismus, der es Windows-Prozessen ermöglicht, miteinander zu kommunizieren, entweder zwischen einem Client und Server über ein Netzwerk oder innerhalb eines einzigen Systems. Zahlreiche integrierte Windows-Komponenten verwenden RPC. Bei RPC kommen dynamische Ports für die Kommunikation zwischen verschiedenen Systemen zum Einsatz, doch darüber hinaus muss ein statischer Port (TCP-Port 135) als Ausgangspunkt für die Kommunikation verwendet werden. Die RPC-Endpunktzuordnung hört diesen statischen Port ab.

In einer typischen RPC-Sitzung kontaktiert ein Client die Endpunktzuordnung eines Servers auf TCP-Port 135 und fordert die einem bestimmten Dienst zugewiesene dynamische Portnummer an. Der Server antwortet mit der IP-Adresse und Portnummer, mit der der Dienst beim Starten bei RPC registriert wird, und der Client kontaktiert dann den Dienst unter dieser IP-Adresse und auf diesem Port.

Mögliche Gründe für den "RPC-Server nicht verfügbar"-Fehler sind u. a.:

  • RPC-Dienst gestopt: Wenn der RPC-Dienst auf dem Server nicht ausgeführt wird, ist die Clientsoftware offensichtlich nicht in der Lage, ihn zu erreichen.
  • Namensauflösungsprobleme: Der Name des RPC-Servers wird möglicherweise auf die falsche IP-Adresse aufgelöst, sodass der Client den falschen Server kontaktiert oder versucht, eine IP-Adresse zu kontaktieren, die derzeit nicht verwendet wird. Alternativ dazu wird der Name des Servers eventuell überhaupt nicht aufgelöst.
  • Datenverkehr durch Firewall blockiert: Eine Firewall oder andere Sicherheitsanwendung auf dem Server oder eine Netzwerk-Firewall-Appliance zwischen dem Client und dem Server verhindert unter Umständen, dass der Datenverkehr den Server auf TCP-Port 135 erreicht.
  • Netzwerkverbindungsprobleme: Der Client kann den Server u. U. aufgrund eines allgemeinen Problems mit dem Netzwerk nicht erreichen.

Die folgenden, nach Ursache kategorisierten Schritte können bei der Fehlerbehebung des Problems nützlich sein.

2. RPC-Dienst gestopt

  1. Öffnen Sie die Dienste-Konsole auf dem Server.
  2. Ermitteln Sie den Remote Procedure Call (RPC)-Dienst und stellen Sie sicher, dass er ausgeführt wird.

    Hinweis: Die Remote Procedure Call (RPC) Locator-Dienst muss in der Regel nicht ausgeführt werden.

  3. Wenn der Dienst angehalten ist, ver Suchen Sie, ihn manuell zu starten.

3. Namensauflösungsprobleme

  1. Wenden Sie den Ping-Befehl vom Client aus auf den Server an. Verwenden Sie dabei den Servernamen, um zu überprüfen, ob der Name auf die korrekte IP-Adresse aufgelöst wird. Wenn dies der Fall ist, ist Namensauflösung wahrscheinlich nicht die Ursache des Problems, und die verbleibenden Schritte in diesem Abschnitt können übersprungen werden.
  2. Wenn Client und Server Mitglieder einer Active Directory (AD)-Domäne sind, wird DNS für die Namensauflösung verwendet. Stellen Sie sicher, dass der Client und der Server beide die richtigen DNS-Server verwenden, die sich innerhalb der Domäne befinden müssen und in der Regel Domänen-Controller sind.
  3. Wenn die richtigen DNS-Server verwendet werden, überprüfen Sie anhand der DNS-Verwaltungskonsole (IIS-Verwaltungskonsole) auf diesen Servern, ob der RPC-Server den richtigen Datensatz bzw. die richtigen Datensätze im DNS registriert hat. Falls Erforderlich, Kann der Befehl ipconfig /registerdns auf dem RPC-Server verwendet werden, um die DNS-Datensätze erneut zu registrieren.
  4. Wenn keine AD-Domäne vorhanden ist, kann WINS für die Namensauflösung verwendet werden. Mit dem Befehl ipconfig /all werden unter anderem auch die WINS-Server aufgelistet, die vom RPC-Server verwendet werden. Überprüfen Sie die WINS-Datenbank auf diesen Servern, um sicherzustellen, dass die für den RPC-Server registrierten Datensätze korrekt sind. Falls Erforderlich, Kann der Befehl nbtstat -RR auf dem RPC-Server ausgeführt werden, um die WINS-Datensätze erneut zu registrieren.

4. Datenverkehr durch die Firewall blockiert

  1. Überprüfen Sie die Einstellungen der Windows-Firewall auf dem RPC-Server.
  2. Wenn die Firewall aktiviert ist, stellen Sie sicher, dass der Datenverkehr auf TCP-Port 135 durchgelassen wird.
    1. Wenn auf dem Server Windows Server 2003 ausgeführt wird, kann die Windows-Firewall die dynamische RPC-Portzuweisung eventuell nicht richtig handhaben. In diesem Fall kann es erforderlich sein, die Windows-Firewall zu deaktivieren oder die von RPC verwendeten Ports einzuschränken (siehe Schritt 4).
    2. Wenn auf dem Server Windows Server 2008 oder höher ausgeführt wird, stellen Sie sicher, dass der Windows-Firewall-Dienst ausgeführt wird. Die Windows-Firewall in Windows Server 2008 und höher sollte RPC-Verkehr standardmäßig fehlerfrei handhaben; wenn dies jedoch manuell konfiguriert werden muss, finden Sie entsprechende Anweisungen in diesem TechNet-Artikel: Allowing Inbound Network Traffic that Uses Dynamic RPC (Eingehenden Netzwerkverkehr, bei dem dynamische RPC verwendet werden, zulassen).
      Wenn die Windows-Firewall in Windows Server 2008 oder höher vollständig deaktiviert werden muss, halten Sie nicht den Windows-Firewall-Dienst an. Befolgen Sie stattdessen die Schritte unter in .
  3. Wenn die Firewall-Software eines Drittanbieters, eine andere Sicherheitsanwendung oder eine Netzwerk-Firewall-Appliance verwendet wird, schauen Sie in der Documentation der Anwendung oder der Appliance nach, ob sie ordnungsgemäß für RPC-Verkehr konfiguriert werden kann.
  4. Wenn die Firewall-Software, eine andere Sicherheitsanwendung oder eine Netzwerk-Firewall-Appliance nicht für die korrekte Handhabung von dynamischem RPC-Verkehr konfiguriert werden kann, kann der von RPC verwendete Port-Bereich eingeschränkt werden, und dieser Bereich kan n dann auf der Firewall oder der Sicherheitsanwendung geöffnet werden. Informationen zum Beschränken des von RPC verwendeten Port-Bereichs finden Sie unter How to Configure RPC Dynamic Port Allocation to Work with Firewalls (Anleitung zum Konfigurieren der dynamischen RPC-Portzuweisung zur Verwendung mit Firewalls).

5. Netzwerkverbindungsprobleme

  1. Verwenden Sie den Befehl ping, um die grundlegende Konnektivität zwischen dem RPC-Client und Server zu testen. Beachten Sie, dass dieser Test möglicherweise nicht schlüssig ist, da es für eine Firewall möglich ist, den ICMP-Datenverkehr zu blockieren und anderen Datenverkehr durchzulassen. (ICMP, oder Internet Control Message Protocol, ist das Protokoll, das bei ping-und tracert-Befehlen verwendet wird.)
  2. Mit dem Befehlszeilendienstprogramm PortQry können Sie die Konnektivität vom Client zum Server testen und feststellen, welche Ports auf dem Server geöffnet sind. Es bietet Unterstützung für RPC und kann verwendet werden, um festzustellen, für welche Dienste dynamische Ports bei RPC registriert sind und welche spezifischen Schnittstellen sie verwenden. Ausführliche Informationen zu PortQry Version 2.0 finden Sie hier:

Hello.

the problem is this
I have a server running Windows Server 2008 Std
The server performs the role of AD and DNS

There are errors in the logs

" Error processing Group Policy. The computer name could not be resolved. Possible reasons:

a) Name resolution error on the current domain controller.
b) Active Directory replication lag (an account created on another domain controller has not yet been replicated to the current domain controller)."

"The DNS server is unable to listen on the TCP socket at 192.168.1.75. The event data contains an error code. IP address 0.0.0.0 may indicate a valid "any address" in which all configured IP addresses for the computer are available for use.
Restart your DNS server or restart your computer."

What to look for? Thank you

c:\>dcdiag

Directory Server Diagnostics

Performing initial setup:
Trying to find the main server...
Primary server = MATRIX1
Directory binding error 1722:
The RPC server is unavailable.
This may limit some of the checks that can be performed.
* AD forest identified.
Initial data collection is complete.

Perform mandatory initial checks


Run test: Connectivity
DsBindWithSpnEx() function failed with error 1722,
The RPC server is unavailable.
........................ MATRIX1 - Connectivity check failed

Performing Basic Checks

Verification Server: Default-First-Site-Name\MATRIX1
Skipping all checks because MATRIX1 server is not responding
directory services.

Performing partition checks on: ForestDnsZones


CheckSDRefDom

........................ ForestDnsZones - verified
CrossRefValidation

Perform partition checks on: DomainDnsZones
Run the check: CheckSDRefDom

CheckSDRefDom
Running the validation: CrossRefValidation
........................ DomainDnsZones - verified
CrossRefValidation

Performing partition checks on: Schema
Run the check: CheckSDRefDom
........................ Schema - CheckSDRefDom check passed
Running the validation: CrossRefValidation
........................ Schema - check passed
CrossRefValidation

Performing partition checks on: Configuration
Run the check: CheckSDRefDom

CheckSDRefDom
Running the validation: CrossRefValidation
........................ Configuration - verification passed
CrossRefValidation

Perform partition checks on: EGAIS
Run the check: CheckSDRefDom
........................ EGAIS - CheckSDRefDom check passed
Running the validation: CrossRefValidation
........................ EGAIS - verified by CrossRefValidation

Performing enterprise checks on: EGAIS.local
Running a check: LocatorCheck
........................ EGAIS.local - LocatorCheck passed
Running a scan: Intersite
........................ EGAIS.local - Intersite check passed

C:\Users\Administrator>ipconfig /all


Setting up the IP protocol for Windows

Computer name. . . . . . . . . : MATRIX1
Primary DNS suffix. . . . . . : EGAIS.local
Node type. . . . . . . . . . . . . : Hybrid
IP routing is enabled. . . . : No
WINS proxy is enabled. . . . . . . : No
Order in which DNS suffixes are viewed. : EGAIS.local

Ethernet adapter LAN connection 2:




n#2
Physical adress. . . . . . . . . : 00-1E-67-22-91-D1
DHCP is enabled. . . . . . . . . . . : Yes

Ethernet adapter Connection via local network:

DNS suffix of the connection. . . . . :
Description. . . . . . . . . . . . . : Intel(R) 82574L Gigabit Network Connectio
n
Physical adress. . . . . . . . . : 00-1E-67-22-91-D0

Auto-tuning is enabled. . . . . . : Yes
IPv4 address. . . . . . . . . . . . : 192.168.1.75(Main)
Subnet mask. . . . . . . . . . : 255.255.255.0
Main gate. . . . . . . . . : 192.168.1.1
DNS servers. . . . . . . . . . . : 192.168.1.75
NetBios over TCP/IP. . . . . . . . : Included

Tunnel adapter LAN connection* 8:

Media condition. . . . . . . . : Media disabled
DNS suffix of the connection. . . . . :
Description. . . . . . . . . . . . . : isatap.(746B47FD-7AB0-4B0D-98FE-4DB2E19EC
1DB)

DHCP is enabled. . . . . . . . . . . : No
Auto-tuning is enabled. . . . . . : Yes

Tunnel adapter LAN connection* 9:

Media condition. . . . . . . . : Media disabled
DNS suffix of the connection. . . . . :
Description. . . . . . . . . . . . . : isatap.(D3F5E70A-76D0-4007-B912-38442938A
700}
Physical adress. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP is enabled. . . . . . . . . . . : No
Auto-tuning is enabled. . . . . . : Yes

One of the unexpected and unpleasant Windows crashes is the unexpected and causeless loss of sound. . Here we will consider the case when standard troubleshooting methods and even system recovery do not give positive results and, Instead of restoring the sound, a message appears that the audio device is missing or that the child service could not start ( error 1068). And now about that: how to restore sound in this case. We enable the Windows Audio service with a set of sequential actions

Opening: Control Panel-Administration-Services.In the easiest case, you need to sequentially find and run (startup type is automatic, to enable it you need to right-click on

desired service, open Properties and select startup type) services:

Media Class Scheduler
Windows Audio Endpoint Builder
Windows Audio
Now if there are no more errors, The sound on the computer should turn on and you can stop further movements.
But, if the Windows Audio Endpoint Builder fails to start (RPC server is unavailable,

Nutrition
Server
Remote procedure call
Remote registry We also turn on those that do not work one by one. Has there been any sound? We restart the computer and watch a movie in good quality, or listen to music. In addition, you can check whether the firewall is blocking the ports you are using, and check whether the computer name or IP address is correct.

Undoubtedly, many users of the seventh version of Windows have seen the error message “RPC Server is unavailable” on their monitor or laptop screen. What kind of failure this is and how to fix it will now be discussed.

The most common RPC server failure situation

When a message appears that the RPC server is unavailable, in general, it does not mean the server itself. This is actually a remote procedure call service.

And, as a rule, most often this error appears when manipulating printers, for example, when trying to print a document or simply install (add) a new printer. And the point here is not even in the device itself, but in the service, which for some reason has stopped working or is simply in a disabled state.

"RPC Server Unavailable" Error: Problems with Dynamic Libraries

So, let's see what can be done to correct the situation. First, you need to make sure that the system has the dynamic library file Spoolss.dll and the executable component Spoolss.exe. They should be located in the System32 directory of the main directory in which the system is installed.

If such files are present, there can be at least two failure options: either they are damaged, or the service simply does not start.

Crash with "RPC Server Unavailable" message Windows 7: Starting a service from the command line

To begin with, the easiest method to correct the situation is to start the service from the command line. At this stage, we believe that everything is fine with the files themselves.

Call the command line (cmd) from the “Run” menu (Win + R) and then enter the command net start rpcss there. If everything is fine with the service itself, after rebooting the computer terminal (which, by the way, is mandatory), the problem will disappear, and the message that the RPC server is unavailable will no longer bother the user (to stop the service, select a similar command, only with the word stop) . If the above method for some reason did not activate the service, you will have to take, so to speak, a roundabout route.

Fixing the error using original libraries

Now let's look at a situation where the above files are damaged or missing. In principle, you can do it in the simplest way: copy them from a similar system (from another computer), and then paste them into the System32 system folder.

However, after this, so that the message that the RPC server is unavailable does not appear again, you will need to take a few more important steps and first go to the services section. This can be done from the Control Panel, but it is much easier to use the special command services.msc, which is written in the same “Run” menu.

In the editor itself, you should find the remote procedure call (RPC) service and click on startup, then select “Automatic” in the startup type. After saving the changed parameters, as in the first case, you will need to completely reboot the system for them to take effect.

Note: after rebooting, it is advisable to run the system update manually and install the latest update packages. This can play a key role in the correct activation of the service. Along the way, pay special attention to the system in which the original files will be copied, at least take into account its capacity.

Comprehensive solution using special utilities

In principle, if there is no way to copy or download original files, you can do it in a simpler way.

Utilities like DLL Suite will help correct the situation, which automatically scans the system for damaged or missing components, and then independently integrates the missing objects into it. However, we cannot limit ourselves to this alone. At the end of the process, you will still need to make sure that the service is in an active state (enabled) and running smoothly. This is done as was shown just above.

Conclusion

That's all there is to it regarding the problem with the RPC service. As you can see, there is nothing wrong with such a failure, and the solution to the problem looks quite simple. The only other thing worth noting is installing new or updating existing printer drivers. Of course, this is not a prerequisite, however, it would be very desirable to carry out such a procedure. This can be done either from the Device Manager, or using specially developed utilities like the Driver Booster program or something else.

As for correcting the situation with the service itself, issues related to scanning computer systems for viruses were not considered here. Also, methods for enabling (activating) the service were not provided, for example, in group policy settings or by changing the corresponding parameters of system registry keys, since such a technique is much more complicated than what was described above. And not every user will want to delve into them, otherwise, what the hell, the entire system can be imprisoned.

Otherwise, no user should have any problems. Everyone decides for themselves exactly what to do and which method to use, but, as practice shows, the easiest way is to activate the service from the command line (provided that the necessary files are in order). The method of restoring files and activating this system component from the services section can be used if the simplest method does not have any effect on the system. And, of course, if you discover that files are damaged or simply missing from the system, it is better not to copy them from another device, but if you have an active Internet connection, use automatic utilities that will download the missing files and integrate them into the system without user participation. In fact, this is exactly what they were developed for.

Hello.

the problem is this
I have a server running Windows Server 2008 Std
The server performs the role of AD and DNS

There are errors in the logs

" Error processing Group Policy. The computer name could not be resolved. Possible reasons:

a) Name resolution error on the current domain controller.
b) Active Directory replication lag (an account created on another domain controller has not yet been replicated to the current domain controller)."

"The DNS server is unable to listen on the TCP socket at 192.168.1.75. The event data contains an error code. IP address 0.0.0.0 may indicate a valid "any address" in which all configured IP addresses for the computer are available for use.
Restart your DNS server or restart your computer."

What to look for? Thank you

c:\>dcdiag

Directory Server Diagnostics

Performing initial setup:
Trying to find the main server...
Primary server = MATRIX1
Directory binding error 1722:
The RPC server is unavailable.
This may limit some of the checks that can be performed.
* AD forest identified.
Initial data collection is complete.

Perform mandatory initial checks


Run test: Connectivity
DsBindWithSpnEx() function failed with error 1722,
The RPC server is unavailable.
........................ MATRIX1 - Connectivity check failed

Performing Basic Checks

Verification Server: Default-First-Site-Name\MATRIX1
Skipping all checks because MATRIX1 server is not responding
directory services.

Performing partition checks on: ForestDnsZones


CheckSDRefDom

........................ ForestDnsZones - verified
CrossRefValidation

Perform partition checks on: DomainDnsZones
Run the check: CheckSDRefDom

CheckSDRefDom
Running the validation: CrossRefValidation
........................ DomainDnsZones - verified
CrossRefValidation

Performing partition checks on: Schema
Run the check: CheckSDRefDom
........................ Schema - CheckSDRefDom check passed
Running the validation: CrossRefValidation
........................ Schema - check passed
CrossRefValidation

Performing partition checks on: Configuration
Run the check: CheckSDRefDom

CheckSDRefDom
Running the validation: CrossRefValidation
........................ Configuration - verification passed
CrossRefValidation

Perform partition checks on: EGAIS
Run the check: CheckSDRefDom
........................ EGAIS - CheckSDRefDom check passed
Running the validation: CrossRefValidation
........................ EGAIS - verified by CrossRefValidation

Performing enterprise checks on: EGAIS.local
Running a check: LocatorCheck
........................ EGAIS.local - LocatorCheck passed
Running a scan: Intersite
........................ EGAIS.local - Intersite check passed

C:\Users\Administrator>ipconfig /all


Setting up the IP protocol for Windows

Computer name. . . . . . . . . : MATRIX1
Primary DNS suffix. . . . . . : EGAIS.local
Node type. . . . . . . . . . . . . : Hybrid
IP routing is enabled. . . . : No
WINS proxy is enabled. . . . . . . : No
Order in which DNS suffixes are viewed. : EGAIS.local

Ethernet adapter LAN connection 2:




n#2
Physical adress. . . . . . . . . : 00-1E-67-22-91-D1
DHCP is enabled. . . . . . . . . . . : Yes

Ethernet adapter Connection via local network:

DNS suffix of the connection. . . . . :
Description. . . . . . . . . . . . . : Intel(R) 82574L Gigabit Network Connectio
n
Physical adress. . . . . . . . . : 00-1E-67-22-91-D0

Auto-tuning is enabled. . . . . . : Yes
IPv4 address. . . . . . . . . . . . : 192.168.1.75(Main)
Subnet mask. . . . . . . . . . : 255.255.255.0
Main gate. . . . . . . . . : 192.168.1.1
DNS servers. . . . . . . . . . . : 192.168.1.75
NetBios over TCP/IP. . . . . . . . : Included

Tunnel adapter LAN connection* 8:

Media condition. . . . . . . . : Media disabled
DNS suffix of the connection. . . . . :
Description. . . . . . . . . . . . . : isatap.(746B47FD-7AB0-4B0D-98FE-4DB2E19EC
1DB)

DHCP is enabled. . . . . . . . . . . : No
Auto-tuning is enabled. . . . . . : Yes

Tunnel adapter LAN connection* 9:

Media condition. . . . . . . . : Media disabled
DNS suffix of the connection. . . . . :
Description. . . . . . . . . . . . . : isatap.(D3F5E70A-76D0-4007-B912-38442938A
700}
Physical adress. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP is enabled. . . . . . . . . . . : No
Auto-tuning is enabled. . . . . . : Yes