Storage: SSLError when calling blob.make_public()
See original GitHub issueOS: Ubuntu 16.04 Python: 3.5.2 google-cloud-storage: 1.6.0
I’m calling blob.make_public()
inside a function which is running in a celery thread and occasionally it fails with a -
requests.exceptions.SSLError: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1977)
Reading a previous thread about a similar issue (https://github.com/GoogleCloudPlatform/google-cloud-python/issues/3501) makes me believe that the cloud storage client should be thread safe. So let me know if this is not a thread safety issue.
Stacktrace:
Traceback (most recent call last):
File "/home/chaitanya/project/asset-tasks/venv/lib/python3.5/site-packages/celery/app/trace.py", line 374, in trace_task
R = retval = fun(*args, **kwargs)
File "/home/chaitanya/project/asset-tasks/venv/lib/python3.5/site-packages/celery/app/trace.py", line 629, in __protected_call__
return self.run(*args, **kwargs)
File "/home/chaitanya/project/asset-tasks/ingestion.py", line 268, in process_task
asset_service.make_blob_public(blob_name)
File "/home/chaitanya/project/libasset/libasset/services/asset.py", line 113, in make_blob_public
blob.make_public()
File "/home/chaitanya/project/asset-tasks/venv/lib/python3.5/site-packages/google/cloud/storage/blob.py", line 1233, in make_public
self.acl.all().grant_read()
File "/home/chaitanya/project/asset-tasks/venv/lib/python3.5/site-packages/google/cloud/storage/acl.py", line 360, in all
return self.entity('allUsers')
File "/home/chaitanya/project/asset-tasks/venv/lib/python3.5/site-packages/google/cloud/storage/acl.py", line 315, in entity
if self.has_entity(entity):
File "/home/chaitanya/project/asset-tasks/venv/lib/python3.5/site-packages/google/cloud/storage/acl.py", line 266, in has_entity
self._ensure_loaded()
File "/home/chaitanya/project/asset-tasks/venv/lib/python3.5/site-packages/google/cloud/storage/acl.py", line 209, in _ensure_loaded
self.reload()
File "/home/chaitanya/project/asset-tasks/venv/lib/python3.5/site-packages/google/cloud/storage/acl.py", line 421, in reload
query_params=query_params,
File "/home/chaitanya/project/asset-tasks/venv/lib/python3.5/site-packages/google/cloud/_http.py", line 290, in api_request
headers=headers, target_object=_target_object)
File "/home/chaitanya/project/asset-tasks/venv/lib/python3.5/site-packages/google/cloud/_http.py", line 183, in _make_request
return self._do_request(method, url, headers, data, target_object)
File "/home/chaitanya/project/asset-tasks/venv/lib/python3.5/site-packages/google/cloud/_http.py", line 212, in _do_request
url=url, method=method, headers=headers, data=data)
File "/home/chaitanya/project/asset-tasks/venv/lib/python3.5/site-packages/google/auth/transport/requests.py", line 186, in request
method, url, data=data, headers=request_headers, **kwargs)
File "/home/chaitanya/project/asset-tasks/venv/lib/python3.5/site-packages/requests/sessions.py", line 468, in request
resp = self.send(prep, **send_kwargs)
File "/home/chaitanya/project/asset-tasks/venv/lib/python3.5/site-packages/requests/sessions.py", line 576, in send
r = adapter.send(request, **kwargs)
File "/home/chaitanya/project/asset-tasks/venv/lib/python3.5/site-packages/requests/adapters.py", line 447, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1977)
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (8 by maintainers)
Top Results From Across the Web
Make an object public | Cloud Storage
// makePublic gives all users read access to an object. For more information, see the Cloud Storage Java API reference documentation. For more...
Read more >Parallel download of blobs from GCS gives SSL error
I am trying to read data from Google Cloud Storage in parallel using multiprocessing in python, but I am ...
Read more >SSL Connection error while accessing Azure Storage Blob ...
I am getting the following error while calling the below methods. await container.CreateIfNotExistsAsync();. await blockBlob.
Read more >Find Answers to AWS Questions about Amazon Simple Storage ...
Browse through Amazon Simple Storage Service questions or showcase your expertise by answering unanswered questions.
Read more >Cloud Storage for Firebase - Google
Cloud Storage for Firebase is built for app developers who need to store and serve user-generated content, such as photos or videos.
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
I’m closing this due to inactivity. Feel free to comment and we’ll re-open.
its 2019 end and still facing same issue