Checklist
What You Are Seeing?
We have plans, to upgrade chocolatey(free version) to version the latest version v2.4.0, which was released last week.
Some playbooks now have errors with the new version, but if i downgrade to v2.2.2, everything is working fine again. If i try the command(choco upgrade/install packagename) manually, everything is working fine too.
What is Expected?
The package is already installed with the latest version and no error is expected.
How Did You Get This To Happen?
Check with Chocolatey 2.2.2, and rerun test after upgrade to 2.4.0
- name: Install or update chocholatey package packagename
chocolatey.chocolatey.win_chocolatey:
name: packagename
pinned: no
state: latest
source: https://artifactory/api/nuget/windows-nuget-local
System Details
- Operating System: Windows Server 2019/2022 Win11
- Windows PowerShell version: 5.1/7.4.x
- Chocolatey CLI Version: 2.4.0
Installed Packages
Output Log
fatal: [servername]: FAILED! => {
"changed": false,
"choco_cli_version": "2.4.0",
"command": "C:\\ProgramData\\chocolatey\\bin\\choco.exe upgrade packagename --fail-on-unfound --yes --no-progress --source https://artifactory/api/nuget/windows-nuget-local --timeout 2700",
"invocation": {
"module_args": {
"allow_empty_checksums": false,
"allow_multiple": false,
"allow_prerelease": false,
"architecture": "default",
"bootstrap_script": null,
"bootstrap_tls_version": [
"tls12",
"tls13"
],
"checksum": null,
"checksum64": null,
"checksum_type": null,
"checksum_type64": null,
"choco_args": null,
"force": false,
"ignore_checksums": false,
"ignore_dependencies": false,
"install_args": null,
"name": [
"packagename"
],
"override_args": false,
"package_params": null,
"pinned": false,
"proxy_password": null,
"proxy_url": null,
"proxy_username": null,
"remove_dependencies": false,
"skip_scripts": false,
"source": "https://artifactory/api/nuget/windows-nuget-local",
"source_password": null,
"source_username": null,
"state": "latest",
"timeout": 2700,
"validate_certs": true,
"version": null
}
},
"msg": "Error updating package(s) 'packagename'",
"rc": 2,
"stderr": "",
"stderr_lines": [],
"stdout": "Chocolatey v2.4.0\r\nUpgrading the following packages:\r\npackagename\r\nBy upgrading, you accept licenses for the packages.\r\npackagename v1.1.10 is the latest version available based on your source(s).\r\n\r\nChocolatey upgraded 0/1 packages. \r\n See the log for details (C:\\ProgramData\\chocolatey\\logs\\chocolatey.log).\r\n",
"stdout_lines": [
"Chocolatey v2.4.0",
"Upgrading the following packages:",
"packagename",
"By upgrading, you accept licenses for the packages.",
"packagename v1.1.10 is the latest version available based on your source(s).",
"",
"Chocolatey upgraded 0/1 packages. ",
" See the log for details (C:\\ProgramData\\chocolatey\\logs\\chocolatey.log)."
]
}
Additional Context
No response
Checklist
What You Are Seeing?
We have plans, to upgrade chocolatey(free version) to version the latest version v2.4.0, which was released last week.
Some playbooks now have errors with the new version, but if i downgrade to v2.2.2, everything is working fine again. If i try the command(choco upgrade/install packagename) manually, everything is working fine too.
What is Expected?
The package is already installed with the latest version and no error is expected.
How Did You Get This To Happen?
Check with Chocolatey 2.2.2, and rerun test after upgrade to 2.4.0
System Details
Installed Packages
Output Log
Additional Context
No response