Python Forum

Full Version: SSL error while trying to update conda
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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