question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deploy fails with v8.16+: Failed to get instance details for instance: <project-id>

See original GitHub issue

[REQUIRED] Environment info

firebase-tools: 8.16.0, 8.16.1

Platform: Ubuntu 18.04.5 LTS running in a Github Workflow

[REQUIRED] Test case

Since upgrading to firebase-tools 8.16+ our deployments are failing when running the following commands:

firebase projects:list
firebase use ${GCP_PROJECT}
firebase deploy --non-interactive

The first two commands (projects:list and use <project-id>) complete successfully, but the deploy --non-interactive command fails with the following error:

Error: Failed to get instance details for instance: <project-id>. See firebase-debug.log for more details.

The firebase-debug.log file referenced by the error message does not exist, so we have been unable to get additional information about the cause of the failure.

The only workaround we’ve found so far is to pin the version of firebase-tools to @8.15.1 rather than installing @8.

[REQUIRED] Steps to reproduce

Run firebase deploy --non-interactive

[REQUIRED] Expected behavior

firebase deploy --non-interactive deploys our project successfully

[REQUIRED] Actual behavior

=== Deploying to '<project-id>'...


i  deploying database, hosting
i  database: checking rules syntax...


Error: Failed to get instance details for instance: <project-id>. See firebase-debug.log for more details.
Error: Process completed with exit code 1.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
bkendallcommented, Nov 17, 2020

Alright, magic “do this thing” test. Can you try enabling the Realtime Database API for your project (be sure to select the right one in the top dropdown) and retrying? If that works, that’ll give us exactly the information we need.

0reactions
bkendallcommented, Dec 8, 2020

@plvbroker could you open a new issue with all the appropriate information? That’ll be the best way to figure it out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

firebase deploy > Failed to get instance details for instance
Hi Sébastien,. Have you gone into the project and set up a realtime database instance? That seems to be the failing step. You...
Read more >
firebase instance id not found | The Search Engine You Control
Go to firebase Console. Click on Project Settings; Click on Service Accounts; Click on the other service accounts; This will open GCP Console....
Read more >
Troubleshoot failed CodeDeploy deployments on EC2 instances
The CodeDeploy agent isn't installed or isn't running on the instance. The required instance profile is missing. The instance profile doesn't have correct ......
Read more >
Release Notes | Firebase - Google
This page provides a changelog that lists new SDK releases and describes updates to the Firebase console and Firebase services.
Read more >
firebase-tools - npm
The Firebase Command Line Interface (CLI) Tools can be used to test, manage, and deploy your Firebase project from the command line.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found