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

Ensure package folders are correctly restored if unexpected failures occur during upgrade #3489

Closed
6 tasks done
sf0-k46 opened this issue Jul 29, 2024 · 2 comments · Fixed by #3500
Closed
6 tasks done
Assignees
Milestone

Comments

@sf0-k46
Copy link

sf0-k46 commented Jul 29, 2024

Checklist

  • I confirm there are no unresolved issues reported on the Chocolatey Status page.
  • I have verified this is the correct repository for opening this issue.
  • I have verified no other issues exist related to my problem.
  • I have verified this is not an issue for a specific package.
  • I have verified this issue is not security related.
  • I confirm I am using official, and not unofficial, or modified, Chocolatey products.

What You Are Seeing?

Chocolatey v2.3.0 doing upgrade is moving the old version lib\${PACKAGE} to lib-bkp\${PACKAGE} and then while attemting to download the the new package version from https://community.chocolatey.org/api/v2/package/... encounters 503 (Service Unavailable: Back-end server is at capacity).
It then fails to restore the package direcory from lib-bkp\${PACKAGE} to lib\${PACKAGE} because it is missing lib\${PACKAGE]\.chocolateyPending resulting in an uninstalled package (from chocolateys view), leaving a stalled version of the software in Windows that is not touched by any susequent upgrades.
HTTP 503 occures multiple time a month.
Multiple clients over a long range of time are affected.

What is Expected?

On a failure to install the new package version, the old version should be restored.

How Did You Get This To Happen?

audacity is only the example used in the corresponding log. This happens to multiple packages:

  1. choco.exe upgrade audacity --confirm --no-progress --use-package-exit-codes --log-file='C:\Windows\TEMP\3xf5qe1n.xaq\chocolatey.log'

System Details

  • Operating System: 10.0.19045.0
  • Windows PowerShell version: 5.1.19041.4648
  • Chocolatey CLI Version: 2.3.0
  • Chocolatey Licensed Extension version: Chocolatey v2.3.0
  • Chocolatey License type: Community
  • Terminal/Emulator: Windows PowerShell

Installed Packages

See log.

Output Log

2024-07-25 09:01:10,970 13696 [INFO ] - Chocolatey v2.3.0
2024-07-25 09:01:10,976 13696 [DEBUG] - Chocolatey is running on Windows v 10.0.19045.0
2024-07-25 09:01:10,980 13696 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2024-07-25 09:01:10,982 13696 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2024-07-25 09:01:10,987 13696 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" upgrade audacity --confirm --no-progress --use-package-exit-codes --log-file='C:\Windows\TEMP\3xf5qe1n.xaq\chocolatey.log'
2024-07-25 09:01:10,990 13696 [DEBUG] - Received arguments: upgrade audacity --confirm --no-progress --use-package-exit-codes --log-file='C:\Windows\TEMP\3xf5qe1n.xaq\chocolatey.log'
2024-07-25 09:01:11,014 13696 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2024-07-25 09:01:11,020 13696 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2024-07-25 09:01:11,025 13696 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2024-07-25 09:01:11,056 13696 [DEBUG] - Performing validation checks.
2024-07-25 09:01:11,061 13696 [DEBUG] - Global Configuration Validation Checks:
2024-07-25 09:01:11,065 13696 [DEBUG] -  - Package Exit Code / Exit On Reboot = Checked
2024-07-25 09:01:11,069 13696 [DEBUG] - System State Validation Checks:
2024-07-25 09:01:11,073 13696 [DEBUG] -  Reboot Requirement Checks:
2024-07-25 09:01:11,077 13696 [DEBUG] -  - Pending Computer Rename = Checked
2024-07-25 09:01:11,081 13696 [DEBUG] -  - Pending Component Based Servicing = Checked
2024-07-25 09:01:11,085 13696 [DEBUG] -  - Pending Windows Auto Update = Checked
2024-07-25 09:01:11,089 13696 [DEBUG] -  - Pending File Rename Operations = Checked
2024-07-25 09:01:11,092 13696 [DEBUG] -  - Pending Windows Package Installer = Checked
2024-07-25 09:01:11,095 13696 [DEBUG] -  - Pending Windows Package Installer SysWow64 = Checked
2024-07-25 09:01:11,100 13696 [DEBUG] - Cache Folder Lockdown Checks:
2024-07-25 09:01:11,103 13696 [DEBUG] -  - Elevated State = Checked
2024-07-25 09:01:11,105 13696 [DEBUG] -  - Folder Exists = Checked
2024-07-25 09:01:11,109 13696 [DEBUG] -  - Folder lockdown = Checked
2024-07-25 09:01:11,113 13696 [INFO ] - 3 validations performed. 3 success(es), 0 warning(s), and 0 error(s).
2024-07-25 09:01:11,122 13696 [DEBUG] - The source 'https://community.chocolatey.org/api/v2/' evaluated to a 'normal' source type
2024-07-25 09:01:11,126 13696 [DEBUG] -
NOTE: Hiding sensitive configuration data! Please double and triple
 check to be sure no sensitive data is shown, especially if copying
 output to a gist for review.
2024-07-25 09:01:11,133 13696 [DEBUG] - Configuration: CommandName='upgrade'|CacheLocation='C:\Windows\TEMP\chocolatey'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='https://community.chocolatey.org/api/v2/'|SourceType='normal'|
IncludeConfiguredSources='False'|ShowOnlineHelp='False'|Debug='False'|
Verbose='False'|Trace='False'|Force='False'|Noop='False'|
HelpRequested='False'|UnsuccessfulParsing='False'|RegularOutput='True'|
QuietOutput='False'|PromptForConfirmation='False'|
DisableCompatibilityChecks='False'|AcceptLicense='True'|
AllowUnofficialBuild='False'|
AdditionalLogFileLocation='C:\Windows\TEMP\3xf5qe1n.xaq\chocolatey.log'|

Input='audacity'|AllVersions='False'|
SkipPackageInstallProvider='False'|
SkipHookScripts='False'|PackageNames='audacity'|Prerelease='False'|
ForceX86='False'|OverrideArguments='False'|NotSilent='False'|
ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
CacheExpirationInMinutes='30'|AllowDowngrade='False'|
ForceDependencies='False'|PinPackage='False'|
Information.PlatformType='Windows'|
Information.PlatformVersion='10.0.19045.0'|
Information.PlatformName='Windows 10'|
Information.ChocolateyVersion='2.3.0.0'|
Information.ChocolateyProductVersion='2.3.0'|
Information.FullName='choco, Version=2.3.0.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|

Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='False'|
Information.UserName='SYSTEM'|Information.UserDomainName='UH-FBR'|
Information.IsUserAdministrator='True'|
Information.IsUserSystemAccount='True'|
Information.IsUserRemoteDesktop='False'|
Information.IsUserRemote='True'|
Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|
Information.IsLicensedAssemblyLoaded='False'|
Information.LicenseType='Foss'|
Information.CurrentDirectory='C:\Program Files (x86)\Novell\ZENworks\bin'|

Features.AutoUninstaller='True'|Features.ChecksumFiles='True'|
Features.AllowEmptyChecksums='False'|
Features.AllowEmptyChecksumsSecure='True'|
Features.FailOnAutoUninstaller='False'|
Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'|
Features.LogEnvironmentValues='False'|Features.LogWithoutColor='False'|
Features.VirusCheck='False'|
Features.FailOnInvalidOrMissingLicense='False'|
Features.IgnoreInvalidOptionsSwitches='True'|
Features.UsePackageExitCodes='True'|
Features.UseEnhancedExitCodes='False'|
Features.UseFipsCompliantChecksums='False'|
Features.ShowNonElevatedWarnings='True'|
Features.ShowDownloadProgress='False'|
Features.StopOnFirstPackageFailure='False'|
Features.UseRememberedArgumentsForUpgrades='False'|
Features.IgnoreUnfoundPackagesOnUpgradeOutdated='False'|
Features.SkipPackageUpgradesWhenNotInstalled='False'|
Features.RemovePackageInformationOnUninstall='False'|
Features.ExitOnRebootDetected='False'|
Features.LogValidationResultsOnWarnings='True'|
Features.UsePackageRepositoryOptimizations='True'|
Features.UsePackageHashValidation='True'|ListCommand.LocalOnly='False'|
ListCommand.IdOnly='False'|ListCommand.IncludeRegistryPrograms='False'|
ListCommand.PageSize='25'|ListCommand.Exact='False'|
ListCommand.ByIdOnly='False'|ListCommand.ByTagOnly='False'|
ListCommand.IdStartsWith='False'|ListCommand.OrderByPopularity='False'|
ListCommand.ApprovedOnly='False'|
ListCommand.DownloadCacheAvailable='False'|
ListCommand.NotBroken='False'|
ListCommand.IncludeVersionOverrides='False'|
ListCommand.ExplicitPageSize='False'|
ListCommand.ExplicitSource='False'|
UpgradeCommand.FailOnUnfound='False'|
UpgradeCommand.FailOnNotInstalled='False'|
UpgradeCommand.NotifyOnlyAvailableUpgrades='False'|
UpgradeCommand.ExcludePrerelease='False'|
UpgradeCommand.IgnorePinned='False'|
NewCommand.AutomaticPackage='False'|
NewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'|
SourceCommand.Priority='0'|SourceCommand.BypassProxy='False'|
SourceCommand.AllowSelfService='False'|
SourceCommand.VisibleToAdminsOnly='False'|
FeatureCommand.Command='unknown'|ConfigCommand.Command='Unknown'|
ApiKeyCommand.Command='Unknown'|PinCommand.Command='Unknown'|
OutdatedCommand.IgnorePinned='False'|
ExportCommand.IncludeVersionNumbers='False'|Proxy.BypassOnLocal='True'|
TemplateCommand.Command='unknown'|CacheCommand.Command='Unknown'|
CacheCommand.RemoveExpiredItemsOnly='False'|
2024-07-25 09:01:11,138 13696 [DEBUG] - _ Chocolatey:ChocolateyUpgradeCommand - Normal Run Mode _
2024-07-25 09:01:11,144 13696 [INFO ] - Upgrading the following packages:
2024-07-25 09:01:11,148 13696 [INFO ] - audacity
2024-07-25 09:01:11,151 13696 [INFO ] - By upgrading, you accept licenses for the packages.
2024-07-25 09:01:11,234 13696 [DEBUG] - Running list with the following filter = ''
2024-07-25 09:01:11,237 13696 [DEBUG] - --- Start of List ---
2024-07-25 09:01:11,248 13696 [DEBUG] - Resolving resource PackageSearchResource for source C:\ProgramData\chocolatey\lib
2024-07-25 09:01:11,367 13696 [DEBUG] - 7zip.install 24.7.0
2024-07-25 09:01:11,373 13696 [DEBUG] - adobereader 2024.2.20857
2024-07-25 09:01:11,378 13696 [DEBUG] - audacity 3.6.0
2024-07-25 09:01:11,386 13696 [DEBUG] - chocolatey 2.3.0
2024-07-25 09:01:11,392 13696 [DEBUG] - chocolatey-compatibility.extension 1.0.0
2024-07-25 09:01:11,397 13696 [DEBUG] - chocolatey-core.extension 1.4.0
2024-07-25 09:01:11,407 13696 [DEBUG] - chocolatey-windowsupdate.extension 1.0.5
2024-07-25 09:01:11,413 13696 [DEBUG] - Firefox 128.0.0
2024-07-25 09:01:11,419 13696 [DEBUG] - gimp 2.10.38
2024-07-25 09:01:11,424 13696 [DEBUG] - GoogleChrome 127.0.6533.57
2024-07-25 09:01:11,429 13696 [DEBUG] - KB2919355 1.0.20160915
2024-07-25 09:01:11,436 13696 [DEBUG] - KB2919442 1.0.20160915
2024-07-25 09:01:11,441 13696 [DEBUG] - KB2999226 1.0.20181019
2024-07-25 09:01:11,446 13696 [DEBUG] - KB3033929 1.0.5
2024-07-25 09:01:11,451 13696 [DEBUG] - KB3035131 1.0.3
2024-07-25 09:01:11,456 13696 [DEBUG] - keepassxc 2.7.9
2024-07-25 09:01:11,462 13696 [DEBUG] - libreoffice-fresh 24.2.4
2024-07-25 09:01:11,467 13696 [DEBUG] - notepadplusplus.install 8.6.9
2024-07-25 09:01:11,471 13696 [DEBUG] - obs-studio.install 30.1.2
2024-07-25 09:01:11,475 13696 [DEBUG] - pdf24 11.18.0
2024-07-25 09:01:11,480 13696 [DEBUG] - shotcut.install 24.2.29
2024-07-25 09:01:11,485 13696 [DEBUG] - thunderbird 115.12.2
2024-07-25 09:01:11,490 13696 [DEBUG] - vcredist140 14.40.33810
2024-07-25 09:01:11,495 13696 [DEBUG] - vcredist2015 14.0.24215.20170201
2024-07-25 09:01:11,500 13696 [DEBUG] - vcredist2017 14.16.27033
2024-07-25 09:01:11,505 13696 [DEBUG] - vlc.install 3.0.21
2024-07-25 09:01:11,508 13696 [DEBUG] - --- End of List ---
2024-07-25 09:01:11,521 13696 [DEBUG] - Resolving resource ListResource for source https://community.chocolatey.org/api/v2/
2024-07-25 09:01:11,660 13696 [INFO ] - [NuGet]   CACHE https://community.chocolatey.org/api/v2/$metadata
2024-07-25 09:01:11,676 13696 [INFO ] - [NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages()?$filter=(tolower(Id)%20eq%20'audacity')%20and%20IsLatestVersion&semVerLevel=2.0.0
2024-07-25 09:01:11,694 13696 [WARN ] -
You have audacity v3.6.0 installed. Version 3.6.1 is available based on your source(s).
2024-07-25 09:01:11,699 13696 [DEBUG] - Resolving resource DependencyInfoResource for source https://community.chocolatey.org/api/v2/
2024-07-25 09:01:11,708 13696 [INFO ] - [NuGet]   GET https://community.chocolatey.org/api/v2/Packages(Id='audacity',Version='3.6.1')
2024-07-25 09:01:11,733 13696 [INFO ] - [NuGet]   OK https://community.chocolatey.org/api/v2/Packages(Id='audacity',Version='3.6.1') 21ms
2024-07-25 09:01:11,757 13696 [INFO ] - [NuGet]   GET https://community.chocolatey.org/api/v2/FindPackagesById()?id='chocolatey-core.extension'&semVerLevel=2.0.0
2024-07-25 09:02:50,609 13696 [INFO ] - [NuGet]   OK https://community.chocolatey.org/api/v2/FindPackagesById()?id='chocolatey-core.extension'&semVerLevel=2.0.0 98848ms
2024-07-25 09:02:50,630 13696 [INFO ] - [NuGet]   GET http://community.chocolatey.org/api/v2/FindPackagesById?id='chocolatey-core.extension'&$skiptoken='1712192601110','1.0.1','chocolatey-core.extension'
2024-07-25 09:02:50,697 13696 [INFO ] - [NuGet]   OK http://community.chocolatey.org/api/v2/FindPackagesById?id='chocolatey-core.extension'&$skiptoken='1712192601110','1.0.1','chocolatey-core.extension' 63ms
2024-07-25 09:02:50,711 13696 [INFO ] - [NuGet]   GET https://community.chocolatey.org/api/v2/FindPackagesById()?id='chocolatey-compatibility.extension'&semVerLevel=2.0.0
2024-07-25 09:02:50,734 13696 [INFO ] - [NuGet]   OK https://community.chocolatey.org/api/v2/FindPackagesById()?id='chocolatey-compatibility.extension'&semVerLevel=2.0.0 20ms
2024-07-25 09:02:50,742 13696 [INFO ] - [NuGet]   GET http://community.chocolatey.org/api/v2/FindPackagesById?id='chocolatey-compatibility.extension'&$skiptoken='1721144231136','1.0.0','chocolatey-compatibility.extension'
2024-07-25 09:02:50,788 13696 [INFO ] - [NuGet]   OK http://community.chocolatey.org/api/v2/FindPackagesById?id='chocolatey-compatibility.extension'&$skiptoken='1721144231136','1.0.0','chocolatey-compatibility.extension' 42ms
2024-07-25 09:02:50,795 13696 [INFO ] - [NuGet]   GET https://community.chocolatey.org/api/v2/FindPackagesById()?id='vcredist2015'&semVerLevel=2.0.0
2024-07-25 09:02:50,824 13696 [INFO ] - [NuGet]   OK https://community.chocolatey.org/api/v2/FindPackagesById()?id='vcredist2015'&semVerLevel=2.0.0 25ms
2024-07-25 09:02:50,833 13696 [INFO ] - [NuGet]   GET http://community.chocolatey.org/api/v2/FindPackagesById?id='vcredist2015'&$skiptoken='1712296105157','14.0.23506','vcredist2015'
2024-07-25 09:02:50,875 13696 [INFO ] - [NuGet]   OK http://community.chocolatey.org/api/v2/FindPackagesById?id='vcredist2015'&$skiptoken='1712296105157','14.0.23506','vcredist2015' 39ms
2024-07-25 09:02:50,881 13696 [INFO ] - [NuGet]   GET https://community.chocolatey.org/api/v2/FindPackagesById()?id='vcredist140'&semVerLevel=2.0.0
2024-07-25 09:02:50,905 13696 [INFO ] - [NuGet]   OK https://community.chocolatey.org/api/v2/FindPackagesById()?id='vcredist140'&semVerLevel=2.0.0 21ms
2024-07-25 09:02:50,939 13696 [INFO ] - [NuGet]   GET http://community.chocolatey.org/api/v2/FindPackagesById?id='vcredist140'&$skiptoken='1712200701673','14.29.30133','vcredist140'
2024-07-25 09:02:50,978 13696 [INFO ] - [NuGet]   OK http://community.chocolatey.org/api/v2/FindPackagesById?id='vcredist140'&$skiptoken='1712200701673','14.29.30133','vcredist140' 36ms
2024-07-25 09:02:50,990 13696 [INFO ] - [NuGet]   GET http://community.chocolatey.org/api/v2/FindPackagesById?id='vcredist140'&$skiptoken='1712199801853','14.30.30708','vcredist140'
2024-07-25 09:02:51,033 13696 [INFO ] - [NuGet]   OK http://community.chocolatey.org/api/v2/FindPackagesById?id='vcredist140'&$skiptoken='1712199801853','14.30.30708','vcredist140' 40ms
2024-07-25 09:02:51,041 13696 [INFO ] - [NuGet]   GET https://community.chocolatey.org/api/v2/FindPackagesById()?id='kb3033929'&semVerLevel=2.0.0
2024-07-25 09:02:51,067 13696 [INFO ] - [NuGet]   OK https://community.chocolatey.org/api/v2/FindPackagesById()?id='kb3033929'&semVerLevel=2.0.0 23ms
2024-07-25 09:02:51,076 13696 [INFO ] - [NuGet]   GET http://community.chocolatey.org/api/v2/FindPackagesById?id='kb3033929'&$skiptoken='1712096301283','1.0.0','kb3033929'
2024-07-25 09:02:51,118 13696 [INFO ] - [NuGet]   OK http://community.chocolatey.org/api/v2/FindPackagesById?id='kb3033929'&$skiptoken='1712096301283','1.0.0','kb3033929' 40ms
2024-07-25 09:02:51,124 13696 [INFO ] - [NuGet]   GET https://community.chocolatey.org/api/v2/FindPackagesById()?id='chocolatey-windowsupdate.extension'&semVerLevel=2.0.0
2024-07-25 09:02:51,160 13696 [INFO ] - [NuGet]   OK https://community.chocolatey.org/api/v2/FindPackagesById()?id='chocolatey-windowsupdate.extension'&semVerLevel=2.0.0 33ms
2024-07-25 09:02:51,168 13696 [INFO ] - [NuGet]   GET http://community.chocolatey.org/api/v2/FindPackagesById?id='chocolatey-windowsupdate.extension'&$skiptoken='1712189902187','1.0.3','chocolatey-windowsupdate.extension'
2024-07-25 09:02:51,208 13696 [INFO ] - [NuGet]   OK http://community.chocolatey.org/api/v2/FindPackagesById?id='chocolatey-windowsupdate.extension'&$skiptoken='1712189902187','1.0.3','chocolatey-windowsupdate.extension' 37ms
2024-07-25 09:02:51,214 13696 [INFO ] - [NuGet]   GET https://community.chocolatey.org/api/v2/FindPackagesById()?id='kb3035131'&semVerLevel=2.0.0
2024-07-25 09:02:51,242 13696 [INFO ] - [NuGet]   OK https://community.chocolatey.org/api/v2/FindPackagesById()?id='kb3035131'&semVerLevel=2.0.0 25ms
2024-07-25 09:02:51,249 13696 [INFO ] - [NuGet]   GET http://community.chocolatey.org/api/v2/FindPackagesById?id='kb3035131'&$skiptoken='1711937905420','1.0.2','kb3035131'
2024-07-25 09:02:51,301 13696 [INFO ] - [NuGet]   OK http://community.chocolatey.org/api/v2/FindPackagesById?id='kb3035131'&$skiptoken='1711937905420','1.0.2','kb3035131' 46ms
2024-07-25 09:02:51,307 13696 [INFO ] - [NuGet]   CACHE https://community.chocolatey.org/api/v2/FindPackagesById()?id='chocolatey-windowsupdate.extension'&semVerLevel=2.0.0
2024-07-25 09:02:51,310 13696 [INFO ] - [NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chocolatey-windowsupdate.extension'&$skiptoken='1712189902187','1.0.3','chocolatey-windowsupdate.extension'
2024-07-25 09:02:51,313 13696 [INFO ] - [NuGet]   CACHE https://community.chocolatey.org/api/v2/FindPackagesById()?id='kb3035131'&semVerLevel=2.0.0
2024-07-25 09:02:51,315 13696 [INFO ] - [NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='kb3035131'&$skiptoken='1711937905420','1.0.2','kb3035131'
2024-07-25 09:02:51,318 13696 [INFO ] - [NuGet]   CACHE https://community.chocolatey.org/api/v2/FindPackagesById()?id='kb3035131'&semVerLevel=2.0.0
2024-07-25 09:02:51,320 13696 [INFO ] - [NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='kb3035131'&$skiptoken='1711937905420','1.0.2','kb3035131'
2024-07-25 09:02:51,322 13696 [INFO ] - [NuGet]   GET https://community.chocolatey.org/api/v2/FindPackagesById()?id='kb2919355'&semVerLevel=2.0.0
2024-07-25 09:02:51,344 13696 [INFO ] - [NuGet]   OK https://community.chocolatey.org/api/v2/FindPackagesById()?id='kb2919355'&semVerLevel=2.0.0 19ms
2024-07-25 09:02:51,350 13696 [INFO ] - [NuGet]   GET http://community.chocolatey.org/api/v2/FindPackagesById?id='kb2919355'&$skiptoken='1712245703703','1.0.20160719','kb2919355'
2024-07-25 09:02:51,392 13696 [INFO ] - [NuGet]   OK http://community.chocolatey.org/api/v2/FindPackagesById?id='kb2919355'&$skiptoken='1712245703703','1.0.20160719','kb2919355' 39ms
2024-07-25 09:02:51,398 13696 [INFO ] - [NuGet]   GET https://community.chocolatey.org/api/v2/FindPackagesById()?id='kb2919442'&semVerLevel=2.0.0
2024-07-25 09:02:51,425 13696 [INFO ] - [NuGet]   OK https://community.chocolatey.org/api/v2/FindPackagesById()?id='kb2919442'&semVerLevel=2.0.0 25ms
2024-07-25 09:02:51,431 13696 [INFO ] - [NuGet]   GET http://community.chocolatey.org/api/v2/FindPackagesById?id='kb2919442'&$skiptoken='1712245703703','1.0.20160719','kb2919442'
2024-07-25 09:02:51,471 13696 [INFO ] - [NuGet]   OK http://community.chocolatey.org/api/v2/FindPackagesById?id='kb2919442'&$skiptoken='1712245703703','1.0.20160719','kb2919442' 36ms
2024-07-25 09:02:51,477 13696 [INFO ] - [NuGet]   GET https://community.chocolatey.org/api/v2/FindPackagesById()?id='kb2999226'&semVerLevel=2.0.0
2024-07-25 09:02:51,512 13696 [INFO ] - [NuGet]   OK https://community.chocolatey.org/api/v2/FindPackagesById()?id='kb2999226'&semVerLevel=2.0.0 32ms
2024-07-25 09:02:51,521 13696 [INFO ] - [NuGet]   GET http://community.chocolatey.org/api/v2/FindPackagesById?id='kb2999226'&$skiptoken='1711612100460','1.0.20161030','kb2999226'
2024-07-25 09:02:51,570 13696 [INFO ] - [NuGet]   OK http://community.chocolatey.org/api/v2/FindPackagesById?id='kb2999226'&$skiptoken='1711612100460','1.0.20161030','kb2999226' 46ms
2024-07-25 09:02:51,575 13696 [INFO ] - [NuGet]   CACHE https://community.chocolatey.org/api/v2/FindPackagesById()?id='chocolatey-core.extension'&semVerLevel=2.0.0
2024-07-25 09:02:51,579 13696 [INFO ] - [NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chocolatey-core.extension'&$skiptoken='1712192601110','1.0.1','chocolatey-core.extension'
2024-07-25 09:02:51,581 13696 [INFO ] - [NuGet]   CACHE https://community.chocolatey.org/api/v2/FindPackagesById()?id='kb3033929'&semVerLevel=2.0.0
2024-07-25 09:02:51,583 13696 [INFO ] - [NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='kb3033929'&$skiptoken='1712096301283','1.0.0','kb3033929'
2024-07-25 09:02:51,586 13696 [INFO ] - [NuGet]   CACHE https://community.chocolatey.org/api/v2/FindPackagesById()?id='chocolatey-windowsupdate.extension'&semVerLevel=2.0.0
2024-07-25 09:02:51,588 13696 [INFO ] - [NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chocolatey-windowsupdate.extension'&$skiptoken='1712189902187','1.0.3','chocolatey-windowsupdate.extension'
2024-07-25 09:02:51,590 13696 [INFO ] - [NuGet]   CACHE https://community.chocolatey.org/api/v2/FindPackagesById()?id='kb3035131'&semVerLevel=2.0.0
2024-07-25 09:02:51,592 13696 [INFO ] - [NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='kb3035131'&$skiptoken='1711937905420','1.0.2','kb3035131'
2024-07-25 09:02:51,595 13696 [INFO ] - [NuGet]   CACHE https://community.chocolatey.org/api/v2/FindPackagesById()?id='kb2999226'&semVerLevel=2.0.0
2024-07-25 09:02:51,597 13696 [INFO ] - [NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='kb2999226'&$skiptoken='1711612100460','1.0.20161030','kb2999226'
2024-07-25 09:02:51,599 13696 [INFO ] - [NuGet]   CACHE https://community.chocolatey.org/api/v2/FindPackagesById()?id='chocolatey-core.extension'&semVerLevel=2.0.0
2024-07-25 09:02:51,602 13696 [INFO ] - [NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chocolatey-core.extension'&$skiptoken='1712192601110','1.0.1','chocolatey-core.extension'
2024-07-25 09:02:51,605 13696 [INFO ] - [NuGet]   CACHE https://community.chocolatey.org/api/v2/FindPackagesById()?id='kb3033929'&semVerLevel=2.0.0
2024-07-25 09:02:51,607 13696 [INFO ] - [NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='kb3033929'&$skiptoken='1712096301283','1.0.0','kb3033929'
2024-07-25 09:02:51,609 13696 [INFO ] - [NuGet]   CACHE https://community.chocolatey.org/api/v2/FindPackagesById()?id='chocolatey-windowsupdate.extension'&semVerLevel=2.0.0
2024-07-25 09:02:51,615 13696 [INFO ] - [NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chocolatey-windowsupdate.extension'&$skiptoken='1712189902187','1.0.3','chocolatey-windowsupdate.extension'
2024-07-25 09:02:51,617 13696 [INFO ] - [NuGet]   CACHE https://community.chocolatey.org/api/v2/FindPackagesById()?id='kb2999226'&semVerLevel=2.0.0
2024-07-25 09:02:51,620 13696 [INFO ] - [NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='kb2999226'&$skiptoken='1711612100460','1.0.20161030','kb2999226'
2024-07-25 09:02:51,685 13696 [INFO ] - [NuGet] Resolving dependency information took 0 ms
2024-07-25 09:02:51,705 13696 [DEBUG] - Running beforeModify step for 'audacity'
2024-07-25 09:02:51,711 13696 [DEBUG] - Backing up package files for 'audacity'
2024-07-25 09:02:51,752 13696 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib-bkp\audacity".
2024-07-25 09:02:51,755 13696 [DEBUG] - Moving C:\ProgramData\chocolatey\lib\audacity to C:\ProgramData\chocolatey\lib-bkp\audacity\3.6.0
2024-07-25 09:02:51,758 13696 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\audacity'
 to 'C:\ProgramData\chocolatey\lib-bkp\audacity\3.6.0'
2024-07-25 09:02:53,774 13696 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\audacity".
2024-07-25 09:02:53,778 13696 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\audacity\3.6.0\audacity.nupkg"
 to "C:\ProgramData\chocolatey\lib\audacity\audacity.nupkg".
2024-07-25 09:02:53,798 13696 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\audacity\3.6.0\audacity.nuspec"
 to "C:\ProgramData\chocolatey\lib\audacity\audacity.nuspec".
2024-07-25 09:02:53,803 13696 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\audacity\legal".
2024-07-25 09:02:53,805 13696 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\audacity\3.6.0\legal\LICENSE.txt"
 to "C:\ProgramData\chocolatey\lib\audacity\legal\LICENSE.txt".
2024-07-25 09:02:53,810 13696 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\audacity\3.6.0\legal\VERIFICATION.txt"
 to "C:\ProgramData\chocolatey\lib\audacity\legal\VERIFICATION.txt".
2024-07-25 09:02:53,814 13696 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\audacity\tools".
2024-07-25 09:02:53,816 13696 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\audacity\3.6.0\tools\audacity-win-3.6.0-64bit.exe.ignore"
 to "C:\ProgramData\chocolatey\lib\audacity\tools\audacity-win-3.6.0-64bit.exe.ignore".
2024-07-25 09:02:53,819 13696 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\audacity\3.6.0\tools\chocolateyInstall.ps1"
 to "C:\ProgramData\chocolatey\lib\audacity\tools\chocolateyInstall.ps1".
2024-07-25 09:02:55,345 13696 [DEBUG] - Deleting file C:\ProgramData\chocolatey\lib\audacity\tools\chocolateyInstall.ps1
2024-07-25 09:02:55,346 13696 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\audacity\tools\chocolateyInstall.ps1".
2024-07-25 09:02:55,349 13696 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\audacity'
2024-07-25 09:02:55,404 13696 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\audacity\audacity.nupkg'
  with checksum '3D146270134A338610FB5A3DFC4E4965'
2024-07-25 09:02:55,408 13696 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\audacity\audacity.nuspec'
  with checksum '61933B68CB1ED895BA743906C70F32B4'
2024-07-25 09:02:55,411 13696 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\audacity\legal\LICENSE.txt'
  with checksum '3C34AFDC3ADF82D2448F12715A255122'
2024-07-25 09:02:55,413 13696 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\audacity\legal\VERIFICATION.txt'
  with checksum '6D5385430411F702AA45CACF06E2B639'
2024-07-25 09:02:55,415 13696 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\audacity\tools\audacity-win-3.6.0-64bit.exe.ignore'
  with checksum 'BEA07E6D2B8DCE396FE21BAA61B34956'
2024-07-25 09:02:55,417 13696 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\audacity\tools\audacity-win-3.6.0-64bit.exe.ignore".
2024-07-25 09:02:55,419 13696 [DEBUG] - Ensuring removal of installation files.
2024-07-25 09:02:55,474 13696 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\audacity\audacity.nupkg'
  with checksum '3D146270134A338610FB5A3DFC4E4965'
2024-07-25 09:02:55,476 13696 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\audacity\audacity.nupkg".
2024-07-25 09:02:55,478 13696 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\audacity\audacity.nuspec'
  with checksum '61933B68CB1ED895BA743906C70F32B4'
2024-07-25 09:02:55,479 13696 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\audacity\audacity.nuspec".
2024-07-25 09:02:55,480 13696 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\audacity\legal\LICENSE.txt'
  with checksum '3C34AFDC3ADF82D2448F12715A255122'
2024-07-25 09:02:55,481 13696 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\audacity\legal\LICENSE.txt".
2024-07-25 09:02:55,482 13696 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\audacity\legal\VERIFICATION.txt'
  with checksum '6D5385430411F702AA45CACF06E2B639'
2024-07-25 09:02:55,482 13696 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\audacity\legal\VERIFICATION.txt".
2024-07-25 09:02:55,486 13696 [DEBUG] - Attempting to delete directory "C:\ProgramData\chocolatey\lib\audacity".
2024-07-25 09:02:55,488 13696 [DEBUG] - Removing nupkg if it still exists.
2024-07-25 09:02:55,489 13696 [DEBUG] - Resolving resource DownloadResource for source https://community.chocolatey.org/api/v2/
2024-07-25 09:02:55,505 13696 [DEBUG] - Attempting to delete file "".
2024-07-25 09:02:55,506 13696 [INFO ] - Downloading package from source 'https://community.chocolatey.org/api/v2/'
2024-07-25 09:02:55,507 13696 [DEBUG] - Package download location 'https://community.chocolatey.org/api/v2/package/audacity/3.6.1'
2024-07-25 09:02:55,515 13696 [INFO ] - [NuGet]   GET https://community.chocolatey.org/api/v2/package/audacity/3.6.1
2024-07-25 09:04:34,616 13696 [INFO ] - [NuGet]   GatewayTimeout https://community.chocolatey.org/api/v2/package/audacity/3.6.1 99099ms
2024-07-25 09:04:34,639 13696 [WARN ] - [NuGet] Error downloading 'audacity.3.6.1 : chocolatey-core.extension [1.3.3, ), vcredist2015 [14.0.24215.20170201, )' from 'https://community.chocolatey.org/api/v2/package/audacity/3.6.1'.
[NuGet] Der Antwortstatuscode gibt keinen Erfolg an: 504 (Gateway Time-out).
2024-07-25 09:04:34,642 13696 [INFO ] - [NuGet]   GET https://community.chocolatey.org/api/v2/package/audacity/3.6.1
2024-07-25 09:04:34,770 13696 [INFO ] - [NuGet]   ServiceUnavailable https://community.chocolatey.org/api/v2/package/audacity/3.6.1 123ms
2024-07-25 09:04:34,780 13696 [WARN ] - [NuGet] Error downloading 'audacity.3.6.1 : chocolatey-core.extension [1.3.3, ), vcredist2015 [14.0.24215.20170201, )' from 'https://community.chocolatey.org/api/v2/package/audacity/3.6.1'.
[NuGet] Der Antwortstatuscode gibt keinen Erfolg an: 503 (Service Unavailable: Back-end server is at capacity).
2024-07-25 09:04:34,786 13696 [INFO ] - [NuGet]   GET https://community.chocolatey.org/api/v2/package/audacity/3.6.1
2024-07-25 09:04:34,900 13696 [INFO ] - [NuGet]   ServiceUnavailable https://community.chocolatey.org/api/v2/package/audacity/3.6.1 107ms
2024-07-25 09:04:34,913 13696 [ERROR] - audacity not upgraded. An error occurred during installation:
 Error downloading 'audacity.3.6.1 : chocolatey-core.extension [1.3.3, ), vcredist2015 [14.0.24215.20170201, )' from 'https://community.chocolatey.org/api/v2/package/audacity/3.6.1'.
2024-07-25 09:04:34,939 13696 [WARN ] - This is try 1/3. Retrying after 300 milliseconds.
 Error converted to warning:
 Ein Teil des Pfades "C:\ProgramData\chocolatey\lib\audacity\.chocolateyPending" konnte nicht gefunden werden.
2024-07-25 09:04:35,253 13696 [WARN ] - This is try 2/3. Retrying after 400 milliseconds.
 Error converted to warning:
 Ein Teil des Pfades "C:\ProgramData\chocolatey\lib\audacity\.chocolateyPending" konnte nicht gefunden werden.
2024-07-25 09:04:35,671 13696 [ERROR] - Maximum tries of 3 reached. Throwing error.
2024-07-25 09:04:35,696 13696 [WARN ] -
Chocolatey upgraded 0/0 packages.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2024-07-25 09:04:35,701 13696 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2024-07-25 09:04:35,706 13696 [ERROR] - Ein Teil des Pfades "C:\ProgramData\chocolatey\lib\audacity\.chocolateyPending" konnte nicht gefunden werden.
2024-07-25 09:04:35,711 13696 [ERROR] - More Details: System.IO.DirectoryNotFoundException: Ein Teil des Pfades "C:\ProgramData\chocolatey\lib\audacity\.chocolateyPending" konnte nicht gefunden werden.
   bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   bei System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   bei System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   bei chocolatey.infrastructure.filesystem.DotNetFileSystem.<>c__DisplayClass45_0.<WriteFile>b__0()
   bei chocolatey.infrastructure.tolerance.FaultTolerance.<>c__DisplayClass1_0.<Retry>b__0()
   bei chocolatey.infrastructure.tolerance.FaultTolerance.Retry[T](Int32 numberOfTries, Func`1 function, Int32 waitDurationMilliseconds, Int32 increaseRetryByMilliseconds, Boolean isSilent)
   bei chocolatey.infrastructure.tolerance.FaultTolerance.Retry(Int32 numberOfTries, Action action, Int32 waitDurationMilliseconds, Int32 increaseRetryByMilliseconds, Boolean isSilent)
   bei chocolatey.infrastructure.filesystem.DotNetFileSystem.WriteFile(String filePath, String fileText, Encoding encoding)
   bei chocolatey.infrastructure.app.services.ChocolateyPackageService.MarkPackagePending(PackageResult packageResult, ChocolateyConfiguration config)
   bei chocolatey.infrastructure.app.services.ChocolateyPackageService.HandlePackageResult(PackageResult packageResult, ChocolateyConfiguration config, CommandNameType commandName)
   bei chocolatey.infrastructure.app.services.NugetService.Upgrade(ChocolateyConfiguration config, Action`2 continueAction, Boolean performAction, Action`2 beforeUpgradeAction)
   bei chocolatey.infrastructure.app.services.NugetService.Upgrade(ChocolateyConfiguration config, Action`2 continueAction, Action`2 beforeUpgradeAction)
   bei chocolatey.infrastructure.app.services.ChocolateyPackageService.Upgrade(ChocolateyConfiguration config)
   bei chocolatey.infrastructure.app.runners.GenericRunner.Run(ChocolateyConfiguration config, Container container, Boolean isConsole, Action`1 parseArgs)
   bei chocolatey.infrastructure.app.runners.ConsoleApplication.Run(String[] args, ChocolateyConfiguration config, Container container)
   bei chocolatey.console.Program.Main(String[] args)
2024-07-25 09:04:35,713 13696 [DEBUG] - Exiting with 1

Additional Context

No response

@sf0-k46 sf0-k46 added the Bug label Jul 29, 2024
gep13 added a commit to gep13/choco that referenced this issue Aug 13, 2024
The MarkPackagePending method is used to create a .chocolateyPending
file in the package folder to indicate that there is a pending
operation that needs to be completed.

However, during an upgrade operation, the package folder is moved to
the lib-bkp folder, and as a result, doesn't exist anymore in the lib
folder.

If during the upgrade operation, something fails, for example, an
exception when trying to download the nupkg file, a process of
returning the package folder to the correct place begins.  The first
thing that is attempted is to create the .chocolateyPending file in the
package folder.  However, as mentioned, this folder no longer exists in
the expected location.  As a result, it is possible for an exception to
be thrown, as the file cannot be created in the package folder.

This problem can lead to another related problem in that the package is
now "lost" from lib folder, and will not show up when doing for example
choco list.

Imagine you were attempting the following command, and an exception
happened during the downloading of the nupkg:

choco upgrade audacity

Chocolatey CLI would start the upgrade operation, and then it would
fail downloading the package.  It would attempt to create the
.chocolateyPending file, and another exception would be thrown.  The
package folder is not returned to the lib folder, and now the package
is "lost".  If you attempt to run choco upgrade audacity again, the
operation would succeed, as it would see that the package is not
installed and it would be installed, however, if this happened during
the process of running choco upgrade all, then the underlying audacity
application would not be upgraded, as Chocolatey CLI is no longer
managing the package.

This commit addresses the issue by first checking to see if the package
folder exists.  If it doesn't, then it doesn't attempt to create the
.chocolateyPending file, and simply returns early.  This then allows
the remaining operations, i.e. returning the package folder from the
lib-bkp folder, back to the lib folder.
gep13 added a commit to gep13/choco that referenced this issue Aug 15, 2024
In order to fully test out the code path where the attempt to write the
.chocolateyPending file was failing, we needed to be able to return a
503/504 error from the server.  Realistically, this isn't feasible,
since it would mean having a server in place, that would be able to
respond with the right responses, at the right time.

After digging around for a little bit, I found the WireMock.Net
project, which seemed to do exactly what was needed, namely:

> WireMock.Net is a flexible product for stubbing and mocking web HTTP
responses using advanced request matching and response templating.

I took this for a spin, and was able to start/stop the server within
our test harnesses, and then was able to mock the required HTTP
requests, to get to the point during an Upgrade scenario, to then send
a 503 response.  This then started the code path for the
.chocolateyPending file, and I was able to make assertions that the
lib/lib-bad/lib-bkp folders worked as expected.

The only "change" that was needed to a normal test scenario, was to
change this line:

Configuration.Sources = "http://localhost:24626/api/v2/";

to force Chocolatey CLI to direct requests to the WireMock.Net server.

There is likely LOTS of things that we could start doing with this
server, and there is likely some code that needs to be added to
encapsulate the creation of the responses, to make them more re-usable,
but for now, the required responses for this code path has been
hard-coded into the responses.

NOTE: There are a LOT of packages added in this commit, and all of them
came in as a result of installing the WireMock.Net package.  Since this
is a test project, i.e. we are not shipping any of these, I don't
believe this to be a concern.
@gep13 gep13 added this to the 2.4.0 milestone Aug 15, 2024
@gep13 gep13 self-assigned this Aug 15, 2024
@gep13
Copy link
Member

gep13 commented Aug 15, 2024

@sf0-k46 thank you very much for raising this issue.

I have done some investigation on this issue, and I believe I have found out of the root cause of the problem on the Chocolatey CLI side of things (i.e. why the package is "lost" from within the lib folder). I have created a PR to address the problem, and it is hoped that this change will go out with the next release of Chocolatey CLI.

gep13 added a commit to gep13/choco that referenced this issue Aug 15, 2024
In order to fully test out the code path where the attempt to write the
.chocolateyPending file was failing, we needed to be able to return a
503/504 error from the server.  Realistically, this isn't feasible,
since it would mean having a server in place, that would be able to
respond with the right responses, at the right time.

After digging around for a little bit, I found the WireMock.Net
project, which seemed to do exactly what was needed, namely:

> WireMock.Net is a flexible product for stubbing and mocking web HTTP
responses using advanced request matching and response templating.

I took this for a spin, and was able to start/stop the server within
our test harnesses, and then was able to mock the required HTTP
requests, to get to the point during an Upgrade scenario, to then send
a 503 response.  This then started the code path for the
.chocolateyPending file, and I was able to make assertions that the
lib/lib-bad/lib-bkp folders worked as expected.

The only "change" that was needed to a normal test scenario, was to
change this line:

Configuration.Sources = "http://localhost:24626/api/v2/";

to force Chocolatey CLI to direct requests to the WireMock.Net server.

There is likely LOTS of things that we could start doing with this
server, and there is likely some code that needs to be added to
encapsulate the creation of the responses, to make them more re-usable,
but for now, the required responses for this code path has been
hard-coded into the responses.

NOTE: There are a LOT of packages added in this commit, and all of them
came in as a result of installing the WireMock.Net package.  Since this
is a test project, i.e. we are not shipping any of these, I don't
believe this to be a concern.
@gep13 gep13 added the 4 - Done label Aug 22, 2024
gep13 added a commit that referenced this issue Aug 26, 2024
As suggested here:

#3500 (comment)

By WireMock.Net maintainer.  This will hopefully make the Integration
Tests work when running on GitHub Actions.
gep13 added a commit that referenced this issue Aug 26, 2024
In the previous commit, an attempt was made to remove the usage of the
hard-coded WireMock.Net port, however, not all usages of the 24626 port
were removed.

These have been replaced with .FormatWith(_wireMockServer.Url) where
needed, to make the port number dynamic based on what it is started
with.

This change is an extension of the comment that was left here:

#3500 (comment)
gep13 added a commit that referenced this issue Aug 26, 2024
The WireMock.Net Server is setup to reply to requests made when _NOT_
using repository optimizations, so let's make sure that we are using
that configuration explicitly.  It was found that when running all the
integration tests together, this value could be set to true elsewhere,
which then causes tests here to fail. This is far from ideal, and the
Configuration should have been reset when starting this scenario
but for now, let's explicitly set to false, as this is what we know the
WireMock.Net server will respond with.
@vexx32 vexx32 changed the title NuGet 503 (Service Unavailable: Back-end server is at capacity) results in chocolatey package loss (no more upgrades!) Ensure package folders are correctly restored if unexpected failures occur during upgrade Nov 12, 2024
@vexx32
Copy link
Member

vexx32 commented Nov 12, 2024

🎉 This issue has been resolved in version 2.4.0 🎉

The release is available on:

@vexx32 vexx32 removed the 4 - Done label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants