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:
- Created 3 years ago
- Reactions:5
- Comments:12 (7 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
@plvbroker could you open a new issue with all the appropriate information? That’ll be the best way to figure it out.