502 with This service is currently unavailable. Please try again in a few minutes during "deploying" step

Hi,

I have nextjs application deployed on Render. I have setup a health endpoint as well. A render disk is also attached to the application.

When deploying my application, it keeps alive but when it comes to “deploying” step, application return 502 This service is currently unavailable. Please try again in a few minutes error and keep showing this page.

After 1-2 mins application comes back online again.

Please let me know what do i need to do in Render to have Zero downtime for my application even during the deployment.

Thanks

Hi,

Having a disk attached to a service prevents zero-downtime deploys, as covered in the docs. That will be the cause of the 502 during deployments while the disk is moved between the old and new instances.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.