Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

weird behaviour from Cloud Functions 2nd generation running on Cloud Run

_e
Bronze 1
Bronze 1

Hello, we're using cloud functions 2nd generation running on cloud run. Recently we're getting errors and bunch of unexpected behaviours when we deploy our node js 18 javascript functions to gcp. I've search web for possible solutions like editing gcp iam roles including google-provided role grants. Also, we've check all of quota issues and if all the necessary apis are enabled. Last week in a different gcp project, all features were working well, even with more than 50 functions deployed on a single region. Digging into the issue for almost ten hours, we could manage to address the issue quite properly as written below:

step to reproduce:

 

[ STEP 1 ] create a new clean gcp project => enable billing and required apis and check if all cloud functions || cloud run quotas are available  => generate source test functions directory with required packages => deploy to gcp in cloud functions 2nd env which will automatically generate cloud run service => should be successful

[ STEP 2 ] create 2 more new test functions with same conditions in the same region: seems like it doesn't matter which region is being used for deployment => should be successful until now

[ STEP 3 ] create one more new test functions with same conditions in the same region => IT FAILS => "only three functions can be deployed in a single region(ex. asia-northeast3, seoul)" => try to update a function with alphabet changes => IT ALSO FAILS => generate new three functions in multiple different regions => should be all successful => try to update any one of created functions regardless on the region => UPDATE FAILS

 

ie. we've observed all of the following list with newly generated gcp project:

- works: create 1, 2 or 3 functions in a single region

- works: create 1, 2 or 3 functions per region

- FAILS: update a function in any region

- FAILS: create more than 3 functions in a single region

(conditions: no quota change ever since the corresponding gcp project was generated && tried dozens of times && same results with following methods: gcloud cli, cloud functions console, cloud run console, firebase cli && memoryAllocated=256 MiB && CPU=1 && timeout=60s && minInstances=0 && maxInstances=10 && concurrency=80)

 

Anyone please let me know how to solve this issue. Thank you in advance [:

0 1 332
1 REPLY 1

Hi @_e ,

Welcome to Google Cloud Community!

We are currently experiencing outages on several Google Cloud products and services. You may refer to this link for the status of the outages. Please be advised that outages from a certain region can directly or indirectly affect the performance of said products and services.

I would suggest redeploying your functions at a later time. Or you can create a bug to monitor the issue here.

We apologize for the inconvenience.

Thanks.