mamba: Mamba doesn't work behind a corporate proxy (conda does): download error (56) - failure when receiving data from the peer

Troubleshooting docs

  • My problem is not solved in the Troubleshooting docs

Search tried in issue tracker

yes, nothing found

Latest version of Mamba

  • My problem is not solved with the latest version

Tried in Conda?

Not reproducible with Conda

Describe your issue

The issue

At home I am a happy user of Mambaforge on my Windows PC I installed the same on my work PC (also Windows) behind a corporate firewall, after uninstalling Anaconda, but mamba couldn’t download any package. Odd, because the very same proxy settings worked with Anaconda. So I installed miniconda, installed mamba from conda-forge, ran conda clean --all, and tried again: with the very same .condarc file and proxy settings, conda works, mamba does not. See error message in the section below. it didn’t make a difference, but I also installed conda-build.

Please note, I installed only mamba and condabuild - all the other packages in my environment were installed by conda when I installed these two.

My interpretation

My guess is that, since conda works with the very same proxy settings and .condarc files, the proxy server is not blocking access to the conda-forge repository. So I guess it must be one of:

  1. mamba does not work behind a corporate proxy
  2. mamba requires a different configuration than conda to work behind a proxy (but I have not been able to find information about this)
  3. my corporate network allows requests from conda but not from mamba (not even sure if this is feasible at all, to be honest)

What I have found

There is a vaguely similar report, where a user fixed the issue by setting the proxy outside of .condarc : https://github.com/mamba-org/mamba/issues/151#issuecomment-1081449544

set http_proxy=http://proxy.myproxy.com/
set https_proxy=https://proxy.myproxy.com/

but that didn’t work for me - I get the same error.

There are other reports about SSL issues https://github.com/mamba-org/mamba/issues/1106 but that’s not the error I am getting.

my .condarc file

channels:
- conda-forge

show_channel_urls: True

proxy_servers:
http: <proxy.work.com:xyz>
https: <proxy.work.com:xyz>

ssl_verify: False

conda doesn’t work with ssl_verify set to true. mamba doesn’t work with either setting.

The error report

# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

    Traceback (most recent call last):
      File "C:\Users\username\AppData\Local\miniconda3\lib\site-packages\conda\exceptions.py", line 1132, in __call__
        return func(*args, **kwargs)
      File "C:\Users\username\AppData\Local\miniconda3\lib\site-packages\conda_env\cli\main.py", line 78, in do_call
        exit_code = getattr(module, func_name)(args, parser)
      File "C:\Users\username\AppData\Local\miniconda3\lib\site-packages\conda\notices\core.py", line 121, in wrapper
        return func(*args, **kwargs)
      File "C:\Users\username\AppData\Local\miniconda3\lib\site-packages\conda_env\cli\main_create.py", line 152, in execute
        result[installer_type] = installer.install(prefix, pkg_specs, args, env)
      File "C:\Users\username\AppData\Local\miniconda3\lib\site-packages\mamba\mamba_env.py", line 55, in mamba_install
        index = load_channels(pool, channel_urls, repos, prepend=False)
      File "C:\Users\username\AppData\Local\miniconda3\lib\site-packages\mamba\utils.py", line 129, in load_channels
        index = get_index(
      File "C:\Users\username\AppData\Local\miniconda3\lib\site-packages\mamba\utils.py", line 110, in get_index
        is_downloaded = dlist.download(api.MAMBA_DOWNLOAD_FAILFAST)
    RuntimeError: Download error (56) Failure when receiving data from the peer [https://conda.anaconda.org/conda-forge/noarch/repodata.json]

mamba info / micromamba info

active environment : base
    active env location : C:\Users\username\AppData\Local\miniconda3
            shell level : 1
       user config file : C:\Users\username\.condarc
 populated config files : C:\Users\username\.condarc
          conda version : 23.3.1
    conda-build version : 3.24.0
         python version : 3.10.10.final.0
       virtual packages : __archspec=1=x86_64
                          __win=0=0
       base environment : C:\Users\username\AppData\Local\miniconda3  (writable)
      conda av data dir : C:\Users\username\AppData\Local\miniconda3\etc\conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/win-64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : C:\Users\username\AppData\Local\miniconda3\pkgs
                          C:\Users\username\.conda\pkgs
                          C:\Users\username\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\username\AppData\Local\miniconda3\envs
                          C:\Users\username\.conda\envs
                          C:\Users\username\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/23.3.1 requests/2.28.2 CPython/3.10.10 Windows/10 Windows/10.0.19044
          administrator : False
             netrc file : None
           offline mode : False

Logs

Looking for: ['pandas']

info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\beautifulsoup4-4.12.0-pyha770c72_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\boltons-23.0.0-pyhd8ed1ab_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\brotlipy-0.7.0-py310h8d17308_1005.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\bzip2-1.0.8-h8ffe710_4.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\ca-certificates-2022.12.7-h5b45459_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\certifi-2022.12.7-pyhd8ed1ab_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\cffi-1.15.1-py310h628cb3f_3.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\chardet-5.1.0-py310h5588dad_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\charset-normalizer-3.1.0-pyhd8ed1ab_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\colorama-0.4.6-pyhd8ed1ab_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\conda-23.3.1-py310h5588dad_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\conda-build-3.24.0-py310h5588dad_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\conda-content-trust-0.1.3-pyhd8ed1ab_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\conda-package-handling-2.0.2-pyh38be061_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\conda-package-streaming-0.7.0-pyhd8ed1ab_1.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\console_shortcut_miniconda-0.1.1-haa95532_1.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\cryptography-40.0.1-py310h6e82f81_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\filelock-3.10.7-pyhd8ed1ab_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\fmt-9.1.0-h181d51b_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\glob2-0.7-py_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\idna-3.4-pyhd8ed1ab_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\jinja2-3.1.2-pyhd8ed1ab_1.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\jsonpatch-1.32-pyhd8ed1ab_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\jsonpointer-2.0-py_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\krb5-1.20.1-heb0366b_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\libarchive-3.6.2-h27c7867_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\libcurl-7.88.1-h68f0423_1.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\libffi-3.4.2-h8ffe710_5.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\libiconv-1.17-h8ffe710_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\liblief-0.12.3-h63175ca_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\libmamba-1.4.1-h8a7d157_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\libmambapy-1.4.1-py310h3fe4c2e_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\libsolv-0.7.23-h12be248_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\libsqlite-3.40.0-hcfcfb64_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\libssh2-1.10.0-h9a1e1f7_3.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\libxml2-2.10.3-hc3477c8_6.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\libzlib-1.2.13-hcfcfb64_4.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\lz4-c-1.9.4-hcfcfb64_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\lzo-2.10-he774522_1000.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\m2-msys2-runtime-2.5.0.17080.65c939c-3.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\m2-patch-2.7.5-2.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\m2w64-gcc-libgfortran-5.3.0-6.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\m2w64-gcc-libs-5.3.0-7.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\m2w64-gcc-libs-core-5.3.0-7.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\m2w64-gmp-6.1.0-2.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\m2w64-libwinpthread-git-5.0.0.4634.697f757-2.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\mamba-1.4.1-py310hd9d798f_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\markupsafe-2.1.2-py310h8d17308_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\menuinst-1.4.19-py310h5588dad_1.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\msys2-conda-epoch-20160418-1.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\openssl-3.1.0-hcfcfb64_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\packaging-23.0-pyhd8ed1ab_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\pip-23.0.1-pyhd8ed1ab_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\pkginfo-1.9.6-pyhd8ed1ab_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\pluggy-1.0.0-pyhd8ed1ab_5.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\powershell_shortcut_miniconda-0.0.1-haa95532_1.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\psutil-5.9.4-py310h8d17308_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\py-lief-0.12.3-py310h00ffb61_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\pybind11-abi-4-hd8ed1ab_3.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\pycosat-0.6.4-py310h8d17308_1.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\pycparser-2.21-pyhd8ed1ab_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\pyopenssl-23.1.1-pyhd8ed1ab_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\pysocks-1.7.1-pyh0701188_6.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\python-3.10.10-h4de0772_0_cpython.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\python-libarchive-c-4.0-py310h5588dad_2.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\python_abi-3.10-3_cp310.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\pytz-2023.3-pyhd8ed1ab_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\pyyaml-6.0-py310h8d17308_5.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\reproc-14.2.4-hcfcfb64_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\reproc-cpp-14.2.4-h63175ca_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\requests-2.28.2-pyhd8ed1ab_1.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\ripgrep-13.0.0-h7f3b576_2.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\ruamel.yaml-0.17.21-py310h8d17308_3.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\ruamel.yaml.clib-0.2.7-py310h8d17308_1.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\setuptools-65.6.3-pyhd8ed1ab_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\six-1.16.0-pyh6c4a22f_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\soupsieve-2.3.2.post1-pyhd8ed1ab_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\sqlite-3.40.0-hcfcfb64_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\tk-8.6.12-h8ffe710_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\tomli-2.0.1-pyhd8ed1ab_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\toolz-0.12.0-pyhd8ed1ab_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\tqdm-4.65.0-pyhd8ed1ab_1.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\tzdata-2023c-h71feb2d_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\ucrt-10.0.22621.0-h57928b3_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\urllib3-1.26.15-pyhd8ed1ab_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\vc-14.3-hb6edc58_10.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\vs2015_runtime-14.34.31931-h4c5c07a_10.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\wheel-0.40.0-pyhd8ed1ab_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\wincertstore-0.2-pyhd8ed1ab_1009.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\win_inet_pton-1.1.0-pyhd8ed1ab_6.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\xz-5.2.6-h8d14728_0.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\yaml-0.2.5-h8ffe710_2.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\yaml-cpp-0.7.0-h63175ca_2.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\zlib-1.2.13-hcfcfb64_4.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\zstandard-0.19.0-py310h0009e47_1.json"
info     libmamba Loading single package record: "C:\\Users\\username\\AppData\\Local\\miniconda3\\conda-meta\\zstd-1.5.2-h12be248_6.json"
info     libmamba Reading cache files 'C:\Users\username\AppData\Local\Temp\1\tmpvs5e2c9_.*' for repo index 'installed'
info     libmamba Searching index cache file for repo 'https://conda.anaconda.org/conda-forge/win-64/repodata.json'
info     libmamba No valid cache found
info     libmamba Using Proxy dg-webproxy.mycompany.com:443
info     libmamba Searching index cache file for repo 'https://conda.anaconda.org/conda-forge/noarch/repodata.json'
info     libmamba No valid cache found
info     libmamba Using Proxy dg-webproxy.mycompany.com:443
info     libmamba Starting to download targets
[+] 3.4s
conda-forge/win-64 -----------------------------------------------------------------------------------------   9.5MB /  ??.?MB @   2.8MB/s  3.4s
conda-forge/noarch -----------------------------------------------------------------------------------------   9.6MB /  ??.?MB @   3.4MB/s  3.4s[+] 4.3s
conda-forge/win-64 -----------------------------------------------  19.5MB /  ??.?MB @   4.6MB/s Failure when receiving data from the peer  4.3s
conda-forge/noarch -----------------------------------------------   0.0 B /   1.0 B @   3.4MB/s Failure when receiving data from the peer  4.3s[+] 5.5s
conda-forge/win-64 -----------------------------------------------   0.0 B /   1.0 B @   4.6MB/s Failure when receiving data from the peer  5.5s
[+] 6.8s
conda-forge/win-64 -----------------------------------------------   0.0 B /   1.0 B @   4.6MB/s Failure when receiving data from the peer  6.8s
[+] 8.4s
conda-forge/win-64 -----------------------------------------------   0.0 B /  ??.?MB @  ??.?MB/s Failure when receiving data from the peer  8.4s
conda-forge/noarch -----------------------------------------------   9.7MB /  ??.?MB @   3.4MB/s Failure when receiving data from the peer  8.4s[+] 10.5s
conda-forge/win-64 -----------------------------------------------  17.5MB /  ??.?MB @   4.9MB/s Failure when receiving data from the peer 10.5s
[+] 10.9s
conda-forge/win-64 -----------------------------------------------  19.6MB /  ??.?MB @   4.9MB/s Failure when receiving data from the peer 10.9s
conda-forge/noarch -----------------------------------------------   0.0 B /  ??.?MB @  ??.?MB/s Failure when receiving data from the peer 10.9s[+] 12.9s
conda-forge/win-64 -----------------------------------------------   0.0 B /   1.0 B @   4.9MB/s Failure when receiving data from the peer 12.9s
[+] 13.6s
conda-forge/win-64 -----------------------------------------------   0.0 B /  ??.?MB @  ??.?MB/s Failure when receiving data from the peer 13.6s
conda-forge/noarch -----------------------------------------------   9.5MB /  ??.?MB @   3.2MB/s Failure when receiving data from the peer 13.6s[+] 16.3s
conda-forge/win-64 -----------------------------------------------   0.0 B /  ??.?MB @  ??.?MB/s Failure when receiving data from the peer 16.3s
[+] 17.5s
conda-forge/win-64 -----------------------------------------------  19.4MB /  ??.?MB @   4.3MB/s Failure when receiving data from the peer 17.5s
conda-forge/noarch -----------------------------------------------   0.0 B /  ??.?MB @  ??.?MB/s Failure when receiving data from the peer 17.5s[+] 19.4s
conda-forge/win-64 -----------------------------------------------   0.0 B /   1.0 B @   4.3MB/s Failure when receiving data from the peer 19.4s
conda-forge/noarch -----------------------------------------------   9.6MB /  ??.?MB @   3.7MB/s Failure when receiving data from the peer 19.4sDownload error (56) Failure when receiving data from the peer [https://conda.anaconda.org/conda-forge/noarch/repodata.json]


# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

    Traceback (most recent call last):
      File "C:\Users\username\AppData\Local\miniconda3\lib\site-packages\conda\exceptions.py", line 1132, in __call__
        return func(*args, **kwargs)
      File "C:\Users\username\AppData\Local\miniconda3\lib\site-packages\mamba\mamba.py", line 941, in exception_converter
        raise e
      File "C:\Users\username\AppData\Local\miniconda3\lib\site-packages\mamba\mamba.py", line 934, in exception_converter
        exit_code = _wrapped_main(*args, **kwargs)
      File "C:\Users\username\AppData\Local\miniconda3\lib\site-packages\mamba\mamba.py", line 892, in _wrapped_main
        result = do_call(parsed_args, p)
      File "C:\Users\username\AppData\Local\miniconda3\lib\site-packages\mamba\mamba.py", line 754, in do_call
        exit_code = install(args, parser, "install")
      File "C:\Users\username\AppData\Local\miniconda3\lib\site-packages\mamba\mamba.py", line 499, in install
        index = load_channels(pool, channels, repos)
      File "C:\Users\username\AppData\Local\miniconda3\lib\site-packages\mamba\utils.py", line 129, in load_channels
        index = get_index(
      File "C:\Users\username\AppData\Local\miniconda3\lib\site-packages\mamba\utils.py", line 110, in get_index
        is_downloaded = dlist.download(api.MAMBA_DOWNLOAD_FAILFAST)
    RuntimeError: Download error (56) Failure when receiving data from the peer [https://conda.anaconda.org/conda-forge/noarch/repodata.json]


`$ C:\Users\username\AppData\Local\miniconda3\Scripts\mamba install -v pandas`

  environment variables:
                 CIO_TEST=<not set>
        CONDA_DEFAULT_ENV=base
                CONDA_EXE=C:\Users\username\AppData\Local\miniconda3\condabin\..\Scripts\conda.e
                          xe
               CONDA_EXES="C:\Users\username\AppData\Local\miniconda3\condabin\..\Scripts\conda.
                          exe"
             CONDA_PREFIX=C:\Users\username\AppData\Local\miniconda3
    CONDA_PROMPT_MODIFIER=(base)
         CONDA_PYTHON_EXE=C:\Users\username\AppData\Local\miniconda3\python.exe
               CONDA_ROOT=C:\Users\username\AppData\Local\miniconda3
              CONDA_SHLVL=1
           CURL_CA_BUNDLE=<not set>
                 HOMEPATH=\
               LD_PRELOAD=<not set>
                NODE_PATH=C:\Program Files\SQL Anywhere 17\Node
                     PATH=C:\Users\username\AppData\Local\miniconda3;C:\Users\username\AppData\L
                          ocal\miniconda3\Library\mingw-
                          w64\bin;C:\Users\username\AppData\Local\miniconda3\Library\usr\bin;C:\
                          Users\username\AppData\Local\miniconda3\Library\bin;C:\Users\username\
                          AppData\Local\miniconda3\Scripts;C:\Users\username\AppData\Local\minic
                          onda3\bin;C:\Users\username\AppData\Local\miniconda3\condabin;C:\Progr
                          am Files\Eclipse Adoptium\jre-17.0.5.8-
                          hotspot\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:
                          \WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C
                          :\APPS\Global\dev_tools;C:\Users\username\AppData\Local\JetBra
                          ins\PyCharm 2022.3.3\bin;.
             PSMODULEPATH=C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\Windows
                          PowerShell\v1.0\Modules;C:\Program Files (x86)\Microsoft SQL
                          Server\150\Tools\PowerShell\Modules\;C:\Program Files (x86)\Microsoft
                          Azure Information Protection\Powershell;C:\Program
                          Files\Citrix\Telemetry Service\
       REQUESTS_CA_BUNDLE=<not set>
            SSL_CERT_FILE=<not set>

     active environment : base
    active env location : C:\Users\username\AppData\Local\miniconda3
            shell level : 1
       user config file : C:\Users\username\.condarc
 populated config files : C:\Users\username\.condarc
          conda version : 23.3.1
    conda-build version : 3.24.0
         python version : 3.10.10.final.0
       virtual packages : __archspec=1=x86_64
                          __win=0=0
       base environment : C:\Users\username\AppData\Local\miniconda3  (writable)
      conda av data dir : C:\Users\username\AppData\Local\miniconda3\etc\conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/win-64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : C:\Users\username\AppData\Local\miniconda3\pkgs
                          C:\Users\username\.conda\pkgs
                          C:\Users\username\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\username\AppData\Local\miniconda3\envs
                          C:\Users\username\.conda\envs
                          C:\Users\username\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/23.3.1 requests/2.28.2 CPython/3.10.10 Windows/10 Windows/10.0.19044
          administrator : False
             netrc file : None
           offline mode : False


An unexpected error has occurred. Conda has prepared the above report.

environment.yml

name: base
channels:
  - defaults
  - conda-forge
dependencies:
  - beautifulsoup4=4.12.0=pyha770c72_0
  - boltons=23.0.0=pyhd8ed1ab_0
  - brotlipy=0.7.0=py310h8d17308_1005
  - bzip2=1.0.8=h8ffe710_4
  - ca-certificates=2022.12.7=h5b45459_0
  - certifi=2022.12.7=pyhd8ed1ab_0
  - cffi=1.15.1=py310h628cb3f_3
  - chardet=5.1.0=py310h5588dad_0
  - charset-normalizer=3.1.0=pyhd8ed1ab_0
  - colorama=0.4.6=pyhd8ed1ab_0
  - conda=23.3.1=py310h5588dad_0
  - conda-build=3.24.0=py310h5588dad_0
  - conda-content-trust=0.1.3=pyhd8ed1ab_0
  - conda-package-handling=2.0.2=pyh38be061_0
  - conda-package-streaming=0.7.0=pyhd8ed1ab_1
  - console_shortcut_miniconda=0.1.1=haa95532_1
  - cryptography=40.0.1=py310h6e82f81_0
  - filelock=3.10.7=pyhd8ed1ab_0
  - fmt=9.1.0=h181d51b_0
  - glob2=0.7=py_0
  - idna=3.4=pyhd8ed1ab_0
  - jinja2=3.1.2=pyhd8ed1ab_1
  - jsonpatch=1.32=pyhd8ed1ab_0
  - jsonpointer=2.0=py_0
  - krb5=1.20.1=heb0366b_0
  - libarchive=3.6.2=h27c7867_0
  - libcurl=7.88.1=h68f0423_1
  - libffi=3.4.2=h8ffe710_5
  - libiconv=1.17=h8ffe710_0
  - liblief=0.12.3=h63175ca_0
  - libmamba=1.4.1=h8a7d157_0
  - libmambapy=1.4.1=py310h3fe4c2e_0
  - libsolv=0.7.23=h12be248_0
  - libsqlite=3.40.0=hcfcfb64_0
  - libssh2=1.10.0=h9a1e1f7_3
  - libxml2=2.10.3=hc3477c8_6
  - libzlib=1.2.13=hcfcfb64_4
  - lz4-c=1.9.4=hcfcfb64_0
  - lzo=2.10=he774522_1000
  - m2-msys2-runtime=2.5.0.17080.65c939c=3
  - m2-patch=2.7.5=2
  - m2w64-gcc-libgfortran=5.3.0=6
  - m2w64-gcc-libs=5.3.0=7
  - m2w64-gcc-libs-core=5.3.0=7
  - m2w64-gmp=6.1.0=2
  - m2w64-libwinpthread-git=5.0.0.4634.697f757=2
  - mamba=1.4.1=py310hd9d798f_0
  - markupsafe=2.1.2=py310h8d17308_0
  - menuinst=1.4.19=py310h5588dad_1
  - msys2-conda-epoch=20160418=1
  - openssl=3.1.0=hcfcfb64_0
  - packaging=23.0=pyhd8ed1ab_0
  - pip=23.0.1=pyhd8ed1ab_0
  - pkginfo=1.9.6=pyhd8ed1ab_0
  - pluggy=1.0.0=pyhd8ed1ab_5
  - powershell_shortcut_miniconda=0.0.1=haa95532_1
  - psutil=5.9.4=py310h8d17308_0
  - py-lief=0.12.3=py310h00ffb61_0
  - pybind11-abi=4=hd8ed1ab_3
  - pycosat=0.6.4=py310h8d17308_1
  - pycparser=2.21=pyhd8ed1ab_0
  - pyopenssl=23.1.1=pyhd8ed1ab_0
  - pysocks=1.7.1=pyh0701188_6
  - python=3.10.10=h4de0772_0_cpython
  - python-libarchive-c=4.0=py310h5588dad_2
  - python_abi=3.10=3_cp310
  - pytz=2023.3=pyhd8ed1ab_0
  - pyyaml=6.0=py310h8d17308_5
  - reproc=14.2.4=hcfcfb64_0
  - reproc-cpp=14.2.4=h63175ca_0
  - requests=2.28.2=pyhd8ed1ab_1
  - ripgrep=13.0.0=h7f3b576_2
  - ruamel.yaml=0.17.21=py310h8d17308_3
  - ruamel.yaml.clib=0.2.7=py310h8d17308_1
  - setuptools=65.6.3=pyhd8ed1ab_0
  - six=1.16.0=pyh6c4a22f_0
  - soupsieve=2.3.2.post1=pyhd8ed1ab_0
  - sqlite=3.40.0=hcfcfb64_0
  - tk=8.6.12=h8ffe710_0
  - tomli=2.0.1=pyhd8ed1ab_0
  - toolz=0.12.0=pyhd8ed1ab_0
  - tqdm=4.65.0=pyhd8ed1ab_1
  - tzdata=2023c=h71feb2d_0
  - ucrt=10.0.22621.0=h57928b3_0
  - urllib3=1.26.15=pyhd8ed1ab_0
  - vc=14.3=hb6edc58_10
  - vs2015_runtime=14.34.31931=h4c5c07a_10
  - wheel=0.40.0=pyhd8ed1ab_0
  - win_inet_pton=1.1.0=pyhd8ed1ab_6
  - wincertstore=0.2=pyhd8ed1ab_1009
  - xz=5.2.6=h8d14728_0
  - yaml=0.2.5=h8ffe710_2
  - yaml-cpp=0.7.0=h63175ca_2
  - zlib=1.2.13=hcfcfb64_4
  - zstandard=0.19.0=py310h0009e47_1
  - zstd=1.5.2=h12be248_6
prefix: C:\Usersusername\AppData\Local\miniconda3

~/.condarc

channel_priority: strict
channels:
- conda-forge


show_channel_urls: true


proxy_servers:
  http: dg-webproxy.mycompany.com:xyz
  https: dg-webproxy.mycompany.com:xyz

ssl_verify: False

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Reactions: 1
  • Comments: 26

Most upvoted comments

I updated libcurl in the base environment to 7.88.1. Updating libcurl solved this issue https://github.com/mamba-org/mamba/issues/1856 for the user who raised it, but changed absolutely nothing for me.

I have learnt that curl is now part of Windows: https://curl.se/windows/microsoft.html

Since curl version 7.83.1 (the one that comes with Windows) does download the json (if I set the proxy in the environment variables) I downloaded version 7.83.1 from https://curl.se/windows/dl-7.83.1/ I ran that, and got:

H:\curl-7.83.1-win64-mingw\bin>curl https://conda.anaconda.org/conda-forge/noarch/repodata.json
curl: (60) SSL certificate problem: self-signed certificate in certificate chain
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

So: the curl 7.83.1 which is part of Windows works, while the curl 7.83.1 one can download from the curl website does not! It seems the former recognises all the settings for proxy ssl certificates etc, while the latter does not.

What a headache!

In my work network there are 3 .crt certificate files that can be used. I have changed the .condarc file so that ssl_verify: c:\users\username\certificate_file.crt conda works if I specify any of the 3 .crt files. mamba does not work with any of the 3 files

The files are:

  • work_root_ca.crt: mamba tells me ‘failure when receiving data from the peer’
  • corp_device_ca.crt: mamba tells me ‘SSL peer certificate or SSHL remote key was not OK’
  • zscaler_int_ca.crt mamba tells me ‘SSL peer certificate or SSHL remote key was not OK’

My interpretation is that there is nothing wrong with my network, my certificates work fine, my firewall/proxy is not blocking access to conda-forge and the issue is with mamba, which should replicate the syntax and functionality of conda but, in this specific instance, does not (conda works perfectly well).

Has anyone else tried to use mamba behind a corporate firewall/proxy and/or with .crt certificates? Surely I can’t be the only one in this situation?

Though ideally would be nice to have mamba work with Zscaler and conda-forge, or at least find a configuration setting that allows its use, given that conda works, and that curl provided by default in PowerShell also works.