Intermittently getting 'An existing connection was forcibly closed by the remote host'

Shaffer, Nicholas 0 Reputation points
2024-03-12T15:31:06.77+00:00

When trying to upload file from on prem VM via python I am getting intermittent connection errors.
azure.core.exceptions.ServiceResponseError: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))
and

azure.core.exceptions.ServiceResponseError: ('Connection aborted.', ConnectionAbortedError(10053, 'An established connection was aborted by the software in your host machine', None, 10053, None))

I've tried setting the connection time out but still receiving the errors

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,424 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anand Prakash Yadav 5,525 Reputation points Microsoft Vendor
    2024-03-13T10:24:00.9666667+00:00

    Hello Shaffer, Nicholas,

    Thank you for posting your query here!

    I understand that "you were unable to upload file in blob storage from on premises VM using python programming."

    The error report:

    azure.core.exceptions.ServiceResponseError: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))

    As stated, it is usually caused by a connection issue between the client and the server. The error message indicates that the connection was forcibly closed by the remote host.

    This error can occur for several reasons, including network issues, server overload, or incorrect configuration settings. If you are using Python to connect to Azure services, you may want to check your code for any issues that could cause this error for the particular system.

    You can read more here: 
    https://github.com/Azure/azure-storage-python/issues/688
    An existing connection was forcibly closed by the remote host.

    However, since the issue is related to SDK for Python specific, I would recommend posting your question here https://github.com/Azure/azure-sdk-for-python/issues to receive a focused and immediate assistance from the right set of experts.

    This repository is for active development of the Azure SDK for Python. For consumers of the SDK, we recommend visiting our public developer docs or our versioned developer docs.

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments