Questions tagged [google-cloud-functions]
9 questions
3
votes
1 answer
jsonPayload (structured logging) output from Python Google Cloud Function's logging needed to create Log-Based Metrics (LBM) in GCP
I need the jsonPayload in the logs of a Google Cloud Function instead of the textPayload. My aim is to use the keys of the dictionary as labels (see Log-based metrics labels) for Log-Based Metrics so that these can be addressed in Grafana.
I am…
![](../../users/profiles/607547.webp)
questionto42standswithUkraine
- 239
- 1
- 17
1
vote
1 answer
DNS resolving from Cloudfunctions in VPC network
I am deploying a Cloudfunction with VPC network as follows:
gcloud beta functions deploy my-function
--trigger-http
--region europe-west1
--memory 128MB
--runtime nodejs16
--entry-point entrypoint
…
![](../../users/profiles/124629.webp)
Vojtěch
- 275
- 3
- 11
1
vote
1 answer
When writing csv from CF to bucket: 'with open(filepath, "w") as MY_CSV:' leads to "FileNotFoundError: [Errno 2] No such file or directory:"
I get this error FileNotFoundError: [Errno 2] No such file or directory when I try to write a csv file to the bucket, using a csv writer that loops over batches of data. The full insight into the Cloud Function logs around that error:
File…
![](../../users/profiles/607547.webp)
questionto42standswithUkraine
- 239
- 1
- 17
0
votes
1 answer
compute.instances.list privilege required for Cloud Functions
I am following https://cloud.google.com/scheduler/docs/start-and-stop-compute-engine-instances-on-a-schedule. When testing the Cloud Function, I get the error message:
Error: Required 'compute.instances.list' permission for…
![](../../users/profiles/200713.webp)
Thorsten Staerk
- 389
- 2
- 11
0
votes
1 answer
Google Cloud Function warning "OpenBLAS WARNING - could not determine the L2 cache size on this system"
I get the warning
OpenBLAS WARNING - could not determine the L2 cache size on this system, assuming 256k
in the logs of the "LOGS" tab of the Cloud Function.
There is already a Q/A on this on Stack Overflow at AppEngine warning - OpenBLAS WARNING…
![](../../users/profiles/607547.webp)
questionto42standswithUkraine
- 239
- 1
- 17
0
votes
1 answer
Reading only the metadata of a file in a Google Cloud Storage bucket into a Cloud Function in Python (without loading the file or its data!)
I need something like Cloud Storage for Firebase: download metadata of all files, just not in Angular but in Python and just for a chosen file instead.
The aim is to return this information when the Cloud Function finishes with the return statement…
![](../../users/profiles/607547.webp)
questionto42standswithUkraine
- 239
- 1
- 17
0
votes
0 answers
GCP/Firebase functions has zero active instances despite the explicitly defined minimum to have two online instances
My current gcp/firebase function config below and yet GCP functions absolutely disregard these settings as shown on the attached graph.
current function config:
const runtimeOptsRetryMinOneInstance = {
timeoutSeconds: 30,
memory: "128MB",
retry:…
0
votes
0 answers
Google cloud functions contains whole application code unlike aws lambda which contains only function specific code
I was using aws lambda for few projects. In lambda i can package only function specific code so every function has only its own code. and now i am using google cloud functions for my new project. I've deployed few functions but all the functions…
0
votes
2 answers
Org Policies error when creating a Cloud Function
When trying to create a "hello world" Cloud Function, I get the error message:
"The request has violated one or more Org Policies. Please refer to the respective violations for more information."
Now, which org policies have been violated? In the…
![](../../users/profiles/200713.webp)
Thorsten Staerk
- 389
- 2
- 11