What are the causes for this exception in Azure Function app?

HKPR 41 Reputation points
2023-03-30T13:55:01.7966667+00:00

I have very basic Http Trigger Python Stack that connects with storage account for updating the blob content, queue messages, etc.

Sometimes in a while, I will be getting the below error:

Failed to establish a new connection: [Errno8] node name nor server name provided, or not known

After some restarting of Local System or Function App or some days/hours after, it will be working fine.

May I Know what are the specific cause for this error in Azure Function app when interacting with storage account objects?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,037 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Dillon Silzer 57,491 Reputation points
    2023-03-30T15:44:25.9866667+00:00

    Hi HKPR,

    It looks like you have found a remedy. Another remedy seems to be deleting the project and Function resource and redeploying the Function.

    To ensure your feedback is heard I'd recommend posting it below:

    Azure Functions

    https://feedback.azure.com/d365community/forum/9df02822-f224-ec11-b6e6-000d3a4f0da0

    And reporting issues on GitHub:

    https://github.com/Azure/Azure-Functions


    If this is helpful please accept answer.


  2. MuthuKumaranMurugaachari-MSFT 22,336 Reputation points
    2023-04-04T14:14:32.7333333+00:00

    HKPR Thanks for posting your question in Microsoft Q&A. Based on your description, you were able to mitigate the issue and looking for the root cause. You are correct, that feedback forum is generally for feature requests. We have different GitHub repositories for submitting issues for each category and this page details that. Also, check out GitHub repositories for the full list and specifically Python worker for Python stack. User's image

    However, based on the error message, it appears that some connection related errors to Azure Storage and likely an issue with Azure SDK. I found similar errors Failed to establish a new connection: with different error codes like https://github.com/Azure/azure-sdk-for-python/issues/27953 and suggest you open a new issue with azure-sdk-for-python (couldn't find Errno8).

    If you do have a support plan and face this issue again, I would recommend you open a ticket to them and they can investigate the backend logs to find the exact cause.

    I hope this helps with your question and let me know if you have any other. Would be happy to help.

    0 comments No comments

Your answer

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