Emulators start and suddenly shutting down
See original GitHub issue[REQUIRED] Environment info
firebase-tools: 9.16.0
Platform: macOS 11.4
[REQUIRED] Test case
I’ve 2 mac which 10.15.7
working fine but 11.4
refuse to start emulator.
[REQUIRED] Steps to reproduce
firebase emulators:start
[REQUIRED] Expected behavior
emulator start
[REQUIRED] Actual behavior
i emulators: Starting emulators: functions, firestore
i emulators: Shutting down emulators.
i hub: Stopping emulator hub
:warning: functions: Port 5001 is not open on localhost, could not start Functions Emulator.
:warning: functions: To select a different host/port, specify that host/port in a firebase.json config file:
{
// ...
"emulators": {
"functions": {
"host": "HOST",
"port": "PORT"
}
}
}
i emulators: Shutting down emulators.
Error: Could not start Functions Emulator, port taken.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top Results From Across the Web
emulators shutting down immediately on Github CI if hosting ...
I've noticed that if I disable the hosting emulator (with --only), then the other emulators start fine. yarn run v1.22.19 $ concurrently --names ......
Read more >Android Emulator Shutting down in few seconds after launching
Solution.1 By setting the Graphics option on the Android Virtual Device to Software instead of Automatic or Hardware.
Read more >Firebase Emulators Not Properly Shutting Down - Medium
Just when the dread of spinning up a local server with a database started creeping up my spine, I found out about Firebase...
Read more >Troubleshoot known issues with Android Emulator
To avoid crashes and hangs due to lack of free disk space, the emulator checks for sufficient free disk space on startup and...
Read more >[Solved] My android emulator (AVD) shut down automatically
Go to Menu->Tools->Android and uncheck the option Enable ADB Integration Run the application. Now the emulator will be launched, but app will ...
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 FreeTop 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
Top GitHub Comments
Just experienced this on a new Mac and it would definitely help if this error (“Unable to locate a Java Runtime.”) was printed to the console instead. Additionally, I don’t see any mention of Java in the emulator docs.
I think so at first, so I try
lsof -ti:5001
with no result. To make sure, Ikill
all related port I can think of. And even reboot and try again with no luck. Retryfirebase init
didn’t work either.Anyway when I try change function port to
9991
. I gotWhich is fine because I’ve
firestore-debug.log
to investigate now and it said.Cool, This is new mac which I didn’t install java runtime yet so I install it and try again. And now it’s working!
But, I’m still curious about
5001
port which no one using it so I switch back to5001
and try again… didn’t work! I’ve to stick with other port number then.TLDR
firestore-debug.log
not create and emu shutting down when nojava
installed.5001
didn’t work for some reason even no one using it.I’ll leave issue open and let the team desire to close it as is or fix or investigate it somehow.
Thanks