document-ai-samples icon indicating copy to clipboard operation
document-ai-samples copied to clipboard

Web App Demo: Unable to deploy Backend by one-click deployment to Google Cloud Run

Open youlanasi opened this issue 2 years ago • 2 comments

Reproduce steps: by clicking the big button in readme.md

[ ✓ ] Pushed container image to Google Container Registry. [ ! ] FYI, running the following command: gcloud run deploy backend
--project=solid-heaven-271414
--platform=managed
--region=us-west1
--image=gcr.io/solid-heaven-271414/backend
--allow-unauthenticated [ ✖ ] Failed deploying the application to Cloud Run. Error: reason=HealthCheckContainerError message=Revision 'backend-00001-afy' is not ready and cannot serve traffic. The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable. Logs for this revision might contain more information.

even I specify the port 8080 and deploy again it fails, while Frontend has no issues of deployment

The log from the Cloud Run services is: Error: '$PORT' is not a valid port number.

螢幕擷取畫面 2023-10-13 124049

youlanasi avatar Oct 13 '23 04:10 youlanasi

@youlanasi Hi, is this issue about an official notebook in this repo? Not sure what readme.md you are referring to.

andrewferlitsch avatar Oct 19 '23 18:10 andrewferlitsch

Hi @andrewferlitsch I'm using the readme.md in this guide https://github.com/GoogleCloudPlatform/document-ai-samples/blob/main/web-app-demo/README.md

click the button in the quick start section will lead me to my GCP console page and build, startup the backend and frontend server, while during the startup of the backend server, error occurred as my screenshot above.

image

youlanasi avatar Oct 20 '23 01:10 youlanasi