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.

database: Port 9000 is not open on localhost, could not start Database Emulator.

See original GitHub issue

After upgrading right now to firebase-tools 8.7.0 I get the error above when running firebase emulators:start --inspect-functions.

This is on Windows 10.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
johnberang12commented, Aug 20, 2022

just type npx kill-port 9000 in the terminal then start the emulator again and it works

0reactions
reizkiancommented, Dec 10, 2021

For me, the command $firebase emulators:start would show Port 9000 is not open on 127.0.0.1, could not start Database Emulator because I have forced the Emulator Suite to exit before waiting for subprocess to finish.

The terminal show the processes that may still be running on your machine

Emulator Host : Port PID
Database Emulator 127.0.0.1:9000 373

so executing $kill 373 would stop the process, then run the $firebase emulators:start again

PS: I am using WSL2 Ubuntu 20.04.3 LTS

Read more comments on GitHub >

github_iconTop Results From Across the Web

Firebase serve error: Port 5000 is not open. Could not start ...
I'm trying to serve firebase functions locally, but when I run firebase serve or firebase emulators ...
Read more >
Port 8080 is not open on localhost, could not start Firestore ...
This error is because of the failed quitting from firebase emulator. You already have the process of previous firebase emulator.
Read more >
Install, configure and integrate Local Emulator Suite - Firebase
This command starts a configuration wizard that lets you select emulators of interest, download the corresponding emulator binary files, and set emulator ports...
Read more >
Emulating Databases Locally
The emulators behave just like the real Firebase services but are run on your own ... Port 9000 is not open on localhost,...
Read more >
How to configure Firebase emulators with Next.js?
Before you launch the emulators, you'll have to configure (and download) ... Database │ localhost:9000 │ http://localhost:4000/database ...
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