3,132 questions
0
votes
1
answer
41
views
File Not Found error during Docker container run with existing file
I'm trying to deploy a Google Cloud Run application in Python and when the code tries to open a configuration file (yaml) an error occurs saying File Not Found.
However, the file was uploaded during ...
1
vote
0
answers
50
views
Cloud Run: Laravel Image Upload Works in Staging but Fails in Production Using Google Cloud Storag
I'm deploying a Laravel app on Cloud Run and using Google Cloud Storage (GCS) for uploading images. I'm using the spatie/laravel-google-cloud-storage package. The upload functionality works perfectly ...
0
votes
1
answer
75
views
Role based access control in a Python app deployed in GCP Cloud run
We have a react front end and a python flask backend deployed in GCP cloud run, users are configured in google groups and authenticated via IAP.
Now we want to setup role based access control in our ...
0
votes
2
answers
528
views
How to pass environment variables when executing a Google Cloud Run Job using Node.js or Python client?
I’m trying to execute a Google Cloud Run job and pass environment variables to it, similar to how I would using the gcloud CLI:
gcloud run jobs execute <test-job> --update-env-vars key1=value1,...
0
votes
0
answers
29
views
Google run altering a request payload in very strange way
I’m experiencing a strange issue where my JSON payload is being distorted when deployed on Google Cloud Run, but the same code works perfectly fine on Heroku and localhost. I'm using Laravel 11 and ...
1
vote
0
answers
15
views
my post to firestore batch (from cloud run service) is timing out no matter what is the size of my batch
I'm trying to accomplish what seems like a straightforward task: reading CSV files from a Cloud Storage bucket and pushing the rows into Firestore in batches. I've set the batch size to 500 and also ...
0
votes
0
answers
108
views
unable to get a response from a cloud run container
I have two containers api and view. To confirm the URL is correct, I made a small test container that called the api's HealthCheck endpoint several times and printed out the result. Which was 302 ...
2
votes
0
answers
245
views
Cloud Run DirectPath is misconfigured. Please set the EnableDirectPath option along with the EnableDirectPathXds option error message
Colleagues,
I am a new user to Google Cloud Run. I have a Docker Image that generates data for a future AI project. The image runs on Cloud Run without difficulty. I am trying to mount a Cloud Storage ...
0
votes
0
answers
73
views
Fastapi on GCP cloud run not killing timeout request
we have a simple fastapi application deployed on GCP cloud run, The cloud run has a timeout of 15s but sometimes the downstream API call done by fastapi exceed this time.
We are experiencing that once ...
0
votes
1
answer
47
views
Google Cloud Run with domain mapping and redirection to www/non-www
App is running on Google Cloud Run with domain mapping (example.com).
Now I need it should be works www.example.com too.
Questions:
So I should add another domain mapping with www. to the same ...
0
votes
1
answer
51
views
Structuring a GCP service to restrict access to a cloud run group by incoming hostname
I'm building a service where clients add a JS snippet to their sites. This then communicates with a REST API I host.
The API will be served via a container running on Google Cloud Run.
I plan to put ...
0
votes
1
answer
148
views
How to access GCP Secret Manager in a .NET application with a proxy configured?
I have a .NET application hosted on Google Cloud Run that needs to access the GCP Secret Manager. My application works fine without a proxy, but when I set a proxy using environment variables (...
0
votes
1
answer
84
views
Not able to deploy my Django application on Google Cloud Run
i need some help with my django docker deployment, so ill show you what I currently have and I need your help now configuring it to run with nginx and gunicorn so I can eventually use this to deploy ...
0
votes
1
answer
35
views
firestore written trigger issues
I created a cloud run funciton to sync firestore to meilisearch. The function fired by google.cloud.firestore.document.v1.written authenticates fine with firestore then tries to sync using ( part of ...
1
vote
0
answers
71
views
How to get access to service account private key for PreSigned URLS?
Keep getting "An error occurred: you need a private key to sign credentials.the credentials you are currently using <class 'google.auth.compute_engine.credentials.Credentials'> just ...
0
votes
0
answers
48
views
How to make development environment url in GCP accessible for development team only
I have two urls, one for dev. env.: dev.moocapps.com and another for prod. env.: moocapps.com
I am trying to make the dev. env. just accessible for the software developers that are working with me, in ...
0
votes
0
answers
35
views
Connecting cloud run on GCP A to cloud sql on GCBP B using a proxy
So I have been trying this for some times and I can't figure it out. There are multiple ways as per the chatgpt instructions and not a consistent recommendation thus time for human brain here :)
So I ...
0
votes
1
answer
35
views
How do I extract Auth information from Express-served Firebase Function?
I'm using the strategy from this documentation to serve a microservice using Firebase Functions and Express.js: https://firebase.google.com/docs/hosting/functions#use_a_web_framework
Now what I want ...
0
votes
3
answers
176
views
GCP Cloud Run complains "can't open file '/app/main.py': [Errno 2] No such file or directory"
I have my project wrapped up as docker containers. Please see the Dockerfile:
FROM python:3.12-slim
WORKDIR /app
COPY requirements.txt /app/
RUN pip install --upgrade pip setuptools wheel \
&...
0
votes
1
answer
103
views
Send request to specific Cloud Run revision
I am making a post request to my Cloud Run app.
The current revision is serving 100% of traffic.
There are some old revisions which are currently serving 0% of traffic. Is it possible to route my ...
0
votes
0
answers
211
views
Google Cloud Run ignores USER command in Dockerfile, runs as root
I'm using the USER command in Dockerfile to switch the user from root to the newly created user (and group) apprunner.
Problem is, after my latest deployment on Friday Nov 7th 2024, Cloud Run is ...
1
vote
1
answer
71
views
GCP Cloud Run Container Behavior - ModuleNotFoundError
When Cloud Run runs a container image, the container fails differently than when I run it locally.
I added this try/except in app/main.py to debug the divergent behaviors:
print(f'cwd is {os.getcwd()}'...
0
votes
1
answer
118
views
Laravel session Is not working (Laravel + firestore) on google cloud run
I am facing session issue in laravel firestore project which is deployed on google cloud run. Locally, everything works fine, but it doesn't even running on Google cloud.
This is my middleware
class ...
1
vote
1
answer
177
views
Get author of gcp cloud run jobs
Is there any way to get the author of a gcp cloud run job execution in python?
For example when I run gcloud run jobs executions list, I can see the author that created it (RUN BY column):
JOB ...
0
votes
1
answer
254
views
Using Cloud Deploy to only update the Cloud Run image
I've created my Cloud Run instance using Terraform. I also have Cloud Build, Artifact Registry, and Cloud Deploy in Terraform.
When I run terraform apply my environment is created the way I want.
...
1
vote
1
answer
659
views
How to check for success status of Cloud Run Job within Cloud Workflows?
I'm running several Cloud Run Jobs in sequence using Cloud Workflow. After completing Job #1, I want to check for successful completion before moving to Job #2. In testing, I see that Job #1 returns ...
0
votes
0
answers
70
views
Connectivity issues with app using libp2p and QUIC in managed cloud environments
We are experiencing issues deploying the dockerized app in a simplified cloud-based environment. Here are the details for reference:
Docker image: gregorywhale/spy-with-params
Source code: GitHub ...
0
votes
1
answer
66
views
Access sheets from Cloud function without sharing sheets to service account
I need to read a lot of the sheets that were shared with me programmatically.
I have been able to read it on my local machine using the code below with GOOGLE_APPLICATION_CREDENTIALS set.
However, ...
0
votes
1
answer
40
views
How can I set the Cloud Run public port?
I have a Google Cloud Run function, and wish for it to listen on a public port other than 80 or 443, is it possible?
I know I'm able to change the port at the function level, but that only sets the ...
0
votes
1
answer
78
views
HTTPS Load balancer in front of Cloud Run [closed]
As per the Google documentation , GFE(Google Front End) stands before a cloud run and redirects HTTP to HTTPS.
External Application Load Balancers are implemented as managed services either on Google ...
0
votes
1
answer
472
views
How to run a bash command in a Google Cloud Run Job?
I'm trying to execute the following bash command as a Google Cloud Run Job from the Google Cloud Console: dbt run -s tag:client.
For that, I'm passing container arguments, while keeping the entrypoint ...
0
votes
0
answers
53
views
Google cloud run auth, odd behaviour based on URL params
Today I spent a very large part of my day debugging a 403 error in which I am calling a cloud run service from another cloud run service.
To authenticate between the two services they are deployed ...
1
vote
0
answers
198
views
GCP Cloud Run - Playwright does not install correctly
I have deployed a nodejs app in GCP using a cloud run service.
The application requires playwright to scrape web pages and
although in my Dockerfile I have the line RUN npx playwright install after my ...
0
votes
0
answers
62
views
Keep getting "Gcloud Pub/Sub: Total timeout of API google.pubsub.v1.Publisher exceeded 60000 milliseconds"
I am new to GCP and I've developed a simple Google Cloud Run service that reads a CSV file from a Google Cloud Storage bucket and pushes each row to Pub/Sub. The code functions well on the emulator ...
0
votes
1
answer
44
views
flask-session on sqlalchemy does not accept db address info
I am trying to use flask-session to save session data in a MySQL db using SQLAlchemy. It works on my local machine. It also works in a Docker container. However, when I try to run it on Google Cloud, ...
0
votes
1
answer
438
views
Service Account Can't Generate Signed URL from Cloud Storage
Error: AttributeError: you need a private key to sign credentials.the credentials you are currently using <class 'google.auth.compute_engine.credentials.Credentials'> just contains a token. see ...
1
vote
0
answers
136
views
Google Cloud Run: Container Fails to Start and Listen on Specified Port Despite Local Success
Problem
I'm deploying a FastAPI app with Uvicorn on Google Cloud Run. The app runs fine locally, but on Cloud Run, the deployment fails with the error:
Revision 'chat-api-00001-mcn' is not ready and ...
0
votes
0
answers
72
views
Does it reduce latency to deploy Google Cloud Run in multiple regions if your other Google products are located in one region?
A new feature in Google Cloud Run is that you can deploy your application to multiple regions. Is there a benefit to do so if your other Google Cloud products are only available in one region?
For ...
1
vote
1
answer
206
views
What is the best way to determine the maximum concurrent requests per instance for your App Engine or Cloud Run app?
On Google Cloud App Engine and Google Cloud Run, what is the best way to determine the value for maximum concurrent requests per instance? The default for App Engine max_concurrent_requests is 10 and ...
0
votes
0
answers
62
views
How do I support url masks with and without tags?
I'm using URL masks. I want to support two possible URL paths:
https://myapp.com/myservice/_mytag/* - go directly to tagged revision
https://myapp.com/myservice/* - behave as though my url mask was ...
0
votes
0
answers
187
views
Can't decode event data in Cloud Run Function with a Firestore trigger
I have deployed a 2nd Gen Cloud Run Function with a Firestore trigger, on the google.cloud.datastore.entity.v1.written event. I have used the sample code shown in Google Cloud documentation:
from ...
0
votes
0
answers
53
views
Cloud Run times out when accessing PSC endpoint
So I have two Cloud Run Services - the first running in project A and sending traffic to VPC subnet1 and the second running in the project B that is only accepting internal traffic.
In order to send ...
0
votes
0
answers
197
views
Google Cloud Run Jobs Task Parallelism Not Working?
I wanted to learn about cloud run job's task parallelism and , so I created a job and set
number of task =10, and , to each container I am giving 8Gb of Memory and 8cpus's.
I have set task parallelism ...
1
vote
1
answer
70
views
Gmail API notifications to PubSub
I am working on some email automation that requires using the GMail API and PubSub as described in the Google document here: https://developers.google.com/gmail/api/guides/push.
This setup requires ...
0
votes
1
answer
425
views
Google Cloud Run - metrics
CPU/Memory usage metrics
I'm trying to read the cpu and memory usage metrics of GCP cloud run and I understand from answer posted in Google Cloud Run: interpreting CPU utilization metrics for ...
0
votes
2
answers
155
views
Google Cloud SQL Postgres connection issue from Springboot application in cloud run
I'm trying to deploy a Springboot application on Cloud Run and running into the issue of connection not getting connected for Prostgres Cloud SQL. I tried everything possible that I know of including ...
4
votes
1
answer
977
views
GCF function testing in python: failed to fetch builder image
I regularly use Google Cloud Run to write functions using Python. When testing I am usually able to click "Test Function" at the top of the page which opens a console window at the bottom of ...
0
votes
1
answer
102
views
Flask App Works Locally But Fails to Deploy on Google Cloud Run: "Failed to Start and Listen on the Port"
Problem:
I'm trying to deploy a Flask app with a pre-trained machine learning model (stored as a model.pkl file in the same directory) to Google Cloud Run. The container runs perfectly fine locally, ...
3
votes
0
answers
194
views
GCP API Gateway is caching response when Cache-Control header is set
All infra is on GCP. When I set a "Cache-Control: public, max-age=86400" response header on my endpoint that is served by a 2nd generation cloud function, the API gateway is caching the ...
0
votes
2
answers
50
views
Google Cloud Function - Invalid login
I upgraded a 4 years old cloud function from gen 1 to gen 2 using defineSecret instead of functions.config() to get environment variables and using OAuth2 authentication instead of having my gmail ...