firebase-tools: `firebase emulators:start` not working on WLS on Windows 10
[REQUIRED] Environment info
firebase-tools: 7.0.2
Platform: WSL on Windows 10
[REQUIRED] Test case
An empty project with the auto-generated Cloud Functions boilerplate is enough to reproduce it.
[REQUIRED] Steps to reproduce
Run firebase emulators:start
[REQUIRED] Expected behavior
I should be able to use the local environment.
[REQUIRED] Actual behavior
It starts the local server at port 5001, if I open it in Chrome I get a { "status": "alive" }
response, but after 30 seconds it shuts down by itself because of a “timeout”.
✔ functions: Emulator started at http://localhost:5001
i Shutting down emulators.
i Stopping functions emulator
Error: TIMEOUT: Port 5001 was not active within 30000ms
The project works fine when deployed to Google Cloud. I tried to run it with sudo
also.
If I visit the demo “hello world” endpoint I get an error saying the endpoint is not available.
I tried to run it with --debug
but no additional information is displayed during the shutdown/timeout
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 7
- Comments: 15 (7 by maintainers)
I was able to reproduce this bug at home on my personal machine (we don’t have Windows at work) so it’s definitely real! I didn’t have time to start debugging but I will try that next.
Ok version
7.5.0
should work well for all you Windows Linux Subsystem users out there!Can confirm the issue persists on 7.4.0 as well.
Emulator is unusable on WSL due to this issue.
Doesn’t work on actual Windows either! https://github.com/firebase/functions-samples/issues/572