ERROR: Service 'solutionBuildOutput' failed to build : Build failed

Project: https://github.com/Sitecore/MVP-Site 

Context/Resolution:

Looks like the VS build and the PS Build have some kind of  clash - to replicate, do the usual docker rituals of down,  clean and up.ps1, mostly after doing clean and build thru VS the following error occurs but doesn't affect the final output the containers are healthy and start running though. When I did a docker system prune -a and then ran the .\up.ps1 the following error didn't occur. So, suspect the clash to be the issue.

Error:

 ---> Running in 549fc01854c5

The command 'powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; msbuild .\Mvp.sln /restore /m /v:m /p:Configuration=$env:BUILD_CONFIGURATION /p:IsLocalDockerDeploy=true' returned a non-zero code: 4294967295: failed to shutdown container: container 549fc01854c54a68054a4d9cadbe3ba9b3c5ad208bb9172cc492ca2d584fc75f 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 549fc01854c54a68054a4d9cadbe3ba9b3c5ad208bb9172cc492ca2d584fc75f encountered an error during hcsshim::System::waitBackground: 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

C:\MVP-Site\up.ps1 : Container build failed, see errors above.

At line:1 char:1

+ .\up.ps1

+ ~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException

    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,up.ps1

P.S. Also, a second VS  Rebuild  and then compose down followed by up.ps1, didn't have this error for reasons unknown.

Comments