Identity Server Throwing Error while upgrading Sitecore Docker Image from 101 to 103
Hello everyone, in this blog we will see one issue regarding Identity Server throwing 404 eventhough the container is up and running.In my case, this is happening when i am trying to Upgrade the Sitecore image from 10.1 to 10.3.We will see the steps, to troubleshoot the issue.
Error Encountered : exec's CreateProcess() failed [error=container d40d350982e92e2df17722f254128af302877e86748d58e79fb6a5f2f303139d encountered an error during hcs::System::CreateProcess: failure in a Windows system call: The system cannot find the file specified. (0x2) [Event Detail: Provider: 00000000-0000-0000-0000-000000000000] [Event Detail: Provider: 00000000-0000-0000-0000-000000000000] [Event Detail: onecore\vm\compute\management\orchestration\vmhostedcontainer\processmanagement.cpp(173)\vmcomputeagent.exe!00007FF70737A1DB: (caller: 00007FF70732E19A) Exception(32) tid(3dc) 80070002 The system cannot find the file specified. CallContext:[\Bridge_ProcessMessage\VmHostedContainer_ExecuteProcess] Provider: 00000000-0000-0000-0000-000000000000] namespace=moby container=d40d350982e92e2df17722f254128af302877e86748d58e79fb6a5f2f303139d exec=b67fd7e2b3093344d294f5fa93dd8d935c8b918cd2f957da47e855c4d3b7b528 module=libcontainerd]
Trouble shoot steps:
- Check the logs for the Identity container and try to find out if you are able to get any error. In my case there was no error in container. Or you can use docker logs --details {Your Container ID} in Powershell to get the logs
- Check the Application log from Event Viewer.I got the above issue from here.
Below are the steps tried to resolve the issue
- Deleted the Identity container and created the container again. No luck
- Check whether your current user is added to local groups for docker-users. No luck
- Added the current user to Hyper-V administrator groups.No luck.
- Compare the docker compose file with Sitecore 10.3 compose file for Identity server and found out one small difference. In HealthCheck, PowerShell was use as "powershell" in 10.1 and in 10.3 it is used as "pwsh". After changing to pwsh it started working fine.Below are the images for your reference.
Docker 10.1 Identity Server Image
Docker 10.3 Identity Server Image
This is very common mistake which can be ignored. Thanks for reading. Happy Learning!!
You can check my other blogs blog related to Sitecore
Comments
Post a Comment