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

[Flaky] Unable to install wget from chocolatey #3065

Closed
peternied opened this issue Jul 28, 2023 · 2 comments
Closed

[Flaky] Unable to install wget from chocolatey #3065

peternied opened this issue Jul 28, 2023 · 2 comments
Assignees
Labels
flaky-test Flaky Test issue integ-test-failure Integration test failures

Comments

@peternied
Copy link
Member

Description

Both JDK versions 11 & 17 ran into the same problem during the plugin install workflow Error downloading 'Wget.1.21.4' from 'https://community.chocolatey.org/api/v2/package/Wget/1.21.4'. Originally reported in #3064 .

Expectation

chocolatey component installation shouldn't fail, maybe there was a service interruption, or maybe there is a way we can fallback to a mirror?

Context

Detailed of GitHub Action failure in plugin-install (windows-latest, 11).
Run choco install wget --no-progress
  choco install wget --no-progress
  shell: C:\Program Files\Git\bin\bash.EXE --noprofile --norc -e -o pipefail {0}
  env:
    OPENSEARCH_VERSION: 3.0.0
    PLUGIN_NAME: opensearch-security
    JAVA_HOME_11.0.20_x64: C:\hostedtoolcache\windows\jdk\11.0.20\x64
    JAVA_HOME: C:\hostedtoolcache\windows\jdk\11.0.20\x64
    JAVA_HOME_11_0_20_X64: C:\hostedtoolcache\windows\jdk\11.0.20\x64
    GRADLE_BUILD_ACTION_SETUP_COMPLETED: true
    GRADLE_BUILD_ACTION_CACHE_RESTORED: true
Chocolatey v2.1.0
Installing the following packages:
wget
By installing, you accept licenses for the packages.
[NuGet] Error downloading 'Wget.1.21.4' from 'https://community.chocolatey.org/api/v2/package/Wget/1.21.4'.
[NuGet] Response status code does not indicate success: [50](https://github.com/opensearch-project/security/actions/runs/5687721668/job/15416524834?pr=3063#step:8:53)0 (Internal Server Error).
[NuGet] Error downloading 'Wget.1.21.4' from 'https://community.chocolatey.org/api/v2/package/Wget/1.21.4'.
[NuGet] Response status code does not indicate success: 500 (Internal Server Error).
Wget not installed. An error occurred during installation:
 Error downloading 'Wget.1.21.4' from 'https://community.chocolatey.org/api/v2/package/Wget/1.21.4'.
Wget package files install failed with exit code 1. Performing other installation steps.
The install of Wget was NOT successful.
Wget not installed. An error occurred during installation:
 Error downloading 'Wget.1.21.4' from 'https://community.chocolatey.org/api/v2/package/Wget/1.21.4'.

Chocolatey installed 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Impacted Pull Requests

@peternied peternied added the integ-test-failure Integration test failures label Jul 28, 2023
@github-actions github-actions bot added the untriaged Require the attention of the repository maintainers and may need to be prioritized label Jul 28, 2023
@peternied peternied self-assigned this Jul 28, 2023
@peternied peternied added flaky-test Flaky Test issue and removed untriaged Require the attention of the repository maintainers and may need to be prioritized labels Jul 28, 2023
@peternied
Copy link
Member Author

peternied commented Jul 28, 2023

Looked around at the chocolatey status page https://status.chocolatey.org/, no blips reported. They have a community discord, I've created a message in their #quetions channel [link] to look into this.

Howdy folks - I'm a developer using Chocolatey to help setup GitHub Action tasks by installing wget, hit an issue where https://community.chocolatey.org/api/v2/package/Wget/1.21.4 started to return 500 and the install failed. Just reran the setup and see that it has been resolved. Was there a service issue, or if this can happen is there a way I can better isolate our project from these failures? My tracking issue #3065

@peternied
Copy link
Member Author

This was related to the NuGet issue during the time the we saw the failure, seems to be fairy rare. Not going to take any action at the moment.

Mitigation suggested from one of the Chocolatey devs - we'd need to spin up an endpoint, but manageable

My suggestion would be to use your own feed for installing packages from that you control both in terms of availability and security.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flaky-test Flaky Test issue integ-test-failure Integration test failures
Projects
None yet
Development

No branches or pull requests

1 participant