You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
V2 scheduled functions do not refuse to deploy if the scheduler region is incompatible #1293
A Firebase project created, with Cloud Functions enabled
Docker running
Follow the instructions in the above repo's README.md and PROBLEM-2.md, to reproduce.
[REQUIRED] Expected behavior
I am able to deploy a Firebase "v2" scheduled function, to any Firebase region.
[REQUIRED] Actual behavior
On europe-west2 (at least), deployment succeeds.
On europe-north1 and europe-west4, I get:
HTTP Error: 403, The principal (user or service account) lacks IAM permission "cloudscheduler.jobs.update" for the resource "projects/abc-3011/locations/europe-west4/jobs/firebase-schedule-abc-europe-west4" (or the resource may not exist).
Were you able to successfully deploy your functions?
changed the title [-][Beta] `Cannot read properties of undefined (reading 'service')`, deploying a scheduled function (v2)[/-][+][Beta] Unable to deploy CF v2 scheduled function to `europe-north1`, `europe-west4` regions[/+]on Oct 31, 2022
Good news is you've found a bug
Bad news is that it's more of a documentation bug
V2 scheduled functions use schedules in the region of the function, but Cloud Scheduler is not yet available in europe-west-4 (or 5) nor europe-north anything. This is not something we can change easily, so you can either:
Deploy a v2 function in a region taht is supported by both Run and Scheduler
Deploy a v1 function, which puts the scheduler and function in different regions.
changed the title [-][Beta] Unable to deploy CF v2 scheduled function to `europe-north1`, `europe-west4` regions[/-][+]V2 scheduled functions do not refuse to deploy if the scheduler region is incompatible[/+]on Oct 31, 2022
Hello @akauppi. With Cloud Functions now supporting most regions, either through tier 1 or tier 2 pricing, do you still have this issue? You original regions, 'europe-north1andeurope-west4` both support gen 2 functions on the tier 1 plan
Activity
google-oss-bot commentedon Oct 31, 2022
I found a few problems with this issue:
[-][Beta] `Cannot read properties of undefined (reading 'service')`, deploying a scheduled function (v2)[/-][+][Beta] Unable to deploy CF v2 scheduled function to `europe-north1`, `europe-west4` regions[/+]inlined commentedon Oct 31, 2022
Good news is you've found a bug
Bad news is that it's more of a documentation bug
V2 scheduled functions use schedules in the region of the function, but Cloud Scheduler is not yet available in
europe-west-4(or 5) noreurope-northanything. This is not something we can change easily, so you can either:[-][Beta] Unable to deploy CF v2 scheduled function to `europe-north1`, `europe-west4` regions[/-][+]V2 scheduled functions do not refuse to deploy if the scheduler region is incompatible[/+]akauppi commentedon Oct 31, 2022
I have no personal stake at this, and it's not slowing me down. Just something I wanted to report, as part of "v2" beta / public preview.
inlined commentedon Oct 31, 2022
Well, thank you for both battle-testing our product and for reporting the bugs you encounter.
KurtMar commentedon May 14, 2023
I just spent an hour trying to figure out why the service account does not have permissions, until I figured out that the region is not supported.
exaby73 commentedon Nov 10, 2023
Hello @akauppi. With Cloud Functions now supporting most regions, either through tier 1 or tier 2 pricing, do you still have this issue? You original regions, 'europe-north1
andeurope-west4` both support gen 2 functions on the tier 1 planakauppi commentedon Nov 11, 2023
@exaby73 I no longer use Firebase.