question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Intermittent Workload CLI errors: 'Number of entries expected in End of Central Directory...'

See original GitHub issue

We are seeing increasing reports of this particular error when running dotnet workload * commands from the CLI:

Workload installation failed: Number of entries expected in End Of Central Directory does not correspond to number of entries in Central Directory.

I’ve observed this using the NuGet Client API libraries myself with the CopyNupkgFileToAsync(..) method: https://github.com/Redth/dotnet-maui-check/blob/main/MauiCheck/AcquirePackagesCommand.cs#L196

It seems to be what’s happening is at some point the NuGet client is downloading to the cache and storing a corrupt .nupkg (zip) file. The problem is, once this is in the cache, it will not try and correct it by downloading it again.

This is really more of a NuGet client issue (I’ll file an issue there and link back here) but it does ultimately affect workload commands. Perhaps there could be something done to add retry logic or wipe the failed cache item when this is encountered to improve success?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:29 (27 by maintainers)

github_iconTop GitHub Comments

3reactions
zivkancommented, Feb 2, 2022

NuGet has a code fix for this. Our next insertion into the .NET SDK (next week) will add it into .NET 7 and .NET 6.0.3xx daily builds.

0reactions
philippjbauercommented, Jan 22, 2022

@zivkan I agree, this is a tricky problem to investigate, especially if telemetry is missing.

Unfortunately I don’t know of a way to simulate a connection problem like mine. And I don’t understand fully why my network is behaving the way it is either. I got a strong wireless connection to the cell tower 🤷‍♂️

But I can offer to try out your solution when it becomes available.

Thank you for your effort!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Unzip Error “End-of-central-directory signature ...
This problem can surface in many situations when working with zip files. Usually the easiest way to resolve it is to simply re-download...
Read more >
Microsoft Graph Known Issues
This error is due to intermittent license check failures, which we are working to fix. As a temporary workaround, add the Directory.Read.
Read more >
Unpack zip file: “End-of-central-directory signature not ...
I keep getting this error every time I try to unzip my file: Archive: Server.zip End-of-central-directory signature not found.
Read more >
Release Notes | Google Cloud CLI Documentation
Google Cloud CLI. Fixed issue where running the install script from within the root google-cloud-sdk directory would crash with an unactionable error when ......
Read more >
IBM Tivoli Directory Server: Problem Determination Guide
Tools for troubleshooting IBM Tivoli Directory Server 1 ... Replication command-line interface error ... synchronizing a large number of entries with.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found