Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
youlanasi opened this issue Oct 13, 2023 · 2 comments
Assignees

Comments

@youlanasi
Copy link

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
Copy link

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

@youlanasi
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants