-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Can't upgrade or install packages #2696
Comments
I set a couple of policies for the example below:
|
You could try changing the default network downloader setting to "wininet": https://learn.microsoft.com/windows/package-manager/winget/settings#network-settings |
No, my settings now look like this, but nothing seems to have changed: {
"$schema": "https://aka.ms/winget-settings.schema.json",
"network": {
"downloader": "wininet"
}
// For documentation on these settings, see: https://aka.ms/winget-settings
// "source": {
// "autoUpdateIntervalInMinutes": 5
// },
} I also don't get any output past "Links" in |
@github-account1111 then there aren't any "App Installer" policies affecting WinGet itself. There still may be other networking policies that are affecting overall communications, and I've seen examples of DO policies affecting WinGet. Can you run The log location is available via If that succeeds, then you should have the current "winget" PreIndexed package cache on your local machine and can try installing or upgrading a package. Be sure to add "--verbose-logs" so we can see what's happening. |
That's a lot shorter than I expected. After accepting the agreements, I'm back to square one (no updates, packages available for install are all outdated): |
Greetings everyone, it looks like the CDN issue has returned, everything worked fine yesterday, now I am seeing the dreaded |
I do have the same problem. Via VPN and Vancouver it works fine, but not directly here from germany. |
Repository not availableThe problem seems to be that the WinGet-Repository is not available atm:
https://cdn.winget.microsoft.com/cache |
That URL is the base for what is actually downloaded. The client will request "source.msix" at that path. |
@denelon: Thank you for clarifying the URL. |
😔 Yep that's the zero-byte file problem. |
Is there anything you can do locally to fix this or is this a strictly CDN-side issue? |
This problem is related to the CDN issue. We've made several changes in the configuration to avoid this from happening. We're looking into this. I've seen some users have modified their hosts file to temporarily point to another endpoint that is working correctly. I don't know the list of IP addresses as they are managed by the CDN. With a valid URL it's possible to download and manually install the source.msix file to get a valid copy of the cache. What I can't guarantee is that when the TTL expires (default 5 minutes) it won't repro. We're going to purge again to see if that will clear the endpoints with the zero-byte file. |
Hi, we are still experiencing the issue (in US Midwest) with the 0-byte error. The CDN is connecting to sni1gl.wpc.nucdn.net [152.195.19.97]. |
I am in the Czech Republic, IP 152.199.21.175, and have the 0-size CDN file problem. |
Getting the 0-byte issue in Florida. CDN is connecting to sni1gl.wpc.nucdn.net with IP 152.195.19.97 |
Tested |
Still getting the zero byte failure here. |
0-bytes package problem still frequently present in Italy and Nederland (vpn). I ran Then, randomly it finally worked. CDN ( Log:
I run a simple powershell script to fetch the filesize:
|
Thanks for reporting this. We're still working with the CDN provider to see what else can be done to resolve this issue. We've now resorted to purging the cache after each publish run. |
This is reliably broken for me in Florida / Frontier. cdn.winget.microsoft.com resolves to 152.195.19.97 (sni1gl.wpc.nucdn.net) and returns a 0 byte result 100/100 attempts. |
The file downloads fine. I think this is a client issue, not a CDN one. |
@github-account1111 can you run an example of attempting to perform an install with "--verbose-logs" and share the results with the logs? |
WinGet-2022-11-23-00-16-26.759.log |
@github-account1111 the log shows success. I was able to install and run it on my machine.
|
I can uninstall and install apps but when I try I tried
then upgrade all again:
☝️ I don't know what this means I have an empty
|
@spences10 it looks like you're hitting the zero-byte file CDN problem that we're encountering: |
So, is it just a wait for it to be fixed kinda thing and carry on as normal until it's fixed? |
@spences10 yes, we're working through the issue. We're in the process of changing the default behavior to flush the cache automatically with each publish event. There were some API changes on the back end that shouldn't have had any impact, but clearly something changed with our CDN provider's ability to distribute the file globally. It's inconsistent so it's being illusive to completely resolve. We keep getting false positives. For some reason, the CDN is caching a zero-byte file when the file is approximately 5mb. https://cdn.winget.microsoft.com/cache/source.msix is the offending URL. |
@denelon it installed the old version.
|
Do you get a zero-byte file from https://cdn.winget.microsoft.com/cache/source.msix ? You may have an "old" copy of the PreIndexed package. What do you get for |
No, that downloads a 5MB file.
|
OK, that's a good sign. There may be a stale cache on the system then. Try If that works, then try Then try the search again. |
That's what I did in #2696 (comment) upon your request. |
What do you get for: |
|
@github-account1111 that looks like it's pretty far out of date. YYYY.MMDD is the first part of the Version. I've currently got:
|
What's out of date, and is there anything that can be done to fix it and prevent it from happening in the future? |
I believe we have finally resolved our CDN related issue. Try downloading and installing the latest source.msix. If it was in fact the CDN issue, your system wasn't getting the latest version of the cache and ended up getting stale and staying out of date. Also check the TTL in settings. If it's not specified, the default timeout is 5 minutes. If it's set to "0" then it would never update. |
|
Just tried |
Thanks |
Wow I guess it was a CDN issue after all. Amazing. |
Since #2666 was closed, and anyone still encountering trouble was asked to create a new issue, I'll reference #2666 (comment) here.
The
winget settings
file is empty:Would they just be output into console if such policies exist?
I don't see anything out of the ordinary:
winget source update --verbose-logs
winget upgrade --all --verbose-logs
winget upgrade --verbose-logs
Originally posted by @github-account1111 in #2666 (comment)
The text was updated successfully, but these errors were encountered: