Sdk: Razor build server (process 27970) failed to shut down: The shutdown command failed: The application to execute does not exist

Created on 25 Oct 2019  路  7Comments  路  Source: dotnet/sdk

Steps to reproduce

$ dotnet build-server shutdown error:

Razor build server (process 27970) failed to shut down: The shutdown command failed: The application to execute does not exist: '/usr/share/dotnet/sdk/NuGetFallbackFolder/microsoft.aspnetcore.razor.design/2.2.0/tools/rzc.dll'

Why does it look for 2.2.0 when I am using 3.0?

Expected behavior

Shutdown properly without error

Actual behavior

Environment data

dotnet --info output:

$ dn --info
.NET Core SDK (reflecting any global.json):
 Version:   3.0.100
 Commit:    04339c3a26

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  19.04
 OS Platform: Linux
 RID:         ubuntu.19.04-x64
 Base Path:   /usr/share/dotnet-3.0.100/sdk/3.0.100/

Host (useful for support):
  Version: 3.0.0
  Commit:  7d57652f33

.NET Core SDKs installed:
  3.0.100 [/usr/share/dotnet-3.0.100/sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.App 3.0.0 [/usr/share/dotnet-3.0.100/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.0.0 [/usr/share/dotnet-3.0.100/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download

All 7 comments

@wli3 can you take a look at this?

@khteh is your application targeting netcoreapp3.0 as well?

Yes, of course.

I think this issue just came back. Our perf build ran into the same issue with .NET 5. We use the command dotnet build-server shutdown to set up before each iteration and recently this happens very frequently with the master branch. @wli3

[2020/06/02 20:37:31][INFO] [2020/06/02 20:37:30][INFO] ----------------------------------------------
[2020/06/02 20:37:31][INFO] [2020/06/02 20:37:30][INFO] Initializing logger 2020-06-02 20:37:30.187270
[2020/06/02 20:37:31][INFO] [2020/06/02 20:37:30][INFO] ----------------------------------------------
[2020/06/02 20:37:31][INFO] [2020/06/02 20:37:30][INFO] $ pushd "/home/helixbot/work/A4AE08C9/p"
[2020/06/02 20:37:31][INFO] [2020/06/02 20:37:30][INFO] $ dotnet build-server shutdown
[2020/06/02 20:37:31][INFO] [2020/06/02 20:37:30][INFO] Shutting down MSBuild server...
[2020/06/02 20:37:31][INFO] [2020/06/02 20:37:30][INFO] Shutting down VB/C# compiler server...
[2020/06/02 20:37:31][INFO] [2020/06/02 20:37:30][INFO] Shutting down Razor build server (process 13722)...
[2020/06/02 20:37:31][INFO] [2020/06/02 20:37:30][INFO] VB/C# compiler server shut down successfully.
[2020/06/02 20:37:31][INFO] [2020/06/02 20:37:30][INFO] Razor build server (process 13722) failed to shut down: The shutdown command failed: The application to execute does not exist: '/home/helixbot/work/AEFA0996/w/AD220924/e/.dotnet14993/sdk/5.0.100-preview.6.20266.3/Sdks/Microsoft.NET.Sdk.Razor/tools/netcoreapp3.0/rzc.dll'
[2020/06/02 20:37:31][INFO] [2020/06/02 20:37:30][INFO]
[2020/06/02 20:37:31][INFO] [2020/06/02 20:37:31][INFO] MSBuild server shut down successfully.
[2020/06/02 20:37:31][INFO] [2020/06/02 20:37:31][INFO] $ popd
[2020/06/02 20:37:31][INFO] [2020/06/02 20:37:31][ERROR] Process exited with status 1

@ooooolivia could you use
taskkill /F /IM dotnet.exe /T || taskkill /F /IM VSTest.Console.exe /T || taskkill /F /IM msbuild.exe /T to shut it down for now?

This is a tricky issue. We would need sometime to investigate

@ooooolivia could you use
taskkill /F /IM dotnet.exe /T || taskkill /F /IM VSTest.Console.exe /T || taskkill /F /IM msbuild.exe /T to shut it down for now?

This is a tricky issue. We would need sometime to investigate

@wli3 I assume the process names would be the same on Linux but without the exe extension?

Hm.. yes, need to do the equivalent for Linux

Was this page helpful?
0 / 5 - 0 ratings