chocolatey / choco

Chocolatey - the package manager for Windows
https://chocolatey.org
Other
10.35k stars 903 forks source link

Modified cache location (config setting "cacheLocation") not used #3359

Closed mu88 closed 8 months ago

mu88 commented 1 year ago

Checklist

What You Are Seeing?

I've changed Chocolatey's cache directory as explained here by calling choco config set --name="'cacheLocation'" --value="'D:\Software\Chocolatey\Cache'" in an admin shell.

However, when executing choco upgrade all -y, the files are still downloaded to %LOCALAPPDATA%\Temp\chocolatey (folder size of approx. 200 MB), whereas D:\Software\Chocolatey\Cache is almost empty (50 KB).

Content of D:\Software\Chocolatey\Cache\ChocolateyScratch image

Content of %LOCALAPPDATA%\Temp\chocolatey\ChocolateyScratch image

What is Expected?

How Did You Get This To Happen?

  1. choco config set --name="'cacheLocation'" --value="'D:\Software\Chocolatey\Cache'"
  2. choco upgrade all -y

System Details

Installed Packages

Chocolatey v2.2.2
7zip 23.1.0
7zip.install 23.1.0
agentransack 2022.3406.0
autohotkey.portable 2.0.10
cascadiacode 2111.1.0
cascadiacodeitalic 2111.1.0
cascadiacodepl 2111.1.0
cascadiacodepl-italic 2111.1.0
cascadiafonts 2111.1.0
cascadiamono 2111.1.0
cascadiamonoitalic 2111.1.0
cascadiamonopl 2111.1.0
cascadiamonopl-italic 2111.1.0
chocolatey 2.2.2
chocolatey-compatibility.extension 1.0.0
chocolatey-core.extension 1.4.0
chocolatey-dotnetfx.extension 1.0.1
chocolatey-font-helpers.extension 0.0.4
chocolatey-visualstudio.extension 1.11.1
chocolatey-windowsupdate.extension 1.0.5
chromedriver 118.0.5993.702
ditto 3.24.246
DotNet4.6 4.6.81.20150925
dotnet4.7.2 4.7.2.20210903
dotnet-6.0-desktopruntime 6.0.24
dotnet-7.0-desktopruntime 7.0.13
dotnet-7.0-sdk 7.0.403
dotnet-7.0-sdk-1xx 7.0.113
dotnet-7.0-sdk-2xx 7.0.203
dotnet-7.0-sdk-3xx 7.0.310
dotnet-7.0-sdk-4xx 7.0.403
dotnet-desktopruntime 7.0.13
dotnetfx 4.8.0.20220524
dotnet-sdk 7.0.403
fiddler 5.0.20211.51073
FiraCode 6.2.0
firacodenf 6.2.0
Firefox 119.0.1
git 2.42.0
git.install 2.42.0
gitextensions 4.1.0
jetbrainstoolbox 2.1.0.18144
joplin 2.12.17
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
keepass 2.55.0
keepass.install 2.55.0
keepass-plugin-kpscript 2.55.0
kustomize 5.1.0
LinkShellExtension 3.9.3.5
microsoft-teams 1.6.0.27573
microsoft-windows-terminal 1.18.2822
mongodb-compass 1.40.4
msbuild-structured-log-viewer 2.1.758
netfx-4.7.2 4.7.2
nodejs 20.8.1
nodejs.install 20.8.1
nuget.commandline 6.7.0
nunit-console-runner 3.16.3
offset-explorer 2.3.3
oh-my-posh 18.24.0
openssl 3.1.1
paint.net 5.0.11
pgadmin4 7.8.0
postman 10.18.10
powershell-core 7.3.9
powertoys 0.75.1
saml2aws 2.36.12
screenpresso 2.1.15
soapui 5.7.0.20220316
sql-server-management-studio 19.1.56
ssms 15.0.18390
stretchly 1.14.1
sysinternals 2023.11.9
vcredist140 14.36.32532
vcredist2008 9.0.30729.616104
vcredist2015 14.0.24215.20170201
vcredist2017 14.16.27033
veracrypt 1.26.7
windirstat 1.1.2.20161210
winmerge 2.16.34

Output Log

Microsoft Windows [Version 10.0.19045.3570]
(c) Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>choco upgrade all -y
Chocolatey v2.2.2
Upgrading the following packages:
all
By upgrading, you accept licenses for the packages.
7zip v23.1.0 is the latest version available based on your source(s).
7zip.install v23.1.0 is the latest version available based on your source(s).
agentransack v2022.3406.0 is the latest version available based on your source(s).
autohotkey.portable v2.0.10 is the latest version available based on your source(s).
cascadiacode v2111.1.0 is the latest version available based on your source(s).
cascadiacodeitalic v2111.1.0 is the latest version available based on your source(s).
cascadiacodepl v2111.1.0 is the latest version available based on your source(s).
cascadiacodepl-italic v2111.1.0 is the latest version available based on your source(s).
cascadiafonts v2111.1.0 is the latest version available based on your source(s).
cascadiamono v2111.1.0 is the latest version available based on your source(s).
cascadiamonoitalic v2111.1.0 is the latest version available based on your source(s).
cascadiamonopl v2111.1.0 is the latest version available based on your source(s).
cascadiamonopl-italic v2111.1.0 is the latest version available based on your source(s).
chocolatey v2.2.2 is the latest version available based on your source(s).
chocolatey-compatibility.extension v1.0.0 is the latest version available based on your source(s).
chocolatey-core.extension v1.4.0 is the latest version available based on your source(s).
chocolatey-dotnetfx.extension v1.0.1 is the latest version available based on your source(s).
chocolatey-font-helpers.extension v0.0.4 is the latest version available based on your source(s).
chocolatey-visualstudio.extension v1.11.1 is the latest version available based on your source(s).
chocolatey-windowsupdate.extension v1.0.5 is the latest version available based on your source(s).
chromedriver v118.0.5993.702 is the latest version available based on your source(s).
ditto v3.24.246 is the latest version available based on your source(s).
DotNet4.6 v4.6.81.20150925 is the latest version available based on your source(s).
dotnet4.7.2 v4.7.2.20210903 is the latest version available based on your source(s).
dotnet-6.0-desktopruntime v6.0.24 is the latest version available based on your source(s).
dotnet-7.0-desktopruntime v7.0.13 is the latest version available based on your source(s).
dotnet-7.0-sdk v7.0.403 is the latest version available based on your source(s).
dotnet-7.0-sdk-1xx v7.0.113 is the latest version available based on your source(s).
dotnet-7.0-sdk-2xx v7.0.203 is the latest version available based on your source(s).
dotnet-7.0-sdk-3xx v7.0.310 is the latest version available based on your source(s).
dotnet-7.0-sdk-4xx v7.0.403 is the latest version available based on your source(s).
dotnet-desktopruntime v7.0.13 is the latest version available based on your source(s).
dotnetfx v4.8.0.20220524 is the latest version available based on your source(s).
dotnet-sdk v7.0.403 is the latest version available based on your source(s).
fiddler v5.0.20211.51073 is the latest version available based on your source(s).
FiraCode v6.2.0 is the latest version available based on your source(s).
firacodenf v6.2.0 is the latest version available based on your source(s).

You have Firefox v119.0.0 installed. Version 119.0.1 is available based on your source(s).
Progress: Downloading Firefox 119.0.1... 100%

Firefox v119.0.1 [Approved]
Firefox package files upgrade completed. Performing other installation steps.
Using locale 'en-US'...
Using explicit proxy server 'http://127.0.0.1:3128'.
Downloading Firefox 64 bit
  from 'https://download.mozilla.org/?product=firefox-119.0.1-ssl&os=win64&lang=en-US'
Using explicit proxy server 'http://127.0.0.1:3128'.
Progress: 100% - Completed download of C:\Users\myUser\AppData\Local\Temp\chocolatey\Firefox\119.0.1\Firefox Setup 119.0.1.exe (57.59 MB).
Download of Firefox Setup 119.0.1.exe (57.59 MB) completed.
Hashes match.
Installing Firefox...
Firefox has been installed.
  Firefox may be able to be automatically uninstalled.
 The upgrade of Firefox was successful.
  Software installed to 'C:\myUser\Software\Firefox'
git v2.42.0 is the latest version available based on your source(s).
git.install v2.42.0 is the latest version available based on your source(s).
gitextensions v4.1.0 is the latest version available based on your source(s).

You have jetbrainstoolbox v2.0.5.17700 installed. Version 2.1.0.18144 is available based on your source(s).
Progress: Downloading jetbrainstoolbox 2.1.0.18144... 100%

jetbrainstoolbox v2.1.0.18144 [Approved]
jetbrainstoolbox package files upgrade completed. Performing other installation steps.
Using explicit proxy server 'http://127.0.0.1:3128'.
Downloading jetbrainstoolbox
  from 'https://download.jetbrains.com/toolbox/jetbrains-toolbox-2.1.0.18144.exe'
Using explicit proxy server 'http://127.0.0.1:3128'.
Progress: 100% - Completed download of C:\Users\myUser\AppData\Local\Temp\chocolatey\jetbrainstoolbox\2.1.0.18144\jetbrains-toolbox-2.1.0.18144.exe (64.92 MB).
Download of jetbrains-toolbox-2.1.0.18144.exe (64.92 MB) completed.
Hashes match.
Installing jetbrainstoolbox...
jetbrainstoolbox has been installed.
  jetbrainstoolbox may be able to be automatically uninstalled.
 The upgrade of jetbrainstoolbox was successful.
  Software installed as 'exe', install location is likely default.
joplin v2.12.17 is the latest version available based on your source(s).
KB2533623 v2.0.0 is the latest version available based on your source(s).
KB2919355 v1.0.20160915 is the latest version available based on your source(s).
KB2919442 v1.0.20160915 is the latest version available based on your source(s).
KB2999226 v1.0.20181019 is the latest version available based on your source(s).
KB3033929 v1.0.5 is the latest version available based on your source(s).
KB3035131 v1.0.3 is the latest version available based on your source(s).
KB3063858 v1.0.0 is the latest version available based on your source(s).
KB3118401 v1.0.5 is the latest version available based on your source(s).
keepass v2.55.0 is the latest version available based on your source(s).
keepass.install v2.55.0 is the latest version available based on your source(s).
keepass-plugin-kpscript v2.55.0 is the latest version available based on your source(s).
kustomize v5.1.0 is the latest version available based on your source(s).
LinkShellExtension v3.9.3.5 is the latest version available based on your source(s).
microsoft-teams v1.6.0.27573 is the latest version available based on your source(s).
microsoft-windows-terminal v1.18.2822 is the latest version available based on your source(s).
mongodb-compass v1.40.4 is the latest version available based on your source(s).
msbuild-structured-log-viewer v2.1.758 is the latest version available based on your source(s).
netfx-4.7.2 v4.7.2 is the latest version available based on your source(s).

You have nodejs v20.8.1 installed. Version 21.1.0 is available based on your source(s).
nodejs is pinned. Skipping pinned package.

You have nodejs.install v20.8.1 installed. Version 21.1.0 is available based on your source(s).
nodejs.install is pinned. Skipping pinned package.
nuget.commandline v6.7.0 is the latest version available based on your source(s).
nunit-console-runner v3.16.3 is the latest version available based on your source(s).
offset-explorer v2.3.3 is the latest version available based on your source(s).

You have oh-my-posh v18.22.0 installed. Version 18.24.0 is available based on your source(s).
Progress: Downloading oh-my-posh 18.24.0... 100%

oh-my-posh v18.24.0 [Approved]
oh-my-posh package files upgrade completed. Performing other installation steps.
Using explicit proxy server 'http://127.0.0.1:3128'.
Downloading oh-my-posh 64 bit
  from 'https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v18.24.0/install-amd64.exe'
Using explicit proxy server 'http://127.0.0.1:3128'.
Progress: 100% - Completed download of C:\Users\myUser\AppData\Local\Temp\chocolatey\oh-my-posh\18.24.0\install-amd64.exe (6.23 MB).
Download of install-amd64.exe (6.23 MB) completed.
Hashes match.
Installing oh-my-posh...
oh-my-posh has been installed.
PROFILE: C:\Users\myUser\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
oh-my-posh has been added to your profile. You may wish to append 'Set-PoshPrompt paradox' to set a theme
  oh-my-posh can be automatically uninstalled.
 The upgrade of oh-my-posh was successful.
  Software installed to 'C:\Program Files (x86)\oh-my-posh\'
openssl v3.1.1 is the latest version available based on your source(s).
paint.net v5.0.11 is the latest version available based on your source(s).
pgadmin4 v7.8.0 is the latest version available based on your source(s).
postman v10.18.10 is the latest version available based on your source(s).

You have powershell-core v7.3.8 installed. Version 7.3.9 is available based on your source(s).
Progress: Downloading powershell-core 7.3.9... 100%

powershell-core v7.3.9 [Approved]
powershell-core package files upgrade completed. Performing other installation steps.
7.3.9
The version of PowerShell in this package (7.3.9) is already installed by another means, marking package as installed
 The upgrade of powershell-core was successful.
  Software install location not explicitly set, it could be in package or
  default install location of installer.
powertoys v0.75.1 is the latest version available based on your source(s).
saml2aws v2.36.12 is the latest version available based on your source(s).
screenpresso v2.1.15 is the latest version available based on your source(s).
soapui v5.7.0.20220316 is the latest version available based on your source(s).
sql-server-management-studio v19.1.56 is the latest version available based on your source(s).
ssms v15.0.18390 is the latest version available based on your source(s).
stretchly v1.14.1 is the latest version available based on your source(s).
visualstudio-installer v2.0.3 is the latest version available based on your source(s).
windirstat v1.1.2.20161210 is the latest version available based on your source(s).
winmerge v2.16.34 is the latest version available based on your source(s).

Chocolatey upgraded 6/91 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Upgraded:
 - Firefox v119.0.1
 - jetbrainstoolbox v2.1.0.18144
 - oh-my-posh v18.24.0
 - powershell-core v7.3.9

Warnings:
 - nodejs - nodejs is pinned. Skipping pinned package.
 - nodejs.install - nodejs.install is pinned. Skipping pinned package.

C:\WINDOWS\system32>

Additional Context

No response

gep13 commented 10 months ago

Can I ask what you have set for the feature useRememberedArgumentsForUpgrades?

mu88 commented 10 months ago

The feature useRememberedArgumentsForUpgrades is enabled

github-actions[bot] commented 9 months ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue will be closed in 14 days if it continues to be inactive.

mu88 commented 9 months ago

yes, still relevant

pauby commented 9 months ago

@mu88 The ``Output Log section of the issue does not contain the log in the format we need.

When creating the issue, the Output Log section has these comments:


Please include the log given by Chocolatey CLI when running in debugging and verbose mode. You can run Chocolatey CLI in debugging and verbose mode using the flags --debug --verbose. Alternatively, you can find the log file in the following default location: C:\ProgramData\chocolatey\logs\chocolatey.log.

Before including the output log, make sure of the following:


Please provide that information by editing and adding it in the first comment (please don't post it in any other comment).

Without the full log we are unable to progress this issue.

github-actions[bot] commented 8 months ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue will be closed in 14 days if it continues to be inactive.

github-actions[bot] commented 8 months ago

Dear contributor,

As this issue seems to have been inactive for quite some time now, it has been automatically closed. If you feel this is a valid issue, please feel free to re-open the issue if / when a pull request has been added. Thank you for your contribution.