Share via

Unable to upload pdf file in blob storage from on premises VM using python

Abhijeet Pratap Singh 55 Reputation points
2023-06-26T11:39:50.9566667+00:00

Hi,

I have one use case where i need to upload file from On premises VM to Azure blob Storage Container using python . I am able to do it manually in azure portal from same VM using Authentication method: Access key . but when i am doing programmatically I am getting below error .

One person from Cloud team able to upload the file in my blob storage container from his machine using same code . he is using Mac OS .

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

Azure Blob Storage
Azure Blob Storage

An Azure service that stores unstructured data in the cloud as blobs.


2 answers

Sort by: Most helpful
  1. Riski Permana 0 Reputation points
    2026-03-24T16:31:27.5466667+00:00

    xss

    tes

    0 comments No comments

  2. Sina Salam 28,281 Reputation points Volunteer Moderator
    2023-06-26T17:05:35.3066667+00:00

    @Abhijeet Pratap Singh

    Welcome to Microsoft Q&A and thank you for posting your question here.

    To understand your question, "you were unable to upload pdf file in blob storage from on premises VM using python programming." while someone else could do the same.

    So sorry for any inconveniences this might have caused you and thank you for the error information.

    The error report,

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

    As you 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: An existing connection was forcibly closed by the remote host.

    If you continue to experience this issue, I recommend that you contact Azure support from your Azure portal for further assistance.

    I hope this is helpful. If this answer solves your issue, please vote for it so other community members know that this is a quality answer. PS: Do not hesitate to let me know if you have any other questions.

    Best Regards,

    Sina

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.