Another cause for the generic Sitecore Docker error - "Invoke-RestMethod "http://localhost:8079/api/http/routers"
Came across this error after I uninstalled .net sdk 6.0 from my machine. This is specific to Sitecore MVP Docker instance but this could be one of the possibilities in your case so, cross-check your pre-requisites!
Error:
The command 'powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; mkdir ./docker/deploy/platform; mkdir ./docker/deploy/mvp-rendering; mkdir ./docker/deploy/identity' returned a non-zero code: 4294967295: failed to shutdown container: container 40cc463adb1df1861643fd2c038c2ad6b9b7a1f7ccf2b8ef9ab619d77327df92 encountered an error during hcsshim::System::Shutdown: failure in a Windows system call: The connection with the virtual machine or container was closed. (0xc037010a): subsequent terminate failed container 40cc463adb1df1861643fd2c038c2ad6b9b7a1f7ccf2b8ef9ab619d77327df92 encountered an error during hcsshim::System::Terminate: failure in a Windows system call: The connection with the virtual machine or container was closed. (0xc037010a)
ERROR: Service 'solutionBuildOutput' failed to build : Build failed
Waiting for CM to become available...
Invoke-RestMethod : Unable to connect to the remote server
At C:\MVP-Site-new\up.ps1:35 char:19
+ ... $status = Invoke-RestMethod "http://localhost:8079/api/http/routers ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebExc
eption
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
Resolution:
Although my machine had .NET Core SDK versions 3.1 and .NET SDK 5.0 (installed as part of VS 2019) the above error occurred, .Net SDK 6.0 is needed to resolve the error. In other words, after the install you must be able to see the 6.0.xxx folder as in scr shot below:
Comments
Post a Comment