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

Upgrading from Chocolatey CLI v2.0.0 to v2.1.0 take a long time to complete when certain other packages are installed #3237

Closed
4 tasks done
MajorGlory86 opened this issue Jun 30, 2023 · 14 comments · Fixed by #3260
Assignees
Milestone

Comments

@MajorGlory86
Copy link

MajorGlory86 commented Jun 30, 2023

Checklist

  • 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.

What You Are Seeing?

When upgrading to v2.1.0 from v2.0.0 the update process hangs and seems to be searching for a wrong package on the API (in this case it was chromium).

What is Expected?

Upgrading to v2.1.0 should be the result of this action.

How Did You Get This To Happen?

choco upgrade chocolatey --verbose

System Details

  • Operating System: Windows 10 Pro
  • Windows PowerShell version: 7.3.4
  • Chocolatey CLI Version: 2.0.0
  • Chocolatey Licensed Extension version:
  • Chocolatey License type:
  • Terminal/Emulator: Windows Terminal

Installed Packages

7zip 23.1.0
7zip.install 23.1.0
autohotkey.install 1.1.36.2
autohotkey.portable 2.0.2
bandlab-assistant 10.2.0
cdrtfe 1.5.9
chocolatey 2.1.0
chocolatey-compatibility.extension 1.0.0
chocolatey-core.extension 1.4.0
chocolatey-dotnetfx.extension 1.0.1
chocolatey-isomount.extension 1.0.1
chocolatey-misc-helpers.extension 0.0.4
chocolatey-vscode.extension 1.1.0
chocolatey-windowsupdate.extension 1.0.5
chromium 114.0.5735.134
composer 6.3.0
crystaldiskmark 8.0.4.99
Cygwin 3.4.7
docker-cli 24.0.2
dosbox 0.74.3
DotNet4.6.1 4.6.1055.20170308
dotnet4.7.2 4.7.2.20210903
dotnet-7.0-sdk 7.0.305
dotnet-7.0-sdk-3xx 7.0.305
dotnetcore-3.1-desktopruntime 3.1.32
dotnetcore3-desktop-runtime 3.1.16
dotnetcore-desktopruntime 3.1.32
dotnetfx 4.8.0.20220524
epicgameslauncher 1.1.257
gh 2.31.0
git 2.41.0
git.install 2.41.0
github-desktop 3.0.5
hpusbdisk 2.2.3.20150303
hwinfo 7.50.0
hwinfo.install 7.50.0
imgburn 2.5.8.20210426
jackett 0.21.341
jdk8 8.0.211
KB2533623 2.0.0
KB2919355 1.0.20160915
KB2919442 1.0.20160915
KB2999226 1.0.20181019
KB3033929 1.0.5
KB3035131 1.0.3
KB3063858 1.0.0
KB3118401 1.0.5
keepassxc 2.7.5
microsoft-windows-terminal 1.17.11461
ms-reportviewer2015 12.0.2402.15
netfx-4.7.2 4.7.2
notepadplusplus.install 8.5.4
osfmount 3.1.1001
parsec 20230501.16.0
php 8.2.7
plexmediaserver 1.32.4.7195
powershell-core 7.3.4
putty 0.78.0
putty.portable 0.78.0
radarr 4.6.3.7516
rufus 4.1.0
scummvm 2.7.0
signal 5.7.0
sonarr 3.0.10.1567
SQL2014.ClrTypes 12.2.5000
SQL2014.SMO 12.2.5000
steam 3.0.1.20200226
steam-client 2.10.91.91
tailscale 1.44.0
teamviewer 15.43.6
treesizefree 4.6.3
ubiquiti-unifi-controller 7.2.95
vb-cable 43.0.0
vcredist140 14.32.31332
vcredist2015 14.0.24215.20170201
vcredist2017 14.16.27033
veeam-backup-and-replication-catalog 11.0.1.1261
veeam-backup-for-microsoft-365 7.0.0.3604
veeam-backup-for-microsoft-365-console 7.0.0.3604
veeam-backup-for-microsoft-365-iso 7.0.0.3604
veeam-backup-for-microsoft-365-rest-api 7.0.0.3604
ventoy 1.0.93
virtualbox 7.0.8
virtualmidisynth 2.13.7
vlc 3.0.18
vlc.install 3.0.18
vscode 1.79.2
vscode.install 1.79.2
vscode-powershell 2021.8.2
win10mct 10.0.19041.572
wincdemu 4.1.0.20171221
windows10-media-creation-tool 10.0.19041.572
windows-adk-deploy 10.0.19041.1
wsl2 2.0.0.20210721

Output Log

Chocolatey v2.0.0
Upgrading the following packages:
chocolatey
By upgrading, you accept licenses for the packages.
[NuGet] Enhanced retry: HttpRetryHandler is in a state that retry would have been abandoned or not waited if it were not enabled.
[NuGet]   GET https://community.chocolatey.org/api/v2/$metadata
[NuGet]   OK https://community.chocolatey.org/api/v2/$metadata 22ms
[NuGet] Enhanced retry: HttpRetryHandler is in a state that retry would have been abandoned or not waited if it were not enabled.
[NuGet]   GET https://community.chocolatey.org/api/v2/Packages()?$filter=(tolower(Id) eq 'chocolatey') and IsLatestVersion&semVerLevel=2.0.0
[NuGet]   OK https://community.chocolatey.org/api/v2/Packages()?$filter=(tolower(Id) eq 'chocolatey') and IsLatestVersion&semVerLevel=2.0.0 24ms

You have chocolatey v2.0.0 installed. Version 2.1.0 is available based on your source(s).
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chocolatey',Version='2.1.0')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/FindPackagesById()?id='chromium'&semVerLevel=2.0.0
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','100.0.4886.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','101.0.4923.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','102.0.4960.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','102.0.5005.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','103.0.5043.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','104.0.5082.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','105.0.5123.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','105.0.5163.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','106.0.5201.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','106.0.5242.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','107.0.5278.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','108.0.5315.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','108.0.5356.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','109.0.5392.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','110.0.5430.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','110.0.5471.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','111.0.5508.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','111.0.5548.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','112.0.5586.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','113.0.5623.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','113.0.5664.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','114.0.5701.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','115.0.5738.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','115.0.5778.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','116.0.5818.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','30.0.1566.0'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','32.0.1686.0'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','34.0.1785.0'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','35.0.1863.0'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','36.0.1965.0'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','38.0.2065.0'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','39.0.2152.0'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','40.0.2195.0'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','41.0.2241.0'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','45.0.2419.0'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','46.0.2472.0'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','47.0.2513.0'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','48.0.2560.0'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','50.0.2644.0'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','53.0.2774.0'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','54.0.2825.0'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','55.0.2865.0'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','56.0.2913.0'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','57.0.2953.0'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','58.0.2993.0'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','59.0.3036.0'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','60.0.3077.0'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','61.0.3117.0'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','61.0.3158.0'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','62.0.3198.0'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','63.0.3235.0'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','66.0.3334.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','67.0.3372.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','68.0.3408.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','69.0.3449.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','69.0.3490.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','71.0.3541.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','72.0.3579.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','72.0.3625.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','73.0.3667.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','74.0.3722.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','76.0.3779.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','77.0.3837.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','79.0.3928.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','81.0.3988.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','81.0.4040.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','83.0.4086.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','84.0.4147.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','86.0.4192.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','87.0.4245.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','88.0.4282.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','88.0.4323.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','89.0.4358.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','90.0.4393.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','90.0.4430.93'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','91.0.4470.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','92.0.4504.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','93.0.4543.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','94.0.4581.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','95.0.4618.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','96.0.4657.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','98.0.4721.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','99.0.4759.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','99.0.4802.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','99.0.4844.51'
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='114.0.5735.199')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/FindPackagesById()?id='chocolatey'&semVerLevel=2.0.0
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chocolatey'&$skiptoken='chocolatey','0.9.1.0'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chocolatey'&$skiptoken='chocolatey','0.9.10-beta-20160531'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chocolatey'&$skiptoken='chocolatey','0.9.8.20-beta1'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chocolatey'&$skiptoken='chocolatey','0.9.8.31'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chocolatey'&$skiptoken='chocolatey','1.0.0'
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='114.0.5735.134')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='114.0.5735.110')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='114.0.5735.91')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='113.0.5672.127')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='113.0.5672.93')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='113.0.5672.64')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='112.0.5615.138')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='112.0.5615.121')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='112.0.5615.87')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='111.0.5563.147')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='111.0.5563.111')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='111.0.5563.65')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='110.0.5481.178')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='110.0.5481.104')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='110.0.5481.100')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='110.0.5481.97')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='109.0.5414.120')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='109.0.5414.75')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='108.0.5359.125')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='108.0.5359.99')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='108.0.5359.95')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='108.0.5359.72')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='107.0.5304.122')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='107.0.5304.107')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='107.0.5304.88')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='107.0.5304.63')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='106.0.5249.119')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='106.0.5249.103')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='106.0.5249.91')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='106.0.5249.62')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='105.0.5195.127')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='105.0.5195.102')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='105.0.5195.54')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='104.0.5112.102')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='103.0.5060.114')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='103.0.5060.66')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='103.0.5060.53')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='102.0.5005.115')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='102.0.5005.63')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='101.0.4951.67')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='101.0.4951.64')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='101.0.4951.54')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='101.0.4951.41')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='100.0.4896.127')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='100.0.4896.88')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='100.0.4896.75')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='100.0.4896.60')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='99.0.4844.84')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='99.0.4844.82')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='99.0.4844.74')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='99.0.4844.51')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='98.0.4758.102')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='98.0.4758.82')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='98.0.4758.80')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='97.0.4692.99')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='97.0.4692.71')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='96.0.4664.110')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='96.0.4664.93')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='96.0.4664.45')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='95.0.4638.54')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='94.0.4606.81')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='94.0.4606.71')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='94.0.4606.61')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='94.0.4606.54')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='93.0.4577.82')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='93.0.4577.63')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='92.0.4515.159')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='92.0.4515.131')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='92.0.4515.107')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='91.0.4472.164')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='91.0.4472.124')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='91.0.4472.114')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='91.0.4472.106')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='91.0.4472.101')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='91.0.4472.77')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='90.0.4430.212')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='90.0.4430.93')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='90.0.4430.72')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='89.0.4389.128')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='89.0.4389.114')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='89.0.4389.90')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='89.0.4389.82')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='89.0.4389.72')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='88.0.4324.190')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='88.0.4324.182')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='88.0.4324.150')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='88.0.4324.146')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='88.0.4324.96')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='87.0.4280.141')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='87.0.4280.88')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='87.0.4280.66')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='86.0.4240.198')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='86.0.4240.193')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='86.0.4240.183')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='86.0.4240.111')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='86.0.4240.75')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='85.0.4183.121')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='85.0.4183.102')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='85.0.4183.83')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='84.0.4147.135')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='84.0.4147.125')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='84.0.4147.105')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='84.0.4147.89')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='83.0.4103.116')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='83.0.4103.106')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='83.0.4103.97')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='83.0.4103.61')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='81.0.4044.138')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='81.0.4044.129')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='81.0.4044.122')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='81.0.4044.113')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='81.0.4044.92')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='80.0.3987.163')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='80.0.3987.162')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='80.0.3987.149')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='75.0.3770.142')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='75.0.3770.100')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='75.0.3770.90')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='74.0.3729.169')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='74.0.3729.157')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='74.0.3729.131')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='74.0.3729.108')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='73.0.3683.103')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='73.0.3683.86')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='73.0.3683.75')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='72.0.3626.121')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='72.0.3626.109')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='72.0.3626.96')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='72.0.3626.81')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='71.0.3578.98')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='71.0.3578.80')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='70.0.3538.110')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='70.0.3538.102')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='70.0.3538.77')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='70.0.3538.67')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='69.0.3497.100')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='69.0.3497.81')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='68.0.3440.106')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='68.0.3440.84')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='68.0.3440.75')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='67.0.3396.99')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='67.0.3396.87')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='67.0.3396.79')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='67.0.3396.62')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='66.0.3359.181')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='66.0.3359.170')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='66.0.3359.117')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='65.0.3325.181')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='65.0.3325.162')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='65.0.3325.146')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='64.0.3282.186')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='64.0.3282.168')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='64.0.3282.140')
[NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='64.0.3282.119')
[NuGet]   GET https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='64.0.3250')
[NuGet]   NotFound https://community.chocolatey.org/api/v2/Packages(Id='chromium',Version='64.0.3250') 35ms
[NuGet]   CACHE https://community.chocolatey.org/api/v2/FindPackagesById()?id='chromium'&semVerLevel=2.0.0
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','100.0.4886.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','101.0.4923.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','102.0.4960.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','102.0.5005.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','103.0.5043.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','104.0.5082.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','105.0.5123.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','105.0.5163.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','106.0.5201.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','106.0.5242.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','107.0.5278.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','108.0.5315.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','108.0.5356.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','109.0.5392.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','110.0.5430.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','110.0.5471.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','111.0.5508.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','111.0.5548.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','112.0.5586.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','113.0.5623.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','113.0.5664.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','114.0.5701.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','115.0.5738.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','115.0.5778.0-snapshots'
[NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chromium'&$skiptoken='chromium','116.0.5818.0-snapshots'

Additional Context

As a workaround I temporarily moved the chromium folder from the lib directory to another location. After the update to v2.1.0 I moved it back.

@pauby
Copy link
Member

pauby commented Jun 30, 2023

How Did You Get This To Happen?

choco upgrade chocolatey --verbose

Can you provide the full set of steps to allow us to reproduce this? I upgraded to 2.1.0 from 2.0.0 yesterday and it worked, using that command.

@MajorGlory86
Copy link
Author

I just ran "choco upgrade chocolatey --verbose". I guess it's some kind of bug that occurs when you have chromium installed.

So the steps would be:

  1. Install chocolatey v2.0.0 (I'm not sure how to do this)
  2. choco install chromium -y
  3. choco upgrade chocolatey -y

@MajorGlory86 MajorGlory86 changed the title Upgrading form v2.0.0 to v2.1.0 not working when certain package is installed Upgrading from v2.0.0 to v2.1.0 not working when certain package is installed Jun 30, 2023
@astrom0
Copy link

astrom0 commented Jul 1, 2023

@MajorGlory86 thanks for the tip but it didn't work for me.
I tried uninstalling chromium but that didn't help either.

What did work was running:
choco upgrade chocolatey --verbose
whereas running the simpler command:
choco upgrade chocolatey
appeared to do nothing no matter how long I waited.

Thanks to everyone else for helping get this sorted. It's been more than a tad frustrating for a while now to hit the brick wall.

@TheCakeIsNaOH
Copy link
Member

TheCakeIsNaOH commented Jul 1, 2023

I had this issue upgrading from 2.0.0 to the 2.1.0 alpha and from the alpha to the 2.1.0 release.

I reproduced it by:

  1. Clone the develop branch
  2. Run git clean -fdx
  3. Build with .\build.bat to create required files
  4. Build debug in Visual Studio
  5. Run .\choco.exe install chocolatey --version=2.1.0-alpha-20230614 --skip-powershell using the debug visual studio build of choco.exe
  6. Run .\choco.exe install chromium --skip-powershell
  7. Run .\choco.exe upgrade chocolatey --pre --verbose --skip-powershell

The --skip-powershell arguments are required for this reproduction, as they allow chocolatey to act as an arbitrary package, and keep the debug choco.exe in the folder. As the git directory was cleaned, the configuration and sources are default.

This does appear to hang, but it does complete eventually, after maybe a half hour (and a gigantic number of requests).

@astrom0
Copy link

astrom0 commented Jul 1, 2023

@TheCakeIsNaOH thanks for that detail.
I dare say your point about waiting long enough is the key.

@MajorGlory86
Copy link
Author

I managed to reproduce it in a virtual machine with these steps:

  1. $env:chocolateyVersion = "2.0.0"
  2. [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
  3. Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
  4. choco feature enable -n allowGlobalConfirmation
  5. choco install chromium -y
  6. choco upgrade all -y --verbose

And yes, after waiting long enough it will continue but it shows the following warning.

2023-07-03 08:45:44,451 5344 [WARN ] - [NuGet] One or more unresolved package dependency constraints detected in the Chocolatey lib folder. All dependency constraints must be resolved to add or update packages. If these packages are being updated this message may be ignored, if not the following error(s) may be blocking the current package operation: 'chromium 114.0.5735.199 constraint: chocolatey (>= 0.10.5)'
2023-07-03 08:45:44,518 5344 [INFO ] - [NuGet] Resolving dependency information took 0 ms
2023-07-03 08:45:44,518 5344 [DEBUG] - Running beforeModify step for 'chocolatey'
2023-07-03 08:45:44,531 5344 [DEBUG] - Backing up package files for 'chocolatey'
2023-07-03 08:45:44,595 5344 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib-bkp\chocolatey".
2023-07-03 08:45:44,612 5344 [DEBUG] - Moving C:\ProgramData\chocolatey\lib\chocolatey to C:\ProgramData\chocolatey\lib-bkp\chocolatey\2.0.0
2023-07-03 08:45:44,612 5344 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\chocolatey'
to 'C:\ProgramData\chocolatey\lib-bkp\chocolatey\2.0.0'
2023-07-03 08:45:46,618 5344 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\chocolatey".
2023-07-03 08:45:46,618 5344 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\chocolatey\2.0.0\chocolatey.nupkg"
to "C:\ProgramData\chocolatey\lib\chocolatey\chocolatey.nupkg".
2023-07-03 08:45:48,143 5344 [DEBUG] - Ensuring removal of installation files.
etc...

@gep13
Copy link
Member

gep13 commented Jul 3, 2023

@MajorGlory86 thank you for the reproduction steps. I can confirm that I am also seeing an issue on a fresh machine when attempting these steps.

The command does eventually finish, but for me, there were over 1300 outgoing requests before the upgrade of the package is completed. This is certainly not what is intended, and we will need to investigate, and correct this problem.

Thank you all for highlighting this problem!

@TheCakeIsNaOH
Copy link
Member

So, I'm pretty sure the problem is here:

foreach (var parentPackage in parentInfos)
{
foreach (var packageVersion in NugetList.FindAllPackageVersions(parentPackage.Id, config, _nugetLogger, sourceCacheContext, remoteEndpoints))
{
NugetCommon.GetPackageDependencies(packageVersion.Identity, NuGetFramework.AnyFramework, sourceCacheContext, _nugetLogger, remoteEndpoints, sourcePackageDependencyInfos, sourceDependencyCache, config).GetAwaiter().GetResult();
}
}

It just blindly gets all package versions of all "parent" packages (aka packages that take a dependency on the package being upgraded). When there are a large number of package versions of one of these parent packages (aka chromium taking a dependency on chocolatey) then getting this information takes a long time.

It probably would make sense to optimize this by initially only getting say the latest version of each parent package, then trying to resolve dependencies, and if that fails, then get all package versions and retry dependency resolution.

This can be solved long term by implementing Package Indices

@gep13
Copy link
Member

gep13 commented Jul 4, 2023

@TheCakeIsNaOH said...
It probably would make sense to optimize this by initially only getting say the latest version of each parent package, then trying to resolve dependencies, and if that fails, then get all package versions and retry dependency resolution.

Yes, I believe that you are correct that this is the problem area. I hadn't linked to it earlier, but I had looked this code before you posted. Need to have some discussions about the correct approach going forward on this one, to ensure that we don't break something elsewhere in the codebase.

@gep13 gep13 added this to the 2.2.0 milestone Jul 7, 2023
@gep13 gep13 self-assigned this Jul 10, 2023
gep13 added a commit to gep13/choco that referenced this issue Jul 10, 2023
When attempting to figure out what packages need to be verified/checked
during a package upgrade operation, we were previously fetching
information about all package versions for all "parent packages" (i.e.
packages that include a dependency on the package being acted on). This
causes a problem when doing something like `choco upgrade chocolatey`
when you have the chromium package installed.  When in this situation,
due to the high number of package versions for chromium and the fact
that it takes a dependency on Chocolatey, the number of queries that
are emitted for Chocolatey CLI is very large.  This makes it appear as
though the operation has stalled, when in actual fact it is just
working its way through the queries (this can be verified by looking at
the requests through fiddler when this command is running).

This commit attempt to address this problem by changing to only query
for the latest package version (and/or the requested package version)
when attempting the look up for the parent package dependencies.  This
greatly reduces the number of outgoing queries, but it also means that
it is possible for things to not work correctly due to not all package
information being available.  To guard against this, a fallback has
been put in place such that if the initial attempt at resolving the
solution fails, it goes back and fetches information about all package
versions for the parent packages, and attempt to gather the resolve the
solution again.

This change has been made in a way that there is some code duplication,
however, based on some discussion within the team, the way that this
method is written needs to be overhauled, and now is not the right time
to do this.  Instead, we are accepting the duplication, until some
effort can be put in to overhaul this method completely.
gep13 added a commit to gep13/choco that referenced this issue Jul 11, 2023
When attempting to figure out what packages need to be verified/checked
during a package upgrade operation, we were previously fetching
information about all package versions for all "parent packages" (i.e.
packages that include a dependency on the package being acted on). This
causes a problem when doing something like `choco upgrade chocolatey`
when you have the chromium package installed.  When in this situation,
due to the high number of package versions for chromium and the fact
that it takes a dependency on Chocolatey, the number of queries that
are emitted for Chocolatey CLI is very large.  This makes it appear as
though the operation has stalled, when in actual fact it is just
working its way through the queries (this can be verified by looking at
the requests through fiddler when this command is running).

This commit attempt to address this problem by changing to only query
for the latest package version (and/or the requested package version)
when attempting the look up for the parent package dependencies.  This
greatly reduces the number of outgoing queries, but it also means that
it is possible for things to not work correctly due to not all package
information being available.  To guard against this, a fallback has
been put in place such that if the initial attempt at resolving the
solution fails, it goes back and fetches information about all package
versions for the parent packages, and attempt to gather the resolve the
solution again.

This change has been made in a way that there is some code duplication,
however, based on some discussion within the team, the way that this
method is written needs to be overhauled, and now is not the right time
to do this.  Instead, we are accepting the duplication, until some
effort can be put in to overhaul this method completely.
vexx32 pushed a commit to gep13/choco that referenced this issue Jul 11, 2023
When attempting to figure out what packages need to be verified/checked
during a package upgrade operation, we were previously fetching
information about all package versions for all "parent packages" (i.e.
packages that include a dependency on the package being acted on). This
causes a problem when doing something like `choco upgrade chocolatey`
when you have the chromium package installed.  When in this situation,
due to the high number of package versions for chromium and the fact
that it takes a dependency on Chocolatey, the number of queries that
are emitted for Chocolatey CLI is very large.  This makes it appear as
though the operation has stalled, when in actual fact it is just
working its way through the queries (this can be verified by looking at
the requests through fiddler when this command is running).

This commit attempt to address this problem by changing to only query
for the latest package version (and/or the requested package version)
when attempting the look up for the parent package dependencies.  This
greatly reduces the number of outgoing queries, but it also means that
it is possible for things to not work correctly due to not all package
information being available.  To guard against this, a fallback has
been put in place such that if the initial attempt at resolving the
solution fails, it goes back and fetches information about all package
versions for the parent packages, and attempt to gather the resolve the
solution again.

This change has been made in a way that there is some code duplication,
however, based on some discussion within the team, the way that this
method is written needs to be overhauled, and now is not the right time
to do this.  Instead, we are accepting the duplication, until some
effort can be put in to overhaul this method completely.
vexx32 added a commit that referenced this issue Jul 11, 2023
(#3237) Reduce number of queries for dependencies
@gep13 gep13 changed the title Upgrading from v2.0.0 to v2.1.0 not working when certain package is installed Upgrading from Chocolatey CLI v2.0.0 to v2.1.0 not working when certain other packages are installed Jul 25, 2023
@gep13 gep13 changed the title Upgrading from Chocolatey CLI v2.0.0 to v2.1.0 not working when certain other packages are installed Upgrading from Chocolatey CLI v2.0.0 to v2.1.0 take a long time to complete when certain other packages are installed Jul 25, 2023
gep13 added a commit that referenced this issue Jul 26, 2023
* release/2.2.0: (21 commits)
  (doc) Update to indicate new package version used
  (maint) Add helper to split on max line lengths
  (#3281) Add validation for cache folder permissions
  (#3264) Update to latest Chocolatey.NuGet.Client
  (#3264) Ignore lock folders in cache directories
  (#3186) Remove easter egg
  (doc) Improve error message for defaultPushSource
  (tests) Clear HTTP Cache before getting packages
  (#3258) Expand logging for nuget resources errors
  (maint) Set file encoding to include BOM
  (#3237) Reduce number of queries for dependencies
  (#3231) Add tests to ensure package listing
  (maint) Remove unnecessary using statements
  (#3231) Don't refresh local package info during upgrade no-ops
  (build) Update to latest recipe package
  (doc) Minor corrections to wording
  (#3242) Add a script to run Authenticated tests
  (#3242) Attempt default credentials for sources
  (maint) Fix incorrect naming style uses
  (doc) Apply scripting best practices to output
  ...
@choco-bot
Copy link

🎉 This issue has been resolved in version 2.2.0 🎉

The release is available on:

Your GitReleaseManager bot 📦🚀

@forenta
Copy link

forenta commented Aug 1, 2023

So, eh, how do I update from 2.1.0 to 2.2.0? Am I missing the solution path? I'm stuck because of the Chromium thing, too..

@MajorGlory86
Copy link
Author

So, eh, how do I update from 2.1.0 to 2.2.0? Am I missing the solution path? I'm stuck because of the Chromium thing, too..

You can upgrade. It just takes a while to finish. Like 5 minutes or so.

@forenta
Copy link

forenta commented Aug 1, 2023

Like 5 minutes or so.

The last time I had a look at my 2 devices without anything that happened was at around 30 minutes. But it worked after all.^^

@TheCakeIsNaOH
Copy link
Member

Hopefully people have managed to upgrade at this point, but I know of three solutions:

  1. Just wait, which may take 30+ minutes. This is the least likely to break, but is not ideal time wise or bandwidth wise.
  2. Temporarily uninstall and then reinstall any of the problematic packages (e.g. choco uninstall chromium -n then choco upgrade chocolatey then choco install chromium, note that this will break the automatic uninstaller until the next time chromium updates)
  3. Download the .nupkg and run choco upgrade chocolatey --source="'\path\to\directory\nupkg\is\in'", note that this will only work for people on v2.0.0 or v2.1.0, since v2.2.x is affected by Unable to upgrade a package if a dependency only contains pre-release package versions, or if package no longer exists on available sources #3292

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.

8 participants