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.

MacOS 7.12.1 - Port XXXX is not open, could not start functions emulator

See original GitHub issue

[REQUIRED] Environment info

firebase-tools: 7.12.1

Platform:macOS 10.15.2 Catalina

[REQUIRED] Test case

Run emulators:start --only functions on above environment

[REQUIRED] Steps to reproduce

Run emulators:start --only functions

[REQUIRED] Expected behavior

Expected the emulator to start on port 5001.

[REQUIRED] Actual behavior

Emulator does not start

i  emulators: Starting emulators: functions
i  Shutting down emulators.
⚠  Port 5001 is not open, could not start functions emulator.
i  To select a different port for the emulator, update your "firebase.json":
    {
      // ...
      "emulators": {
        "functions": {
          "port": "PORT"
        }
      }
    }
i  Shutting down emulators.

Error: Could not start functions emulator, port taken.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
samtsterncommented, Jan 23, 2020

@TomKaltz do things work better if you modify your firebase.json to set the emulators host to 0.0.0.0 like this:

{
  // .. other stuff ...
  "emulators": {
    "functions": {
      "host": "0.0.0.0",
      "port": 5001
     }
  }
}
0reactions
davidko604commented, Jul 20, 2020

Also encountered the same issue. In my terminal I first ran below command to see a list of processes running that that port.

sudo lsof -i :5001

I then ran below command to kill the process by PID #.

sudo kill -9 PID#

Will try the adjusting the host as above to potentially avoid this issue in the future.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I shut down the local firebase emulators?
One cross-platform solution is to just run: npx kill-port 4000,8080,8085 ... If you don't want to have to check the port every time,...
Read more >
KERMIT USER GUIDE
If Kermit's terminal emulation seems to work correctly, but a file transfer will not start at all, then something in the communication path...
Read more >
Hercules V3.10.0 - User Reference Guide - HEUR031000-01
Hercules Emulator V3.10 – User Reference Guide. Page 19. 1.10 Acknowledgements. The Hercules manuals would not have been possible without the assistance of ......
Read more >
J-Link / J-Trace User Guide
If you find an error in the manual or a problem in the software, please report it to us and we will try...
Read more >
pve-admin-guide.pdf
Proxmox VE is a platform to run virtual machines and containers. ... It does not work with the Proxmox VE installation image. Important....
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