Skip to content

BUG: Unhandled error FirebaseFunctionsError: The principal (user or service account) lacks IAM permission "cloudtasks.tasks.create" for the resource #227

@dpietrzyk

Description

@dpietrzyk

Hi,
I found I think a bug related to "Extension instance ID" length

Right after the installation of the extension, when it succeeds with "Full Index existing documents?" enabled, "Processing" is never-ending.

In "Error Reporting" in GCP I can see

Unhandled error FirebaseFunctionsError: The principal (user or service account) lacks IAM permission "cloudtasks.tasks.create" for the resource "[...]/ext-firestore-algolia-search-ingredients-executeFullIndexOperation" (or the resource may not exist).

at process.processTicksAndRejections ( node:internal/process/task_queues:95 )

Seen in CloudFunction "ext-firestore-algolia-search-ingredients-qmnu-executeFullIndexO"

And when I am checking the "Cloud Tasks" Queues I see that the name of the queue was truncated to "ext-firestore-algolia-search-ingredients-qmnu-executeFullIndexO"

For the "Extension instance ID" I used: firestore-algolia-search-ingredients-qmnu

"Solution"
When I just uninstalled the extension, installed it one more time but with a shorter "Extension instance ID" everything works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions