Firebase Emulators Error: TIMEOUT: Port 8080 on localhost was not active within 60000ms

Peter Jausovec
2 min readApr 3, 2022
Photo by Cullan Smith on Unsplash

This timeout issue happens when you try to run Firebase emulators locally. Assuming you’ve run firebase init and installed the emulators as soon as you run firebase emulators:start you might get an output similar to this one:

emulators: Support for Java version <= 10 will be dropped soon in firebase-tools@11. Please upgrade to Java version 11 or above to continue using the emulators.
i emulators: Starting emulators: functions, firestore
⚠ functions: The following emulators are not running, calls to these services from the Functions emulator will affect production: auth, database, hosting, pubsub, storage
✔ functions: Using node@17 from host.
i firestore: Firestore Emulator logging to firestore-debug.log
i emulators: Shutting down emulators.
i functions: Stopping Functions Emulator
i firestore: Stopping Firestore Emulator
i hub: Stopping emulator hub
Error: TIMEOUT: Port 8080 on localhost was not active within 60000ms

If you wait long enough and are a bit more patient than I am, you’ll get the actual error — the timeout.

A bit of googling will probably take you to this issue: https://github.com/firebase/firebase-tools/issues/2379. The fix is also in one of the comments that says to add the "host": "127.0.0.1" entry…

--

--