3,132 questions
2
votes
3
answers
6k
views
Google Cloud Run permissions to query bigquery
I have a small python app running in google cloud run with docker. The application is triggered by http requests, executes a query in big query and return the result. Unfortunately I get the following ...
0
votes
3
answers
2k
views
Gcloud - cloud run deployment fails for deployment to GKE
I am trying to deploy a sample angular app to GKE. I created a sample cluster enabling cloud run and istio services in it
gcloud beta container clusters create new-cluster \
--addons=...
2
votes
1
answer
2k
views
Set permission for cloud run to access POST method
I deployed my project using the cloud run service of google. I have added a role for allUser is Cloud Run Invoker. With this permission, I can call service with the GET method. But I can not use the ...
1
vote
1
answer
417
views
How to connect Google Cloud CDN to the Cloud Run for Anthos default setup?
Have a Cloud Run for Anthos set up with default configuration, istio-ingress as a gateway and couple of services. Cannot find any docs on how to connect Cloud CDN with this setup.
Does anybody have ...
1
vote
3
answers
967
views
Error 401 calling static Html hosted on Cloud Storage from Cloud Endpoint
I am receiving a 401 error when calling a static HTML page hosted on Cloud Storage bucket.
The Cloud Storage bucket is configured as Public.
The call is done from my Cloud Endpoint, as shown below:
...
4
votes
0
answers
612
views
High latency using Firebase hosting as compared to native Cloud Run
I am getting higher latency when invoking Cloud Run using Firebase as described in the below tutorial.
https://firebase.google.com/docs/hosting/cloud-run
Response time:
Firebase hosting invoking ...
0
votes
0
answers
192
views
Is it necessary to enable CORS for Cloud Run services with authentication if they need to handle AJAX calls? [duplicate]
I have a private http service (e.g. AdminAPIService) running in Google Cloud Run behind its authentication feature, and it is configured through Cloud Run to accept requests from certain set of users ...
5
votes
2
answers
4k
views
IP filtering on Google Cloud run
I have an Angular web app i want to deploy using Google Cloud run. However I need the app be visible only from a list of predefined IP addresses.
Can I simply set the ip allow/deny rules under Google ...
1
vote
2
answers
3k
views
Set hostname in container for CloudRun
I want the hostname in my Managed CloudRun service to be MyServiceName.RevisionName.InstanceId or anything better than "localhost" which I am getting now.
Is this possible ?
1
vote
2
answers
2k
views
Connecting from google cloud run to google cloud (mysql) using .net core
I have a .net core app installed as a docker on google cloud run, this app that needs to be connected to cloud sql (mysql).
When using the private ip address it, it's not working.
When using public ...
2
votes
1
answer
4k
views
Endpoint for Cloud Function returns 403 Forbidden
I am following Google's tutorial for setting up an Endpoint for my cloud function.
When I try to access the endpoint from my browser using URL service_name.a.run.app/function1 I get
Error: Forbidden
...
7
votes
3
answers
3k
views
Does Google Cloud Run support streaming response data?
I just deployed my application to Google Cloud Run. It has an HTTP end-point that returns a streaming response, so the client can start rendering data as it comes in instead of waiting for the ...
0
votes
1
answer
2k
views
Is there a way to make Google Cloud Run pass on my Content-Type?
I'm running a java/jetty based application inside Docker/Google Cloud Run.
The response I'm sending has (among others) these headers
Content-Type: multipart/signed; ...
Content-Length: 4849
Server: ...
0
votes
1
answer
757
views
Google Cloud API DomainMapping using Firebase Cloud Functions
I am trying to programmatically add a domain mapping to a service using Firebase Cloud Functions. So far was able to get the proper json field format when sending a POST request and receive a 200 ...
2
votes
0
answers
2k
views
Connecting SpringBoot to Cloud SQL in Cloud Run error, connection refused
I'm deploying my Maven Springboot project to Google Cloud Run and trying to connect to Cloud SQL from Cloud Run. I'm using https://github.com/spring-cloud/spring-cloud-gcp/tree/master/spring-cloud-gcp-...
9
votes
2
answers
6k
views
How to use Stackdriver logging on Cloud Run
I'm trying to get stackdriver logging working for a simple Go app running in Google Cloud Run (fully managed), but don't see stackdriver entries in CloudRun logs.
I've created simplest possible demo ...
6
votes
2
answers
7k
views
Cloud build permission denied when deploy to cloud run with "--set-sql-instance" argument
I'm trying to configure cloud build triggers which build maven springboot project and then deploy to cloud runs. I run into a problem where it works when i don't specify the cloud sql instance to be ...
3
votes
1
answer
2k
views
Google Cloud Run w/ Flask and Gunicorn: Nginx needed?
I've followed the Google Cloud Run Quickstart which shows how to deploy a Flask app to Cloud Run, served with Gunicorn.
However, many places online (including Gunicorn's own documentation) say that ...
0
votes
0
answers
249
views
errors micronaut on Cloud Run fully managed -- setsockopt , RoutingInBoundHandler
Seeing this with my own apps, as well as when I deploy the micronaut-gcp hello-world example to Cloud Run (fully managed)
When the service starts up, I see warnings from gVisor sandbox:
Container ...
8
votes
1
answer
9k
views
500 on Google Cloud Run: The request failed because the instance could not start successfully
I'm doing load testing on an ExpressJS app hosted on Google Cloud Run, upon spike increase in traffic, there is a period where I see many 500 errors in Stackdriver with the message "The request failed ...
7
votes
3
answers
4k
views
Is it possible to use a fully managed service (Cloud Run or App Engine) with firewall in GCP?
Problem. I'm looking for an agile way to shoot a docker container (stored on GCR.IO) to a managed service on GCP:
one docker container gcr.io/project/helloworld with private data (say, Cloud SQL ...
3
votes
0
answers
3k
views
unable to run selenium chrome-driver on google-cloud-run
I have a docker container that runs a working selenium chrome driver script, however when the same image is deployed to Google Cloud Run I encounter the following error.
webdriver.Chrome('/home/...
2
votes
2
answers
11k
views
Can I use a ssh client inside a Cloud Run instance to make connections to internal network
I build a docker image with openssh client stuff, build and deployment goes without errors. But when trying to make a call in a properly running Cloud Run instance, all I get is timeout errors. Cloud ...
6
votes
1
answer
1k
views
Firebase hosting caches Google Cloud Run requests
So I'm experimenting with Firebase hosting and Google Cloud Run for a web application.
I got a static SPA deployed on firebase hosting, and a rewrite rule to direct all requests starting with /api to ...
5
votes
2
answers
4k
views
Google Cloud Run deployment not working using `gcloud` SDK CLI
I have a service created on Google Cloud run that I am able to deploy manually through the Google Cloud Console UI using an image on Container registry. But deployment from CLI is failing. Here is the ...
12
votes
1
answer
9k
views
Google Cloud Run Authentication Service-to-Service
I have two services (APIs) deployed on GCP Cloud Run. Call them service-one.myDomain.com and service-two.myDomain.com. I would like service-one to be authenticated in calling service-two independently ...
0
votes
1
answer
466
views
Unable to Create New GCP Endpoints in Cloud Run
I'm using Cloud Run, Endpoints and Cloud Functions to build an API service. There are multiple endpoints running completely fine, but I'm no longer able to deploy any new endpoints.
The Cloud Run ...
1
vote
1
answer
361
views
Firebase functions, getting a authentication token for calling another service
I am trying to generate an auth token to call a deployed Cloud Run service, below if my code to call out to the metadata server:
async function auth(receivingServiceURL:string) {
const ...
3
votes
2
answers
1k
views
After adding nltk.download('words') Google Cloud Run
I have a Google Cloud Run app run on GCP. After adding the following modification, the app crashed:
nltk.download('stopwords')
nltk.download('averaged_perceptron_tagger')
nltk.download('...
4
votes
3
answers
3k
views
Moving images from Docker registry to GCR
Google cloud run does not support the docker registry, therefore I have to manually pull the image, tag it and push it to GCR.
Container image URL should match pattern [region.]gcr.io/repo-path[:...
8
votes
2
answers
5k
views
Terraform: Cloud Endpoints on a Cloud Run service?
Is there a way to run Cloud Endpoints on a Cloud Run service?
Let's say I have the following main.tf and I want to use Cloud Run's URL when I am defining my Cloud Endpoints services.
That URL is ...
4
votes
2
answers
3k
views
How can you connect to Google Cloud Datastore from Cloud Run?
I'm willing to deploy a service in Google-Cloud-Run. It would be a (python) Flask App that would connect to datastore (firestore in datastore mode) to either write or read a small blob.
The problem ...
2
votes
1
answer
441
views
Cloud Run on GKE autoscaling
The Cloud Run on GKE documentation says
Note that although these instructions don't enable cluster autoscaling to resize clusters for demand, Cloud Run for Anthos on Google Cloud automatically ...
1
vote
1
answer
590
views
Implementing Cloud Run with Firebase Cloud Functions
After reading the docs on both Cloud Run and Firebase Cloud Functions, I have a few questions I want to clear up:
Does Cloud Run basically act as a container image storage/deploying mechanism? If I ...
2
votes
1
answer
956
views
problem connecting cloud run to postgresql 11 database
I'm trying to connect my Cloud run container to my PostgreSQL 11 database using this connection string
postgresql+psycopg2://username:password@/db?host=/cloudsql/project-name:region:dbinstance
when I ...
0
votes
0
answers
1k
views
Unable to deploy Rails app into Google Cloud Run
I have a Rails app running locally with Docker and now I'm trying to deploy it to Google Cloud Platform using Cloud Run, following this great tutorial by Laurent Julliard.
I'm using following GCP ...
0
votes
1
answer
510
views
Cloud Run doesn’t work with Express static middleware
I have an express container that serves static files and it works perfectly when built and deployed locally. However, when I build and deploy it to Cloud Run, the dynamic html is returned but static ...
-1
votes
1
answer
288
views
Can't get HTTP PATCH to work on Google Cloud Run instance
I have running a webserver called Postgrest which generates a REST API on top of a postgres DB. I have this running in Google Cloud run, and have it working for the most part. The HTTP actions I need ...
4
votes
1
answer
1k
views
How to secure REST API endpoints served via GCP Cloud Run?
I have a simple web site hosted in Firebase and it is making AJAX calls to REST API endpoints in GCP Cloud Run.
I would like to limit these endpoints only to the calls coming from this site hosted ...
3
votes
1
answer
3k
views
Google StackDriver: How do I correlate (and nest) other logs with trace logs?
Please help, I've been unsuccessful for 3 days :/
I'm deploying a handful of services to Google Cloud Run, and would like to trace requests and correlate logs to those requests as the requests hop ...
2
votes
2
answers
359
views
Is there a sockets quota for cloud run?
As described in How to increase the Socket Connect Count quota for app engine we had hit a quota limitation for GAE socket connect counts ( https://cloud.google.com/appengine/quotas). We end up ...
1
vote
3
answers
2k
views
How create a combined response from multiple microservices (cloud run containers) in a single api endpoint using Google Cloud Endpoints (gateway)?
I am familiar with firebase platform, but I am relatively a new user of the google cloud platform as whole.
I am working on a project built using a microservices structure, and I do have so many ...
3
votes
1
answer
284
views
How to stop Undertow triggering warnings from gVisor in Cloud Run
Recently my Undertow application is triggering Cloud Run to report the following:
Container Sandbox Limitation: Unsupported syscall setsockopt(0x13,0x1,0xa,0x3e05747fe5a0,0x4,0xfc1abc10). Please, ...
5
votes
2
answers
2k
views
Use hasura with Google Cloud Run and Google Cloud SQL
The docs describe that hasura needs the postgres connection string with the HASURA_GRAPHQL_DATABASE_URL env var.
Example:
docker run -d -p 8080:8080 \
-e HASURA_GRAPHQL_DATABASE_URL=postgres://...
3
votes
0
answers
2k
views
Google Cloud Run has no available instances?
I have encountered this error frequently from Oct/11/2019.
The request was aborted because there was no available instance.
So I deploy to cloud run, I can't access to the service.
and always ...
6
votes
3
answers
11k
views
How do you specify DB_URI postgres DB connection string to instance running in Google Sql cloud?
Here's my scenario. I have set up an instance of Postgres DB running in the Google SQL cloud. It's up and running and if I whitelist my local IP, I can connect directly with no issue.
I then have ...
5
votes
2
answers
2k
views
How to close SQL connections of old Cloud Run revisions?
Context
I am running a SpringBoot application on Cloud Run which connects to a postgres11 CloudSQL database using a Hikari connection pool. I am using the smallest PSQL instance (1vcpu/614mb/...
2
votes
2
answers
2k
views
How to automatically renew the Let's Encrypt SSL certificate for Cloud Run for Anthos on Google Cloud with Serverless?
I made a service with Cloud Run for Anthos on Google Cloud, and the SSL certificate is made by Let’s Encrypt.
I want to renew the certificate automatically on serverless, not on GCE.
How can I do ...
1
vote
1
answer
2k
views
Stackdriver-trace on Google Cloud Run failing, while working fine on localhost
I have a node server running on Google Cloud Run. Now I want to enable stackdriver tracing. When I run the service locally, I am able to get the traces in the GCP. However, when I run the service as ...
0
votes
2
answers
1k
views
Can an Endpoint call severals backend services on cloud run
How can have one endpoint but this call several backend services (several cloud run services) ?. Thanks.
I want to have one endpoint that call several cloud run endpoints... how i do that?