Closed nafabrar closed 6 years ago
Hi @nafabrar, thanks for reaching out and reporting this issue!
I noticed that you are using a very old version, 0.36.0, which is the monolithic SDK that is now deprecated. I would strongly suggest to upgrade to the latest azure-storage-blob with version 1.3.1.
Any how frequently do you see this error message? Did you operate on the file at the same time as uploading was happening?
Hi @zezha-msft ,
Thanks for the quick response! We often see the error like 1 out of 5 case. Also ,we did not operate on the file at the same time as uploading was happening.
Hi @nafabrar, I apologize for the inconvenience.
Since the issue occurs so frequently, do you mind upgrading to the latest SDK and see if it still persists?
Hi @zezha-msft ,
Sure,we will update it and see if the problem still exists. Thank you.
Hi @nafabrar, any update?
HI @zezha-msft ,
We are gettting this error now:
Exception=ReadTimeout: HTTPSConnectionPool(host='singlecelldata.blob.core.windows.net', port=443): Read timed out. (read timeout=20).
Traceback (most recent call last):
File "/home/amcpherson/production/gsc/tantalus/tantalus/backend/task_scripts/transfer_files.py", line 8, in
Hi @nafabrar, you are hitting the socket timeout, please increase its value here accordingly for your environment. We set a non-zero socket timeout so that your requests do not hang forever. The default value of the socket timeout is here. Its value is different for python 3.5+, and the explanation is in the comments.
It sounds like you are not seeing the IOError anymore, so I'll go ahead and close this issue. But if you encounter it again, please let me know and I can look into it further with your help.
Which service(blob, file, queue) does this issue concern?
Blob
Which version of the SDK was used? Please provide the output of
pip freeze
.0.36.0
What problem was encountered?
IOError: close() called during concurrent operation on the same file object. Traceback (most recent call last): File "/home/amcpherson/production/gsc/tantalus/tantalus/backend/file_transfer_utils.py", line 420, in transfer_files f_transfer(file_instance, to_storage) File "/home/amcpherson/production/gsc/tantalus/tantalus/backend/file_transfer_utils.py", line 197, in upload_to_blob timeout=106064) File "/home/amcpherson/production/gsc/tantalus/venv/lib/python2.7/site-packages/azure/storage/blob/blockblobservice.py", line 411, in create_blob_from_path timeout=timeout) IOError: close() called during concurrent operation on the same file object.
Have you found a mitigation/solution?
No
Note: for table service, please post the issue here instead: https://github.com/Azure/azure-cosmosdb-python.