GoogleCloudPlatform / GoogleCloudPlatform/document-ai-samples

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

Open
#646 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
332
Forks
116
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/GoogleCloudPlatform/document-ai-samples/assets/147789949/0f2f57e7-7fcb-4c22-b797-a87ecb24c60f)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.