Skip to content

Error predeploy functions #9291

Closed
Closed

Description

@alphacets

[REQUIRED] Environment info

14.18.0

firebase-tools:

linux fedora

Platform:

[REQUIRED] Test case

deploy firebase functions using firebase CLI

[REQUIRED] Steps to reproduce

firebase deploy --only functions

[REQUIRED] Expected behavior

should deploy

[REQUIRED] Actual behavior

(I replaced personal info with dots)

[2025-10-09T09:04:05.190Z] Object "" in "firebase.json" has unknown property: {"additionalProperty":"flutter"}
[2025-10-09T09:04:05.194Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[2025-10-09T09:04:05.194Z] > authorizing via signed-in user (...........)
[2025-10-09T09:04:05.194Z] [iam] checking project ....... for permissions ["cloudfunctions.functions.create","cloudfunctions.functions.delete","cloudfunctions.functions.get","cloudfunctions.functions.list","cloudfunctions.functions.update","cloudfunctions.operations.get","firebase.projects.get"]
[2025-10-09T09:04:05.195Z] Checked if tokens are valid: true, expires at: 1760003653756
[2025-10-09T09:04:05.195Z] Checked if tokens are valid: true, expires at: 1760003653756
[2025-10-09T09:04:05.196Z] >>> [apiv2][query] POST https://cloudresourcemanager.googleapis.com/v1/projects/.......:testIamPermissions [none]
[2025-10-09T09:04:05.196Z] >>> [apiv2][(partial)header] POST https://cloudresourcemanager.googleapis.com/v1/projects/.......:testIamPermissions x-goog-quota-user=projects/.......
[2025-10-09T09:04:05.196Z] >>> [apiv2][body] POST https://cloudresourcemanager.googleapis.com/v1/projects/.......:testIamPermissions {"permissions":["cloudfunctions.functions.create","cloudfunctions.functions.delete","cloudfunctions.functions.get","cloudfunctions.functions.list","cloudfunctions.functions.update","cloudfunctions.operations.get","firebase.projects.get"]}
[2025-10-09T09:04:05.874Z] <<< [apiv2][status] POST https://cloudresourcemanager.googleapis.com/v1/projects/.......:testIamPermissions 200
[2025-10-09T09:04:05.874Z] <<< [apiv2][body] POST https://cloudresourcemanager.googleapis.com/v1/projects/.......:testIamPermissions {"permissions":["cloudfunctions.functions.create","cloudfunctions.functions.delete","cloudfunctions.functions.get","cloudfunctions.functions.list","cloudfunctions.functions.update","cloudfunctions.operations.get","firebase.projects.get"]}
[2025-10-09T09:04:05.875Z] Checked if tokens are valid: true, expires at: 1760003653756
[2025-10-09T09:04:05.875Z] Checked if tokens are valid: true, expires at: 1760003653756
[2025-10-09T09:04:05.875Z] >>> [apiv2][query] POST https://iam.googleapis.com/v1/projects/......./serviceAccounts/[email protected]:testIamPermissions [none]
[2025-10-09T09:04:05.875Z] >>> [apiv2][body] POST https://iam.googleapis.com/v1/projects/......./serviceAccounts/[email protected]:testIamPermissions {"permissions":["iam.serviceAccounts.actAs"]}
[2025-10-09T09:04:06.662Z] <<< [apiv2][status] POST https://iam.googleapis.com/v1/projects/......./serviceAccounts/[email protected]:testIamPermissions 404
[2025-10-09T09:04:06.663Z] <<< [apiv2][body] POST https://iam.googleapis.com/v1/projects/......./serviceAccounts/[email protected]:testIamPermissions {"error":{"code":404,"message":"Unknown service account","status":"NOT_FOUND"}}
[2025-10-09T09:04:06.663Z] [functions] service account IAM check errored, deploy may fail: Request to https://iam.googleapis.com/v1/projects/......./serviceAccounts/[email protected]:testIamPermissions had HTTP Error: 404, Unknown service account {"name":"FirebaseError","children":[],"context":{"body":{"error":{"code":404,"message":"Unknown service account","status":"NOT_FOUND"}},"response":{"statusCode":404}},"exit":1,"message":"Request to https://iam.googleapis.com/v1/projects/......./serviceAccounts/[email protected]:testIamPermissions had HTTP Error: 404, Unknown service account","status":404}

=== Deploying to '.......'...

i deploying functions
Running command: npm --prefix "$RESOURCE_DIR" run lint

lint
eslint .

/bin/sh: -- : option non valable
Utilisation : /bin/sh [option longue GNU] [option] ...
/bin/sh [option longue GNU] [option] fichier-script ...
Options longues GNU :
--debug
--debugger
--dump-po-strings
--dump-strings
--help
--init-file
--login
--noediting
--noprofile
--norc
--posix
--pretty-print
--rcfile
--rpm-requires
--restricted
--verbose
--version
Options du shell :
-ilrsD ou -c commande ou -O shopt_option (invocation seulement)
-abefhkmnptuvxBCEHPT ou -o option

Error: functions predeploy error: Command terminated with non-zero exit code 2

Activity

  1. alphacets commented on Oct 11, 2025

    @alphacets
    Author

    Works now :
    deleted firebase.json
    executed firebase init,
    executed npm run lint -- --fix in /functions folder
    executed firebase deploy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions