minimaxir / gpt-2-cloud-run

Text-generation API via GPT-2 for Cloud Run

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error message on Cloud Run deployment

addadda023 opened this issue · comments

This issue has to do with deploying in google cloud run. The app run runs in local docker container, i.e., curl http://0.0.0.0:8080 returns desired output. I then followed the rest of the instructions to deploy in google cloud run -- set the memory to 2GB & set max requests to 1. The deployment however wasn't successful.

Cloud Run error: Container failed to start. Failed to start and then listen on the port defined by the PORT environment variable. Logs for this revision might contain more information.

A cursory search says that GCP expects requests on 0.0.0.0:8080. This is what app.py stores too, so not sure where the deployment error is coming from. Any idea?

It was an issue with google cloud. The image was served finally after I tried multiple times.

@addadda023 Hi, I'm having the same issue with cloud run, I deployed like 10 times by now with no luck. Wonder how you did it ?

Make sure to increase memory allocated to 2 GiB (https://cloud.google.com/run/docs/configuring/memory-limits)