I wonder (since I haven't actually tried it for this) if bouncing your anaconda.org requests through a proxy would sidestep the issue, since the institution would just see traffic to and from the proxy server. (Oh and I just noticed you're the author on that writeup about the licensing changes. Thanks for that!)
My institution disallows access to Anaconda repository servers (https://conda.anaconda.org) due to licensing fees. To work around this, I installed Miniforge and configured .condarc to use only the conda-forge and bioconda channels (e.g., following instructions here). This setup previously worked fine, but now, with a fresh installation of Miniforge, I’m encountering issues where Mamba/Conda still attempt to access Anaconda’s servers, causing installation failures.
Steps taken and error encountered
- Installed Miniforge following standard instructions.
- Configured
.condarcto use onlyconda-forgeandbioconda:channels: - conda-forge - bioconda channel_priority: flexible - Attempted to create an environment:
mamba create -n env_protocol -c bioconda -c conda-forge bc bowtie2 fastqc ipython parallel pbzip2 pigz r-argparse r-plotly r-ggsci rename samtools - Received the following error, indicating an attempt to access an Anaconda repo:
Download error (35) SSL connect error [https://conda.anaconda.org/conda-forge/noarch/repodata.json.zst] Recv failure: Connection reset by peer
Despite explicitly setting up .condarc, Conda/Mamba still defaults to https://conda.anaconda.org, which is blocked.
Request for assistance
- Are there specific settings needed to prevent Conda/Mamba from defaulting to Anaconda's servers?
- Are there alternative non-Anaconda mirrors that can be used in there place?
- Is there anything I'm missing here, or anything else you recommend?
Can post detailed command logs if needed—just let me know. Any help will be greatly appreciated.
1 answer
If they blocked anaconda.org you are screwed. Only a subpart of it must be blocked. Here is the full list: https://juke34.github.io/fix-anaconda-licensing-issues/en/pages/conda-block/
Blocking anaconda.org blocks the access to conda-forge and bioconda.
OP is likely not in a position to run a personal proxy server. Access may be blocked at the level of main institutional firewall (more than likely).
I don't mean you'd have to run one yourself, just have access to one on the outside (that's not blocked by the institution, that is). A proof of concept being something like:
$ curl --proxy 103.148.131.106:8080 https://conda.anaconda.org
<!doctype html>
<html lang=en>
<title>Redirecting...</title>
<h1>Redirecting...</h1>
<p>You should be redirected automatically to the target URL: <a href="https://anaconda.org/">https://anaconda.org/</a>. If not, click the link.
Easier said than done, though... all the free ones I tried seemed to be down/gave 4xx errors/were excruciatingly slow (including the one above when I try again). Maybe not a practical method anyway.
Hopefully your organization can fix their firewall!
If they blocked
anaconda.orgyou are screwed.
I heard back from the HPCC admins and, sure enough, this is the issue.
The ever (de)volving situation with Anaconda led to a bit of a rushed change blocking all of the conda domains. While conda-forge is open, Anaconda has put some of their non-free channels there and we believe that's what's led to some problems.
Log in to answer this question.
Have you checked
conda config --show-sourcesas suggested in the post you linked?Thanks, yes:
Looks like changing this may be worth investigating.
to your
.condarc.With
channel_priority: strictorchannel_priority: flexible, I continue to encounter the same issue: