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
318 stars 53 forks source link

Deployment Failure Reason: Web app warm up timed out. Please try again later. #1471

Open sp-soni opened 1 month ago

sp-soni commented 1 month ago

---End of Oryx build logs--- Web App Runtime Information. OS: linux, node version: 16 Finished building function app with Oryx Zipping Api Artifacts Done Zipping Api Artifacts Zipping App Artifacts Done Zipping App Artifacts Uploading build artifacts. Finished Upload. Polling on deployment. Status: InProgress. Time: 0.2084609(s) Status: InProgress. Time: 15.3817688(s) Status: InProgress. Time: 30.574053(s) Status: InProgress. Time: 46.0407999(s) Status: InProgress. Time: 61.2097845(s) Status: InProgress. Time: 76.400824(s) Status: InProgress. Time: 91.5719468(s) Status: InProgress. Time: 106.7499786(s) Status: InProgress. Time: 121.9384657(s) Status: InProgress. Time: 137.2539303(s) Status: InProgress. Time: 152.434885(s) Status: InProgress. Time: 167.6173734(s) Status: InProgress. Time: 182.875611(s) Status: InProgress. Time: 198.0552666(s) Status: InProgress. Time: 213.3981963(s) Status: InProgress. Time: 228.5728004(s) Status: InProgress. Time: 243.807414(s) Status: InProgress. Time: 258.9931291(s) Status: InProgress. Time: 274.2527759(s) Status: InProgress. Time: 289.4255155(s) Status: InProgress. Time: 304.6583651(s) Status: InProgress. Time: 319.9163679(s) Status: InProgress. Time: 335.0878365(s) Status: InProgress. Time: 350.2794895(s) Status: InProgress. Time: 365.4596047(s) Status: InProgress. Time: 380.6333146(s) Status: InProgress. Time: 395.868632(s) Status: InProgress. Time: 411.0472908(s) Status: InProgress. Time: 426.2326963(s) Status: InProgress. Time: 441.4236479(s) Status: InProgress. Time: 456.5958199(s) Status: InProgress. Time: 471.7756224(s) Status: InProgress. Time: 486.9695078(s) Status: InProgress. Time: 502.1466889(s) Status: InProgress. Time: 517.3230388(s) Status: InProgress. Time: 532.5204071(s) Status: InProgress. Time: 547.7017733(s) Status: InProgress. Time: 562.8757085(s) Status: InProgress. Time: 578.0642228(s) Status: Failed. Time: 593.238822(s) Deployment Failed :( Deployment Failure Reason: Web app warm up timed out. Please try again later.

For further information, please visit the Azure Static Web Apps documentation at https://docs.microsoft.com/en-us/azure/static-web-apps/ If you believe this behavior is unexpected, please raise a GitHub issue at https://github.com/azure/static-web-apps/issues/ Exiting

[debug]Docker Action run completed with exit code 1

[debug]Finishing: Build And Deploy

gerardocarrizosa commented 1 month ago

Same issue here... Previously had an error for the node version, but added "engines": { ... } to the package.json and that error was gone, but now I'm getting this Deployment Failure Reason: Web app warm up timed out. Please try again later. error.

MichaelZh1104 commented 1 month ago

Same issue here

bbehling commented 1 month ago

I have the same issue

jtsimon93 commented 3 weeks ago

Same issue here. It was working fine for days and then randomly stopped yesterday. I even reverted to the last successful commit that deployed and it won't deploy.

joechoi-git commented 2 weeks ago

I had the same issue, but once I updated the Next build to build the app with the standalone mode, the deployment started working for me.

Here are the steps that you can do.

next.config.js

const nextConfig = {
    output: "standalone"
};

package.json

    "scripts": {
        "build": "next build && cp -r .next/static .next/standalone/.next/ && cp -r public .next/standalone/"
    }

azure-pipeline.yml

                app_location: "/" # App source code path
                api_location: "" # Api source code path - optional
                output_location: "" # Built app content directory - optional
                app_build_command: "npm run build"
                api_build_command: "rm -rf ./node_modules/@next/swc-* && rm -rf ./.next/cache"