SSL CA failures when using a dataset from gs://
See original GitHub issueShort description
When trying to load a dataset I get an error “Problem with the SSL CA cert (path? access rights?)” and a subsequent error when six.reraise
is called
Environment information
- Operating System: RHEL 7
- Python version: 3.7.4
tensorflow-datasets
version: 3.2.1tensorflow
version: 2.2.0
Reproduction instructions
- Run in python
tfds.builder("imagenet2012").info
Link to logs
Traceback (most recent call last):
File "/home/s3248973/.local/lib/python3.7/site-packages/tensorflow_datasets/core/utils/py_utils.py", line 399, in try_reraise
yield
File "/home/s3248973/.local/lib/python3.7/site-packages/tensorflow_datasets/core/registered.py", line 244, in builder
return builder_cls(name)(**builder_kwargs)
File "/home/s3248973/.local/lib/python3.7/site-packages/tensorflow_datasets/core/api_utils.py", line 69, in disallow_positional_args_dec
return fn(*args, **kwargs)
File "/home/s3248973/.local/lib/python3.7/site-packages/tensorflow_datasets/core/dataset_builder.py", line 206, in __init__
self.info.initialize_from_bucket()
File "/home/s3248973/.local/lib/python3.7/site-packages/tensorflow_datasets/core/dataset_info.py", line 423, in initialize_from_bucket
data_files = gcs_utils.gcs_dataset_info_files(self.full_name)
File "/home/s3248973/.local/lib/python3.7/site-packages/tensorflow_datasets/core/utils/gcs_utils.py", line 71, in gcs_dataset_info_files
return gcs_listdir(posixpath.join(GCS_DATASET_INFO_DIR, dataset_dir))
File "/home/s3248973/.local/lib/python3.7/site-packages/tensorflow_datasets/core/utils/gcs_utils.py", line 64, in gcs_listdir
if is_gcs_disabled() or not tf.io.gfile.exists(root_dir):
File "/sw/installed/TensorFlow/2.1.0-fosscuda-2019b-Python-3.7.4/lib/python3.7/site-packages/tensorflow_core/python/lib/io/file_io.py", line 280, in file_exists_v2
pywrap_tensorflow.FileExists(compat.as_bytes(path))
tensorflow.python.framework.errors_impl.AbortedError: All 10 retry attempts failed. The last failure: Unavailable: Error executing an HTTP request: libcurl code 77 meaning 'Problem with the SSL CA cert (path? access rights?)', error details: error setting certificate verify locations:
CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: none
when reading metadata of gs://tfds-data/dataset_info/imagenet2012/5.0.0
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "hvd_dnn_benchmark.py", line 231, in <module>
run() #pylint: disable=no-value-for-parameter
File "/sw/installed/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/sw/installed/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/sw/installed/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/sw/installed/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "hvd_dnn_benchmark.py", line 105, in run
dataset = get_dataset(dataset, synthetic=synthetic_data)
File "/home/h3/s3248973/git/tensorflow_tests/benchmark/datasets.py", line 87, in get_dataset
return _AVAIL[name](synthetic)
File "/home/h3/s3248973/git/tensorflow_tests/benchmark/datasets.py", line 77, in _imagenet
return TFDS_Dataset('imagenet2012', synthetic)
File "/home/h3/s3248973/git/tensorflow_tests/benchmark/datasets.py", line 54, in __init__
info = tfds.builder(name).info
File "/home/s3248973/.local/lib/python3.7/site-packages/tensorflow_datasets/core/registered.py", line 244, in builder
return builder_cls(name)(**builder_kwargs)
File "/sw/installed/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/contextlib.py", line 130, in __exit__
self.gen.throw(type, value, traceback)
File "/home/s3248973/.local/lib/python3.7/site-packages/tensorflow_datasets/core/utils/py_utils.py", line 401, in try_reraise
reraise(*args, **kwargs)
File "/home/s3248973/.local/lib/python3.7/site-packages/tensorflow_datasets/core/utils/py_utils.py", line 392, in reraise
six.reraise(exc_type, exc_type(msg), exc_traceback)
TypeError: __init__() missing 2 required positional arguments: 'op' and 'message'
Expected behavior No error
Issue Analytics
- State:
- Created 3 years ago
- Comments:18 (17 by maintainers)
Top Results From Across the Web
gsutil Failure: [Errno 1] _ssl.c:504: error:14090086:SSL ...
I am getting the below error message while trying to access my google cloud storage from one of my Google Compute Engine instance...
Read more >Troubleshoot SSL certificates | Load Balancing - Google Cloud
Verify or complete all steps in Using Google-managed SSL certificates. Afterwards, you can delete the certificate that permanently failed provisioning.
Read more >Troubleshooting SSL - GitLab Docs
This page contains a list of common SSL-related errors and scenarios that you may encounter while working with GitLab. It should serve as...
Read more >Cisco SD-WAN Getting Started Guide - Certificate ...
Cisco vManage NMS displays a list of all running tasks along with the total number of successes and failures. Click a row to...
Read more >Use TLS certificates for secure transport - Google Support
The certificates are signed by GlobalSign R2 CA (GS Root R2); At minimum, ... are encrypted over an HTTPS connection with 128-bit encryption,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Here is a workaround to deal with this problem, downgrade the tensorflow-datasets:
None of the solutions works for me, but this.
I think issues here have been fixed. Please open new issue otherwise