Azure webapp unreliable, intermittent 404's

Richard 6 Reputation points
2020-09-30T13:45:28.653+00:00

Hi,

Today I'm experiencing very frustrating webapp behavior for the second time in a few months.
It prevents my customers from accessing the web api and it prevents me from publishing updates.

Situation
It's an S2 - 'always on' production web application with a custom domain with SSL certificate allowing only HTTPS.
Up until today I had no problems for several months. It just worked perfectly. So I don't believe configuration problems are in play.

Problem
From different computers (wired and wireless) and my phone (4G) I try accessing both the custom domain url and the azurewebsites.net url.
Sometimes I get the expected response (200 with the expected content), sometimes I get a 404.
This behavior seems to be random, which is visible when frequently refreshing the web page with F5.
As indicated, I see this behavior on unrelated computers and my phone, which to me indicates that the problem is not on either computer and not even in my network because my phone connects on 4G.

I tried to re-publish the webapp (with some more diagnostic logging in it) from Visual Studio (webdeploy) but that fails with a timeout.
-> Could not complete the request to remote agent URL 'https://mywebapp.scm.azurewebsites.net/msdeploy.axd?site=MYWEBAPP'. The operation has timed out

Even Kudu gives me a 404 once in a while.

Publishing with FTP took forever, but it worked...
The new diagnostics appeared in the log file, but gave no new insights.

I had this problem once, several months ago. I wasn't able to fix it at that time, and when I returned to the problem the next day it was gone...
Everything worked just fine without me making any changes in the Azure portal and have done so until today.

At this point I'm hoping the problem will simply vanish as it did then, because I have no clue what this can be and what I can do about it.

In the Azure portal I see no problems.
In the log files I see no problems.
The web application doesn't crash and shows no problems in it's own log file.

It looks like a routing problem somewhere, but I'm not able to pinpoint.
I've checked name resolving.
I've done route tracing.
I checked DNS propagations.
It seems the requests simply aren't delivered to my webapp.

It's ridiculous and I have no clue what to do about it.

To me, this Azure webapp is unreliable and I perhaps I have to reconsider Azure as the platform of choice.
Because with problems like these and no clue (or tools) to do anything about it, it will be impossible to service my customers in a reliable way.

I hope someone might have a clue to what I'm doing wrong or what the cause might be.

Thanks,
Richard

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
594 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,830 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Dave 1 Reputation point
    2020-10-01T03:07:22.07+00:00

    I have a few thoughts for you.

    1. Do you have any kind of multi-instance setup for this web application?
    2. Did you restart the Web App? This is a stupid one and I hate asking.
    3. Disable Always ON and let me know if you have the same issue
    4. Turn Always ON back on once your app is working correctly after you re-deploy