Microsoft MVP성태의 닷넷 이야기
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 

Azure Web App Site Extension - Failed to install web app extension [...]. {1}

Azure Web App Service를 위한 Site Extension을 만들어,

Azure Web App 확장 예제 - Simple WebSite Extension
; https://www.sysnet.pe.kr/2/0/11505

nuget에 배포한 후, 테스트를 위해 Extension을 설치/제거를 반복하다 보면 어느 순간 다음의 오류 메시지와 함께 설치가 안 될 때가 있습니다.

Installing web app extension
Failed to install web app extension FileCounterSiteExtension. {1}

해당 Web App을 "Restart"해도 저 현상이 계속되는데요, 그런 경우 Kudu Console을 이용해 "D:\home\site\siteextensions\[...extension_name...]" 경로에 있는 json 파일을 보면,

D:\home\site\siteextensions\FileCounterSiteExtension> type SiteExtensionStatus.json
{
  "provisioningState": "Failed",
  "operation": "install",
  "status": "BadRequest",
  "siteExtensionType": "Gallery",
  "comment": "System.IO.IOException: The process cannot access the file 'D:\\home\\SiteExtensions\\FileCounterSiteExtension' because it is being used by another process.\r\n   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\r\n   at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound, WIN32_FIND_DATA& data)\r\n   at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost)\r\n   at System.IO.Abstractions.DirectoryWrapper.Delete(String path, Boolean recursive)\r\n   at Kudu.Core.Infrastructure.FileSystemHelpers.MoveDirectory(String sourceDirName, String destDirName) in C:\\Kudu Files\\Private\\src\\master\\Kudu.Core\\Infrastructure\\FileSystemHelpers.cs:line 78\r\n   at Kudu.Core.SiteExtensions.SiteExtensionManagerV2.<>c__DisplayClass27_1.<EnsureInstallationEnvironment>b__1() in C:\\Kudu Files\\Private\\src\\master\\Kudu.Core\\SiteExtensions\\SiteExtensionManagerV2.cs:line 525\r\n   at Kudu.Core.Infrastructure.OperationManager.<>c__DisplayClass2_0.<Attempt>b__0() in C:\\Kudu Files\\Private\\src\\master\\Kudu.Core\\Infrastructure\\OperationManager.cs:line 17\r\n   at Kudu.Core.Infrastructure.OperationManager.Attempt[T](Func`1 action, Int32 retries, Int32 delayBeforeRetry, Func`2 shouldRetry) in C:\\Kudu Files\\Private\\src\\master\\Kudu.Core\\Infrastructure\\OperationManager.cs:line 43\r\n   at Kudu.Core.Infrastructure.OperationManager.Attempt(Action action, Int32 retries, Int32 delayBeforeRetry) in C:\\Kudu Files\\Private\\src\\master\\Kudu.Core\\Infrastructure\\OperationManager.cs:line 15\r\n   at Kudu.Core.SiteExtensions.SiteExtensionManagerV2.EnsureInstallationEnvironment(String installationDir, ITracer tracer) in C:\\Kudu Files\\Private\\src\\master\\Kudu.Core\\SiteExtensions\\SiteExtensionManagerV2.cs:line 525\r\n   at Kudu.Core.SiteExtensions.SiteExtensionManagerV2.<InstallExtension>d__26.MoveNext() in C:\\Kudu Files\\Private\\src\\master\\Kudu.Core\\SiteExtensions\\SiteExtensionManagerV2.cs:line 479\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)\r\n   at Kudu.Core.SiteExtensions.SiteExtensionManagerV2.<TryInstallExtension>d__25.MoveNext() in C:\\Kudu Files\\Private\\src\\master\\Kudu.Core\\SiteExtensions\\SiteExtensionManagerV2.cs:line 259"
}

원인을 찾을 수 있습니다. 위의 경우 "D:\\home\\SiteExtensions\\FileCounterSiteExtension" 디렉터리가 잠겨 있다고 하는데요, Kudu Process Explorer에 들어가 떠 있는 프로세스 중에 "scm"이 붙은 cmd 프로세스들을 (어느 특정 프로세스겠지만 구분이 귀찮으니 ^^;) 모두 "Kill" 하시면 잠금이 풀리고 삭제가 됩니다. 이후, 다시 Extension을 설치 시도하면 정상적으로 동작합니다.




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







[최초 등록일: ]
[최종 수정일: 6/30/2021]

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

비밀번호

댓글 작성자
 




... 91  92  93  94  95  96  97  98  99  100  101  102  [103]  104  105  ...
NoWriterDateCnt.TitleFile(s)
11354정성태11/14/201728533사물인터넷: 6. Raspberry Pi Zero(OTG)를 다른 컴퓨터에 연결해 가상 키보드로 쓰는 방법 [8]
11353정성태11/14/201725696사물인터넷: 5. Raspberry Pi Zero(OTG)를 다른 컴퓨터에 연결해 가상 이더넷 카드로 쓰는 방법 [1]
11352정성태11/14/201721741사물인터넷: 4. Samba를 이용해 윈도우와 Raspberry Pi간의 파일 교환 [1]
11351정성태11/7/201725049.NET Framework: 698. C# 컴파일러 대신 직접 구현하는 비동기(async/await) 코드 [6]파일 다운로드1
11350정성태11/1/201721011디버깅 기술: 108. windbg 분석 사례 - Redis 서버로의 호출을 기다리면서 hang 현상 발생
11349정성태10/31/201721419디버깅 기술: 107. windbg - x64 SOS 확장의 !clrstack 명령어가 출력하는 Child SP 값의 의미 [1]파일 다운로드1
11348정성태10/31/201717921디버깅 기술: 106. windbg - x64 역어셈블 코드에서 닷넷 메서드 호출의 인자를 확인하는 방법
11347정성태10/28/201721468오류 유형: 424. Visual Studio - "클래스 다이어그램 보기" 시 "작업을 완료할 수 없습니다. 해당 인터페이스를 지원하지 않습니다." 오류 발생
11346정성태10/25/201718037오류 유형: 423. Windows Server 2003 - The client-side extension could not remove user policy settings for 'Default Domain Policy {...}' (0x8007000d)
11338정성태10/25/201716599.NET Framework: 697. windbg - SOS DumpMT의 "BaseSize", "ComponentSize" 값에 대한 의미파일 다운로드1
11337정성태10/24/201718736.NET Framework: 696. windbg - SOS DumpClass/DumpMT의 "Vtable Slots", "Total Method Slots", "Slots in VTable" 값에 대한 의미파일 다운로드1
11336정성태10/20/201719411.NET Framework: 695. windbg - .NET string의 x86/x64 메모리 할당 구조
11335정성태10/18/201718403.NET Framework: 694. 닷넷 - <Module> 클래스의 용도
11334정성태10/18/201719524디버깅 기술: 105. windbg - k 명령어와 !clrstack을 조합한 호출 스택을 얻는 방법
11333정성태10/17/201718715오류 유형: 422. 윈도우 업데이트 - Code 9C48 Windows update encountered an unknown error.
11332정성태10/17/201719650디버깅 기술: 104. .NET Profiler + 디버거 연결 + .NET Exceptions = cpu high
11331정성태10/16/201718026디버깅 기술: 103. windbg - .NET 4.0 이상의 환경에서 모든 DLL에 대한 심벌 파일을 로드하는 파이썬 스크립트
11330정성태10/16/201717231디버깅 기술: 102. windbg - .NET 4.0 이상의 환경에서 DLL의 심벌 파일 로드 방법 [1]
11329정성태10/15/201721351.NET Framework: 693. C# - 오피스 엑셀 97-2003 .xls 파일에 대해 32비트/64비트 상관없이 접근 방법파일 다운로드1
11328정성태10/15/201724291.NET Framework: 692. C# - 하나의 바이너리로 환경에 맞게 32비트/64비트 EXE를 실행하는 방법파일 다운로드1
11327정성태10/15/201718118.NET Framework: 691. AssemblyName을 .csproj에서 바꾼 경우 빌드 오류 발생하는 문제파일 다운로드1
11326정성태10/15/201718422.NET Framework: 690. coreclr 소스코드로 알아보는 .NET 4.0의 모듈 로딩 함수 [1]
11325정성태10/14/201719215.NET Framework: 689. CLR 4.0 환경에서 DLL 모듈의 로드 주소(Base address) 알아내는 방법
11324정성태10/13/201720802디버깅 기술: 101. windbg - "*** WARNING: Unable to verify checksum for" 경고 없애는 방법
11322정성태10/13/201718226디버깅 기술: 100. windbg - .NET 4.0 응용 프로그램의 Main 메서드에 Breakpoint 걸기
11321정성태10/11/201719760.NET Framework: 688. NGen 모듈과 .NET Profiler
... 91  92  93  94  95  96  97  98  99  100  101  102  [103]  104  105  ...