"The RPC Server is unavailable" (2518 Views)
Reply
Valued Contributor
CPTLaura
Posts: 274
Registered: ‎12-13-2012
Message 1 of 2 (2,518 Views)

"The RPC Server is unavailable"

Hello!

 

I am using UFT 11.52 to invoke QC scripts (QC 11, Starter).

 

On the run window, I enter the host name and click run.

 

The error message is, "the RPC Server is unavailable"

 

I have tried with the machine name, the URL, and the IP address...

HP Expert
vzamoraz
Posts: 502
Registered: ‎04-12-2012
Message 2 of 2 (2,504 Views)

Re: "The RPC Server is unavailable"

Quality Center (QC) and ALM use DCOM, a Microsoft technology, for remote execution between the QC client and the remote testing machine.

  • Error: "Access is denied" - This generally indicates a DCOM permission problem
  • Error: "RPC Server is unavailable" - This generally indicates a connectivity issue (e.g. Unable to communicate on port 135)

       The steps below provide details on how to make sure the Windows Firewall is not blocking port 135 and on how to configure DCOM permissions.


     The following is the manual process for opening the firewall ports and modifying the DCOM properties for QTP / UFT, BPT, System Test, LoadRunner, and VAPI-XP.

  • Part I: Add the Windows user that is running the QC client to the Local Administrators group on the remote testing machine. This is required for Windows to authenticate the remote user executing the tests against the DCOM objects.

    IMPORTANT: The windows user must have the exact same user name and password (ideally the same domain user here )

  • Part II: On the Testing Tool client machine configure Windows Firewall to allow Port 135 for DCOM:

    1. Select Start -> Control Panel -> Windows Firewall.
    2. Navigate to the Exceptions tab.
    3. Configure the Remote Agent to be allowed under "Programs and Services." Configuration should be done for each testing tools as given below:
      • QuickTest Professional Remote Agent (path: <System Drive>:\Program Files\HP\QuickTest Professional\bin\AQTRmtAgent.exe)
      • Execution Agent for Business Process Testing (QC path: <System Drive>:\Program Files\Common Files\Mercury Interactive\Quality Center\bp_exec_agent.exe or ALM path: <System Drive>:\Users\<WindowsUser>\AppData\Local\HP\ALM-Client\<ServerFolder>\be)
    4. Click on <Add Port> and add the DCOM TCP port 135 to the Exceptions list.


      Note: The remote agent is a DCOM object and requires port 135 to work. The list of "Port Assignments for Commonly-Used Services" is provided in the URL below:

      http://technet.microsoft.com/en-us/library/cc959833.aspx
  • Part III: Modify DCOM Security Properties:

    1. Select Start > Run > type "dcomcnfg".
    2. Navigate to Console Root -> Component Services -> Computers -> My Computer.

      Note:
      If Windows Security Alert dialog window appears, click on <Ask me later> or <Unblock>

    3. Right-click on "My Computers" and select "Properties."
    4. Navigate to the "Default Properties" tab.
    5. Make sure the "Default Impersonation Level" is "Identify."
    6. Click <Apply>.
    7. Navigate to the "Default COM Security" tab.
    8. Under "Access Permissions", click on <Edit Limits>. The "Access Permission" dialog window appears.
    9. Click on <Add>. The "Select Users or Groups" dialog windows appear.
    10. Click on <Advanced>.
    11. Click on <Find Now>.
    12. Add the following groups and users from the local machine:

      • Administrator
      • Administrators
      • Authenticated User
      • Anonymous Logon
      • Everyone
      • Interactive
      • Network
      • System

    13. Click <OK>.
    14. Add the following groups and users from the domain:
      • <tdomain user logged into the QTP/UFTbox>
      • <domain user logged into the TD client box executing the remote execution>

    15. Click <OK>.
    16. Give "Local Access" and "Remote Access" permissions to the groups and users.
    17. Click <OK>.
    18. Under Access Permissions, repeat steps 9-17 for <Edit Default>.
    19. Under Launch and Activation Permissions, click on <Edit Limits>. The Launch Permission dialog window appears.
    20. Repeat steps 9-15.
    21. Enable "Local Launch," "Remote Launch," "Local Activation," and "Remote Activation" permissions to the groups and users.
    22. Click <OK>.
    23. Repeat steps 20-22 for <Edit Default>.

  • Part IV: (for QTP / UFT only)
    1. While still in the Component Services window, navigate to Console Root -> Component Services -> Computers -> My Computer -> DCOM Config.
    2. Look for the following:
      • AQTRmtAgent
      • QuickTest Professional / Unified Functional Testing Automation
      • TlpRmtServer

    3. For each of these DCOM applications, right click and select <Properties>.
    4. Under the Identity tab, select <The Interactive User>. This will allow the DCOM application to authenticate the process against the logged in Windows user and run the process in that security context.
    5. Next, go to the Security tab.
    6. For both the <Launch and Activation Permissions> and <Access Permissions>, select <Use Default>. This will use the Default security settings as we did in Part III.
    7. Click Apply, then OK to commit the changes.
    8. Now, you are ready to run a remote execution test with QTP.


  • Part V:

    1. While still in the Component Services window, navigate to Console Root -> Component Services -> Computers -> My Computer -> DCOM Config.
    2. Look for the following (and repeat steps for each in found)
      • Vapi-XP object
        {6A03829E-EC39-4802-A631-3841484EFBE3}

      • Business Process Testing object
        {6108A56C-6239-41F6-8C0F-94D9CE0D4B61}

      • LoadRunner Testing object
        {E933439A-81A1-11D4-8EEE-0050DA6171E8}

      • System Test Remote Agent
        {1B78CAE4-A6A8-11D5-9D7A-000102E1A2A2}

    3. For each of these DCOM applications, right click and select <Properties>.
    4. Under the Identity tab, select <The Interactive User>. This will allow the DCOM application to authenticate the process against the logged in Windows user and run the process in that security context.
    5. Next, go to the Security tab.
    6. For both the <Launch and Activation Permissions> and <Access Permissions>, select <Use Default>. This will use the Default security settings as we did in Part III.
    7. Click Apply, then OK to commit the changes.

Notes:

  1. If you have not configured the Remote Agent to be allowed under "Programs and Services," a Windows Security Alert message will appear while running a test remotely. Click <Unblock> to resolve this problem. The next time you execute an automated script, the warning will not appear.

  2. If after performing all the described steps and you still receive "The RPC server is unavailable" message, create some shared folder anywhere on the Testing Tool machine.

  3. If still an issue, disable any anti-virus running on remote machine to make sure no ports are being blocked.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.