New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build timeout when trying to deploy Next.js #1427
Comments
Hi, currently having deployment issues for both Free and Standard tier Static Web Apps. Both have Location "Global". I tried with removing 'standalone' without any luck. The host name your asking for, is that the URL to the app? |
I'm having this issue today, Nextjs build runs fine in github actions but when "polling on deployment" it gives up after 600 seconds and shows "Deployment Failure Reason: Web app warm up timed out. Please try again later." |
@felicksLindgren, yes that's correct, the URL to the app. @krisnashaypp any chance you can also share your URL? Please deploy your workloads to West US 2 (in the Advanced tab of the create blade) if you are able to, we have more thorough logs in that region. Also, can you open support tickets so we can use that channel for more direct communication? |
@thomasgauvin Where do you want to receive that support ticket? Here in GitHub as a seperate issue, or via Azure as a support request? |
@thomasgauvin the URL is lively-grass-00c911a03.3.azurestaticapps.net I didn't have permission in Azure to create support tickets but I've sent it up the chain. |
@felickLindgren, an Azure support request would be ideal so we can collect the information about your resource. @krisnashaypp thanks for sharing, I'll relay this over to our team to look into it |
we are facing exactly the same issue for the whole day today, our host: https://ashy-desert-090506203.4.azurestaticapps.net/ |
@thomasgauvin Here's a Support Request number for one of our affected resources: 2403120050001398 |
@thomasgauvin Thanks! |
Just an update: this issue is still occurring with our build. Awaiting approvals to cross-deploy to US West 2 and pending support issue creation. |
To determine if configured routing might be blocking specific health checks conducted during deployment, could you all please help us investigate the issue by creating a directory within your public folder named |
We do have zero-trust auth middleware that would absolutely block this. Could you provide the specific files/folders that should remain visible, assuming it's not .test/health? Edit: we did see Thomas's older comment in another issue regarding /public/.swa/health.html, and an early attempt at allowing access to that file did not solve the issue last week :\ |
@AaronCTech In that case please make sure to allow health checks to /.swa/health.html |
The devil's in the details; this worked! Note: .swa/health is not the same as .swa/health.html :) TL;DR: allow .swa/health.html requests through your middleware. |
Hi @AaronCTech, |
Hey @IgnacioAguirre, you can definitely make use of the Next.js
Our builds started working again this morning after adding ps thanks @annikel and @AaronCTech for the tips and solution! |
Hi @thomasgauvin, But as for the deployment timeout. I tried disabling
|
Picked the starter (https://github.com/staticwebdev/nextjs-hybrid-starter) and set it up with WestEurope which failed after 600 seconds. It did work with WestUS2 after 226 seconds. @thomasgauvin is there any timeline or estimate on having this working in West Europe? |
Thanks annikel. The build time out error resolved after adding .swa matcher in middleware. |
@annikel we do not have any auth middleware, and |
Thank you all for the feedback, opening support issues and sharing your default hostnames/site identifiers, we are going to be looking into this. |
Hello! We have experienced exactly the same scenario as you. |
I'm creating this issue to collect issues related to deploy timeouts/failed deploys for Next.js sites. I've seen a couple other threads get re-purposed into discussions for Next.js deployment issues, though they were originally intended for unrelated past deployment issues.
The asks are the following:
Looking forward to getting to the bottom of this, thanks everyone for the feedback!
The text was updated successfully, but these errors were encountered: