Questions tagged [google-cloud-run]

Cloud Run is a managed compute platform that enables you to run stateless containers that are invocable via HTTP requests, providing comprehensive servicefull systems where responsibilities can be outsourced to a specialist service provider.

Cloud Run is a managed compute platform that enables you to run stateless containers that are invocable via HTTP requests.

Official sites:

2585 questions
82
votes
8 answers

When to use Google App Engine Flex vs Google Cloud Run

I want to deploy containerized code using one of Google's serverless options. From what I understand Google has two options for this: Google App Engine Flexible Environment Google Cloud Run (in beta) I've watched the 2019 Google Next talk Where…
hlp
  • 1,047
  • 1
  • 9
  • 12
55
votes
9 answers

Google Cloud Run - Domain Mapping stuck at Certificate Provisioning

Is anyone getting this issue with Google Cloud Run Domain Mapping? When I add a custom domain to my domain mappings, I get this: Waiting for certificate provisioning. You must configure your DNS records for certificate issuance to begin. I know…
bryan
  • 8,879
  • 18
  • 83
  • 166
50
votes
12 answers

Container failed to start. Failed to start and then listen on the port defined by the PORT environment variable

I built my container image, but when I try to deploy it from the gcloud command line or the Cloud Console, I get the following error: "Container failed to start. Failed to start and then listen on the port defined by the PORT environment variable."
Steren
  • 7,311
  • 3
  • 31
  • 51
36
votes
2 answers

How to pull Docker Hub image to Google Cloud Run?

I'm trying to pull Docker images into Google Cloud Run. I see that I would probably need to pull it first to Google Container registry, but can I somehow avoid it? Also, I'd rather have it straight from the source to have it up-to-date.
35
votes
1 answer

What is the difference between Uvicorn and Gunicorn+Uvicorn?

What is the difference between deploying FastAPI apps dockerized using Uvicorn and Tiangolo's Gunicorn+Uvicorn? And why do my results show that I get a better result when deploying only using Uvicorn than Gunicorn+Uvicorn? When I searched in…
MADFROST
  • 1,043
  • 2
  • 11
  • 29
33
votes
5 answers

Deploying to Cloud Run with a custom service account failed with iam.serviceaccounts.actAs error

I have created a custom service account travisci-deployer@PROJECT_ID.iam.gserviceaccount.com on my project and gave it the Cloud Run Admin role: gcloud projects add-iam-policy-binding "${PROJECT_ID}" \ …
32
votes
6 answers

How to fix CloudRun error 'The request was aborted because there was no available instance'

I'm using managed CloudRun to deploy a container with concurrency=1. Once deployed, I'm firing four long-running requests in parallel. Most of the time, all works fine -- But occasionally, I'm facing 500's from one of the nodes within a few seconds;…
Jan Hacker
  • 455
  • 1
  • 4
  • 5
31
votes
3 answers

"exec format error" when running containers build with Apple M1 Chip (ARM based systems)

Expected behavior: I can run a container I've built using an Apple M1 chip. Observed behavior: Assuming you have a Google Cloud Run account and can push Docker images to Google Container Registry. I'm using…
seenickcode
  • 1,022
  • 1
  • 10
  • 18
29
votes
4 answers

Cloud Run: "Failed to start and then listen on the port defined by the PORT environment variable." When I use 8080

I got this error message when I try to run my container in Google Cloud Run. type: Ready status: 'False' reason: HealthCheckContainerError message: |- Cloud Run error: Container failed to start. Failed to start and then listen on the port defined by…
28
votes
3 answers

How to deploy container using docker-compose to google cloud?

i'm quite new to GCP and been using mostly AWS. I am currently trying to play around with GCP and want to deploy a container using docker-compose. I set up a very basic docker-compose.yml file as follows: # docker-compose.yml version:…
28
votes
2 answers

What's the default storage for Google Cloud Run?

There is not documentation that I can find about the storage that Google Cloud Run has. For example, does it contains few Gigabyte storage as we create a VM? If not, is there a '/tmp' folder that I can put data temporarily into during the request?…
lixinso
  • 713
  • 3
  • 11
  • 15
28
votes
3 answers

What is the difference between Google App Engine and Google Cloud Run?

Does anyone know, difference between Google App Engine Flex and Google Cloud Run? Thanks
Nipu
  • 653
  • 1
  • 8
  • 15
25
votes
3 answers

How to get or generate deploy URL for Google Cloud Run services

How to get the URL of deployed service programmatically in CI environments? The URL does get's logged after successful deploy but what if I want to extract and use the URL programmatically, as part of post deploy needs, e.g. posting the URL for…
fusionstrings
  • 1,025
  • 2
  • 13
  • 23
25
votes
3 answers

How to securely connect to Cloud SQL from Cloud Run?

How do I connect to the database on Cloud SQL without having to add my credentials file inside the container?
gabidavila
  • 992
  • 1
  • 9
  • 17
23
votes
4 answers

"[CRITICAL] WORKER TIMEOUT" in logs when running "Hello Cloud Run with Python" from GCP Setup Docs

Following the tutorial here I have the following 2 files: app.py from flask import Flask, request app = Flask(__name__) @app.route('/', methods=['GET']) def hello(): """Return a friendly HTTP greeting.""" who = request.args.get('who',…
jminardi
  • 936
  • 1
  • 11
  • 23
1
2 3
99 100