firebase / friendlyeats-web

Apache License 2.0
498 stars 412 forks source link

nextjs-end rollout failed #302

Open v0lsh3bnik opened 4 months ago

v0lsh3bnik commented 4 months ago

I am using the nextjs-end repo for firebase app hosting, the build is working fine but i get an error on the rollout. I looked through the logs but nothing. Can someone help me please ?

WCressman commented 3 months ago

I currently have the same issue, I am following the tutorial step by step and App Hosting is failing image

ni7r0x commented 3 months ago

In my case , I found out the issue by looking in Google Cloud > Logging > Logs explorer > SEVERITY > Error :

google.cloud.run.v2.Services.CreateService returns this error :

template.containers.resources.limits.cpu: Invalid value specified for cpu.
For the specified value, maxScale may not exceed 10.
...

Solved by adding the following lines to apphosting.yaml :

# Settings for Cloud Run
runConfig:
  minInstances: 0
  maxInstances: 10
  concurrency: 50
  cpu: 1
  memoryMiB: 512

I guess the Rollout Failure should be more verbose than that.

AntonioGally commented 2 months ago

I had the same issue with my nexjs deployments: Google Cloud Build was successfully building my app, but in firebase console, my deployment launch was failing. I've added this configuration in my apphosting.yaml that @ni7r0x commented (tks) and my deployment was completed

It would be great if the official docs mentioned this apphosting.yaml configuration file in the Basic Deployment section, and tell us if this file is required.

image image
gyula-szucs commented 1 month ago

Had the same mildly frustrating issue. Thank you @ni7r0x.

r-dev-limited commented 4 weeks ago

Mine just says all of a sudden: Ready condition status changed to False for Revision backlink-space-build-2024-10-28-003 with message: Deadline exceeded

RebinX1 commented 6 days ago

i also have the same issue now, i have added the apphosting.yaml in my project but still i get the same error, one more thing is that at the start i was able to deploy 2 build to apphosting but after working on my app for a bit i started to get this error.

Screenshot 2024-11-19 at 6 37 06 PM