I have deployed a flask app on GCP app engine that I'm using for uploading files to GCP bucket storage and then download the file from the storage when required. However, I'm encountering the error OSError: [Errno 30] Read-only file system: when I try to download the file from cloud storage. I can properly upload the file from the app which I've deployed on app engine and I verified the file was uploaded, but when I try to download from the website I get error. Any idea would be appreciated?
Code for Downloading the File from Bucket
storage_client = storage.Client()
bucket = storage_client.bucket(bucket_name)
blob = bucket.blob(source_blob_name)
blob.download_to_filename(destination_file_name)
PS: I'm using google-cloud-storage==1.33.0
f = open("/some/path/to/filename", "w")
and thenf.write(content)
. - John Gordon