Skip to content
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

Workload error recovery problems. #17752

Closed
lewing opened this issue May 20, 2021 · 16 comments
Closed

Workload error recovery problems. #17752

lewing opened this issue May 20, 2021 · 16 comments
Assignees
Labels
Area-Workloads untriaged Request triage from a team member
Milestone

Comments

@lewing
Copy link
Member

lewing commented May 20, 2021

We've been testing dotnet workload install on multiple platforms and we've run into a few cases where a network failure occurred. If you try to run dotnet workload install again after the network error we've seen a different failure that looks like (on windows)

Writing workload pack installation record for Microsoft.NET.Runtime.Emscripten.Python version 6.0.0-preview.6.21268.1...
Installing pack Microsoft.NET.Runtime.Emscripten.Sdk version 6.0.0-preview.6.21268.1...
Workload installation failed, rolling back installed packs...
Installing workload manifest microsoft.net.sdk.android version 11.0.200-ci.main.256.
Installation roll back failed: Failed to install manifest microsoft.net.sdk.android version 11.0.200-ci.main.256: The transaction has aborted..
Rolling back pack Microsoft.NETCore.App.Runtime.Mono.browser-wasm installation...
Rolling back pack Microsoft.NET.Runtime.MonoAOTCompiler.Task installation...
Rolling back pack Microsoft.NET.Runtime.WebAssembly.Sdk installation...
Rolling back pack Microsoft.NETCore.App.Runtime.AOT.Cross.browser-wasm installation...
Rolling back pack Microsoft.NET.Runtime.Emscripten.Node installation...
Rolling back pack Microsoft.NET.Runtime.Emscripten.Python installation...
Rolling back pack Microsoft.NET.Runtime.Emscripten.Sdk installation...
Workload installation failed: One or more errors occurred. (Number of entries expected in End Of Central Directory does not correspond to number of entries in Central Directory.)

And exits

Running install a third time does seem to succeed after that.

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Request triage from a team member label May 20, 2021
@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@lewing
Copy link
Member Author

lewing commented May 20, 2021

cc @pavelsavara @radekdoulik

@marcpopMSFT marcpopMSFT added this to the 6.0.1xx milestone May 25, 2021
@sfoslund
Copy link
Member

sfoslund commented Jun 9, 2021

@lewing are you still seeing this? Can you provide a repro version?

@sfoslund
Copy link
Member

Ping @lewing, is this still an issue?

@lewing
Copy link
Member Author

lewing commented Jun 22, 2021

@sfoslund we're still seeing rollback problems in preview5 dotnet/runtime#54342

@sfoslund
Copy link
Member

I've filed #18450 for the installation issues in that issue. That error seems to be different from the one you originally reported here though, are you still seeing the One or more errors occurred. (Number of entries expected in End Of Central Directory does not correspond to number of entries in Central Directory.) you mentioned above?

@lewing
Copy link
Member Author

lewing commented Jun 22, 2021

haven't seen that recently

@sfoslund
Copy link
Member

Sounds good, I'll close this issue then and track the other error in #18450

@doniyorniazov
Copy link

I Still have this issue when doing "dotnet workload install maui"

@almas-f
Copy link

almas-f commented Aug 12, 2021

I Still have this issue when doing "dotnet workload install maui"

I have the same issue while installing maui workload

@sfoslund
Copy link
Member

@doniyorniyozov @almas-f which errors have you been seeing, can you provide the output from the command? What versions of .NET are you using?

@doniyorniazov
Copy link

doniyorniazov commented Aug 17, 2021

@sfoslund I'm getting "Workload with id maui is not recognized." message. I tried to repair and it didn't work either. How I can completely delete all workloads and reinstall again?

SDK version: 6.0.100-preview.7.21379.14

image

@sfoslund
Copy link
Member

@doniyorniyozov what's the output of dotnet workload search? What OS are you on?

@doniyorniazov
Copy link

@sfoslund
OS: Windows.

This is what I get when I do dotnet workload search.

image

@sfoslund
Copy link
Member

Okay, based on the output of workload search it looks like you're missing manifests. Does the dotnet/sdk-manifests dir exist? If so, what's inside of it? If not, then your sdk installation is broken and you'll want to either repair or re-install the sdk.

@pavelsavara
Copy link
Member

I saw Workload installation failed: Number of entries expected in End Of Central Directory does not correspond to number of entries in Central Directory on my windows machine today too with 7.0.0-alpha.1.21560.2. It was in single purpose runtime\artifacts\bin\dotnet-workload folder.
Possibly I caused it myself by interrupting the workload installation at wrong moment and then restarted it.

I resolved it by deleting whole dotnet folder and installing again. Then it just worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Workloads untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

6 participants