GoogleCloudPlatform / document-ai-samples

Sample applications and demos for Document AI, the end-to-end document processing platform on Google Cloud
https://cloud.google.com/document-ai
Apache License 2.0
241 stars 105 forks source link

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

Open youlanasi opened 1 year ago

youlanasi commented 1 year ago

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

andrewferlitsch commented 1 year ago

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

youlanasi commented 1 year ago

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