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
  Error 1064 (42000) when executing UPDATE SQL gratiszzzz 7 1,462 May-22-2023, 02:38 PM
Last Post: buran
  Confused over Conda Package manager vs PIP JanOlvegg 3 1,205 Mar-09-2023, 02:09 PM
Last Post: JanOlvegg
  How to deactivate correctly a conda environment NoNameoN 2 1,896 Nov-04-2022, 01:43 PM
Last Post: NoNameoN
  Eliminating error in Python update-alternatives Led_Zeppelin 2 2,992 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 2,670 Dec-16-2020, 05:26 AM
Last Post: Vokofe
  Error: How to to close and restart your shell after running 'conda init' angelica 3 10,260 May-27-2020, 10:00 AM
Last Post: snippsat
  Creating Conda env from requirments.txt file ErnestTBass 7 15,623 Apr-23-2020, 06:57 PM
Last Post: snippsat
  Installing a new package using pip in conda environment firebolt7 1 2,517 Nov-18-2019, 12:31 PM
Last Post: snippsat
  Cannot update or install anything with pip, SSL error nickystixx45 6 178,188 Mar-26-2019, 03:42 AM
Last Post: nickystixx45
  Auto activate conda env in Pycharm terminal ntuttle 0 4,769 Mar-08-2019, 03:56 PM
Last Post: ntuttle

Forum Jump:

User Panel Messages

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