google-cloud-run

gcloud beta run deploy fails after sucessfully uploading image, fails to enable API

让人想犯罪 __ 提交于 2021-01-27 06:30:51
问题 gcloud beta run deploy used to work but now I'm getting an error: $ gcloud beta run deploy $PROJECT --image $IMAGE_NAME --platform=managed --region us-central1 --project $PROJECT --add-cloudsql-instances $PROJECT-db ... DONE ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ID CREATE_TIME DURATION SOURCE IMAGES STATUS abcdefj-higj-lmnopquer-uvw-xyz 2019

gcloud beta run deploy fails after sucessfully uploading image, fails to enable API

主宰稳场 提交于 2021-01-27 06:29:36
问题 gcloud beta run deploy used to work but now I'm getting an error: $ gcloud beta run deploy $PROJECT --image $IMAGE_NAME --platform=managed --region us-central1 --project $PROJECT --add-cloudsql-instances $PROJECT-db ... DONE ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ID CREATE_TIME DURATION SOURCE IMAGES STATUS abcdefj-higj-lmnopquer-uvw-xyz 2019

“[CRITICAL] WORKER TIMEOUT” in logs when running “Hello Cloud Run with Python” from GCP Setup Docs

[亡魂溺海] 提交于 2021-01-27 05:14:20
问题 Following the tutorial here I have the following 2 files: app.py from flask import Flask, request app = Flask(__name__) @app.route('/', methods=['GET']) def hello(): """Return a friendly HTTP greeting.""" who = request.args.get('who', 'World') return f'Hello {who}!\n' if __name__ == '__main__': # Used when running locally only. When deploying to Cloud Run, # a webserver process such as Gunicorn will serve the app. app.run(host='localhost', port=8080, debug=True) Dockerfile # Use an official

Error while creating GCP Serverless VPC Connection (“code”: 13)

冷暖自知 提交于 2021-01-07 01:36:40
问题 Trying to create a serverless VPC connection but always getting the same error ERROR: (gcloud.compute.networks.vpc-access.connectors.create) { "code": 13, "message": "An internal error occurred: Failed to create a VPC Access connector. Please delete the connector } Have tried the following Reference Link: Serverless VPC Access Tried all steps in Troubleshooting - mentioned at the bottom of the above page Tried various IP ranges like 10.8.0.0, 10.128.0.0, 10.160.0.0 - no use Created a new

Error while creating GCP Serverless VPC Connection (“code”: 13)

我的未来我决定 提交于 2021-01-07 01:36:35
问题 Trying to create a serverless VPC connection but always getting the same error ERROR: (gcloud.compute.networks.vpc-access.connectors.create) { "code": 13, "message": "An internal error occurred: Failed to create a VPC Access connector. Please delete the connector } Have tried the following Reference Link: Serverless VPC Access Tried all steps in Troubleshooting - mentioned at the bottom of the above page Tried various IP ranges like 10.8.0.0, 10.128.0.0, 10.160.0.0 - no use Created a new

Error while creating GCP Serverless VPC Connection (“code”: 13)

不羁岁月 提交于 2021-01-07 01:33:49
问题 Trying to create a serverless VPC connection but always getting the same error ERROR: (gcloud.compute.networks.vpc-access.connectors.create) { "code": 13, "message": "An internal error occurred: Failed to create a VPC Access connector. Please delete the connector } Have tried the following Reference Link: Serverless VPC Access Tried all steps in Troubleshooting - mentioned at the bottom of the above page Tried various IP ranges like 10.8.0.0, 10.128.0.0, 10.160.0.0 - no use Created a new

The caller does not have permission when attempting to use Google Cloud Storage within Cloud Run

强颜欢笑 提交于 2021-01-05 12:57:43
问题 I'm attempting to get a Node project setup on Google Cloud Run with Cloud Storage. I am running into an authentication issue when using a created Service Account. When creating the service account I did successfully download the JSON token and got everything running correctly in my local development environment. The issue is when I have the application deployed successfully to Cloud Run I get the following error: Error: The caller does not have permission This occurs when I am attempting to

The caller does not have permission when attempting to use Google Cloud Storage within Cloud Run

a 夏天 提交于 2021-01-05 12:57:13
问题 I'm attempting to get a Node project setup on Google Cloud Run with Cloud Storage. I am running into an authentication issue when using a created Service Account. When creating the service account I did successfully download the JSON token and got everything running correctly in my local development environment. The issue is when I have the application deployed successfully to Cloud Run I get the following error: Error: The caller does not have permission This occurs when I am attempting to

Cloud Run - Requests latency

时间秒杀一切 提交于 2021-01-01 09:10:36
问题 I am trying to use Cloud Run to run a microservice connected to Firestore. The microservice creates objects based on s2geometry to create multiple geographical zones with specific attributes and thus help localizing users to send them information according to the zone I locate them in. I used Python 3.7 and FastAPI to create the microservice and the routes to communicate with it. The microservice runs smoothly on my local machine and on Compute Engines as most of my routes takes less than 150

Cloud Run - Requests latency

ぐ巨炮叔叔 提交于 2021-01-01 09:10:10
问题 I am trying to use Cloud Run to run a microservice connected to Firestore. The microservice creates objects based on s2geometry to create multiple geographical zones with specific attributes and thus help localizing users to send them information according to the zone I locate them in. I used Python 3.7 and FastAPI to create the microservice and the routes to communicate with it. The microservice runs smoothly on my local machine and on Compute Engines as most of my routes takes less than 150