Azure / logicapps

Azure Logic Apps labs, samples, and tools
MIT License
368 stars 302 forks source link

startstopv2-deployments, HTTP Error Code 503, Service Unavailable #1223

Closed st100953 closed 1 day ago

st100953 commented 3 weeks ago

Describe the Bug with repro steps

We have startstopv2-deployments deployed for managing a VM startup and shutdown on a schedule. It was set up several years ago.

Since Friday 25/10/2024 the schedule has been failing.

There have been no changes made to the startstopv2 configuration by us.

This is the output:

{

"statusCode": 503,

"headers": {

"Date": "Mon, 28 Oct 2024 09:19:02 GMT",

"Transfer-Encoding": "chunked",

"Content-Length": "29"

},

"body": {

"$content-type": "application/octet-stream",

"$content": "RnVuY3Rpb24gaG9zdCBpcyBub3QgcnVubmluZy4="

}

}

This happened once before. I was in contact with someone at Microsoft who confirmed the failure was due to a Microsoft Update. I cannot remember exactly how it was resolved then. It looks like the same has happened again.

Any advice as to how to proceed?

What type of Logic App Is this happening in?

Consumption (Portal)

Which operating system are you using?

Windows

Are you using new designer or old designer

New Designer

Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg

Yes

Workflow JSON

No response

Screenshots or Videos

No response

Browser

Edge, same in Chrome and Firefox

Additional context

No response

st100953 commented 3 weeks ago

I've located the previous support request, which led me to the activity log.

There was an UpdateWebsite event for the function app just prior to the failures starting. The Activity says Success, but digging further...

The App Service Plan for the Function App has the following error notifications:

Monday 28 October, 10:15:33 AM: Error configuring services in an external startup class.

Monday 28 October, 10:22:07 AM: Microsoft.Azure.WebJobs.Script: Error configuring services in an external startup class. StartStopAzureFunctions: Could not load file or assembly 'Azure.ResourceManager, Version=1.11.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8'. The system cannot find the file specified.

rllyy97 commented 3 weeks ago

Hi @st100953, I'm going to transfer your issue over to our backend board, but I would recommend you create an Azure support ticket as well. You can find more information on that process here: https://learn.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request

st100953 commented 3 weeks ago

I have subscribed to a Developer Support Plan just to raise this issue. I've tried to create an Azure Support Request, but it is an impossible process. The wizard just keeps producing useless suggestions with no end in sight.

st100953 commented 3 weeks ago

I should have checked first.

The issue resolved itself overnight.

Yesterday I was unable to start the app service af-csddev-uksmvy4psuxmoeko due to the issue. Overnight it must have auto-started. The start and stop tasks took place successfully on schedule. I retested with manual runs just now and they worked properly.