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.
1,812
questions
0
votes
0
answers
39
views
Google Cloud Run allows timeout up to 60 minutes, but other services do not
I have a containerized process running in Cloud Run which does some data transformation in a flask app in Python. It takes about 45 minutes to run. No problem, because Cloud Run allows a timeout of ...
0
votes
1
answer
23
views
How to access Google Cloud Run Environment Variables from React App
I have Cloud Run environment variables as defined for my Google Cloud Run React App deployment.
However when I try to access them inside the react app as below, it gets "undefined" values.
...
0
votes
0
answers
24
views
Cloud Run 502 Bad Gateway - Protocol Error
Currently working on a microservice architecture where I have one particular microservice that will have a specific mechanism :
Receiving a Request saying it needs some data
Sending Status 202 - ...
0
votes
0
answers
42
views
FastAPI hosted on Google cloud return 500 server error
I have a FastAPI API that takes an image, loads a Tensorflow model, and returns a prediction.
Locally everything is working fine, but I want to host it on Google Cloud I followed a tutorial and did ...
0
votes
1
answer
53
views
Getting 403 while i try to access Cloudrun URL through browser
I am trying to setup a python app on GCP Cloudrun I need only authenticated users to be able to access the Cloudrun URL but I am facing 403 issue when I set up this app. Is there any alternative way ...
0
votes
1
answer
34
views
Google Cloud Api Gateway and Cloud Run in private context
I have a Google Cloud Api Gateway in front of a Cloud Run Backend. If both are public everything works.
If I check Allow internal traffic only on Cloud Run, Api Gateway does not have access to the ...
0
votes
2
answers
39
views
Google Cloud Run: Could not find specified network to attach to app
I have a Cloud Run container that uses a Serverless Connector to connect to a Cloud SQL instance all in the same project. This configuration works just fine.
I have moved the Cloud SQL instance to ...
-1
votes
1
answer
27
views
accessing secret from google secret manager
I put a serviceAccount.json in google secret manager, and I want to build am api service by Fastapi, a python web framework.
I mounted secret as a disk ,I want to read it from my file,but it reply no ...
2
votes
1
answer
33
views
How to retrieve name and revision of a Cloud Run service, from the service itself?
I am using Error Reporting to report any error in my Cloud Run services and Cloud Run jobs.
In a Node.js application, you can instantiate Error Reporting like this:
const error_reporting = new ...
1
vote
3
answers
38
views
Cloud Scheduler doesn't work with custom Cloud Run domain
I'm hosting the backend for an internal admin tool on Cloud Run. Since only admins of the GCP project should be able to access this tool, I followed the instructions here to enable IAP for Cloud Run ...
0
votes
0
answers
33
views
How to use GCP Profiler on Google Cloud Run?
I tried using the following code but it doesn't seem to be sending data to GCP Profiler
import * as profiler from "@google-cloud/profiler";
if (process.env.NODE_ENV === "production&...
0
votes
1
answer
52
views
How can I ensure a persistent connection to a specific GCP Cloud Run instance?
I've built an app (with flask, flask-login and dash) on GCP Cloud Run. The app allows users to login, look at some fancy dashboards and leave comments on certain pages. It works great performance-wise:...
0
votes
0
answers
50
views
how could cloud run instance always on 1
I have a problem is in my project, set cloud run min intance :1 , max instance:1
why my cloud run metric instance count like this picture.
enter image description here
0
votes
0
answers
43
views
Firebase Get All Auth Users taking Forever in cloudrun
We're trying to fetch 86k of our firebase users, on local & firebase functions it takes 2 minutes for all, but in cloud run it is taking on average 20 seconds per call (you can only request 1k ...
1
vote
2
answers
68
views
Specify Python version on Cloud Run Buildpack
I am deploying a web app on Cloud Run using the automated Cloud Build "Buildpack" option (as explained here); hence not having to create a Docker File.
I would like to deploy the app using ...
0
votes
0
answers
36
views
Why GCloud Builds submit failing after creating image?
I am learning deploying a pubsub service to run under Cloud Run, by following the guidelines given here
Steps I followed are:
Created a new project folder "myProject" in my local machine
...
1
vote
1
answer
49
views
What is the Azure equivalent of GCP's Cloud Run?
I'm looking for an equivalent to Cloud Run (GCP offering) in Azure
In particular:
It deploys a container
Can scale down to 0
Can serve a webapp
Does Azure have such a service?
I was looking at Azure ...
1
vote
1
answer
63
views
How to configure nginx reverse proxy in Google Cloud Run to point to a different Google Cloud Run app
I have a web application fronted by nginx set up in GCP Cloud Run, which works great. I am trying to use nginx to proxy requests to a certain route to another GCP Cloud Run service. For example -- I ...
-1
votes
0
answers
40
views
GCP load balancer error invalid resource backend.service
I am following this link
to connect gcp https lb with the cloud run service.
It is giving me below error when creating lb, specifically this error is coming after adding custom head like below.
custom ...
1
vote
0
answers
32
views
Google Cloud Run dynamic IP address
I want to allow access only from Google Cloud Run.
I know I can give a fixed IP, but I'm looking for other ways to do it.
Is there a specific IP range for the IP address used by Google Cloud Run ??
1
vote
0
answers
101
views
Deploy julia application on google cloud build
I am trying to deploy a julia application on google cloud build. Using the below configuration files, I managed to successfully build the image on cloud build and deploy it on cloud run, however, when ...
0
votes
0
answers
31
views
NestJS logs not matching Google Cloud Stackdriver verbosity levels
I have a NestJS application that I am running on cloud run in Google Cloud (GCP). When viewing the logs in GCP from "Logs Explorer," I can see all log output from my NestJS app only when the ...
0
votes
0
answers
44
views
gcp cloud run upstream connect error or disconnect/reset before headers. reset reason: protocol error
I have a node app bundled with webpack which I am trying to deploy to cloud run. In order to be able to load a file more than 32 MB (the set limit) in cloud run I added the header ('Transfer-encoding' ...
0
votes
1
answer
23
views
Cannot load resource (ERR 500) lib.min.js when trying to hit the cloud run end point from browser
I have a node app build with docker. The code runs absolutely fine on localhost and docker container (with docker run command) but when this is deployed to GCP cloud run it gives an error that it ...
0
votes
0
answers
48
views
How to see the files running on my Google Cloud Platform Cloud Run service when using Artifact Repository?
This question
How to see the files running on my Google Cloud Platform Cloud Run service?
seems to use Container Registry (gcr.io files)
How do I view the files in my image when using Artifact ...
1
vote
1
answer
50
views
Cloud Run Python - Unable to import
I'm able to build and deploy a super simple python app, based on FastApi, to Cloud Run. However I now need to expand the app somewhat and need to organise my functions into modules which I would have ...
0
votes
1
answer
41
views
GCP 2nd generation Cloud Functions: How can I use Secrets?
How can I use a secret when creating a 2nd gen Cloud Function?
When I create a 1st generation Cloud Function, I can add secrets like so:
However this option is not available when creating a 2nd ...
-1
votes
1
answer
65
views
Building a Node app should I use App Engine or Google Cloud Run?
I am creating a Node app it has express, swagger and Agenda for running scheduled Jobs.
What is the best way to deploy it in GCP. Should I use App Engine or Cloud run.
From what I understand in Cloud ...
0
votes
1
answer
45
views
VPC access connector GCP - Cloudrun Services and AlloyDB different Regions
Quick Question, i am trying to configure a cloudrun service to be connected using AlloyDB on GCP.
The problem here is AlloyDB is in a different region than the others services, in this case central1, ...
0
votes
0
answers
52
views
How to make ssh tunneling from google compute engine to database server, and try to connect from google cloud run
So I have a SQL Server database that require me to be whitelisted to be able to access it. And I want to access it via ssh tunneling from google cloud computing.
My question is how do I do that ?. I ...
0
votes
1
answer
66
views
Uploading python-jose to cloud run fails
So I've created this Flask-app which is going to serve as my backend for a custom app.
To handle the creation of JWT-tokens, I've decided upon using an encrypted JWS (a JWS inside of a JWE). For this, ...
0
votes
0
answers
58
views
mkdir: cannot create directory '/var/log': Transport endpoint is not connected
My application is deployed in cloud run service. It was working fine until i added cronjob script into my entrypoint file. the strange thing is it is working fine when i run the container into my ...
0
votes
1
answer
44
views
Cloud Storage Signed URLs By Proxy
I'm trying to support large file uploads for a Cloud Run (and App Engine) project. There are some constraints that prevent the usual workarounds from working:
The clients are .NET 4.0 applications ...
0
votes
1
answer
23
views
Can Google Cloud Repositories be shared cross projects?
I am trying to set up a continous developemnt system for creating an app and I would like to know if this is idea is feasible within GCP:
Project A - Hosts Cloud Source Repository
Project B - Cloud ...
0
votes
1
answer
64
views
How to clean up /tmp files after cloud function sends response?
I have a Google Cloud Run container acting as an express server.
End users upload files into a temporary directory, I process them, and send a file back.
I'd like to clean up the original upload (and ...
0
votes
1
answer
87
views
Google Cloud Run: interpreting CPU utilization metrics for concurrency
In GCR docs about concurrency, it's recommended to allow concurrent connections unless you anticipate that each request will max out the CPU/RAM (https://cloud.google.com/run/docs/about-concurrency#...
1
vote
1
answer
56
views
Cloud Run local emulator : how to configure memory and CPU?
I'm developing a Cloud Run service using gcloud beta code dev (the local emulator).
Can I use CLI flags to set memory and CPU?
The docs say there should be a .vscode/launch.json file, but I can't ...
1
vote
1
answer
84
views
Cannot authenticate my Google Cloud Run service with a service account
I deployed a service on Cloud Run where authentication is needed:
gcloud run deploy my-service --project my-project --image eu.gcr.io/my-project/rest-of-path --platform managed --region europe-west4 --...
0
votes
0
answers
44
views
Intermittent terminated: Application failed to start: not available
I am using Google cloudrun to run my NodeJs application.
Most of the time it is working without any issues, however once in a while I am getting the the error "terminated: Application failed to ...
0
votes
1
answer
19
views
Cloud run can't handle POST method
I just deployed an application into cloud run, but the application running in cloud run can't handle the request in the form of POST method and always returns 404 not found. After I checked the log, ...
0
votes
1
answer
52
views
Cloud Run sending SIGTERM with no visible scale down on container instances
I've deployed a Python FastAPI application on Cloud Run using Gunicorn + Uvicorn workers.
Cloud Run configuration:
Dockerfile
FROM python:3.8-slim
# Allow statements and log messages to immediately ...
0
votes
0
answers
35
views
Why isn't Cloud Run sending cookies?
I have a fastify server that serves cookies to maintain the session.
When I test on localhost, it works as expected. I get a cookie on localhost:3000.
When I host my server as a container image ...
0
votes
0
answers
60
views
How to livereload nginx to serve Angular ssr on Docker
How to add liveReload on angular13 and serve on nginx
my default.conf and docker as below it work but miss the livereload, I used angular universal, on Angular 13 , the livereload setting is missing.
...
0
votes
1
answer
62
views
Docker image is way slower on Cloud Run than running local
I have a Docker image that should convert .docx files to .pdf using libreoffice-convert node package. I would like to communicate to the service using gRPC.
When building and running the image locally,...
1
vote
1
answer
87
views
Using GCP secret manager for hundreds of secrets in Cloud Run
I am currently running a SaaS through Google's Cloud Run platform. The customers each have their own API credentials that require secure storage, and retrieval during use of my program.
I would like ...
0
votes
1
answer
30
views
Can't access Google Run service with authenticated access
I have a Cloud Run service on a GCP project with access point URL https://reporting-intake-service-XXX-uc.a.run.app. And the service itself uses Pub/Sub to push a message.
Update: I have confirmed ...
0
votes
1
answer
55
views
Is it possible to set ACK deadline for an eventarc pubsub subscription?
I am using an eventarc trigger to send messages to my cloud run instances. However, the issue is that I am unable to set an ACK deadline since there is no way to set any attributes. I have also tried ...
0
votes
1
answer
45
views
The frequency of loading Secret Manager in Cloud Run
I am considering migrating my current web services to Cloud Run.
In Cloud Run's "Variables and Secrets", if we use Secret Manager to mount environment variables and credential files, how ...
-1
votes
1
answer
26
views
IP filtering Google Cloud run application (Internal and public)
I have an application deployed on Cloud Run and I want to apply IP filtering on it.
Can you please suggest me cheapest solution for both public and internal Cloud Run application.
-1
votes
0
answers
38
views
Google Workflows Request Times Out When Running a Long Cloud Run Operation
{
"state": "FAILED",
"@type": "type.googleapis.com/google.cloud.workflows.type.ExecutionsSystemLog",
"activityTime": "2022-05-27T19:53:09Z",
...