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.

Cloud Run is a managed compute platform that enables you to run stateless containers that are invocable via HTTP requests.

Official sites:

2585 questions
0
votes
0 answers

How to compress automatically Cloud Run responses?

I have an API running in Cloud Run and I need to compress the responses with gzip. All the responses would be JSON objects. What are my options to achieve this? Is there a configuration for this in Cloud Run? Do I need to use other service? I used…
Oliver Sosa
  • 754
  • 9
  • 16
0
votes
2 answers

Firebase Cloud Storage Caching from Firebase Hosting

So my backend application architecture is the following: Deployed Web Api microservice on cloud run (nodejs express app) Configured API Gateway for token validation from client (mobile app) Profile pictures are saved to a bucket and different…
0
votes
1 answer

HttpRequestException (403 Forbidden) when creating a Google Cloud Storage SignedUrl (GET), only on Cloud Run

When running a docker container via Cloud Run, calling Sign(bucket, objectName, duration, HttpMethod.Get) on a Google.Cloud.Storage.V1.UrlSigner, it immediately throws an HttpRequestException, stemming from a 403 Forbidden response. I suspect that…
0
votes
0 answers

Memory Leak in Cloud Run Job

I have a Cloud Run job already deployed on GCP. It's basically a bounch of python scripts that downloads ~140+ *.zip or *.rar files from the web into a ./tmp directory within the archive filesystem, extracts them into the same directory using the…
Nachengue
  • 376
  • 1
  • 2
  • 11
0
votes
1 answer

Server sent event handler works perfectly fine locally, but is incredibly slow when deployed to Cloud Run

The following code streams some data from OpenAI's chat completion API that responds using server sent events. export async function promptStream( apiKey: string, userId: string, prompt: Prompt, handleNewChunk: (chunk: string) =>…
0
votes
1 answer

"Error creating Cloud Run service: Invalid value for memory limits and maxScale exceeding 80. How to resolve?

I am deploying a Nextjs application, using Firebase Hosting and I encounter this error ....... could not create Cloud Run service PROJECT_ID spec.template.spec.containers.resources.limits.memory: Invalid value specified for memory. For the specified…
0
votes
1 answer

GCP compute VM running self-managed elasticsearch -can't connect via port 9200

So I just need help weeding out the best scenario for my architecture. I currently have a cloud run instance that is using my custom domain: www.example.com. To utilize this custom domain i've chosen a global external load balancer to handle…
0
votes
0 answers

Docker Volume is not mounted in Cloud Run

I have setup continues integration deployment with cloud run using a docker file, it seems when building image with cloud run the volume is not mounted in docker, with image building locally and deploying on cloud run works fine, if anyone has any…
Ali
  • 43
  • 1
  • 18
0
votes
0 answers

Cookies set on development, but not on production

2 Docker containers: Server: Express.JS REST API with JWT authentication. Client: Next.JS app that uses Axios to talk with the server. I tested it on localhost with Docker Compose: Everything working fine (both Postman and the browser successfully…
Henrique
  • 43
  • 4
0
votes
1 answer

Unable to Set up connection with Cloud SQL instance via casbin-sequelize-adapter

I am trying to connect my microservice with the CloudSQL instance via casbin-sequelize-adapter. Following is the code - await SequelizeAdapter.newAdapter({ username: process.env.DB_USER, password: process.env.DB_PASS, database:…
0
votes
1 answer

Make a docker file for node js project with nginx without docker-compose.yml

I had created a Dockerfile for node js project with nginx(without docker-compose.yml) Actually I have to run it on gcp, so, I don't need that file. I have to run the project through dockerfile only FROM node:16 as nodework WORKDIR…
0
votes
0 answers

Getting the error "Project not found. Resource readiness deadline exceeded" when trying to create a cloud run service only on certain project

When I try to create a cloud run service, I am running into the error: Project not found. Resource readiness deadline exceeded This problem only happens on one project. I have looked into the logs and all I am provided with is: Ready condition…
0
votes
0 answers

Does Springboot 3.0 works with gcp cloudrun?

The issue is the app with springboot 2.7.x version works with cloud run but not with springboot 3.0.x
0
votes
0 answers

Error "ValueError: Please provide code or authorization_response parameters." for a Python app with the LinkedIn API deployed on Google Cloud Run

I want to create a Python program, which will be deployed in a Docker container via a Google Cloud Run service, just allowing me to communicate with the LinkedIn API, and then go further into what the API offers. after having performed the gcloud…
Ribcet76
  • 41
  • 1
0
votes
1 answer

How do I keep a long-running background task from stopping on Google Cloud Run?

I have a FastAPI endpoint which starts some long-running background tasks: background_tasks.add_task(fn()) These tasks can take up to 10 hours to complete. I am running this inside a Docker container using gunicorn: # Start the application CMD exec…
1 2 3
99
100