Skip to main content

All Questions

0 votes
0 answers
21 views

Can custom headers be added to automatically generated Cloud Logging logs in Cloud Run?

A similar question was asked nearly two years ago, but there was no confirmed answer. Is it now possible to add custom attributes to the automatically generated logs in Cloud Run? I’m not referring to ...
code_taco's user avatar
0 votes
1 answer
70 views

Cloud Run deployment from Github does not execute build. No logs

I built a flask app which I am trying to deploy to Google Cloud Run. My code base is on Github in a private repository. However, the following error occurs: "Cloud Build trigger was created, but ...
timbeau's user avatar
  • 21
0 votes
0 answers
42 views

How to get ordered logs using GCP Pub/Sub

I am using the GCP Pub/Sub to get real-time google logs into my Python application. I have created a log Sink that routes specific cloud run job logs into a Pub/Sub topic and I am subscribing to that ...
72mins's user avatar
  • 100
0 votes
1 answer
454 views

Error from Google Cloud Run - Deploying containers

I am getting this error when I am trying to deploy a simple python container in Google Cloud Run: Revision 'flask-backend-00001-vxb' is not ready and cannot serve traffic. Cloud Run does not support ...
Salar Satti's user avatar
0 votes
0 answers
192 views

GCP pub-sub errors

I am building a simple webapp that accepts HTTP POSTs and should trigger a Cloud Pub-Sub event. Without pub-sub, the app deploys fine and I can reach the endpoint. I've created a sample functions. I'...
Peter's user avatar
  • 1,128
0 votes
0 answers
72 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 ...
Paolo Fusari's user avatar
1 vote
1 answer
70 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()}'...
harrolee's user avatar
  • 785
4 votes
1 answer
975 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 ...
Alex Mindock's user avatar
0 votes
0 answers
91 views

Cloud Run long CPU times and poor initial performance for Python app

I have a function that uses BigQuery API to retrieve a dataset and write it to a dataframe. Its a large dataframe of about 500k rows. It only runs at start time and locally takes about 27 seconds ...
Jeff Oberlander's user avatar
0 votes
1 answer
261 views

Playwright works locally, but fails once deployed on to Google Run

I developed and successfully tested a python script locally that uses Playwright for web scraping. TLDR: Python script logs into a website, goes to a different page, clicks on a few links and then ...
Wesley Jeftha's user avatar
1 vote
0 answers
131 views

Error occured from python joblib.load : persistent IDs in protocol 0 must be ASCII strings In GCP cloud run

Overall: I tried to build BERT model with Cloudbuild and Cloudrun. I saved the model (parameter) and metadata (labels) at the GCP Cloud Storage. But, I encountered the error from load metadata.bin ...
ETKim's user avatar
  • 21
0 votes
0 answers
384 views

GCP Cloud Run seems to not be serving the proper revision

I have a simple FastAPI API deployed using GCP Cloud Run, which serves as the back-end of a React webapp hosted in Firebase. The system was working fine and I would regularly create new revisions ...
guillemrbaiges's user avatar
1 vote
1 answer
41 views

Cloud Run - Authenticated request doesn't work on custom (sub)domain

I have a Cloud Run service running with authenticated requests turned on. I've created a domain mapping using Load Balancing to point a subdomain to the container. I have been sending requests to the ...
Victor's user avatar
  • 537
2 votes
0 answers
294 views

How can I get the CPU & Memory usage from a service in Google Cloud Run using python?

I want to create a resource tracker for my pipelines (the majority are deployed in a Cloud Run Service). so that I can save a log every time they run with the CPU & Memory usage, something like ...
lapiceroazul4's user avatar
2 votes
1 answer
191 views

Cloud Run in Google Cloud doesn't recognize time.sleep() in my Python script

I have a Cloud Run service running a Python script in a Docker container. Running the script on a VM in GCP or locally works fine. It recognizes the time.sleep() in my script. But Cloud Run does not. ...
geometricfreedom's user avatar

15 30 50 per page
1
2 3 4 5
9