Python Forum
SSL error while trying to update conda
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SSL error while trying to update conda
#1
We are trying to upgrade python 36 version to 3.6.13. Py36 is venv. We use miniconda as package manager. We performed successfully this task in dev env. We tried to do the same in non prod. But facing SSL issue.
Earlier we used proxies to connect internet but not anymore. By troubleshooting we found somewhere the proxy was enabled and that is causing the SSL issue.
We do not know which program enables proxy that is causing the issue. Earlier in dev env we faced the same issue. We resolved it by removing proxy details in condarc file and other environment files.
Please advice how to identify the program that enables proxy?
Error message:
Error:
# sudo /usr/share/miniconda2/bin/conda update -y --v conda Solving environment: ...working... Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(104, 'ECONNRESET')",),)': /pkgs/pro/noarch/repodata.json.bz2 Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(104, 'ECONNRESET')",),)': /pkgs/pro/noarch/repodata.json.bz2 Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(104, 'ECONNRESET')",),)': /pkgs/pro/noarch/repodata.json.bz2 failed Traceback (most recent call last): File "/usr/share/miniconda2/lib/python2.7/site-packages/conda/exceptions.py", line 819, in __call__ return func(*args, **kwargs) File "/usr/share/miniconda2/lib/python2.7/site-packages/conda/cli/main.py", line 78, in _main exit_code = do_call(args, p) File "/usr/share/miniconda2/lib/python2.7/site-packages/conda/cli/conda_argparse.py", line 77, in do_call exit_code = getattr(module, func_name)(args, parser) File "/usr/share/miniconda2/lib/python2.7/site-packages/conda/cli/main_update.py", line 14, in execute install(args, parser, 'update') File "/usr/share/miniconda2/lib/python2.7/site-packages/conda/cli/install.py", line 235, in install force_reinstall=context.force, File "/usr/share/miniconda2/lib/python2.7/site-packages/conda/core/solve.py", line 518, in solve_for_transaction force_remove, force_reinstall) File "/usr/share/miniconda2/lib/python2.7/site-packages/conda/core/solve.py", line 451, in solve_for_diff final_precs = self.solve_final_state(deps_modifier, prune, ignore_pinned, force_remove) File "/usr/share/miniconda2/lib/python2.7/site-packages/conda/core/solve.py", line 180, in solve_final_state index, r = self._prepare(prepared_specs) File "/usr/share/miniconda2/lib/python2.7/site-packages/conda/core/solve.py", line 592, in _prepare self.subdirs, prepared_specs) File "/usr/share/miniconda2/lib/python2.7/site-packages/conda/core/index.py", line 215, in get_reduced_index new_records = query_all(spec) File "/usr/share/miniconda2/lib/python2.7/site-packages/conda/core/index.py", line 184, in query_all return tuple(concat(future.result() for future in as_completed(futures))) File "/usr/share/miniconda2/lib/python2.7/site-packages/conda/core/subdir_data.py", line 95, in query self.load() File "/usr/share/miniconda2/lib/python2.7/site-packages/conda/core/subdir_data.py", line 149, in load _internal_state = self._load() File "/usr/share/miniconda2/lib/python2.7/site-packages/conda/core/subdir_data.py", line 227, in _load mod_etag_headers.get('_mod')) File "/usr/share/miniconda2/lib/python2.7/site-packages/conda/core/subdir_data.py", line 571, in fetch_repodata_remote_request caused_by=e) CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/pro/noarch/repodata.json.bz2> Elapsed: - An HTTP error occurred when trying to retrieve this URL. HTTP errors are often intermittent, and a simple retry will get you on your way. If your current network has https://www.anaconda.com blocked, please file a support request with your network engineering team. SSLError(MaxRetryError('HTTPSConnectionPool(host=\'repo.anaconda.com\', port=443): Max retries exceeded with url: /pkgs/pro/noarch/repodata.json.bz2 (Caused by SSLError(SSLError("bad handshake: SysCallError(104, \'ECONNRESET\')",),))',),)
Thanks,
Ilango
Larz60+ write Nov-04-2021, 09:48 AM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Error tags added
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Eliminating error in Python update-alternatives Led_Zeppelin 2 1,196 Apr-14-2021, 12:49 PM
Last Post: Led_Zeppelin
Question Python + Google Sheet | Best way to update specific cells in a single Update()? Vokofe 1 938 Dec-16-2020, 05:26 AM
Last Post: Vokofe
  Error: How to to close and restart your shell after running 'conda init' angelica 3 4,889 May-27-2020, 10:00 AM
Last Post: snippsat
  Creating Conda env from requirments.txt file ErnestTBass 7 7,407 Apr-23-2020, 06:57 PM
Last Post: snippsat
  Installing a new package using pip in conda environment firebolt7 1 1,435 Nov-18-2019, 12:31 PM
Last Post: snippsat
  Cannot update or install anything with pip, SSL error nickystixx45 6 126,092 Mar-26-2019, 03:42 AM
Last Post: nickystixx45
  Auto activate conda env in Pycharm terminal ntuttle 0 3,105 Mar-08-2019, 03:56 PM
Last Post: ntuttle
  sys library and how to import using conda michavardy 0 1,502 Feb-26-2019, 08:25 AM
Last Post: michavardy
  Installing blpapi in two different conda environments snicolaou 0 2,933 Jan-09-2018, 02:12 PM
Last Post: snicolaou
  How to update pymqi version from conda ? tracy786 2 2,484 Dec-30-2017, 01:09 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020