Python Azure Function App - Service Unavailable

(HERMES) Thomas Duvivier 1 Reputation point
2021-06-08T13:25:32.17+00:00

Hello,

On Friday my function apps were working properly.

Since today, when I tried to deploy from VS Code, I got the "Service Unavailable" error (screenshot 1).

When I check the activity logs, I get errors such as "The connection has been closed by the client while the server is still processing its request for 'Microsoft.Web" (screenshot 2). Or "Encountered an error (ServiceUnavailable) from host runtime." (screenshot 3).

When I go to "Functions" to Monitor the functions, I get the warning "Azure Functions runtime is unreachable" (screenshot 4), and when I open a function to see the code, I get "Editing functions in the portal is not supported for Linux Consumption Function Apps.", which is unexpected as I did have the code displayed there last week.

I did not change anything since last week when it worked fine.

I tried upgrading my version of Core Tools before re-deploying but I keep getting the same error.

I also tried Refresh, Restart, Stop and Start the Azure function app but it did not solve anything.

Please let me know if you need more information to help me solve this problem.
Thank you in advance,
Thomas Duvivier

103444-image.png
103491-image.png
103379-image.png
103386-image.png
103387-image.png

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
{count} votes

2 answers

Sort by: Most helpful
  1. MayankBargali-MSFT 70,991 Reputation points Moderator
    2021-06-09T07:39:59.597+00:00

    @(HERMES) Thomas Duvivier Looks like you have performed multiple operation start/stop function app and the function runtime was not started up correctly by the time you have performed the operation. It look like your function app is working correctly now with two function trigger.


  2. (HERMES) Thomas Duvivier 1 Reputation point
    2022-01-19T14:15:39.747+00:00

    Hi, I still get this service unavailable error, the retry parameter makes it workaround sometimes (or waiting before trying again) but not always. Do you have an idea where this could come from ? I get this problem from multiple azure function resources.


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.