Internal server error using apache2 and google-cloud-storage

I managed to get everything hooked up.However i’m getting an internal error ;/ within the server.The error is in result of using storage_client= storage.Client() in the function hello within the function test “` storage_client= storage.Client()“` does work and python was able to find my secret.json file #__init__.py code from flask import Flask from google.cloud import…

Is Google Cloud Storage fast enough for serving images to mobile apps?

I have been using Google Cloud Storage to save photos that users upload from a mobile app (built with flutter and firebase), recently I had the need to resize/transform images and I wanted to explore if it’s possible to do it directly from google cloud storage! I found this project https://github.com/albertcht/python-gcs-image that you have to…

Google Cloud SQL and sql_mode flag

I am trying to run the following command gcloud beta sql instances create my_replica \ –master-instance-name=db-master01 \ –master-username=replication_user \ –master-password=’replication_password’ \ –master-dump-file-path=gs://path/to/dump.sql.gz \ –database-flags default_time_zone=’-05:00′ \ sql_mode=’STRICT_TRANS_TABLES, NO_ZERO_IN_DATE, NO_ZERO_DATE, ERROR_FOR_DIVISION_BY_ZERO, NO_AUTO_CREATE_USER, NO_ENGINE_SUBSTITUTION’ \ –region=us-central \ –tier=db-g1-small But I get the following error: ERROR: (gcloud.beta.sql.instances.create) unrecognized arguments: sql_mode=STRICT_TRANS_TABLES, NO_ZERO_IN_DATE, NO_ZERO_DATE, ERROR_FOR_DIVISION_BY_ZERO, NO_AUTO_CREATE_USER, NO_ENGINE_SUBSTITUTION To search the…

Memory Error pulling blob from google Storage

I am using Docker Registry API (https://cloud.google.com/container-registry/docs/reference/docker-api) to pull blobs from the container registry of google. The blob size is around 900Mbs. While pulling this blob I get a memory error in Python as this : File “C:\Users\user1\AppData\Local\Programs\Python\Python36-32\lib\site-packages\requests\sessions.py”, line 686, in send r.content File “C:\Users\user1\AppData\Local\Programs\Python\Python36-32\lib\site-packages\requests\models.py”, line 828, in content self._content = b”.join(self.iter_content(CONTENT_CHUNK_SIZE)) or b” MemoryError…