conda / infrastructure

A repo to report issues and have discussions about the conda infrastructure
BSD 3-Clause "New" or "Revised" License
12 stars 15 forks source link

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 native-api closed 4 months ago

native-api commented 7 months ago

Checklist

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

travishathaway commented 7 months ago

@native-api,

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

native-api commented 7 months ago

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 commented 7 months ago

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

jezdez commented 7 months ago

@travishathaway Yep!

native-api commented 7 months ago

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 commented 7 months ago

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 commented 7 months ago

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

github-actions[bot] commented 4 months ago

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!

jezdez commented 4 months ago

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