Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
2k views

Cloud Run integration tests within Cloud Build steps?

I am looking at what Cloud Run suggests for local testing here, which is to docker run your container, and then run your tests against it on localhost:8080. Something like this: PORT=8080 && \...
Eric G's user avatar
  • 1,292
5 votes
1 answer
3k views

How to handle long requests in Google Cloud Run?

I have hosted my node app in Cloud Run and all of my requests served within 300 - 600ms time. But one endpoint that gets data from a 3rd party service so that request takes 1.2s - 2.5s to complete the ...
CaptainZero's user avatar
  • 1,511
1 vote
1 answer
2k views

What is the maximum response header length on Google Cloud Run?

I'm trying to deploy a service that sets very long headers in some cases. When running locally, I am able to successfully set and receive long (>8KB) headers without issue. However, after deploying ...
Ameo's user avatar
  • 2,547
2 votes
0 answers
573 views

How to use multiple cookies in Firebase hosting + Cloud Run? [duplicate]

My app was fully hosted in cloud run and i was happy with that (except cloud run throws some statx container sandbox limitation errors). Recently I moved the static files to firebase hosting and ...
CaptainZero's user avatar
  • 1,511
2 votes
1 answer
2k views

How to fix 'CloudSQL connection failed: context deadline exceeded' in Docker Craft Cloud Run deployment

Recently when attempting to upgrade php versions of the docker file that runs craft cms in a cloud run service, I started getting CloudSQL connection errors. Example of logs. 2019-08-08T06:58:25....
Drew Hutton's user avatar
2 votes
0 answers
705 views

google cloud run / domain mapping / set both naked and www domains

I'd like to have the naked domain and the www point to the same service While the naked domain mapping works as expected, the www mapping ends up with an error, saying that the mapping already exists ...
Ben's user avatar
  • 5,214
14 votes
2 answers
6k views

How to use Google Cloud PubSub and Run to handle resource-intensive long-running tasks?

I've got a Google Cloud PubSub topic which at times has thousands of messages and at times zero messages coming in. These messages represent tasks which can take upwards of an hour each. Preferably I'...
thimo visser's user avatar
0 votes
1 answer
514 views

Reduce Cloud Run on GKE costs

would be great if I could have to answers to the following questions on Google Cloud Run If I create a cluster with resources upwards of 1vCPU, will those extra vCPUs be utilized in my Cloud Run ...
Pranay Shah's user avatar
3 votes
2 answers
1k views

Access rails console of an app deployed in Google Cloud Run

We deployed a rails app in Google Cloud Run using their managed platform. The app is working fine and it is able to serve requests. Now we want to get access to the rails console of the deployed app. ...
Vishal Vijay's user avatar
  • 2,528
2 votes
2 answers
2k views

google cloud run: upload to gcs: data transfer limit?

I wrote a Cloud Run app to accept a user file upload, do some processing to it, and respond with the processed output. It failed, saying "HTTP response was too large: 50930613. The limit is: 33554432."...
philo's user avatar
  • 3,690
1 vote
1 answer
348 views

JDBC connections from managed Cloud Run?

Looking for a way to JDBC from managed Cloud Run to a Cloud SQL instance that doesn't require opening up a public IP on the database. Per the documentation, managed Cloud Run only supports UNIX ...
Alex Zuzin's user avatar
3 votes
2 answers
4k views

Google Cloud Run and golang goroutines

I'm considering Google Cloud Run for some cron-like operations I need to perform. They will get triggered by an HTTP invocation. The invocation will return (likely with a 202) and continue running in ...
Sandy Walsh's user avatar
0 votes
0 answers
204 views

Loading OpenCV library on Cloud Run with Java + Linux

I have some code which uses OpenCV. I have it running successfully locally by loading the libraries in the java code: "opencv_java320.dll" (in windows) and then in a Linux VM, the application runs ...
Red42's user avatar
  • 25
1 vote
1 answer
1k views

how to manage Cloud SQL connection pool on Cloud Run

I need to manage Cloud SQL max_connections, to prevent too many connecitons error. So how can I manage connections on Cloud Run?
Y Natsume's user avatar
1 vote
0 answers
1k views

How to allow outbound requests from a Google Cloud Run to external MySql instance

I've created a google cloud run service, acting as an api which needs to connect to a mysql instance correctly hosted in aws rds. I can see that the google cloud run container is unable to connect to ...
lancearmstruong's user avatar
7 votes
4 answers
5k views

Google Cloud Run suitable to run Spring Boot?

We have a Docker container that packages a Java Spring Boot application. The application sometimes takes about 40 seconds to start. Is Google Cloud Run suitable to run such a "heavyweight" ...
Harold L. Brown's user avatar
0 votes
2 answers
618 views

Google Cloud Run gVisor syscall error on node application

My project was running successfully on cloud run and I recently added https://www.npmjs.com/package/express-static-gzip package to serve my pre gzipped assets and what I noticed is after deploying to ...
CaptainZero's user avatar
  • 1,511
0 votes
2 answers
242 views

using gcloud storage on cloud run with ruby

Usually using the google-cloud-storage gem to read/write files This gem expects a .json service account key path, or an environment variable specifying the path I was wondering how this could work ...
Ben's user avatar
  • 5,214
0 votes
1 answer
819 views

Cloud SQL API [sql-component.googleapis.com] not enabled on project

I am running a cloud build trigger on a cloudbuid.yaml file in which I build a docker container and then deploy it to cloud run. The error stacktrace is as follows: API [sql-component.googleapis.com] ...
Pedromlm's user avatar
  • 109
3 votes
3 answers
4k views

Can I use cloud run with self-hosted/private docker image registry?

When I deployed with my self-hosted(private) Docker image registry, got this error: This service will require authentication to be invoked. Deploying container to Cloud Run service [serverless-...
Lin Du's user avatar
  • 103k
0 votes
1 answer
658 views

Cloud Run deploy to GKE cannot change URL

When we create a cloud run service and run it on GKE it does not seem to be possible to change the URL or to map a custom domain to the service. The domain is currently http://stacko-gke.default....
Pentium10's user avatar
  • 208k
1 vote
1 answer
792 views

Google Cloud Run and system capabilities

I have a docker image which I am running on Google's Cloud Run. When I want to run the image locally, I have to give my container additional capabilities like the following: docker run -p 8080:8080 --...
Anas Tiour's user avatar
  • 1,432
7 votes
4 answers
12k views

gcloud crashed (AttributeError): 'NoneType' object has no attribute 'revisionTemplate'

I'm working on Cloud Run, which seems to be beta yet, preventing from redeploying as shown below. It works if I delete the service from GCP console, then deploy the same Docker as a new service. I ...
Takash Futada's user avatar
2 votes
1 answer
3k views

Google cloud run crashed (AttributeError): 'NoneType' object has no attribute 'image'

I tried out google cloud run and working perfectly but suddenly got error while depolying after few days crashed (AttributeError): 'NoneType' object has no attribute 'image' Everything seems fine, I ...
CaptainZero's user avatar
  • 1,511
36 votes
8 answers
26k views

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 ...
Jan Hacker's user avatar
9 votes
1 answer
8k views

Should I run mysql on google cloud run? (or any database)

I've been researching the new options to run Docker containers in Google Cloud Run, however, there seems to be no advice on whether or not one should run MySQL on Cloud run, apparently, I know it isn'...
Felipe Valdes's user avatar
2 votes
2 answers
1k views

ConnectionBad issue with a Rails 5 app running on google cloud run to a Google Cloud SQL instance via socket

When I use the google cloud run service my docker container will return the error: PG::ConnectionBad: could not connect to server: No such file or directory Is the server running locally and ...
JapanRob's user avatar
  • 394
4 votes
4 answers
3k views

How to mount a bucket in a Google Run application?

My final goal is to mount a bucket inside a container to be deployed with google run. In order to mount a bucket, I am using gcsfuse that requires a privileged container. (https://github.com/...
Paolo Di Domenico's user avatar
0 votes
1 answer
785 views

How to create read-only bind mount in fully managed Cloud Run instance?

How can I create a read-only, bind-mount in a fully managed Cloud Run instance? I'm looking to mount a folder inside the container's filesytem to another location in the same container's filesystem. ...
Trevor's user avatar
  • 13.5k
0 votes
1 answer
1k views

Specify PORT in Django Dockerfile using Cloudrun

I have a basic Django 2 app (the starterproject) running locally in a Docker container. This works fine and i can access site. I would like to deploy the container using Google Cloudrun service and ...
Jonnyboy's user avatar
4 votes
2 answers
4k views

Is there a way to set "imagePullPolicy" for Cloud Run Service?

I would like to be able to automatically update my Google Cloud Run Services once my image has been updated on Google Container Registry. I need to update multiple Cloud Run services based on the ...
Tim's user avatar
  • 93
1 vote
3 answers
1k views

how to create a context object in google cloud run for firebase

I'm trying to create a context object, so that I can connect to firestore from cloud run, however, all the examples I find on the net basically say I need a context objects, examples I find online ...
Felipe Valdes's user avatar
1 vote
1 answer
139 views

CloudRun database connection dissapearing?

some days ago I was able to set up one of my apps to be connected to one of my database instances from the google cloud run service configuration form. However lately I notice two things: I'm no ...
paganotoni's user avatar
1 vote
1 answer
328 views

Using Cloud Run on a PubSub topic

It was not clear to me how to use Cloud Run on a PubSub topic for for medium-run tasks (inside of the time limit of Cloud Run, of course.) Let's see this example taken from the tutorials[1]: app....
Rodrigo's user avatar
  • 581
6 votes
5 answers
6k views

How to setup nginx in front of node in docker for Cloud Run?

I need to setup reverse proxy nginx in front of nodejs app that need to be deployed in google cloud run. Use Cases - Need to serve assets gzipped via nginx (I don't want to overhead node for gzip ...
Drisha's user avatar
  • 113
2 votes
1 answer
4k views

404 error with custom domain for Google Cloud Run service

I created a custom domain mapping for my Cloud Run service following this guide https://cloud.google.com/run/docs/mapping-custom-domains. I can access my service via the https run.app URL and the ...
Tri Nguyen's user avatar
  • 11.2k
1 vote
0 answers
236 views

I can't see any incoming requests in Google Cloud Endpoint console

I'm trying to configure Google Cloud Endpoint in front of Cloud Run. I decided to use the OpenAPI 2.0 standard so I can use Python 3.6.5 as a language to develop my backend. I followed this guide ...
chicco.caste21's user avatar
1 vote
1 answer
874 views

How to authenticate against federated GraphQL service on GCP Cloud Run?

I have a series of microservices on GCP Cloud Run that are each hosting a federated Apollo GraphQL service. I then have one last container which is acting as a federated GraphQL gateway for the rest ...
Kieran's user avatar
  • 416
5 votes
2 answers
2k views

gcloud beta run deploy fails after sucessfully uploading image, fails to enable API

gcloud beta run deploy used to work but now I'm getting an error: $ gcloud beta run deploy $PROJECT --image $IMAGE_NAME --platform=managed --region us-central1 --project $PROJECT --add-cloudsql-...
Matt Wlazlo's user avatar
18 votes
3 answers
15k views

In what cases does Google Cloud Run respond with "The request failed because the HTTP connection to the instance had an error."?

We've been running Google Cloud Run for a little over a month now and noticed that we periodically have cloud run instances that simply fail with: The request failed because the HTTP connection to ...
bboe's user avatar
  • 4,422
22 votes
4 answers
25k views

What are the outbound IP ranges for GCP managed Cloud Run?

I'm developing an app using GCP managed Cloud Run and MongoDB Atlas. If I allow connection from anywhere for IP Whitelist of Atlas, Cloud Run perfectly works well with MongoDB Atlas. However, I want ...
daigo's user avatar
  • 223
6 votes
3 answers
12k views

How to fix Docker Unexpected Operator Error?

I'm a super novice vis-a-vis Docker, and recently moved a project from App Engine to Cloud Run. Was easy-peasy, loved it. Now, however, I'm trying to update the image (since I added some new code). ...
Misha Stone's user avatar
5 votes
5 answers
5k views

cloud run is closing the container even if my script is still running

I want to run a long-running job on cloud run. this task may execute more than 30 minutes and it mostly sends out API requests. cloud run stops executing after about 20 minutes and from the metrics, ...
nabulaer's user avatar
  • 351
1 vote
1 answer
94 views

How to allow a public Google Run Instance to communicate to a *private* Google Run Instance?

I have to docker images A and B running on google run. A need a small memory footprint and slow scaling (it is the front end) and B needs a high memory foot-sprint and heavy scaling under load (it is ...
Jeremy Cochoy's user avatar
2 votes
1 answer
2k views

Google Cloud Run / Does domain mapping supports ALIAS records?

As it can be available on heroku (wildcard CNAME's), can google cloud run be configured with a single ALIAS type record ? @ 300 IN ALIAS ghs.googlehosted.com.
Ben's user avatar
  • 5,214
2 votes
2 answers
1k views

GCP Cloud Run: One off jobs and "Configuration <servicename> does not have any ready Revision

I have created a very simple image that performs an one-off job (prints some dummy logs) and exits as follows: ➣ $ cat Dockerfile from alpine:latest COPY entrypoint.sh /usr/local/bin/entrypoint ...
pkaramol's user avatar
  • 19.6k
1 vote
1 answer
238 views

Apple SwiftNIO in CloudRun - is this possible?

I need to implement the following functionality. Client side: iOS (and Android) App calling a web service Server side: Web service on Goolge Cloud. The server side should have HTTP/2, TLS 1.3 IBM ...
thstart's user avatar
  • 427
3 votes
1 answer
555 views

Google Cloud Run only available in us-central1 region?

I'm creating a new Cloud Run service on GCP as part of an app that's going to have users in Europe and Asia, and I'd like to add corresponding Europe and Asia endpoints, but I'm only seeing us-central-...
Nick Penney's user avatar
2 votes
3 answers
502 views

Weird way of accessing Cloud Run on GKE services

I am following this tutorial to perform a so called quickstart on gcp's cloud run and experiment a bit with it. Some delays and inconsistencies about announced and typical service availability aside, ...
pkaramol's user avatar
  • 19.6k
2 votes
1 answer
109 views

Structuring Google Cloud Platform project

I'm working on a project that has many small tasks. Some of these tasks are related and require overlapping apis. task_1/ main.py task_2/ main.py apis/ api_1/ api_2/ api_3/ test/ ...
user1222324562's user avatar