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

Retry on anaconda.org connection errors #748

Open
pavelzw opened this issue Apr 1, 2024 · 1 comment
Open

Retry on anaconda.org connection errors #748

pavelzw opened this issue Apr 1, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@pavelzw
Copy link
Collaborator

pavelzw commented Apr 1, 2024

Sometimes i get errors like this:

Error: Event { fields: ValueSet { message: Error building package: failed to setup test environment: Request error: error sending request for url (https://conda.anaconda.org/conda-forge/linux-64/mumps-include-5.6.2-ha770c72_4.conda): connection closed before message completed, callsite: Identifier(0x5609df8de0d0) }, metadata: Metadata { name: "event src/main.rs:732", target: "rattler_build", level: Level(Error), module_path: "rattler_build", location: src/main.rs:732, fields: {message}, callsite: Identifier(0x5609df8de0d0), kind: Kind(EVENT) }, parent: Current }
 × error Error building package: failed to setup test environment: Request error: error sending request for url (https://conda.anaconda.org/conda-forge/linux-64/
 × error mumps-include-5.6.2-ha770c72_4.conda): connection closed before message completed
Error:   × failed to setup test environment: Request error: error sending request for
  │ url (https://conda.anaconda.org/conda-forge/linux-64/mumps-include-5.6.2-
  │ ha770c72_4.conda): connection closed before message completed
  ├─▶ Request error: error sending request for url (https://
  │   conda.anaconda.org/conda-forge/linux-64/mumps-include-5.6.2-
  │   ha770c72_4.conda): connection closed before message completed
  ├─▶ error sending request for url (https://conda.anaconda.org/conda-forge/
  │   linux-64/mumps-include-5.6.2-ha770c72_4.conda): connection closed before
  │   message completed
  ╰─▶ connection closed before message completed

Since this is only a temporary issue and is fixed on a rerun, I would prefer if rattler just retried downloading the packages on these kinds of errors and only create an issue when it's actually failing multiple times (maybe also use exponential backoff?)

@pavelzw pavelzw added the enhancement New feature or request label Apr 1, 2024
@nichmor
Copy link
Contributor

nichmor commented Apr 2, 2024

I like this idea!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants