Computer >> Hướng Dẫn Máy Tính >  >> Xử Lý Sự Cố >> Lỗi Windows

Khắc phục lỗi "The RPC Server is Unavailable" trên Windows 7, 8, 10

RPC (Remote Procedure Call) là công nghệ giao tiếp giữa các tiến trình, cho phép client và server trao đổi dữ liệu qua mạng, cũng dùng cho thiết bị ngoại vi (máy in, scanner...).

Khắc phục lỗi  The RPC Server is Unavailable  trên Windows 7, 8, 10

Nguyên nhân lỗi "The RPC Server is Unavailable"

  • Một hoặc nhiều dịch vụ RPC bị tắt - Thường gặp khi máy tính liên quan có dịch vụ bắt buộc bị disable. Khắc phục: dùng Services để bật lại.
  • Remote Assistance bị chặn bởi Firewall - Windows Firewall và tường lửa thứ 3 chặn mặc định. Tạo ngoại lệ cho kết nối này.
  • IPV6 hoặc File/Printer Sharing bị tắt - Một số RPC server yêu cầu cả hai bật trên kết nối mạng. Bật lại từ Network Properties.
  • Địa chỉ IP gây crash RPC server - IP mơ hồ có thể gây lỗi. Khắc phục: flush và renew IP.
  • Dịch vụ RPC bị tắt qua Registry - Tiện ích hoặc can thiệp thủ công khiến dịch vụ RPC bị disable. Dùng Registry Editor để bật buộc.

Trước khi bắt đầu: Có internet, đăng nhập admin. Nếu môi trường doanh nghiệp, hỏi admin mạng.

Giải pháp 1: Kiểm tra dịch vụ RPC

Dịch vụ RPC có thể bị chuyển từ Automatic sang Manual do xung đột phần mềm thứ 3 hoặc thay đổi cài đặt.

  1. Windows + R > services.msc > Enter.
  2. Tìm các dịch vụ:
    Remote Procedure Call (RPC)
    RPC Endpoint Mapper hoặc Remote Procedure Call (RPC) Locator
    DCOM Service Process Launcher
  3. Chuột phải từng dịch vụ > Properties.
    Khắc phục lỗi  The RPC Server is Unavailable  trên Windows 7, 8, 10
  4. Đảm bảo Started và Startup type = Automatic.
    Khắc phục lỗi  The RPC Server is Unavailable  trên Windows 7, 8, 10
  5. Lưu, thoát, khởi động lại máy, kiểm tra lỗi.

Giải pháp 2: Bật Remote Assistance trong Firewall

Remote Assistance cho phép người khác xem/kiểm soát màn hình. Nếu firewall chặn, sẽ báo lỗi RPC.

  1. Windows + R > control > Enter.
  2. Control Panel > tìm "Firewall" > Allow an app through Windows Firewall (dưới Windows Firewall).
    Khắc phục lỗi  The RPC Server is Unavailable  trên Windows 7, 8, 10
  3. Nhấn Change settings, bật các mục liên quan RPC như Remote Assistance.
    Khắc phục lỗi  The RPC Server is Unavailable  trên Windows 7, 8, 10
  4. Khởi động lại máy, kiểm tra.

Giải pháp 3: Tắt Selective Startup

Selective Startup boot với tối thiểu item, không nạp đủ thành phần RPC. Chuyển về Normal startup:

  1. Windows + R > msconfig > Enter.
  2. Tab General > chọn Normal startup.
    Khắc phục lỗi  The RPC Server is Unavailable  trên Windows 7, 8, 10
  3. Apply > OK > khởi động lại máy, kiểm tra.

Giải pháp 4: Bật IPv6 và File & Printer Sharing

Một số trường hợp lỗi do File and Printer Sharing for Microsoft Networks và Internet Protocol Version 6 (TCP/IPv6) bị tắt trong Properties card mạng.

  1. Windows + R > ncpa.cpl > Enter (mở Network Connections).
  2. Chuột phải kết nối đang dùng > Properties.
  3. Tab Networking > tick cả File and Printer Sharing for Microsoft Networks và Internet Protocol Version 6 (TCP/IPv6) > OK.
  4. Khởi động lại, kiểm tra.

Nếu vẫn lỗi, thử giải pháp tiếp.

Giải pháp 5: Flush DNS & Renew IP

Một số người khắc phục bằng flush DNS và renew IP (điều kiện: dịch vụ RPC đã chạy - xem giải pháp 1).

  1. Windows + R > cmd > Ctrl+Shift+Enter (CMD admin). Cho phép UAC.
    Khắc phục lỗi  The RPC Server is Unavailable  trên Windows 7, 8, 10
  2. Chạy:
    ipconfig /flushdns
  3. Chạy:
    ipconfig /renew
  4. Đóng CMD, thử lại thao tác gây lỗi trước.

Giải pháp 6: Dùng Registry Editor buộc chạy dịch vụ RPC

  1. Windows + R > regedit > Enter. Cho phép UAC.
  2. Điều hướng:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RpcSs
    Double-click Start bên phải, Base=Hexadecimal, Value data=2.
  3. Điều hướng:
    Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DcomLaunch
    Double-click Start, Base=Hex, Value data=2.
  4. Điều hướng:
    Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RpcEptMapper
    Double-click Start, Base=Hex, Value data=2.
  5. Đóng Registry, khởi động lại, kiểm tra.

Tham khảo thêm bài "Fix: The remote procedure call failed" - cùng lỗi và cách khắc phục tương tự.