microsoft / microsoft/winget-pkgs
[Package Issue]: Microsoft.ServiceFabricSDK - `winget configure` yields "The group or resource is not in the correct state"
Open
Nobody has claimed this yet.
Issue-Bug
Needs-Attention
- Dominant language
- No language data
- Stars
- 11.1k
- Forks
- 9.7k
- Avg merge
- 1h 32m
- Merged PRs (30d)
- 376
Description
Please confirm these before moving forward
- I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
- I have not been informed if the issue is resolved in a preview version of the winget client.
Category of the issue
Installation issue.
Brief description of your issue
When winget configure, process fails to install Microsoft.ServiceFabricSDK:
Apply :: WinGetPackage [installServiceFabricSDK]
The configuration unit failed while attempting to apply the desired state.
WinGetPackage Failed installing Microsoft.ServiceFabricSDK. InstallStatus 'DownloadError' InstallerErrorCode '0' ExtendedError '-1978334960'
<See the log file for additional details>
Some of the configuration was not applied successfully.
with log
[FAIL] C:\__w\1\s\external\pkg\src\AppInstallerCLICore\ExecutionContext.cpp(432)\WindowsPackageManager.dll!00007FFE434632C2: (caller: 00007FFE434F4311) Exception(12) tid(29a8) 8007139F The group or resource is not in the correct state to perform the requested operation.
Steps to reproduce
configuration.dsc.yaml:
# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2
properties:
assertions:
- resource: Microsoft.Windows.Developer/OsVersion
directives:
description: Verify min OS version requirement
allowPrerelease: true
settings:
MinVersion: "10.0.22631"
resources:
- resource: Microsoft.Windows.Developer/DeveloperMode
directives:
description: Enable Developer Mode
allowPrerelease: true
settings:
Ensure: Present
- resource: Microsoft.WinGet.DSC/WinGetPackage
directives:
description: Install Service Fabric SDK
allowPrerelease: true
id: installServiceFabricSDK
settings:
id: Microsoft.ServiceFabricSDK
source: winget
version: "7.0.1949.9590"
installMode: Default
configurationVersion: "0.2.0"
Run as administrator:
winget configure -f .\configuration.dsc.yaml
Actual behavior
winget configure output:
Assert :: OsVersion
Verify min OS version requirement
Module: Microsoft.Windows.Developer by Microsoft Corporation [Local]
DSC Resource for Windows
Settings:
MinVersion: 10.0.22631
Apply :: DeveloperMode
Enable Developer Mode
Module: Microsoft.Windows.Developer by Microsoft Corporation [Local]
DSC Resource for Windows
Settings:
Ensure: Present
Apply :: WinGetPackage [installServiceFabricSDK]
Install Service Fabric SDK
Module: Microsoft.WinGet.DSC by Microsoft Corporation [Local]
https://github.com/microsoft/winget-cli
PowerShell Module with DSC resources related to WinGet configurations
Settings:
version: 7.0.1949.9590
id: Microsoft.ServiceFabricSDK
installMode: Default
source: winget
You are responsible for understanding the configuration settings you are choosing to execute. Microsoft is not responsible for the configuration file you have authored or imported. This configuration may change settings in Windows, install software, change software settings (including security settings), and accept user agreements to third-party packages and services on your behalf. By running this configuration file, you acknowledge that you understand and agree to these resources and settings. Any applications installed are licensed to you by their owners. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages or services.
Have you reviewed the configuration and would you like to proceed applying it to the system?
[Y] Yes [N] No: yes
Assert :: OsVersion
Configuration successfully applied.
Apply :: DeveloperMode
Configuration successfully applied.
Apply :: WinGetPackage [installServiceFabricSDK]
The configuration unit failed while attempting to apply the desired state.
WinGetPackage Failed installing Microsoft.ServiceFabricSDK. InstallStatus 'DownloadError' InstallerErrorCode '0' ExtendedError '-1978334960'
<See the log file for additional details>
Some of the configuration was not applied successfully.
WinGetCOM log:
[FAIL] C:\__w\1\s\external\pkg\src\AppInstallerCLICore\ExecutionContext.cpp(377)\WindowsPackageManager.dll!00007FFAF618E3D2: (caller: 00007FFAF6211BCE) Exception(86) tid(17dc) 8007139F The group or resource is not in the correct state to perform the requested operation.
Expected behavior
Installs successfully.
Environment
Windows Package Manager v1.7.10582
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.22631.3155
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.22.10582.0
Screenshots and Logs
Full WinGetCOM log:
2024-03-10 13:39:38.898 [CORE] Passed in Correlation Vector Json is invalid: ; Error: * Line 1, Column 1
Syntax error: value, object or array expected.
2024-03-10 13:39:38.898 [CORE] WinGet, version [1.7.10582], activity [{CCEB6832-7F13-4CEB-88DE-3D5F11BF4E11}]
2024-03-10 13:39:38.899 [CORE] OS: Windows.Desktop v10.0.22631.3155
2024-03-10 13:39:38.899 [CORE] Command line Args: "C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_1.22.10582.0_x64__8wekyb3d8bbwe\WindowsPackageManagerServer.exe" -Embedding
2024-03-10 13:39:38.899 [CORE] Package: Microsoft.DesktopAppInstaller v1.22.10582.0
2024-03-10 13:39:38.899 [CORE] IsCOMCall:1; Caller: Microsoft.DesktopAppInstaller_8wekyb3d8bbwe
2024-03-10 13:39:39.356 [CLI ] Executing command: download
2024-03-10 13:39:39.364 [REPO] Opening database for ReadWrite at 'C:\Users\user\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Microsoft.Winget.Source_8wekyb3d8bbwe\installed.db'
2024-03-10 13:39:39.365 [REPO] Opened SQLite Index with version [1.6], last write [2024-03-08 13:04:21.000]
2024-03-10 13:39:39.400 [REPO] Finding installed package from available package using system reference search: Query:[none] Include:ProductCode='{0f770e99-3916-4b0c-8f9b-83822826bcbf}'[Exact] Include:ProductCode='{282975d8-55fe-4991-bbbb-06a72581ce58}'[Exact] Include:ProductCode='{295d1583-fdb9-414b-a4c8-da539362a26b}'[Exact] Include:ProductCode='{2aaf1df0-eb13-4099-9992-962bb4e596d1}'[Exact] Include:ProductCode='{2c673fb6-3e65-4751-965d-33d30b68a8a6}'[Exact] Include:ProductCode='{2d507699-404c-4c8b-a54a-38e352f32cdd}'[Exact] Include:ProductCode='{33628a12-6787-4b9f-95a1-92449f69fae0}'[Exact] Include:ProductCode='{3746f21b-c990-4045-bb33-1cf98cff7a68}'[Exact] Include:ProductCode='{40d3fee2-b257-46c2-bdc0-cb1088d97327}'[Exact] Include:ProductCode='{43d1ce82-6f55-4860-a938-20e5deb28b98}'[Exact] Include:ProductCode='{4b2f3795-f407-415e-88d5-8c8ab322909d}'[Exact] Include:ProductCode='{53f1dc9d-ed94-4650-a079-129785ce7905}'[Exact] Include:ProductCode='{57a73df6-4ba9-4c1d-bbbb-517289ff6c13}'[Exact] Include:ProductCode='{5c6cccca-61ec-4667-a8d9-e133a59a5a73}'[Exact] Include:ProductCode='{69becc62-c3d6-4307-9fc5-738d92cdf886}'[Exact] Include:ProductCode='{71af7464-a4a9-4c71-b645-bef3577171be}'[Exact] Include:ProductCode='{7c829c52-b42c-4e7d-8078-6d2bf6235dab}'[Exact] Include:ProductCode='{7d607fb4-7e28-4c7a-a92f-3fcdaf555faf}'[Exact] Include:ProductCode='{855e31d2-9031-46e1-b06d-c9d7777deefb}'[Exact] Include:ProductCode='{9f7f52eb-dcd8-47d7-a48e-c1dc5f31fbca}'[Exact] Include:ProductCode='{ac8ae441-cfc2-41f2-bbca-7b6668740f8d}'[Exact] Include:ProductCode='{b8e12890-118d-4721-8e54-05d978086712}'[Exact] Include:ProductCode='{c2dfe55a-4c5a-4641-8158-8f0d7aec1c2d}'[Exact] Include:ProductCode='{c649ede4-f16a-4486-a117-dcc2f2a35165}'[Exact] Include:ProductCode='{d4cecf3b-b68f-4995-8840-52ea0fab646e}'[Exact] Include:ProductCode='{d992c12e-cab2-426f-bde3-fb8c53950b0d}'[Exact] Include:ProductCode='{fa7f6d52-f85e-48ef-8f56-a37268aa5772}'[Exact] Include:ProductCode='{fd9b6070-d13e-45dc-819b-41806bf45b6b}'[Exact] Include:NormalizedNameAndPublisher='microsoftvisualc2015redistributable'+'microsoft'[Exact] Include:NormalizedNameAndPublisher='microsoftvisualc2015redistributable(x64)'+'microsoft'[Exact] Include:NormalizedNameAndPublisher='microsoftvisualc2017redistributable'+'microsoft'[Exact] Include:NormalizedNameAndPublisher='microsoftvisualc2017redistributable(x64)'+'microsoft'[Exact] Include:NormalizedNameAndPublisher='microsoftvisualcredistributable'+'microsoft'[Exact] Include:NormalizedNameAndPublisher='microsoftvisualcredistributable(x64)'+'microsoft'[Exact]
2024-03-10 13:39:39.413 [REPO] Attempting to open pinning database: C:\Users\user\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\pinning.db
2024-03-10 13:39:39.414 [REPO] ... opening existing pinning database
2024-03-10 13:39:39.414 [REPO] Opening database for Read at 'C:\Users\user\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\pinning.db'
2024-03-10 13:39:39.415 [REPO] Opened Pinning Index with version [1.0], last write [2024-03-08 12:20:05.000]
2024-03-10 13:39:39.417 [REPO] Finding installed package from tracking package using system reference search: Query:[none] Include:NormalizedNameAndPublisher='microsoftazureservicefabric'+'microsoft'[Exact]
2024-03-10 13:39:39.428 [REPO] Finding installed package from available package using system reference search: Query:[none] Include:NormalizedNameAndPublisher='microsoftazureservicefabric'+'microsoft'[Exact]
2024-03-10 13:39:39.434 [REPO] Attempting to open pinning database: C:\Users\user\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\pinning.db
2024-03-10 13:39:39.434 [REPO] ... opening existing pinning database
2024-03-10 13:39:39.434 [REPO] Opening database for Read at 'C:\Users\user\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\pinning.db'
2024-03-10 13:39:39.434 [REPO] Opened Pinning Index with version [1.0], last write [2024-03-08 12:20:05.000]
2024-03-10 13:39:39.435 [REPO] Downloading manifest
2024-03-10 13:39:39.435 [CORE] WinINet downloading from url: https://cdn.winget.microsoft.com/cache/manifests/m/Microsoft/ServiceFabricRuntime/10.0.1949.9590/77be
2024-03-10 13:39:39.654 [CORE] Download hash: ec8ec36bda9340de68170d908c32c525636c7163bc847535b68d7822cc11bef4
2024-03-10 13:39:39.654 [CORE] Download completed.
2024-03-10 13:39:39.656 [CLI ] Manifest fields: Name [Microsoft Azure Service Fabric], Version [10.0.1949.9590]
2024-03-10 13:39:39.684 [CLI ] Package agreements accepted by CLI flag
2024-03-10 13:39:39.690 [CLI ] Generated temp download path: C:\Users\user\AppData\Local\Temp\WinGet\Microsoft.ServiceFabricRuntime.10.0.1949.9590\48e63b247272e996d6bda31e61af1cf9aec13bd155a586f01bc0507b72e8149f
2024-03-10 13:39:39.690 [CORE] Downloading to path: C:\Users\user\AppData\Local\Temp\WinGet\Microsoft.ServiceFabricRuntime.10.0.1949.9590\48e63b247272e996d6bda31e61af1cf9aec13bd155a586f01bc0507b72e8149f
2024-03-10 13:39:39.690 [CORE] DeliveryOptimization downloading from url: https://download.microsoft.com/download/b/8/a/b8a2fb98-0ec1-41e5-be98-9d8b5abf7856/MicrosoftServiceFabric.10.0.1949.9590.exe
2024-03-10 13:39:41.680 [CORE] Download completed.
2024-03-10 13:39:44.725 [CORE] Started applying motw to C:\Users\user\AppData\Local\Temp\WinGet\Microsoft.ServiceFabricRuntime.10.0.1949.9590\48e63b247272e996d6bda31e61af1cf9aec13bd155a586f01bc0507b72e8149f with zone: 3
2024-03-10 13:39:44.737 [CORE] Finished applying motw
2024-03-10 13:39:44.737 [CLI ] Installer hash verified
2024-03-10 13:39:44.737 [CORE] Started applying motw to C:\Users\user\AppData\Local\Temp\WinGet\Microsoft.ServiceFabricRuntime.10.0.1949.9590\48e63b247272e996d6bda31e61af1cf9aec13bd155a586f01bc0507b72e8149f with zone: 2
2024-03-10 13:39:44.746 [CORE] Finished applying motw
2024-03-10 13:39:44.746 [CLI ] Successfully renamed downloaded installer. Path: C:\Users\user\AppData\Local\Temp\WinGet\Microsoft.ServiceFabricRuntime.10.0.1949.9590\MicrosoftServiceFabric.10.0.1949.9590.exe
2024-03-10 13:39:44.746 [REPO] Creating new SQLite Index with version [Latest] at ':memory:'
2024-03-10 13:39:44.751 [REPO] Reading MSI UpgradeCodes
2024-03-10 13:39:44.823 [REPO] Reading MSI UpgradeCodes
2024-03-10 13:39:44.951 [CLI ] Installer args: /quiet /AcceptEULA
2024-03-10 13:39:44.952 [CLI ] Starting: 'C:\Users\user\AppData\Local\Temp\WinGet\Microsoft.ServiceFabricRuntime.10.0.1949.9590\MicrosoftServiceFabric.10.0.1949.9590.exe' with arguments '/quiet /AcceptEULA'
2024-03-10 13:40:22.310 [REPO] Creating new SQLite Index with version [Latest] at ':memory:'
2024-03-10 13:40:22.315 [REPO] Reading MSI UpgradeCodes
2024-03-10 13:40:22.395 [REPO] Reading MSI UpgradeCodes
2024-03-10 13:40:22.426 [CLI ] During package install, 0 changes to ARP were observed, 0 matches were found for the package, and 0 packages were in both
2024-03-10 13:40:22.426 [CLI ] No single entry was determined to be associated with the package
2024-03-10 13:40:22.434 [REPO] Opening database for ReadWrite at 'C:\Users\user\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Microsoft.Winget.Source_8wekyb3d8bbwe\installed.db'
2024-03-10 13:40:22.435 [REPO] Opened SQLite Index with version [1.6], last write [2024-03-08 13:04:21.000]
2024-03-10 13:40:22.464 [CLI ] Removing installer: C:\Users\user\AppData\Local\Temp\WinGet\Microsoft.ServiceFabricRuntime.10.0.1949.9590\MicrosoftServiceFabric.10.0.1949.9590.exe
2024-03-10 13:40:22.484 [CLI ] Found existing installer file at 'C:\Users\user\AppData\Local\Temp\WinGet\Microsoft.ServiceFabricSDK.7.0.1949.9590\MicrosoftServiceFabricSDK.7.0.1949.msi'. Verifying file hash.
2024-03-10 13:40:24.880 [CLI ] Existing installer file hash matches. Will use existing installer.
2024-03-10 13:40:24.880 [CLI ] Installer hash verified
2024-03-10 13:40:24.880 [CORE] Started applying motw to C:\Users\user\AppData\Local\Temp\WinGet\Microsoft.ServiceFabricSDK.7.0.1949.9590\MicrosoftServiceFabricSDK.7.0.1949.msi with zone: 2
2024-03-10 13:40:24.890 [CORE] Finished applying motw
2024-03-10 13:40:24.890 [CLI ] Executing command: install
2024-03-10 13:40:24.890 [CLI ] Package agreements accepted by CLI flag
2024-03-10 13:40:24.890 [FAIL] C:\__w\1\s\external\pkg\src\AppInstallerCLICore\ExecutionContext.cpp(432)\WindowsPackageManager.dll!00007FFE434632C2: (caller: 00007FFE434F4311) Exception(12) tid(29a8) 8007139F The group or resource is not in the correct state to perform the requested operation.
Msg:[Reporting ExecutionStage to an earlier Stage without allowBackward as true]
2024-03-10 13:40:24.891 [CLI ] Caught wil::ResultException: C:\__w\1\s\external\pkg\src\AppInstallerCLICore\ExecutionContext.cpp(432)\WindowsPackageManager.dll!00007FFE434632C2: (caller: 00007FFE434F4311) Exception(12) tid(29a8) 8007139F The group or resource is not in the correct state to perform the requested operation.
Msg:[Reporting ExecutionStage to an earlier Stage without allowBackward as true]
2024-03-10 13:40:24.892 [CLI ] Successfully refreshed process PATH environment variable.
2024-03-10 13:40:24.893 [CLI ] Terminating context: 0x8a150110 at C:\__w\1\s\external\pkg\src\AppInstallerCLICore\Workflows\InstallFlow.cpp:319
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with configuration.dsc.yaml and reproduce winget configure -f .\configuration.dsc.yaml as administrator on the stated Windows and WinGet versions. Read the WinGetCOM log around the Microsoft.ServiceFabricSDK download and installation failure; done means the configuration applies successfully and installs the requested SDK.
Written by the indexing model from the issue text.
Assessment
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100