-
Notifications
You must be signed in to change notification settings - Fork 655
WEBSITE_RUN_FROM_PACKAGE conflicting with WEBSITE_LOCAL_CACHE_OPTION #2955
Comments
Thanks for the feedback. We added to FAG of Azure/app-service-announcements#84. |
Hi I understand that they aren't compatible - after experiencing this problem myself. However if you're deploying from azure pipelines, the deployment task uses zip deploy (which in turn seems to rely on, and indeed sets Since I've been advised multiple times to use Many thanks Matt |
Should be the "ultimate guide on how to crash your server": |
This broke our production instances as well, it might be good to clarify this in the documentation. |
It's 2024 and I just had this problem 😂 |
So this actually caused a production outage for us yesterday when we deployed for the first time with "Run From Package" instead of "Web Deploy".
According to the App Service documentation, it's recommended that one uses
WEBSITE_LOCAL_CACHE_OPTION=Always
for highly-available environments since it avoids the single-point-of-failure that is the shard App Service storage. We've been using this setting for years without any problems.Immediately after our deployment yesterday, which was our first deployment with "Run From Package" instead if using "Web Deploy", we noticed that our application suddenly responding with
404 Not Found; The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
on ALL endpoints. We tried restarting the application a few times and it was up for a ~2 minutes but then it started responding with the404 Not Found
responses again. These responses seem to have origined from the IIS proxy, since our application itself didn't receive ANY requests at this time.Repro steps.
Run From Package
option (WEBSITE_RUN_FROM_PACKAGE=1)WEBSITE_LOCAL_CACHE_OPTION=Always
Run From Package
At this point you'll see that the whole app has gone down and responds with
404 Not Found; The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
, except for the root endpoints, which responds with403 Forbidden - You do not have permission to view this directory or page.
If these two options don't work together, it should be at least documented.
The text was updated successfully, but these errors were encountered: