Pham Quynh Anh's Site
  • Home
  • Posts
  • 2025-02-08
  • 2022-04-03
  • 2021-10-06
Hero Image
Lesson of the week - 2025's 6th

This week I encountered a problem when migrating a cron job to Cloud Run Job. I had experiences in this kind of task so many times before so I expected every thing to go smoothly as it used to be, until the cron run the 1st time and returned a 255 exit code. The error message told that the process was lack of memory to run. It had a memory limit of 128M and I was wondering where was this limit because I set the memory limit on Cloud Run as much as 512Mi. After a short investigation, I realized that 128M was the memory limit of the php-fpm Docker image I built some months ago. Since I didn’t touch the memory limit, it is the default of the official php-fpm Docker image.

Saturday, February 8, 2025 Read
Hero Image
Make GCS bucket public

We need 3 configurations to make a bucket public to everyone. 1. Remove public access prevention A bucket cannot be accessed by public as the default. So we need to remove public access prevention. Go to the Bucket details > Permissions tab > Public access section Click Remove public access prevention and confirm 2. Add permission for allUsers (e.g. to view objects) Go to the Bucket details > Permissions tab > Permissions section Click Add and fill in the following information, then click Save New principals: allUsers or allAuthenticatedUsers Select a role: Storage Object Viewer 3. Change Access control to Fine-grained Go to the Bucket details > Configuration tab > Permissions Edit Access control field to Fine-grained References https://cloud.google.com/storage/docs/access-control/making-data-public#buckets

Sunday, April 3, 2022 Read
Hero Image
App Engine Flexible

Deploy Hello World app For setup, follow this guidance here: https://cloud.google.com/appengine/docs/flexible/go/quickstart If we don’t do these setup steps, an error exec: “gcc”: executable file not found in $PATH may occur when running gcloud app deploy My environment: $ cat /etc/system-release CentOS Linux release 7.9.2009 (Core) $ git version git version 1.8.3.1 $ go version go version go1.15.14 linux/amd64 Download go sample Hello World app and try running it locally. $ git clone github.com/GoogleCloudPlatform/golang-samples $ cd golang-samples/appengine_flexible/helloworld # Run it locally $ go run *.go There was an error: fatal: git fetch-pack: expected shallow list

Wednesday, October 6, 2021 Read
Navigation
Contact me:
  • pqa.dev@gmail.com
  • pham-anh

Toha Theme Logo Toha
© 2025 Copyright.
Powered by Hugo Logo