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.

`firebase emulators:start` not working on WLS on Windows 10

See original GitHub issue

[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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:7
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

6reactions
samtsterncommented, Jul 23, 2019

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.

2reactions
samtsterncommented, Oct 8, 2019

Ok version 7.5.0 should work well for all you Windows Linux Subsystem users out there!

Read more comments on GitHub >

github_iconTop Results From Across the Web

firestore doesn't work in the emulator in cloud function tutorial
Firebase emulator doesn't work on WSL2 right now. I solved this by using git-bash console with a windows installation of nodejs/npm.
Read more >
Set up the Local Emulator Suite | Firebase Security Rules
Start the emulator using the following command. The emulator runs during all your tests. Cloud Firestore ...
Read more >
How to Install FireBase CLI on Windows - YouTube
Learn How to Install FireBase CLI on Windows. Install the Firebase CLI with Node on Windows desktop.
Read more >
Technical writings about computing infrastructure, HTTP ...
This began when I started using my Windows “gaming” desktop & WSL (Windows ... but poor Unicode support, tmux glitches & some emulation/escaping...
Read more >
Try to build a Firebase application development environment ...
Hot reload does not work when sharing TS build destination with Windows ... "emulators": "tsc-watch --onFirstSuccess \"firebase emulators:start --token ...
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