firebase-tools: Grouped functions deployment fails with errorType: OK

[REQUIRED] Environment info

firebase-tools: 11.10.0

Platform: macOS

[REQUIRED] Test case

N/A, see next section.

[REQUIRED] Steps to reproduce

  1. Create a set of two or more grouped functions, as per Firebase documentation.
  2. Issue firebase deploy --only functions:myNewAndShinyGroupedFunctions
  3. Grab a cup of coffee while you wait for the deployment to fail

Running this from a yarn workspace (monorepo), which is most likely the source for the warning in the error message.

[REQUIRED] Expected behavior

Deployment of grouped functions should work, as it did yesterday (problem noticed first time today, some 4 or so hours ago). The error message should explain what went wrong.

[REQUIRED] Actual behavior

When deploying any grouped functions, or occasionally when deploying a single function within a group, I get the following error:

Build failed: {"metrics":{},"error":{"buildpackId":"","buildpackVersion":"","errorType":"OK","canonicalCode":"OK","errorId":"","errorMessage":""},"stats":[{"buildpackId":"google.nodejs.runtime","buildpackVersion":"1.0.0","totalDurationMs":1038,"userDurationMs":0},{"buildpackId":"google.utils.archive-source","buildpackVersion":"0.0.1","totalDurationMs":85,"userDurationMs":85},{"buildpackId":"google.nodejs.npm","buildpackVersion":"1.0.0","totalDurationMs":19965,"userDurationMs":19663},{"buildpackId":"google.nodejs.functions-framework","buildpackVersion":"0.9.4","totalDurationMs":5331,"userDurationMs":4999},{"buildpackId":"google.config.entrypoint","buildpackVersion":"0.9.0","totalDurationMs":0,"userDurationMs":0},{"buildpackId":"google.utils.label","buildpackVersion":"0.0.2","totalDurationMs":0,"userDurationMs":0}],"warnings":["*** Improve build performance by generating and committing package-lock.json."],"customImage":false}

This error is repeated for each failed function deployment in the group. Grouped function deployments seem to almost always fail as a whole (1-2 functions in the group may in some rare cases deploy successfully), single function deployments succeed about 50% of the time.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 16 (3 by maintainers)

Most upvoted comments

We are investigating the issue. Thanks for raising the issue. Will post an update in a few hours.

Same, we tried to downgrade to previous version but it has no effect

I’ll close the issue, as things are back to normal. Would be interested in knowing the root cause though.

@SimonKib @pehagg Thanks for sharing more info (sorry about the bad link!)

My hunch tells me that there may have been an issue with Google Cloud Functions. I’ll reach out to the team and see if I can uncover anything.

Thank you all for your patience and being proactive about issue. I appreciate it.

As an added bonus, the functions that eventually get deployed don’t have the the allUsers principal added to them anymore. Can’t really say if this is related or its own issue.