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)
11655정성태8/16/201817914사물인터넷: 28. 저항과 병렬로 연결한 LED파일 다운로드1
11654정성태8/15/201819176사물인터넷: 27. 병렬 회로의 저항, 전압 및 전류파일 다운로드1
11653정성태8/14/201820021사물인터넷: 26. 입력 전압에 따른 LED의 전압/저항 변화 [1]파일 다운로드1
11652정성태8/14/201817459사물인터넷: 25. 컬렉터 9V, 베이스에 5V와 3.3V 전압으로 테스트하는 C1815 트랜지스터파일 다운로드1
11651정성태8/14/201822574사물인터넷: 24. 9V 전압에서 테스트하는 C1815 트랜지스터 [1]파일 다운로드3
11650정성태8/14/201816984사물인터넷: 23. 가변저항으로 분압파일 다운로드1
11649정성태8/12/201819302사물인터넷: 22. 저항에 따른 전류 테스트파일 다운로드1
11648정성태8/12/201820733사물인터넷: 21. 퓨즈를 이용한 회로 보호파일 다운로드3
11647정성태8/8/201820870오류 유형: 476. 음수의 음수는 여전히 음수가 되는 수(절대값이 음수인 수)
11646정성태8/8/201816897오류 유형: 475. gacutil.exe 실행 시 "Failure initializing gacutil" 오류 발생
11645정성태8/8/201819104오류 유형: 474. 닷넷 COM+ - Failed to load the runtime. [1]
11644정성태8/6/201822003디버깅 기술: 118. windbg - 닷넷 개발자를 위한 MEX Debugging Extension 소개
11643정성태8/6/201821626사물인터넷: 20. 아두이노 레오나르도 R3 호환 보드의 3.3v 핀의 LED 전압/전류 테스트 [1]파일 다운로드1
11642정성태8/3/201820437Graphics: 20. Unity - LightMode의 ForwardBase에 따른 _WorldSpaceLightPos0 값 변화
11641정성태8/3/201825957Graphics: 19. Unity로 실습하는 Shader (10) - 빌보드 구현 [1]파일 다운로드1
11640정성태8/3/201822122Graphics: 18. Unity - World matrix(unity_ObjectToWorld)로부터 Position, Rotation, Scale 값을 복원하는 방법파일 다운로드1
11639정성태8/2/201819701디버깅 기술: 117. windbg - 덤프 파일로부터 추출한 DLL을 참조하는 방법
11638정성태8/2/201818091오류 유형: 473. windbg - 덤프 파일로부터 추출한 DLL 참조 시 "Resolved file has a bad image, no metadata, or is otherwise inaccessible." 빌드 오류
11637정성태8/1/201822489Graphics: 17. Unity - World matrix(unity_ObjectToWorld)로부터 TRS(이동/회전/크기) 행렬로 복원하는 방법파일 다운로드1
11636정성태8/1/201829900Graphics: 16. 3D 공간에서 두 점이 이루는 각도 구하기파일 다운로드1
11635정성태8/1/201818618오류 유형: 472. C# 컴파일 오류 - Your project is not referencing the ".NETFramework,Version=v3.5" framework.
11634정성태8/1/201821557.NET Framework: 790. .NET Thread 상태가 Cooperative일 때 GC hang 현상 재현 방법파일 다운로드1
11633정성태7/29/201825504Graphics: 15. Unity - shader의 World matrix(unity_ObjectToWorld)를 수작업으로 구성 [2]파일 다운로드1
11632정성태7/28/201827801Graphics: 14. C# - Unity에서 캐릭터가 바라보는 방향을 기준으로 카메라의 위치 이동 및 회전하는 방법
11631정성태7/27/201829776Graphics: 13. Unity로 실습하는 Shader (9) - 투명 배경이 있는 텍스처 입히기 [1]
11630정성태7/27/201824968개발 환경 구성: 391. (GitHub 등과 직접 연동해) 소스 코드 디버깅을 쉽게 해 주는 SourceLink [3]
... [91]  92  93  94  95  96  97  98  99  100  101  102  103  104  105  ...