Skip to content

win_chocolatey fails after update to v2.4.0 #168

@Outek

Description

@Outek

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?

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

n/a

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    0 - TriagingIssue is accepted, but a milestone has yet to be added for the issue.EnhancementIssues that introduce new functionality to the project, or enhances/updates existing functionality.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions