Azure / static-web-apps

Azure Static Web Apps. For bugs and feature requests, please create an issue in this repo. For community discussions, latest updates, kindly refer to the Discussions Tab. To know what's new in Static Web Apps, visit https://aka.ms/swa/ThisMonth
https://aka.ms/swa
MIT License
330 stars 56 forks source link

Deployment Failure Reason: Failed to deploy the Azure Functions #1064

Open hugoforte opened 1 year ago

hugoforte commented 1 year ago

Describe the bug Exact same issue as described in https://github.com/Azure/static-web-apps/issues/819, this has been happening since Feb 1

Tested on two different deployments on two different static web apps, one of the deployments work, the other one does now. Tested old deployments to try to re-deploy as well with no success.

Failed deployment log attached. Failed Deployment Log - Failed to deploy the Azure Functions.txt

I'm also getting "Failed to fetch functions for your app." when i go to application insights for my SWA: image

TravisKool commented 1 year ago

I have the same issue. I have been unable to deploy my .net 6 SWA with a single managed function since Feb 1.

I have tried to update to .NET 7 and still unable to deploy

I have tried to re-deploy previously successful artifacts but it now fails with the same error.

hugoforte commented 1 year ago

@joslinmicrosoft you helped with this issue here https://github.com/Azure/static-web-apps/issues/622

Any thoughts? Cheers

hugoforte commented 1 year ago

My deployment started working again - was down for 6 days... would love to get a root cause analysis.

scale-tone commented 1 year ago

Keep having this issue as well.

Deployment Failed :(
Deployment Failure Reason: Failed to deploy the Azure Functions.

and no any further info when trying to deploy this code to a newly created Static Web Apps instance. Surprisingly, the same code gets successfully deployed to a much older instance (which I do not have control over anymore).

API project code is in TypeScript. Although there isn't any code there, just proxies. Proxies are enabled at the instance level (AzureWebJobsFeatureFlags is set to EnableProxies, as prescribed).

@thomasgauvin?..

hohenp commented 1 year ago

We are having the same issue with our static web app. Are there any news on that issue? Any tasks we can do to get the app running again?

kjellkarlsson commented 1 year ago

We are having the same issue with our Static web app. Anything we can do? Stack: Next.js, typescript, npm

ErikBorge commented 1 year ago

Having the exact same issue. NextJS Static Web App actually without any azure functions, so it really doesn't make any sense. The deployed app in the browser gives me 503 Service unavailable, and all this happened suddenly and without any changes or deployments triggering it.

From other similar issues it seems it could be a server outage. Anybody got in contact with Azure?

MattiaBonanni commented 1 year ago

We're experiencing the same issue, from both Azure DevOps pipeline and GitHub Actions.

No changes has been made from yesterday.

tfsjohan commented 1 year ago

I also get this for a Next JS TypeScript app with next js api routes.

stefancosquer commented 1 year ago

Same here with a Gatsby app and typescript apis

ErikBorge commented 1 year ago

1097

SlyckLizzie commented 11 months ago

Same problem here with Blazor client and c# api. Seems like an issue with the backend function and/or files in use?? Would be nice to be able to restart or have some diagnostic output.

Seems like if I edit the workflow (even if its whitespace) it will deploy again?? I'm grasping at straws here but...

Finished Upload. Polling on deployment. Status: InProgress. Time: 0.0512469(s) Status: InProgress. Time: 15.0977164(s) Status: InProgress. Time: 30.1484145(s) Status: InProgress. Time: 45.2044124(s) Status: InProgress. Time: 60.4338329(s) Status: InProgress. Time: 75.4788426(s) Status: InProgress. Time: 90.5329199(s) Status: InProgress. Time: 105.5869945(s) Status: InProgress. Time: 120.6366866(s) Status: InProgress. Time: 135.7038588(s) Status: Failed. Time: 150.7466458(s) Deployment Failed :( Deployment Failure Reason: Failed to deploy the Azure Functions.

mvanhil commented 11 months ago

Same issue here

adjutant-ml commented 11 months ago

We regularly have similar behavior:

2023-11-28T14:12:10.1026039Z ##[section]Finished Upload. Polling on deployment.
2023-11-28T14:12:10.1523692Z Status: InProgress. Time: 0.0495856(s)
2023-11-28T14:12:25.1861175Z Status: InProgress. Time: 15.0834312(s)
2023-11-28T14:12:40.2259084Z Status: InProgress. Time: 30.1215651(s)
2023-11-28T14:12:55.2740343Z Status: InProgress. Time: 45.1712532(s)
2023-11-28T14:13:10.3203844Z Status: InProgress. Time: 60.217721(s)
2023-11-28T14:13:25.3604207Z Status: InProgress. Time: 75.2547143(s)
2023-11-28T14:13:40.3977562Z Status: InProgress. Time: 90.2943821(s)
2023-11-28T14:13:55.4520315Z Status: InProgress. Time: 105.3472307(s)
2023-11-28T14:14:10.5412800Z Status: InProgress. Time: 120.4384451(s)
2023-11-28T14:14:25.5743402Z Status: Failed. Time: 135.4714789(s)
2023-11-28T14:14:25.5744288Z ##[error]Deployment Failed :(
2023-11-28T14:14:25.5788137Z ##[error]Deployment Failure Reason: Failed to deploy the Azure Functions.
2023-11-28T14:14:25.6087043Z 
2023-11-28T14:14:25.6088576Z ##[warning]For further information, please visit the Azure Static Web Apps documentation at https://docs.microsoft.com/en-us/azure/static-web-apps/
2023-11-28T14:14:25.6090195Z ##[warning]If you believe this behavior is unexpected, please raise a GitHub issue at https://github.com/azure/static-web-apps/issues/
2023-11-28T14:14:25.6091258Z ##[warning]Exiting
2023-11-28T14:14:25.7888211Z ##[error]Error: The process '/usr/bin/bash' failed with exit code 1

After the 7th retry, it worked:

2023-11-28T14:15:23.6059258Z ##[section]Finished Upload. Polling on deployment.
2023-11-28T14:15:24.8319688Z Status: InProgress. Time: 1.2269624(s)
2023-11-28T14:15:40.0771870Z Status: InProgress. Time: 16.4721107(s)
2023-11-28T14:15:55.1115171Z Status: InProgress. Time: 31.5062997(s)
2023-11-28T14:16:10.1581997Z Status: InProgress. Time: 46.5527223(s)
2023-11-28T14:16:25.1992120Z Status: Succeeded. Time: 61.5941497(s)
2023-11-28T14:16:25.1999571Z ##[section]Deployment Complete :)

The number of retries required appears to be random