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

Failed in attempting to update the source: winget #2666

Closed
HenkPoley opened this issue Nov 4, 2022 · 195 comments
Closed

Failed in attempting to update the source: winget #2666

HenkPoley opened this issue Nov 4, 2022 · 195 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.
Milestone

Comments

@HenkPoley
Copy link

HenkPoley commented Nov 4, 2022

Brief description of your issue

winget upgrade says:

Failed in attempting to update the source: winget
Name                                                      Id                   Version        Available    Source
-----------------------------------------------------------------------------------------------------------------
..

Will try solutions at Issue #1656 next

Edit: winget source reset --force seems to (not) have worked:

PS > winget source reset --force
Resetting all sources...Done
PS > winget upgrade
**Failed** in attempting to update the source: **winget**
The `msstore` source requires that you view the following agreements before using.
Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction
The source requires the current machine's 2-letter geographic region to be sent to the backend service to function properly (ex. "US").

Do you agree to all the source agreements terms?
[Y] Yes  [N] No: Y
Name                                                      Id                   Version        Available    Source
-----------------------------------------------------------------------------------------------------------------

Steps to reproduce

Run winget upgrade

Expected behavior

Download fresh package list.

Actual behavior

Some kind of exception in WindowsPackageManager.dll

Log from winget upgrade --verbose-logs:

2022-11-04 09:00:33.493 [CORE] WinGet, version [1.3.2691], activity [{08B9A50E-A084-4E6B-A786-E7914D0114DC}]
2022-11-04 09:00:33.493 [CORE] OS: Windows.Desktop v10.0.22000.1165
2022-11-04 09:00:33.493 [CORE] Command line Args: "C:\Users\henk\AppData\Local\Microsoft\WindowsApps\winget.exe" upgrade --verbose-logs
2022-11-04 09:00:33.493 [CORE] Package: Microsoft.DesktopAppInstaller v1.18.2691.0
2022-11-04 09:00:33.493 [CORE] IsCOMCall:0; Caller: winget-cli
2022-11-04 09:00:33.498 [CLI ] WinGet invoked with arguments: 'upgrade' '--verbose-logs'
2022-11-04 09:00:33.498 [CLI ] Found subcommand: upgrade
2022-11-04 09:00:33.499 [CLI ] Leaf command to execute: root:upgrade
2022-11-04 09:00:33.501 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
2022-11-04 09:00:33.501 [CORE] Admin settings was not found
2022-11-04 09:00:33.501 [CLI ] Executing command: upgrade
2022-11-04 09:00:33.501 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2022-11-04 09:00:33.501 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2022-11-04 09:00:33.501 [YAML] Detected UTF-8
2022-11-04 09:00:33.501 [REPO] GetCurrentSourceRefs: Source named 'microsoft.builtin.desktop.frameworks' from origin Default is hidden and is dropped.
2022-11-04 09:00:33.501 [REPO] Default source requested, multiple sources available, adding all to source references.
2022-11-04 09:00:33.501 [REPO] Adding to source references msstore
2022-11-04 09:00:33.502 [REPO] Adding to source references winget
2022-11-04 09:00:33.502 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2022-11-04 09:00:33.502 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2022-11-04 09:00:33.502 [YAML] Detected UTF-8
2022-11-04 09:00:33.502 [REPO] Source past auto update time [5 mins]; it has been at least 1456 mins
2022-11-04 09:00:33.634 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFD30D965C7: (caller: 00007FFD30DFF80F) Exception(1) tid(3614) 8051100F 
2022-11-04 09:00:33.635 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(53)\WindowsPackageManager.dll!00007FFD30F0F321: (caller: 00007FFD30DF195B) LogHr(1) tid(3614) 8051100F     Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFD30D965C7: (caller: 00007FFD30DFF80F) Exception(1) tid(3614) 8051100F ] 

2022-11-04 09:00:33.635 [REPO] Source add/update failed, waiting a bit and retrying: winget
2022-11-04 09:00:35.676 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFD30D965C7: (caller: 00007FFD30DFF80F) Exception(2) tid(3614) 8051100F 
2022-11-04 09:00:35.676 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(516)\WindowsPackageManager.dll!00007FFD30F0E909: (caller: 00007FFD30CDE155) LogHr(2) tid(3614) 8051100F     Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFD30D965C7: (caller: 00007FFD30DFF80F) Exception(2) tid(3614) 8051100F ] 

2022-11-04 09:00:35.676 [REPO] Failed to update source: winget
2022-11-04 09:00:35.676 [REPO] Multiple sources available, creating aggregated source.

Environment

winget --info

Windows Package Manager v1.3.2691
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22000.1165
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.18.2691.0

Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale
@ghost ghost added the Needs-Triage Issue need to be triaged label Nov 4, 2022
@Xarkam
Copy link

Xarkam commented Nov 4, 2022

Hello, same here:

Actual behavior

> winget source reset --force
Réinitialisation en cours de toutes les sources... Merci de patienter.Terminé
> winget upgrade
Désolé...Nous n’avons pas pu tenter la mise à jour de la source : winget
La source 'msstore' nécessite que vous consultiez les contrats suivants avant de l’utiliser.
Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction
La source nécessite que la région géographique à 2 lettres de l’ordinateur actuel soit envoyée au service principal pour fonctionner correctement (par exemple, « ÉTATS-UNIS »).

Acceptez-vous toutes les conditions des contrats sources ?
[Y] Oui  [N] Non: Y
Échec lors de la recherche de la source : winget
Une erreur inattendue s'est produite lors de l'exécution de la commande :
0x8a15000f : Data required by the source is missing

Logs:

2022-11-04 10:14:33.150 [CORE] OS: Windows.Desktop v10.0.22621.755
2022-11-04 10:14:33.150 [CORE] Command line Args: "C:\Users\benja\AppData\Local\Microsoft\WindowsApps\winget.exe" source update
2022-11-04 10:14:33.150 [CORE] Package: Microsoft.DesktopAppInstaller v1.18.2691.0
2022-11-04 10:14:33.150 [CORE] IsCOMCall:0; Caller: winget-cli
2022-11-04 10:14:33.153 [CLI ] WinGet invoked with arguments: 'source' 'update'
2022-11-04 10:14:33.153 [CLI ] Found subcommand: source
2022-11-04 10:14:33.153 [CLI ] Found subcommand: update
2022-11-04 10:14:33.153 [CLI ] Leaf command to execute: root:source:update
2022-11-04 10:14:33.153 [CLI ] Executing command: update
2022-11-04 10:14:33.163 [REPO] GetCurrentSourceRefs: Source named 'microsoft.builtin.desktop.frameworks' from origin Default is hidden and is dropped.
2022-11-04 10:14:33.172 [REPO] Named source requested, found: msstore
2022-11-04 10:14:33.173 [REPO] Named source to be updated, found: msstore
2022-11-04 10:14:33.278 [REPO] Named source requested, found: winget
2022-11-04 10:14:33.278 [REPO] Named source to be updated, found: winget
2022-11-04 10:14:33.417 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFDA77E65C7: (caller: 00007FFDA784F80F) Exception(1) tid(4f80) 8051100F 
2022-11-04 10:14:33.417 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(53)\WindowsPackageManager.dll!00007FFDA795F321: (caller: 00007FFDA7842D1C) LogHr(1) tid(4f80) 8051100F     Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFDA77E65C7: (caller: 00007FFDA784F80F) Exception(1) tid(4f80) 8051100F ] 

2022-11-04 10:14:33.417 [REPO] Source add/update failed, waiting a bit and retrying: winget
2022-11-04 10:14:35.465 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFDA77E65C7: (caller: 00007FFDA784F80F) Exception(2) tid(4f80) 8051100F 
2022-11-04 10:14:35.465 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(634)\WindowsPackageManager.dll!00007FFDA795EF51: (caller: 00007FFDA776B8F3) LogHr(2) tid(4f80) 8051100F     Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFDA77E65C7: (caller: 00007FFDA784F80F) Exception(2) tid(4f80) 8051100F ] 

2022-11-04 10:14:35.465 [REPO] Failed to update source: winget
2022-11-04 10:14:35.724 [CLI ] Leaf command succeeded: root:source:update

Environment:

> winget --info
Gestionnaire de package Windows v1.3.2691
Copyright (c) Microsoft Corporation. Tous droits réservés.

Windows: Windows.Desktop v10.0.22621.755
Architecture du système: X64
Package: Microsoft.DesktopAppInstaller v1.18.2691.0

Journaux: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir

Liens
---------------------------------------------------------------------------------------------
Déclaration de confidentialité        https://aka.ms/winget-privacy
Contrat de licence                    https://aka.ms/winget-license
Avis de tiers                         https://aka.ms/winget-3rdPartyNotice
Page d’accueil                        https://aka.ms/winget
Conditions générales du Windows Store https://www.microsoft.com/en-us/storedocs/terms-of-sale

@dolorosus
Copy link

Same here:

C:\>winget source reset --force
Alle Quellen werden zurückgesetzt...Fertig

C:\>winget source update
Alle Quellen werden aktualisiert...
Quelle wird aktualisiert: msstore...
Fertig
Quelle wird aktualisiert: winget...
Abgebrochen
2022-11-04 12:01:40.866 [CORE] WinGet, version [1.4.2161-preview], activity [{BBF408E8-9980-4135-BFB5-42C117CAFA82}]
2022-11-04 12:01:40.866 [CORE] OS: Windows.Desktop v10.0.19045.2193
2022-11-04 12:01:40.866 [CORE] Command line Args: winget  source update --verbose-logs 
2022-11-04 12:01:40.866 [CORE] Package: Microsoft.DesktopAppInstaller v1.19.2161.0
2022-11-04 12:01:40.866 [CORE] IsCOMCall:0; Caller: winget-cli
2022-11-04 12:01:40.884 [CLI ] WinGet invoked with arguments: 'source' 'update' '--verbose-logs'
2022-11-04 12:01:40.885 [CLI ] Found subcommand: source
2022-11-04 12:01:40.885 [CLI ] Found subcommand: update
2022-11-04 12:01:40.885 [CLI ] Leaf command to execute: root:source:update
2022-11-04 12:01:40.885 [CLI ] Executing command: update
2022-11-04 12:01:40.890 [REPO] Additional sources GP is not enabled.
2022-11-04 12:01:40.890 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2022-11-04 12:01:40.890 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
2022-11-04 12:01:40.890 [CORE] Admin settings was not found
2022-11-04 12:01:40.891 [CORE] Adding chain to pinning configuration [Microsoft Store Source]:
DigiCert Global Root G2 : PublicKey
  Microsoft Azure TLS Issuing CA 01 : Subject | Issuer
    sfdataservice.microsoft.com : Subject | Issuer
2022-11-04 12:01:40.891 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2022-11-04 12:01:40.891 [YAML] Detected UTF-8
2022-11-04 12:01:40.891 [REPO] GetCurrentSourceRefs: Source named 'microsoft.builtin.desktop.frameworks' from origin Default is hidden and is dropped.
2022-11-04 12:01:40.905 [REPO] Additional sources GP is not enabled.
2022-11-04 12:01:40.905 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2022-11-04 12:01:40.906 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
2022-11-04 12:01:40.906 [CORE] Admin settings was not found
2022-11-04 12:01:40.906 [CORE] Adding chain to pinning configuration [Microsoft Store Source]:
DigiCert Global Root G2 : PublicKey
  Microsoft Azure TLS Issuing CA 01 : Subject | Issuer
    sfdataservice.microsoft.com : Subject | Issuer
2022-11-04 12:01:40.906 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2022-11-04 12:01:40.906 [YAML] Detected UTF-8
2022-11-04 12:01:40.906 [REPO] Named source requested, found: msstore
2022-11-04 12:01:40.907 [REPO] Additional sources GP is not enabled.
2022-11-04 12:01:40.907 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2022-11-04 12:01:40.908 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
2022-11-04 12:01:40.908 [CORE] Admin settings was not found
2022-11-04 12:01:40.908 [CORE] Adding chain to pinning configuration [Microsoft Store Source]:
DigiCert Global Root G2 : PublicKey
  Microsoft Azure TLS Issuing CA 01 : Subject | Issuer
    sfdataservice.microsoft.com : Subject | Issuer
2022-11-04 12:01:40.908 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2022-11-04 12:01:40.908 [YAML] Detected UTF-8
2022-11-04 12:01:40.908 [REPO] Named source to be updated, found: msstore
2022-11-04 12:01:40.908 [CORE] Setting action: Set, Type: Standard, Name: sources_metadata
2022-11-04 12:01:41.021 [REPO] Additional sources GP is not enabled.
2022-11-04 12:01:41.021 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2022-11-04 12:01:41.021 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
2022-11-04 12:01:41.021 [CORE] Admin settings was not found
2022-11-04 12:01:41.021 [CORE] Adding chain to pinning configuration [Microsoft Store Source]:
DigiCert Global Root G2 : PublicKey
  Microsoft Azure TLS Issuing CA 01 : Subject | Issuer
    sfdataservice.microsoft.com : Subject | Issuer
2022-11-04 12:01:41.021 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2022-11-04 12:01:41.022 [YAML] Detected UTF-8
2022-11-04 12:01:41.022 [REPO] Named source requested, found: winget
2022-11-04 12:01:41.025 [REPO] Additional sources GP is not enabled.
2022-11-04 12:01:41.025 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2022-11-04 12:01:41.025 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
2022-11-04 12:01:41.025 [CORE] Admin settings was not found
2022-11-04 12:01:41.025 [CORE] Adding chain to pinning configuration [Microsoft Store Source]:
DigiCert Global Root G2 : PublicKey
  Microsoft Azure TLS Issuing CA 01 : Subject | Issuer
    sfdataservice.microsoft.com : Subject | Issuer
2022-11-04 12:01:41.025 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2022-11-04 12:01:41.025 [YAML] Detected UTF-8
2022-11-04 12:01:41.025 [REPO] Named source to be updated, found: winget
2022-11-04 12:01:41.171 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFF312649C5: (caller: 00007FFF312D8D2F) Exception(1) tid(580) 8051100F 
2022-11-04 12:01:41.171 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(53)\WindowsPackageManager.dll!00007FFF313EF411: (caller: 00007FFF312CAF8C) LogHr(1) tid(580) 8051100F     Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFF312649C5: (caller: 00007FFF312D8D2F) Exception(1) tid(580) 8051100F ] 

2022-11-04 12:01:41.171 [REPO] Source add/update failed, waiting a bit and retrying: winget
2022-11-04 12:01:43.216 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFF312649C5: (caller: 00007FFF312D8D2F) Exception(2) tid(580) 8051100F 
2022-11-04 12:01:43.216 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(650)\WindowsPackageManager.dll!00007FFF313EF041: (caller: 00007FFF311E0D98) LogHr(2) tid(580) 8051100F     Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFF312649C5: (caller: 00007FFF312D8D2F) Exception(2) tid(580) 8051100F ] 

2022-11-04 12:01:43.216 [REPO] Failed to update source: winget
2022-11-04 12:01:43.453 [CLI ] Leaf command succeeded: root:source:update

Env:

C:\>winget --info
Windows-Paket-Manager (Vorschau) v1.4.2161-preview
Copyright (c) Microsoft Corporation. Alle Rechte vorbehalten.

Windows: Windows.Desktop v10.0.19045.2193
Systemarchitektur: X64
Paket: Microsoft.DesktopAppInstaller v1.19.2161.0

Protokolle: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir

Links
-----------------------------------------------------------------------------------------
Datenschutzerklärung              https://aka.ms/winget-privacy
Lizenzvereinbarung                https://aka.ms/winget-license
Hinweise von Drittanbietern       https://aka.ms/winget-3rdPartyNotice
Startseite                        https://aka.ms/winget
Windows Store Nutzungsbedingungen https://www.microsoft.com/en-us/storedocs/terms-of-sale

@Romanitho
Copy link

+1

@Ikepuska
Copy link

Ikepuska commented Nov 4, 2022

I'm also having this issue. So I dug deeper into what was happening

>winget source list
Name    Argument
-----------------------------------------------------
msstore https://storeedgefd.dsx.mp.microsoft.com/v9.0
winget  https://cdn.winget.microsoft.com/cache

And then attempted to get the response of the cache directly which resulted in:

<Error>
<Code>ResourceNotFound</Code>
<Message>The specified resource does not exist. RequestId:2dba6797-a01e-0039-5544-f0e9c3000000 Time:2022-11-04T11:54:57.0542948Z</Message>
</Error>

So it looks like a problem on the CDN?
Looking at other issues, #2664 may be related or a precursor as issues were developing with the cache?

@casperdcl
Copy link

casperdcl commented Nov 4, 2022

Fix:

Edit: winget source reset --force seems to have worked:

It doesn't work - your output still notes that the winget source is broken. Only the msstore source is working.

There are dozens of related issues on this repo (e.g #2664), not sure how many are duplicates because I've seen different error codes in logs.

I have the same issue.

Possible steps to reproduce (maybe red herring, could just be coincidence)
  1. ran winget upgrade --all
    • there were 2 updates; the 1st update downloaded
    • I clicked No in the installation prompt
    • winget CLI correctly said an error occurred
    • winget continued to download the 2nd update; I clicked Yes and installed it
  2. ran winget upgrade --all again
    • Failed in attempting to update the source: winget
    • still found the 1st update in cache & prompted to install
    • I clicked Yes this time
  1. all future winget commands now say Failed in attempting to update the source: winget / Failed in attempting to update the source: winget / Failed when searching source: winget / An unexpected error occurred while executing the command: / 0x8a15000f : Data required by the source is missing
    • Tried resetting winget data in Settings > Apps > Installed apps
    • Tried uninstalling winget in Settings > Apps > Installed apps
    • Tried installing different versions from releases
    • btw winget doesn't appear in Settings > Apps > Installed apps now anymore (but I can still run winget on the CLI, and "App Installer" is installed in the Microsoft Store)
    • Tried deleting %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe (so winget regenerates it)

Questions

Are there some keys in the registry which need correcting?
Alternatively, is the source URL wrong?
Also, how to install Microsoft.winget.source_8wekyb3d8bbwe (related to #2421)?

> winget source reset --force
> winget source list
Name    Argument
-----------------------------------------------------
msstore https://storeedgefd.dsx.mp.microsoft.com/v9.0
winget  https://cdn.winget.microsoft.com/cache
> winget list
Failed in attempting to update the source: winget
Failed when searching source; results will not be included: winget
...
# does NOT list Microsoft.winget.source_8wekyb3d8bbwe
...

@pcrepeau
Copy link

pcrepeau commented Nov 4, 2022

When I try to manually download the source.msix file from https://cdn.winget.microsoft.com/cache/source.msix this results in a 0kb file. Seems like this may be the problem. The source has no content.

@fl0aten
Copy link

fl0aten commented Nov 4, 2022

+1 Same error with different winget versions:

2022-11-04 14:19:29.673 [CORE] WinGet, version [1.4.2161-preview], activity [{41828DCB-4ABD-4396-9C60-5761A3E7421E}]
2022-11-04 14:19:29.674 [CORE] OS: Windows.Desktop v10.0.22621.755
2022-11-04 14:19:29.674 [CORE] Command line Args: winget  source update
2022-11-04 14:19:29.674 [CORE] Package: Microsoft.DesktopAppInstaller v1.19.2161.0
2022-11-04 14:19:29.674 [CORE] IsCOMCall:0; Caller: winget-cli
2022-11-04 14:19:29.676 [CLI ] WinGet invoked with arguments: 'source' 'update'
2022-11-04 14:19:29.676 [CLI ] Found subcommand: source
2022-11-04 14:19:29.676 [CLI ] Found subcommand: update
2022-11-04 14:19:29.676 [CLI ] Leaf command to execute: root:source:update
2022-11-04 14:19:29.676 [CLI ] Executing command: update
2022-11-04 14:19:29.686 [REPO] GetCurrentSourceRefs: Source named 'microsoft.builtin.desktop.frameworks' from origin Default is hidden and is dropped.
2022-11-04 14:19:29.693 [REPO] Named source requested, found: msstore
2022-11-04 14:19:29.694 [REPO] Named source to be updated, found: msstore
2022-11-04 14:19:29.801 [REPO] Named source requested, found: winget
2022-11-04 14:19:29.802 [REPO] Named source to be updated, found: winget
2022-11-04 14:19:29.927 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFDA71649C5: (caller: 00007FFDA71D8D2F) Exception(1) tid(4758) 8051100F 
2022-11-04 14:19:29.927 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(53)\WindowsPackageManager.dll!00007FFDA72EF411: (caller: 00007FFDA71CAF8C) LogHr(1) tid(4758) 8051100F     Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFDA71649C5: (caller: 00007FFDA71D8D2F) Exception(1) tid(4758) 8051100F ] 

2022-11-04 14:19:29.927 [REPO] Source add/update failed, waiting a bit and retrying: winget
2022-11-04 14:19:31.956 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFDA71649C5: (caller: 00007FFDA71D8D2F) Exception(2) tid(4758) 8051100F 
2022-11-04 14:19:31.956 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(650)\WindowsPackageManager.dll!00007FFDA72EF041: (caller: 00007FFDA70E0D98) LogHr(2) tid(4758) 8051100F     Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFDA71649C5: (caller: 00007FFDA71D8D2F) Exception(2) tid(4758) 8051100F ] 

2022-11-04 14:19:31.956 [REPO] Failed to update source: winget
2022-11-04 14:19:31.960 [CLI ] Leaf command succeeded: root:source:update

@TechnicaVivunt
Copy link

+1 Also same error across multiple machines (4 tested).

@casperdcl
Copy link

Seems like this may be the problem. The source has no content.

What's the source URL given by winget source list on a working machine?

@ItzLevvie
Copy link

What's the source URL given by winget source list on a working machine?

It should be https://cdn.winget.microsoft.com/cache which is the same as https://winget.azureedge.net/cache

source.msix part is automatically added by winget-cli in the code so you won't see the source.msix part in winget source list but it'll show up in your logs.

CDN for the production environment has been having a bunch of issue over the past couple of weeks.

PPE, INT, & TEST doesn't seem to be affected.

@casperdcl

This comment was marked as duplicate.

@mivsvit
Copy link

mivsvit commented Nov 4, 2022

..as other have pointed out, this is because a 0 byte file is being returned by the Azure Content Delivery Network (see RawContentLength : 0 below). It's not a reachability or client issue.:

PS C:\Users\UserName\Downloads> wget https://cdn.winget.microsoft.com/cache/source.msix


StatusCode        : 200
StatusDescription : OK
Content           : {}
RawContent        : HTTP/1.1 200 OK
                    Age: 60672
                    Content-MD5: fDzGv2IMVnqEbTVA5MDliA==
                    X-Cache: HIT
                    x-ms-blob-type: BlockBlob
                    x-ms-lease-status: unlocked
                    x-ms-meta-da7b2905_0f3c_4262_921c_b1593d1336f1_ESRP_RequestId:...
Headers           : {[Age, 60672], [Content-MD5, fDzGv2IMVnqEbTVA5MDliA==], [X-Cache, HIT], [x-ms-blob-type,
                    BlockBlob]...}
RawContentLength  : 0

winget.azureedge.net is a CNAME for cdn.winget.microsoft.com, results are the same.

@Aaron-Pool
Copy link

So, after reading through this thread, this sounds like an actual outage issue/bug with the winget cdn, and not a configuration issue on my system? Is that correct?

@ShaguarWKL
Copy link

ShaguarWKL commented Nov 4, 2022

CDN for the production environment has been having a bunch of issue over the past couple of weeks.

PPE, INT, & TEST doesn't seem to be affected.

@ItzLevvie do you have the URL for the working repositories? I had a catastrophic failure on my drive and had to install a brand new OS. Can't install anything back with Winget for my powershell needs right now.

Much appreciated.

@ItzLevvie
Copy link

ItzLevvie commented Nov 4, 2022

cc @ShaguarWKL: You could probably use winget-ppe as a temporary solution. Run winget source add --name winget-ppe --arg https://winget-ppe.azureedge.net/cache

I do want to point out that there are several packages missing from that source; some of them are outdated; and for some of them — you will also likely run into hash errors.

winget-ppe (as well as winget-int and winget-test) is also not meant for production usage. It's used by WinGet developers for testing purposes only.

It's recommended to wait until the winget source is back online to ensure you're downloading the latest software.

@mess-maker
Copy link

should have read that first :/
I had the same issue this morning
followed all the troubleshooting that I can find with no result (close to what #2666 (comment) list)

ended up with a clean full reinstall of windows for the same result...
damn lost 3 hr of my life

@lucasgmalheiros
Copy link

lucasgmalheiros commented Nov 4, 2022

should have read that first :/ I had the same issue this morning followed all the troubleshooting that I can find with no result (close to what #2666 (comment) list)

ended up with a clean full reinstall of windows for the same result... damn lost 3 hr of my life

Yeah, almost did that as this error came a day after I fresh installed Win10 due to boot and SSD issues, but I remembered to try system recovery and it did not help either (fortunately you can always undo the system restore).

@eichmeyer
Copy link

+1

winget source update
Alle Quellen werden aktualisiert...
Quelle wird aktualisiert: msstore...
Fertig
Quelle wird aktualisiert: winget...
Abgebrochen

@mcottone
Copy link

mcottone commented Nov 5, 2022

same here / should of read this post first before wasting my day troubleshooting.

Can someone please confirm that the winget services is having issues and it's not me or my computer.
Tried winget on three different machines and it's still not running "winget update" correctly.

@TechnicaVivunt
Copy link

TechnicaVivunt commented Nov 5, 2022 via email

@trparky
Copy link

trparky commented Nov 5, 2022

Well, at least I know that my system isn't broken. However, does anyone have an idea of when this issue will be fixed?

@Vzz1c
Copy link

Vzz1c commented Nov 5, 2022

The same question

@codewater30
Copy link

should have read that first :/ I had the same issue this morning followed all the troubleshooting that I can find with no result (close to what #2666 (comment) list)

ended up with a clean full reinstall of windows for the same result... damn lost 3 hr of my life

damn, we both lost 3 hrs in our life, but mine on searching the whole internet

@Bugrakca
Copy link

Bugrakca commented Nov 5, 2022

Same here. I tried every recommendation for this issue but had no luck. I can't even get verbose logs.

> winget upgrade --verbose-logs
Failed in attempting to update the source: winget
Failed when searching source; results will not be included: winget
No installed package found matching input criteria.

Temporary Fix:
I used US VPN and it worked. It might be winget server issue I have no idea.

@denelon
Copy link
Contributor

denelon commented Nov 10, 2022

The cache may be outdated because the client couldn't connect to download the latest preIndexed package. The winget settings will show what the TTL is set to (default is 5 minutes). winget source update should refresh the cache regardless of the TTL setting.

DO may have policies affecting the behavior of WinGet. If you run winget --info any policies will be displayed associated with WinGet (App Installer).

@Viqsi
Copy link

Viqsi commented Nov 10, 2022

The CDN still has some flakiness issues, it seems; I had to use the "force a different IP" workaround to get things working here just now. Location is US (specifically, central Ohio); IP served was 152.195.19.97. I switched to 152.199.52.147 as suggested above (by way of the new Hosts File Editor in PowerToys; good stuff :) ) and that temporarily mitigated the problem.

@ghost
Copy link

ghost commented Nov 10, 2022

resolved in US, now working

winget source update                                                                   06:57 PM
Updating all sources...
Updating source: msstore...
Done
Updating source: winget...
  ██████████████████████████████  100%
Done

@denelon
Copy link
Contributor

denelon commented Nov 11, 2022

Hey everyone. We've been digging through the root cause and believe we may have gotten to the bottom.

Publishing has been re-enabled back to its normal automatic cadence.

winget source update should refresh the cache. There should no longer be any 0 byte files served.

In administrator mode winget source reset --force will force reset both the "winget" and "msstore" sources. I'll keep this issue open a bit longer to see if we get any newer reports of reproduction.

@srevo
Copy link

srevo commented Nov 11, 2022

Still getting error from US:

winget source reset --force
Resetting all sources...Done

winget source update

Updating all sources...
Updating source: msstore...
Done
Updating source: winget...
Cancelled

@denelon
Copy link
Contributor

denelon commented Nov 11, 2022

@srevo can you run the commands with "--verbose-logs" and share them?

@srevo
Copy link

srevo commented Nov 11, 2022

@srevo can you run the commands with "--verbose-logs" and share them?

I've run winget source update --verbose-logs


022-11-10 18:40:05.385 [CORE] WinGet, version [1.3.2691], activity [{E6F1020C-A0E1-4AD6-95F7-2D2448EE400E}]
2022-11-10 18:40:05.386 [CORE] OS: Windows.Desktop v10.0.22000.1219
2022-11-10 18:40:05.386 [CORE] Command line Args: "C:\Users\joeblow\AppData\Local\Microsoft\WindowsApps\winget.exe" source update --verbose-logs
2022-11-10 18:40:05.386 [CORE] Package: Microsoft.DesktopAppInstaller v1.18.2691.0
2022-11-10 18:40:05.386 [CORE] IsCOMCall:0; Caller: winget-cli
2022-11-10 18:40:05.390 [CLI ] WinGet invoked with arguments: 'source' 'update' '--verbose-logs'
2022-11-10 18:40:05.391 [CLI ] Found subcommand: source
2022-11-10 18:40:05.391 [CLI ] Found subcommand: update
2022-11-10 18:40:05.391 [CLI ] Leaf command to execute: root:source:update
2022-11-10 18:40:05.391 [CLI ] Executing command: update
2022-11-10 18:40:05.393 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2022-11-10 18:40:05.394 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2022-11-10 18:40:05.394 [YAML] Detected UTF-8
2022-11-10 18:40:05.394 [REPO] GetCurrentSourceRefs: Source named 'microsoft.builtin.desktop.frameworks' from origin Default is hidden and is dropped.
2022-11-10 18:40:05.406 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2022-11-10 18:40:05.406 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2022-11-10 18:40:05.406 [YAML] Detected UTF-8
2022-11-10 18:40:05.406 [REPO] Named source requested, found: msstore
2022-11-10 18:40:05.407 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2022-11-10 18:40:05.407 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2022-11-10 18:40:05.407 [YAML] Detected UTF-8
2022-11-10 18:40:05.408 [REPO] Named source to be updated, found: msstore
2022-11-10 18:40:05.408 [CORE] Setting action: Set, Type: Standard, Name: sources_metadata
2022-11-10 18:40:05.523 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2022-11-10 18:40:05.523 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2022-11-10 18:40:05.523 [YAML] Detected UTF-8
2022-11-10 18:40:05.524 [REPO] Named source requested, found: winget
2022-11-10 18:40:05.526 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2022-11-10 18:40:05.527 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2022-11-10 18:40:05.527 [YAML] Detected UTF-8
2022-11-10 18:40:05.527 [REPO] Named source to be updated, found: winget
2022-11-10 18:40:05.832 [FAIL] D:\a_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FF99D5B65C7: (caller: 00007FF99D61F80F) Exception(1) tid(197c) 8051100F
2022-11-10 18:40:05.832 [FAIL] D:\a_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(53)\WindowsPackageManager.dll!00007FF99D72F321: (caller: 00007FF99D612D1C) LogHr(1) tid(197c) 8051100F Msg:[D:\a_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FF99D5B65C7: (caller: 00007FF99D61F80F) Exception(1) tid(197c) 8051100F ]

2022-11-10 18:40:05.832 [REPO] Source add/update failed, waiting a bit and retrying: winget
2022-11-10 18:40:07.889 [FAIL] D:\a_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FF99D5B65C7: (caller: 00007FF99D61F80F) Exception(2) tid(197c) 8051100F
2022-11-10 18:40:07.889 [FAIL] D:\a_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(634)\WindowsPackageManager.dll!00007FF99D72EF51: (caller: 00007FF99D53B8F3) LogHr(2) tid(197c) 8051100F Msg:[D:\a_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FF99D5B65C7: (caller: 00007FF99D61F80F) Exception(2) tid(197c) 8051100F ]

2022-11-10 18:40:07.889 [REPO] Failed to update source: winget
2022-11-10 18:40:07.951 [CLI ] Leaf command succeeded: root:source:update

@denelon
Copy link
Contributor

denelon commented Nov 11, 2022

winget --info displays the log location.

@srevo
Copy link

srevo commented Nov 11, 2022

@srevo can you run the commands with "--verbose-logs" and share them?

I've run winget source update --verbose-logs

022-11-10 18:40:05.385 [CORE] WinGet, version [1.3.2691], activity [{E6F1020C-A0E1-4AD6-95F7-2D2448EE400E}] 2022-11-10 18:40:05.386 [CORE] OS: Windows.Desktop v10.0.22000.1219 2022-11-10 18:40:05.386 [CORE] Command line Args: "C:\Users\joeblow\AppData\Local\Microsoft\WindowsApps\winget.exe" source update --verbose-logs 2022-11-10 18:40:05.386 [CORE] Package: Microsoft.DesktopAppInstaller v1.18.2691.0 2022-11-10 18:40:05.386 [CORE] IsCOMCall:0; Caller: winget-cli 2022-11-10 18:40:05.390 [CLI ] WinGet invoked with arguments: 'source' 'update' '--verbose-logs' 2022-11-10 18:40:05.391 [CLI ] Found subcommand: source 2022-11-10 18:40:05.391 [CLI ] Found subcommand: update 2022-11-10 18:40:05.391 [CLI ] Leaf command to execute: root:source:update 2022-11-10 18:40:05.391 [CLI ] Executing command: update 2022-11-10 18:40:05.393 [CORE] Setting action: Get, Type: Secure, Name: user_sources 2022-11-10 18:40:05.394 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata 2022-11-10 18:40:05.394 [YAML] Detected UTF-8 2022-11-10 18:40:05.394 [REPO] GetCurrentSourceRefs: Source named 'microsoft.builtin.desktop.frameworks' from origin Default is hidden and is dropped. 2022-11-10 18:40:05.406 [CORE] Setting action: Get, Type: Secure, Name: user_sources 2022-11-10 18:40:05.406 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata 2022-11-10 18:40:05.406 [YAML] Detected UTF-8 2022-11-10 18:40:05.406 [REPO] Named source requested, found: msstore 2022-11-10 18:40:05.407 [CORE] Setting action: Get, Type: Secure, Name: user_sources 2022-11-10 18:40:05.407 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata 2022-11-10 18:40:05.407 [YAML] Detected UTF-8 2022-11-10 18:40:05.408 [REPO] Named source to be updated, found: msstore 2022-11-10 18:40:05.408 [CORE] Setting action: Set, Type: Standard, Name: sources_metadata 2022-11-10 18:40:05.523 [CORE] Setting action: Get, Type: Secure, Name: user_sources 2022-11-10 18:40:05.523 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata 2022-11-10 18:40:05.523 [YAML] Detected UTF-8 2022-11-10 18:40:05.524 [REPO] Named source requested, found: winget 2022-11-10 18:40:05.526 [CORE] Setting action: Get, Type: Secure, Name: user_sources 2022-11-10 18:40:05.527 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata 2022-11-10 18:40:05.527 [YAML] Detected UTF-8 2022-11-10 18:40:05.527 [REPO] Named source to be updated, found: winget 2022-11-10 18:40:05.832 [FAIL] D:\a_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FF99D5B65C7: (caller: 00007FF99D61F80F) Exception(1) tid(197c) 8051100F 2022-11-10 18:40:05.832 [FAIL] D:\a_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(53)\WindowsPackageManager.dll!00007FF99D72F321: (caller: 00007FF99D612D1C) LogHr(1) tid(197c) 8051100F Msg:[D:\a_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FF99D5B65C7: (caller: 00007FF99D61F80F) Exception(1) tid(197c) 8051100F ]

2022-11-10 18:40:05.832 [REPO] Source add/update failed, waiting a bit and retrying: winget 2022-11-10 18:40:07.889 [FAIL] D:\a_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FF99D5B65C7: (caller: 00007FF99D61F80F) Exception(2) tid(197c) 8051100F 2022-11-10 18:40:07.889 [FAIL] D:\a_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(634)\WindowsPackageManager.dll!00007FF99D72EF51: (caller: 00007FF99D53B8F3) LogHr(2) tid(197c) 8051100F Msg:[D:\a_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FF99D5B65C7: (caller: 00007FF99D61F80F) Exception(2) tid(197c) 8051100F ]

2022-11-10 18:40:07.889 [REPO] Failed to update source: winget 2022-11-10 18:40:07.951 [CLI ] Leaf command succeeded: root:source:update

I'm getting errors on my windows 10 machines too. This issue doesn't appear to be resolved.

@github-account1111
Copy link

github-account1111 commented Nov 11, 2022

The winget settings file is empty:

{
    "$schema": "https://aka.ms/winget-settings.schema.json",

    // For documentation on these settings, see: https://aka.ms/winget-settings
    // "source": {
    //    "autoUpdateIntervalInMinutes": 5
    // },
}

DO may have policies affecting the behavior of WinGet. If you run winget --info any policies will be displayed associated with WinGet (App Installer).

Would they just be output into console if such policies exist?
I don't see anything out of the ordinary:

> winget --info
Windows Package Manager (Preview) v1.4.2161-preview
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19044.2130
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.19.2161.0

Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir

winget source update --verbose-logs
winget upgrade --all --verbose-logs
winget upgrade --verbose-logs

@Lusiiky
Copy link

Lusiiky commented Nov 11, 2022

Hi!

Same here:
Updating source: winget... Cancelled

Verbose logs:

2022-11-11 07:45:02.338 [CORE] OS: Windows.Desktop v10.0.22621.819
2022-11-11 07:45:02.338 [CORE] Command line Args: winget  source update --verbose-logs
2022-11-11 07:45:02.338 [CORE] Package: Microsoft.DesktopAppInstaller v1.18.2691.0
2022-11-11 07:45:02.338 [CORE] IsCOMCall:0; Caller: winget-cli
2022-11-11 07:45:02.343 [CLI ] WinGet invoked with arguments: 'source' 'update' '--verbose-logs'
2022-11-11 07:45:02.343 [CLI ] Found subcommand: source
2022-11-11 07:45:02.343 [CLI ] Found subcommand: update
2022-11-11 07:45:02.343 [CLI ] Leaf command to execute: root:source:update
2022-11-11 07:45:02.343 [CLI ] Executing command: update
2022-11-11 07:45:02.347 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2022-11-11 07:45:02.358 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2022-11-11 07:45:02.359 [YAML] Detected UTF-8
2022-11-11 07:45:02.359 [REPO] GetCurrentSourceRefs: Source named 'microsoft.builtin.desktop.frameworks' from origin Default is hidden and is dropped.
2022-11-11 07:45:02.373 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2022-11-11 07:45:02.373 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2022-11-11 07:45:02.373 [YAML] Detected UTF-8
2022-11-11 07:45:02.374 [REPO] Named source requested, found: msstore
2022-11-11 07:45:02.375 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2022-11-11 07:45:02.375 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2022-11-11 07:45:02.375 [YAML] Detected UTF-8
2022-11-11 07:45:02.375 [REPO] Named source to be updated, found: msstore
2022-11-11 07:45:02.375 [CORE] Setting action: Set, Type: Standard, Name: sources_metadata
2022-11-11 07:45:02.479 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2022-11-11 07:45:02.479 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2022-11-11 07:45:02.479 [YAML] Detected UTF-8
2022-11-11 07:45:02.480 [REPO] Named source requested, found: winget
2022-11-11 07:45:02.481 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2022-11-11 07:45:02.481 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2022-11-11 07:45:02.481 [YAML] Detected UTF-8
2022-11-11 07:45:02.481 [REPO] Named source to be updated, found: winget
2022-11-11 07:45:02.670 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFE250965C7: (caller: 00007FFE250FF80F) Exception(1) tid(bfc) 8051100F 
2022-11-11 07:45:02.671 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(53)\WindowsPackageManager.dll!00007FFE2520F321: (caller: 00007FFE250F2D1C) LogHr(1) tid(bfc) 8051100F     Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFE250965C7: (caller: 00007FFE250FF80F) Exception(1) tid(bfc) 8051100F ] 

2022-11-11 07:45:02.671 [REPO] Source add/update failed, waiting a bit and retrying: winget
2022-11-11 07:45:04.723 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFE250965C7: (caller: 00007FFE250FF80F) Exception(2) tid(bfc) 8051100F 
2022-11-11 07:45:04.723 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(634)\WindowsPackageManager.dll!00007FFE2520EF51: (caller: 00007FFE2501B8F3) LogHr(2) tid(bfc) 8051100F     Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFE250965C7: (caller: 00007FFE250FF80F) Exception(2) tid(bfc) 8051100F ] 

2022-11-11 07:45:04.723 [REPO] Failed to update source: winget
2022-11-11 07:45:04.928 [CLI ] Leaf command succeeded: root:source:update```

@alecor191
Copy link

I have the same issue and same logs as Lupsoris. Using winget v1.3.2691 on Win11.

@kiview
Copy link

kiview commented Nov 11, 2022

Some users reported it as solved, but I still see this issue occur in Europe/Germany. Did I miss the workaround?

PS C:\Users\user> winget --info
Windows Package Manager v1.3.2691
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22621.755
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.18.2691.0

Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

@namzzz
Copy link

namzzz commented Nov 11, 2022

Some users reported it as solved, but I still see this issue occur in Europe/Germany. Did I miss the workaround?

Nope. Just have to wait for solution from MS.

@TheITCloudGuy
Copy link

Still getting this issue. Any response from Microsoft even acknowledging the issue?

@AnonymousWP
Copy link

I'm also still having this issue, EU-west 1. It's very annoying. The IP-address is Brazil works fine though.

@treysis
Copy link

treysis commented Nov 11, 2022

I don't see the issue anymore from Germany.

@srevo
Copy link

srevo commented Nov 11, 2022

Issue appears to be resolved. Tested OK in USA.

@Viqsi
Copy link

Viqsi commented Nov 11, 2022

Tested again this morning and working fine for me. USA (central Ohio), cdn.winget.microsoft.com resolves to 152.192.19.97 (as it did before). Seems like some nodes have caught up and some are still being twitchy - like a bad replication or something is slowly rippling its way through the whole CDN or something.

@Lusiiky
Copy link

Lusiiky commented Nov 11, 2022

Hi!

Same here: Updating source: winget... Cancelled

Verbose logs:

2022-11-11 07:45:02.338 [CORE] OS: Windows.Desktop v10.0.22621.819
2022-11-11 07:45:02.338 [CORE] Command line Args: winget  source update --verbose-logs
2022-11-11 07:45:02.338 [CORE] Package: Microsoft.DesktopAppInstaller v1.18.2691.0
2022-11-11 07:45:02.338 [CORE] IsCOMCall:0; Caller: winget-cli
2022-11-11 07:45:02.343 [CLI ] WinGet invoked with arguments: 'source' 'update' '--verbose-logs'
2022-11-11 07:45:02.343 [CLI ] Found subcommand: source
2022-11-11 07:45:02.343 [CLI ] Found subcommand: update
2022-11-11 07:45:02.343 [CLI ] Leaf command to execute: root:source:update
2022-11-11 07:45:02.343 [CLI ] Executing command: update
2022-11-11 07:45:02.347 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2022-11-11 07:45:02.358 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2022-11-11 07:45:02.359 [YAML] Detected UTF-8
2022-11-11 07:45:02.359 [REPO] GetCurrentSourceRefs: Source named 'microsoft.builtin.desktop.frameworks' from origin Default is hidden and is dropped.
2022-11-11 07:45:02.373 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2022-11-11 07:45:02.373 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2022-11-11 07:45:02.373 [YAML] Detected UTF-8
2022-11-11 07:45:02.374 [REPO] Named source requested, found: msstore
2022-11-11 07:45:02.375 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2022-11-11 07:45:02.375 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2022-11-11 07:45:02.375 [YAML] Detected UTF-8
2022-11-11 07:45:02.375 [REPO] Named source to be updated, found: msstore
2022-11-11 07:45:02.375 [CORE] Setting action: Set, Type: Standard, Name: sources_metadata
2022-11-11 07:45:02.479 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2022-11-11 07:45:02.479 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2022-11-11 07:45:02.479 [YAML] Detected UTF-8
2022-11-11 07:45:02.480 [REPO] Named source requested, found: winget
2022-11-11 07:45:02.481 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2022-11-11 07:45:02.481 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2022-11-11 07:45:02.481 [YAML] Detected UTF-8
2022-11-11 07:45:02.481 [REPO] Named source to be updated, found: winget
2022-11-11 07:45:02.670 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFE250965C7: (caller: 00007FFE250FF80F) Exception(1) tid(bfc) 8051100F 
2022-11-11 07:45:02.671 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(53)\WindowsPackageManager.dll!00007FFE2520F321: (caller: 00007FFE250F2D1C) LogHr(1) tid(bfc) 8051100F     Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFE250965C7: (caller: 00007FFE250FF80F) Exception(1) tid(bfc) 8051100F ] 

2022-11-11 07:45:02.671 [REPO] Source add/update failed, waiting a bit and retrying: winget
2022-11-11 07:45:04.723 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFE250965C7: (caller: 00007FFE250FF80F) Exception(2) tid(bfc) 8051100F 
2022-11-11 07:45:04.723 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(634)\WindowsPackageManager.dll!00007FFE2520EF51: (caller: 00007FFE2501B8F3) LogHr(2) tid(bfc) 8051100F     Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFE250965C7: (caller: 00007FFE250FF80F) Exception(2) tid(bfc) 8051100F ] 

2022-11-11 07:45:04.723 [REPO] Failed to update source: winget
2022-11-11 07:45:04.928 [CLI ] Leaf command succeeded: root:source:update```

Problem also solved here, Belgium - Europe.

@coding-totoro
Copy link

coding-totoro commented Nov 12, 2022

winget source list
Name Argument

msstore https://storeedgefd.dsx.mp.microsoft.com/v9.0
winget https://cdn.winget.microsoft.com/cache

winget source update --verbose-logs
Updating all sources...
Updating source: msstore...
Done
Updating source: winget...

█████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 1024 KB / 5.12 MB
███████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 2.00 MB / 5.12 MB
█████████████████▒▒▒▒▒▒▒▒▒▒▒▒▒ 3.00 MB / 5.12 MB
███████████████████████▒▒▒▒▒▒▒ 4.00 MB / 5.12 MB
█████████████████████████████▒ 5.00 MB / 5.12 MB
██████████████████████████████ 5.12 MB / 5.12 MB

â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’ 0%
â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’ 0%
█████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 1024 KB / 5.12 MB
███████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 2.00 MB / 5.12 MB
█████████████████▒▒▒▒▒▒▒▒▒▒▒▒▒ 3.00 MB / 5.12 MB
███████████████████████▒▒▒▒▒▒▒ 4.00 MB / 5.12 MB
█████████████████████████████▒ 5.00 MB / 5.12 MB
██████████████████████████████ 5.12 MB / 5.12 MB

â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’ 0%
â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’â–’ 0%
Done
winget upgrade --all --verbose-logs

Failed when searching source: winget
An unexpected error occurred while executing the command:
0x8a15000f : Data required by the source is missing
winget upgrade --verbose-logs

Failed when searching source; results will not be included: winget
No installed package found matching input criteria.

winget --info
Windows Package Manager v1.3.2691
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19045.2251
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.18.2691.0

Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir

Links

Privacy Statement https://aka.ms/winget-privacy
License Agreement https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

All machines hosted in east us 2

@AbitFishy
Copy link

US - North East, still not working, But my logs look different, I have "Access Denied" sprinkled about
WinGet-2022-11-12-17-06-42.132.log
do I have a different problem? Opening the cache in a web browser is still a "ResourceNotFound" error

@denelon
Copy link
Contributor

denelon commented Nov 14, 2022

Hello everyone.

We've made several changes to our deployments to address the problems here. There were some changes to the way we publish to Azure storage, and permissions on some of the files as well as the CDN configuration. We believe this has all been mitigated with respect to the zero-byte file.

We're still tracking:

We switched temporarily to a manual CDN purge for a couple of days while we worked through the issue. We have also added the ability to purge the CDN with each publish run, but the code is behind a feature toggle and is currently disabled. If we need to resort to that in the future, it will cause a few minutes of delay for each publish run, but it's available in the event we need it.

I'm going to go ahead and close this issue due to the number of people following this and getting e-mail notifications. If you are still encountering trouble, please create a new issue, or find one that appears to be the same so we can try to help with those other classes of issues.

@KeilChris
Copy link

Some users reported it as solved, but I still see this issue occur in Europe/Germany. Did I miss the workaround?

PS C:\Users\user> winget --info
Windows Package Manager v1.3.2691
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22621.755
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.18.2691.0

Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

I see the same here in Germany today. Still not working. Resolution of cdn.* to IP address is OK, but the upgrade command does not work.

@ghost
Copy link

ghost commented Nov 15, 2022

Hi!
I still have maybe the same issue. It is still asking...


Die Quelle "msstore" erfordert, dass Sie die folgenden Verträge vor der Verwendung anzeigen.
Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction
Die Quelle erfordert, dass die geografische Region des aktuellen Computers aus 2 Buchstaben an den Back-End-Dienst gesendet wird, damit er ordnungsgemäß funktioniert (z. B. „US“).

Stimmen Sie allen Nutzungsbedingungen der Quelle zu?


...but I do not get possibility to enter "Y (yes) or N (no)".

Any ideas?

@microsoft microsoft locked as resolved and limited conversation to collaborators Nov 15, 2022
@denelon denelon added this to the v1.4-Client milestone Nov 22, 2022
@denelon denelon unpinned this issue Nov 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

No branches or pull requests