Skip to content

Occasional MSBUILD error when running dotnet store on Windows #1380

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
JunTaoLuo opened this issue Jul 4, 2017 · 9 comments
Closed

Occasional MSBUILD error when running dotnet store on Windows #1380

JunTaoLuo opened this issue Jul 4, 2017 · 9 comments
Assignees
Labels
Milestone

Comments

@JunTaoLuo
Copy link
Contributor

We occasionally see the error when generating our runtime package store:

[Step 1/2] C:\b\w\33bf2c3795c96c7d\.dotnet\sdk\2.0.0-preview2-006479\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.CrossGen.targets(180,5):
error MSB3027: Could not copy "C:\b\w\33bf2c3795c96c7d\.rw\Build.RuntimeStore.References_2.0.0-preview2-25769\runtimesymbols\
microsoft.identitymodel.clients.activedirectory\3.13.9\lib\netstandard1.4\Microsoft.IdentityModel.Clients.ActiveDirectory.ni.dll"
to "C:\b\w\33bf2c3795c96c7d\.rw\SymbolsStagingDir\microsoft.identitymodel.clients.activedirectory\
3.13.9\lib\netstandard1.4\Microsoft.IdentityModel.Clients.ActiveDirectory.ni.dll".
Exceeded retry count of 10. Failed.
[C:\b\w\33bf2c3795c96c7d\src\Microsoft.AspNetCore.RuntimeStore\Microsoft.AspNetCore.RuntimeStore.csproj] 
[C:\b\w\33bf2c3795c96c7d\.build\KoreBuild.proj]

These failures are not persistent and occurs in about 1 in 10 runs on Windows only. Linux and macOS do not run into this behaviour. This started to occur about 2 weeks ago after we ingested the latest changes in the SDK for 2.0.0.

Any idea what's causing this?

cc @gkhanna79 @mikeharder @livarcocc

@JunTaoLuo
Copy link
Contributor Author

This flakiness is regularly failing our build chains. Can we assign someone to investigate this with a higher priority?

cc @mikeharder @Eilon @livarcocc @gkhanna79 @muratg

@muratg
Copy link

muratg commented Aug 7, 2017

@nguerrera Any thoughts on this one?

@Eilon
Copy link
Contributor

Eilon commented Aug 8, 2017

Looks like some folks are OOF right now so we might have to wait a bit.

@nguerrera
Copy link
Contributor

This started to occur about 2 weeks ago after we ingested the latest changes in the SDK for 2.0.0.

Do you have the build numbers before and after it started happening. I'm not aware of anything that changed late around this scenario.

@JunTaoLuo
Copy link
Contributor Author

I think the issue started to manifest in our builds after we turned symbols generation on by default in #1231. Though I suspect the issue was already present when the symbols generation feature was added in https://github.com/dotnet/core-setup/issues/2144

@JunTaoLuo
Copy link
Contributor Author

JunTaoLuo commented Sep 28, 2017

We are still seeing these failures, any updates? From the logs I'm also seeing this error:

09:37:09]	[Step 2/2] C:\b\w\33bf2c3795c96c7d\.dotnet\x86\sdk\2.1.0-preview1-007042\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.CrossGen.targets(180,5): error MSB3030: Could not copy the file "C:\b\w\33bf2c3795c96c7d\.rw\Build.RuntimeStore.References_2.1.0-preview1-27146\runtimesymbols\microsoft.identitymodel.clients.activedirectory\3.14.1\lib\netstandard1.3\Microsoft.IdentityModel.Clients.ActiveDirectory.ni.dll" because it was not found. 

@ryanbrandenburg
Copy link

This issue continues to happen for us:

[Step 2/2] C:\b\w\33bf2c3795c96c7d\.dotnet\x86\sdk\2.1.0-preview1-007042\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.CrossGen.targets(180,5): warning MSB3026: Could not copy "C:\b\w\33bf2c3795c96c7d\.rw\Build.RuntimeStore.References_2.1.0-preview1-27392\runtimesymbols\microsoft.identitymodel.clients.activedirectory\3.14.1\lib\netstandard1.3\Microsoft.IdentityModel.Clients.ActiveDirectory.ni.pdb" to "C:\b\w\33bf2c3795c96c7d\.rw\SymbolsStagingDir\microsoft.identitymodel.clients.activedirectory\3.14.1\lib\netstandard1.3\Microsoft.IdentityModel.Clients.ActiveDirectory.ni.pdb". Beginning retry 1 in 1000ms. The process cannot access the file 'C:\b\w\33bf2c3795c96c7d\.rw\Build.RuntimeStore.References_2.1.0-preview1-27392\runtimesymbols\microsoft.identitymodel.clients.activedirectory\3.14.1\lib\netstandard1.3\Microsoft.IdentityModel.Clients.ActiveDirectory.ni.pdb' because it is being used by another process. [C:\b\w\33bf2c3795c96c7d\src\Microsoft.AspNetCore.RuntimeStore\Microsoft.AspNetCore.RuntimeStore.csproj] [C:\b\w\33bf2c3795c96c7d\.dotnet\buildtools\korebuild\2.1.0-preview1-15538\KoreBuild.proj]
[Step 2/2] C:\b\w\33bf2c3795c96c7d\.dotnet\x86\sdk\2.1.0-preview1-007042\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.CrossGen.targets(180,5): error MSB3030: Could not copy the file "C:\b\w\33bf2c3795c96c7d\.rw\Build.RuntimeStore.References_2.1.0-preview1-27392\runtimesymbols\sqlitepclraw.bundle_green\1.1.8\lib\netcoreapp\SQLitePCLRaw.batteries_v2.ni.dll" because it was not found. [C:\b\w\33bf2c3795c96c7d\src\Microsoft.AspNetCore.RuntimeStore\Microsoft.AspNetCore.RuntimeStore.csproj] [C:\b\w\33bf2c3795c96c7d\.dotnet\buildtools\korebuild\2.1.0-preview1-15538\KoreBuild.proj]

@livarcocc livarcocc added this to the Unknown milestone Jan 29, 2018
@nguerrera nguerrera modified the milestones: Backlog, 3.0.1xx May 23, 2019
@nguerrera nguerrera self-assigned this May 23, 2019
@nguerrera
Copy link
Contributor

@JunTaoLuo Same here. Have you tried building with Preview 7 and without the workarounds? I'm closing this as fixed by #3345, but if you are still having issues, I can reopen.

@JunTaoLuo
Copy link
Contributor Author

I'll give it a try soon. We haven't updated our builds to use preview 7 just yet but will do so this week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants