Microsoft MVP성태의 닷넷 이야기
오류 유형: 105. WMI - The RPC server is unavailable [링크 복사], [링크+제목 복사],
조회: 28327
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 
(연관된 글이 1개 있습니다.)
WMI - The RPC server is unavailable

WMI를 이용해서 같은 AD 도메인으로 묶인 여러 대의 컴퓨터를 제어하고 있는데, 유독 Windows Server 2008이 설치된 하나의 서버에만 RPC 오류가 발생합니다.

Unhandled Exception: System.Runtime.InteropServices.COMException (0x800706BA): 
The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at System.Management.ManagementScope.InitializeGuts(Object o)
   at System.Management.ManagementScope.Initialize()
   at TestProgram.Test(String machineName, String userID, String userPassword, String serviceName, Int32 waitSecond) in d:\...\WmiTest.cs:line 88
   at TestProgram.Program.Main(String[] args) in d:\...\TestProgram\Program.cs:line 73

같은 AD 도메인에서는 방화벽을 풀어놓은 것이기 때문에 위와 같은 오류가 발생할 이유가 없습니다. 그러고 보니, 안 그래도 그 컴퓨터가 좀 이상하긴 했습니다.

로그인 시에 보면... 아래와 같은 그룹 정책을 설정하는 메시지 화면 있죠?

wmi_rpc_server_error_1.png

그 화면에서 유독 오래 머뭅니다. "Applying user settings..." 메시지 단계에서도 오래 멈춰있고. 나열하려니, 생각나는 증상이 한 두개가 아니군요. ^^;

Component Services MMC 관리자에서도 이상합니다. "Computers" 폴더를 펼치려고 하면 1분 정도 기다려야 합니다. 그 하위의 "My Computer" 속성창을 열려고 해도 1분, 그 하위의 "COM+ Applications" 노드를 펼치려고 해도 다시 1분 정도를 기다려야 합니다.

그동안 좀 불편하긴 해도 결국 동작은 해서 참아왔는데... 오늘은 ^^; 도저히 안 되겠다는 생각이 듭니다.




어디... 문제 해결을 위한 단서를 찾기 위해 이벤트 로그를 뒤져 볼까요?

부팅 시에, 이벤트 로그의 "System" 범주를 살펴보면, 다음과 같은 경고 및 에러가 보입니다.

Log Name:      System
Source:        NETLOGON
Date:          2010-08-26 오후 10:44:44
Event ID:      5719
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      Win2008Test.testad.com
Description:
This computer was not able to set up a secure session with a domain controller in domain TESTAD due to the following: 
There are currently no logon servers available to service the logon request. 
This may lead to authentication problems. Make sure that this computer is connected to the network. If the problem persists, please contact your domain administrator.  

ADDITIONAL INFO 
If this computer is a domain controller for the specified domain, it sets up the secure session to the primary domain controller emulator in the specified domain. Otherwise, this computer sets up the secure session to any domain controller in the specified domain.

Log Name:      System
Source:        Microsoft-Windows-GroupPolicy
Date:          2010-08-26 오후 10:47:07
Event ID:      1129
Task Category: None
Level:         Error
Keywords:      
User:          SYSTEM
Computer:      Win2008Test.testad.com
Description:
The processing of Group Policy failed because of lack of network connectivity to a domain controller. This may be a transient condition. A success message would be generated once the machine gets connected to the domain controller and Group Policy has succesfully processed. If you do not see a success message for several hours, then contact your administrator.

Log Name:      System
Source:        Microsoft-Windows-TerminalServices-RemoteConnectionManager
Date:          2010-08-26 오후 10:51:10
Event ID:      1067
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      Win2008Test.testad.com
Description:
The terminal server cannot register 'TERMSRV' Service Principal Name to be used for server authentication. 
The following error occured: The specified domain either does not exist or could not be contacted.

Log Name:      System
Source:        DnsApi
Date:          2010-08-26 오후 10:44:30
Event ID:      11165
Task Category: None
Level:         Warning
Keywords:      Classic
User:          N/A
Computer:      Win2008Test.testad.com
Description:
The system failed to register host (A or AAAA) resource records (RRs) for network adapter
with settings:

   Adapter Name : {23FD1A6D-01EA-4786-9059-D9B13CBB5C8F}
   Host Name : Win2008Test
   Primary Domain Suffix : testad.com
   DNS server list :
        164.124.101.2
   Sent update to server : <?>
   IP Address(es) :
     192.168.50.15

 The reason the system could not register these RRs was because the DNS server contacted refused the update request. The reasons for this might be (a) you are not allowed to update the specified DNS domain name, or (b) because the DNS server authoritative for this name does not support the DNS dynamic update protocol.

 To register the DNS host (A or AAAA) resource records using the specific DNS domain name and IP addresses for this adapter, contact your DNS server or network systems administrator.

재미있게도... 하나같이 AD 서버를 찾을 수 없다는 메시지를 포함하고 있습니다. 그리고, 마지막의 DnsApi에서 보여주는 경고에서 문제 해결을 위한 실마리를 찾을 수가 있습니다. DNS 레코드를 업데이트할 수 없다고 하는데, 그 DNS 서버의 IP가 164.124.101.2라고 되어 있습니다. AD 서버에 DNS가 설치되어 있으니 내부망을 가리켜야 하는데 제가 즐겨 사용하는 데이콤 DNS 서버를 가리키고 있습니다.

확인해 보니, 여지없이 DNS 서버가 164.124.... 를 가리키고 있습니다.

wmi_rpc_server_error_2.png

결국, "The RPC server is unavailable" 오류도 AD 계정으로 해당 서버를 접근하려는데 AD 서버로 접근이 안 되니 그와 같은 오류가 발생하는 것으로 해석될 수 있습니다. DNS 서버의 주소를 내부 AD 서버의 IP로 설정해 주는 것으로 모든 문제들이 해결되었습니다.




[이 토픽에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]

[연관 글]






[최초 등록일: ]
[최종 수정일: 7/10/2021]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 



2010-09-02 10시15분
[짜두] 음 DNS 문제였군요. 윈도 서버 인프라에 대한 문제를 해결할려고 하다보면 대부분이 DNS 문제인듯~
[guest]
2020-12-30 08시35분
DCE 1.1: REMOTE PROCEDURE CALL
REFERENCE: C706
; https://publications.opengroup.org/c706
정성태

1  2  3  4  5  6  [7]  8  9  10  11  12  13  14  15  ...
NoWriterDateCnt.TitleFile(s)
13460정성태11/26/20232371닷넷: 2172. .NET 6+ 기반의 COM Server 내에 Type Library를 내장하는 방법파일 다운로드1
13459정성태11/26/20232367닷넷: 2171. .NET Core 3/5+ 기반의 COM Server를 기존의 regasm처럼 등록하는 방법파일 다운로드1
13458정성태11/26/20232375닷넷: 2170. .NET Core/5+ 기반의 COM Server를 tlb 파일을 생성하는 방법(tlbexp)
13457정성태11/25/20232301VS.NET IDE: 187. Visual Studio - 16.9 버전부터 추가된 "Display inline type hints" 옵션
13456정성태11/25/20232627닷넷: 2169. C# - OpenAI를 사용해 PDF 데이터를 대상으로 OpenAI 챗봇 작성 [1]파일 다운로드1
13455정성태11/25/20232513닷넷: 2168. C# - Azure.AI.OpenAI 패키지로 OpenAI 사용파일 다운로드1
13454정성태11/23/20232861닷넷: 2167. C# - Qdrant Vector DB를 이용한 Embedding 벡터 값 보관/조회 (Azure OpenAI) [1]파일 다운로드1
13453정성태11/23/20232345오류 유형: 879. docker desktop 설치 시 "Invalid JSON string. (Exception from HRESULT: 0x83750007)"
13452정성태11/22/20232450닷넷: 2166. C# - Azure OpenAI API를 이용해 사용자가 제공하는 정보를 대상으로 검색하는 방법파일 다운로드1
13451정성태11/21/20232581닷넷: 2165. C# - Azure OpenAI API를 이용해 ChatGPT처럼 동작하는 콘솔 응용 프로그램 제작파일 다운로드1
13450정성태11/21/20232387닷넷: 2164. C# - Octokit을 이용한 GitHub Issue 검색파일 다운로드1
13449정성태11/21/20232493개발 환경 구성: 688. Azure OpenAI 서비스 신청 방법
13448정성태11/20/20232793닷넷: 2163. .NET 8 - Dynamic PGO를 결합한 성능 향상파일 다운로드1
13447정성태11/16/20232675닷넷: 2162. ASP.NET Core 웹 사이트의 SSL 설정을 코드로 하는 방법
13446정성태11/16/20232635닷넷: 2161. .NET Conf 2023 - Day 1 Blazor 개요 정리
13445정성태11/15/20232932Linux: 62. 리눅스/WSL에서 CA 인증서를 저장하는 방법
13444정성태11/15/20232675닷넷: 2160. C# 12 - Experimental 특성 지원
13443정성태11/14/20232734개발 환경 구성: 687. OpenSSL로 생성한 사용자 인증서를 ASP.NET Core 웹 사이트에 적용하는 방법
13442정성태11/13/20232525개발 환경 구성: 686. 비주얼 스튜디오로 실행한 ASP.NET Core 사이트를 WSL 2 인스턴스에서 https로 접속하는 방법
13441정성태11/12/20232832닷넷: 2159. C# - ASP.NET Core 프로젝트에서 서버 Socket을 직접 생성하는 방법파일 다운로드1
13440정성태11/11/20232459Windows: 253. 소켓 Listen 시 방화벽의 Public/Private 제어 기능이 비활성화된 경우
13439정성태11/10/20233051닷넷: 2158. C# - 소켓 포트를 미리 시스템에 등록/예약해 사용하는 방법(Port Exclusion Ranges)파일 다운로드1
13438정성태11/9/20232624닷넷: 2157. C# - WinRT 기능을 이용해 윈도우에서 실행 중인 Media App 제어
13437정성태11/8/20232792닷넷: 2156. .NET 7 이상의 콘솔 프로그램을 (dockerfile 없이) 로컬 docker에 배포하는 방법
13436정성태11/7/20233010닷넷: 2155. C# - .NET 8 런타임부터 (Reflection 없이) 특성을 이용해 public이 아닌 멤버 호출 가능
13435정성태11/6/20232936닷넷: 2154. C# - 네이티브 자원을 포함한 관리 개체(예: 스레드)의 GC 정리
1  2  3  4  5  6  [7]  8  9  10  11  12  13  14  15  ...