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.

Error: TIMEOUT: Port 8080 on localhost was not active within 30000ms

See original GitHub issue

firebase-debug.log Cloud Firestore emulator quickstart I am getting the Timeout error running the emulators:exec command on an unchanged project.

I tried other ports 8081, 8082 and

$ sudo firebase emulators:exec --only firestore 'npm test'
$ firebase emulators:exec 'npm test'
$ firebase emulators:start

produced the same Timeout error.


./firebase/quickstart-nodejs/firestore-emulator/javascript-quickstart

macOS v 10.15.6

$ firebase --version
8.4.2
$ node --version
v14.4.0
$ 

$ firebase emulators:exec --only firestore 'npm test'
i  emulators: Starting emulators: firestore
i  firestore: Firestore Emulator logging to firestore-debug.log
i  emulators: Shutting down emulators.

Error: TIMEOUT: Port 8080 on localhost was not active within 30000ms

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:13
  • Comments:63 (14 by maintainers)

github_iconTop GitHub Comments

206reactions
evelantcommented, Oct 26, 2021

I got the emulators running again by specifying host as “127.0.0.1” instead of the default “localhost”. I have no idea what changed that caused it to stop working on localhost. All I did was modify firebase.json like so to add host

 "emulators": {
        "auth": {
            "port": 9099,
            "host": "127.0.0.1"
        },
        "functions": {
            "port": 5001,
            "host": "127.0.0.1"
        },
        "firestore": {
            "port": 8080,
            "host": "127.0.0.1"
        },
        "hosting": {
            "port": 5001
        },
        "ui": {
            "enabled": true
        },
        "pubsub": {
            "port": 8085,
            "host": "127.0.0.1"
        },
        "storage": {
            "port": 9199,
            "host": "127.0.0.1"
        }
    }
26reactions
clouddevilcommented, Nov 7, 2021

As @stansotn mentioned, downgrade to 16 node work for me too. Catalina (10.15.7), tools - 9.22.0

brew unlink node
brew install node@16
brew link --overwrite node@16
Read more comments on GitHub >

github_iconTop Results From Across the Web

Firebase cloud functions emulator times out after 30000 ms
... http://localhost:5001 i Shutting down emulators. i Stopping functions emulator Error: TIMEOUT: Port 5001 was not active within 30000ms.
Read more >
Port 8080 is not open on localhost, could not start Firestore ...
This error is because of the failed quitting from firebase emulator. You already have the process of previous firebase emulator.
Read more >
Firebase emulator (Firestore) times out on large dataset - Reddit
This causes a timeout error as follows: Error: TIMEOUT: Port 4000 was not active within 30000ms . Is there a way to increase...
Read more >
Firebase Emulator で 8080 ポートにアクセスできない - Zenn
Error : TIMEOUT: Port 8080 on localhost was not active within 30000ms ... emulator quickstart I am getting the Timeout error running the...
Read more >
JDBC_PING can not join Keycloak (AWS) instances - JBoss.org
GMS", but I get a timeout error, after which it turns to standalone mode. ... but they actively talk to the DB, and...
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