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

mambaforge and miniforge 22.11.1-0 through 22.11.1-2 MacOS x64 cannot install due to "libmamba Failed to download package <...> (status 403)" #882

Closed
2 tasks done
native-api opened this issue Feb 27, 2024 · 9 comments
Labels
source::community catch-all for issues filed by community members stale [bot] marked as stale due to inactivity type::support neither a bug nor feature, is really just a user having questions or difficulty somewhere

Comments

@native-api
Copy link

native-api commented Feb 27, 2024

Checklist

  • I added a descriptive title
  • I searched open reports and couldn't find a duplicate

What happened?

Subj. See https://github.com/pyenv/pyenv/actions/runs/8057336828?pr=2909 for details.
Tried to rerun the jobs a few times during the last 10 hours.

These URLs have been seen yield 403s:

https://conda.anaconda.org/conda-forge/osx-64/c-ares-1.18.1-h0d85af4_0.tar.bz2
https://conda.anaconda.org/conda-forge/osx-64/libcxx-14.0.6-hccf4f1f_0.tar.bz2
https://conda.anaconda.org/conda-forge/osx-64/bzip2-1.0.8-h0d85af4_4.tar.bz2
https://conda.anaconda.org/conda-forge/osx-64/libffi-3.4.2-h0d85af4_5.tar.bz2
https://conda.anaconda.org/conda-forge/osx-64/libzlib-1.2.13-hfd90126_4.tar.bz2
https://conda.anaconda.org/conda-forge/osx-64/ca-certificates-2022.12.7-h033912b_0.conda

Tried to run the installations from home and got the same errors with the same URLs.

Conda Info

N/A

Conda Config

N/A

Conda list

N/A

Additional Context

No response

@native-api native-api added the type::bug describes erroneous operation, use severity::* to classify the type label Feb 27, 2024
@native-api native-api changed the title mambaforge and miniforge 22.11.1-0 through 22.11.1-4 MacOS x64 cannot install due to "libmamba Failed to download package <...> (status 403)" mambaforge and miniforge 22.11.1-0 through 22.11.1-2 MacOS x64 cannot install due to "libmamba Failed to download package <...> (status 403)" Feb 27, 2024
@travishathaway
Copy link
Contributor

@native-api,

Has this issue been resolved? It looks like it may have just been a temporary problem.

@travishathaway travishathaway added type::support neither a bug nor feature, is really just a user having questions or difficulty somewhere source::community catch-all for issues filed by community members and removed type::bug describes erroneous operation, use severity::* to classify the type labels Feb 28, 2024
@native-api
Copy link
Author

Still same errors. At the same time, if I manually download these URLs with cURL, they download fine.

So I believe it's a misconfiguration and/or CDN malfunction that rejects certain User-Agent:s.

@travishathaway
Copy link
Contributor

@jezdez, pinging you here to see if this should be transferred to https://github.com/conda/infrastructure

@jezdez jezdez transferred this issue from conda/conda Feb 29, 2024
@jezdez
Copy link
Member

jezdez commented Feb 29, 2024

@travishathaway Yep!

@native-api
Copy link
Author

Attached a Bash trace log of the failed Pyenv install commands. It contains invocations that lead to the errors.
out.txt
These lines look suspicious:

warning  libmamba Package tarball '/Users/admin/micromamba/pkgs/bzip2-1.0.8-h0d85af4_4.tar.bz2' is invalid
warning  libmamba Package tarball '/Users/admin/micromamba/pkgs/c-ares-1.18.1-h0d85af4_0.tar.bz2' is invalid
warning  libmamba Package tarball '/Users/admin/micromamba/pkgs/ca-certificates-2022.12.7-h033912b_0.conda' is invalid
warning  libmamba Package tarball '/Users/admin/micromamba/pkgs/libcxx-14.0.6-hccf4f1f_0.tar.bz2' is invalid
warning  libmamba Package tarball '/Users/admin/micromamba/pkgs/libffi-3.4.2-h0d85af4_5.tar.bz2' is invalid
warning  libmamba Package tarball '/Users/admin/micromamba/pkgs/libzlib-1.2.13-hfd90126_4.tar.bz2' is invalid

Maybe the error message is a blatant lie and it doesn't even try to download anything?

@native-api
Copy link
Author

native-api commented Feb 29, 2024

Maybe the error message is a blatant lie and it doesn't even try to download anything?

No, a further inspection shows clear traces of 403s from Cloudflare:

admin@Mac-Admin .pyenv % cd ~/micromamba/pkgs 
admin@Mac-Admin pkgs % ls
bzip2-1.0.8-h0d85af4_4.tar.bz2			libcxx-14.0.6-hccf4f1f_0.tar.bz2		libzlib-1.2.13-hfd90126_4.tar.bz2
c-ares-1.18.1-h0d85af4_0.tar.bz2		libev-4.33-haf1e3a3_1.tar.bz2			urls.txt
ca-certificates-2022.12.7-h033912b_0.conda	libffi-3.4.2-h0d85af4_5.tar.bz2
admin@Mac-Admin pkgs % file ca-certificates-2022.12.7-h033912b_0.conda 
ca-certificates-2022.12.7-h033912b_0.conda: HTML document text, ASCII text, with CRLF line terminators
admin@Mac-Admin pkgs % head ca-certificates-2022.12.7-h033912b_0.conda 
<html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
<hr><center>cloudflare</center>
</body>
</html>
admin@Mac-Admin pkgs % cat bzip2-1.0.8-h0d85af4_4.tar.bz2 
<html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
<hr><center>cloudflare</center>
</body>
</html>

@native-api
Copy link
Author

In any case, it looks like the installation bundles are broken -- that's why the installer tries to download anything in the first place.

Copy link

Hi there, thank you for your contribution!

This issue has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further activity occurs.

If you would like this issue to remain open please:

  1. Verify that you can still reproduce the issue at hand
  2. Comment that the issue is still reproducible and include:
    - What OS and version you reproduced the issue on
    - What steps you followed to reproduce the issue

NOTE: If this issue was closed prematurely, please leave a comment.

Thanks!

@github-actions github-actions bot added the stale [bot] marked as stale due to inactivity label May 30, 2024
@jezdez
Copy link
Member

jezdez commented May 31, 2024

This seems to have been resolved as part of the recent CDN sync improvements.

@jezdez jezdez closed this as completed May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
source::community catch-all for issues filed by community members stale [bot] marked as stale due to inactivity type::support neither a bug nor feature, is really just a user having questions or difficulty somewhere
Projects
Archived in project
Development

No branches or pull requests

3 participants