-
Notifications
You must be signed in to change notification settings - Fork 951
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: TIMEOUT: Port 8080 on localhost was not active within 30000ms #2379
Comments
@dave-k when you say "unchanged project" do you mean this was working before and has since stopped? I haven't seen an error like this on macOS yet, could you try two things:
|
Oh also I'm gonna transfer this issue over to the Firebase CLI repo. |
@samtstern Unchanged i.e. no changes made to the tests.
Same Timeout error: [error] Error: TIMEOUT: Port 8080 on 0.0.0.0 was not active within 30000ms firebase.json
package.json
|
@dave-k thanks for trying hose things ... I am still pretty stumped on this issue. Could you try running the Firestore emulator JAR directly and see if it works for you:
The exact version of the |
|
Thank you for all of your information and patience here. You've been super helpful so far. So in the debug log I don't see
So the command it's trying to run is: java -Duser.language=en \
-jar /Users/dkennedy//.cache/firebase/emulators/cloud-firestore-emulator-v1.11.4.jar \
--host "0.0.0.0" --port 8080 \
--rules /Users/dkennedy/project-2/firebase/quickstart-nodejs/firestore-emulator/javascript-quickstart/firestore.rules I guess the last thing to try here is running that exact command, maybe the rules file is somehow changing the result? Again I apologize for basically blind debugging this, I just can't reproduce this myself. |
|
We have the same issue with |
any news on this? I am getting this issue as well when importing a large data set on start up |
@Ross-Rawlins that sounds like a different issue since nobody above has mentioned import! For the issue above we have not been able to reproduce it ourselves, and we really can't fix an issue we can't reproduce (although we acknowledge that it's a real issue) |
Same issue on my side running MacOS too. |
Same issue here when I run i emulators: Starting emulators: firestore Error: TIMEOUT: Port 8080 on localhost was not active within 30000ms |
So I was fighting with that thing for some time checking every possibility and the I did
and surprise surprise it started working 🤷 why bits me but maybe it will help someone |
I'm having this same problem in Docker Ubuntu environments trying to run CI tests. This morning, it just kept failing left and right for some reason:
|
Did you add FIREBASE_TOKEN as env variable as it's mentioned in documentation ? |
@dracomithril I don't think that's necessary to run tests. My current theory is that the computer that was running the build was constrained on resources, creating a slow startup time. We started seeing tests time out also. I reduced the number of parallel builds running on the server at one time, and haven't seen it since. |
one probably odd question why
and not
and regarding FIREBASE_TOKEN |
Because
The above command is fairly complicated, and instead of duplicating it in multiple places, I'd rather centralize it into one place.
This is unlikely to be the solution. It's likely the issue is still there, and it's just intermittent. I still haven't set that, and yet everything is working for me again because I simply stopped running 2 build tasks at the same time on the machine, and limited it to one. That ensures the emulator starts up faster. |
I've been having this same problem the last few days out of the blue. I'm running
This problem persists if I change the ports. |
@brennengarland did you changed node version?
If yes maybe try to reinstall all packages 🤔 |
Specifying a host in firebase.json seemed to work for me, but then my firestore-triggered cloud functions were not firing, with the error I downgraded to node 16, removed the host key, and now it works. |
Hello there, I'm having a similar issue on MacOS Monterey with Node v17. http.get(`http://localhost:${port}/emulator/v1/projects/${projectId}:ruleCoverage.html`, res => {
// ...
}) This seems to crash as well ! Here's what I got
Replacing Potentially linked to firebase/firebase-tools-ui#332 |
I tried numerous things mentioned above suffering from the issue described by OP. The only working solution for me was to downgrade to node 16 (from 17). I'm on Monterey 12.0.1 x86; firebase-tools 9.22.0 . brew install node@16
# Relink node 17 executable to node 16
ln -sf /usr/local/Cellar/node@16/16.13.0/bin/node /usr/local/bin/node |
As @stansotn mentioned, downgrade to 16 node work for me too. Catalina (10.15.7), tools - 9.22.0
|
Can confirm, working on monterey. Thanks for the commands. |
Worked for me, I also needed to change all my env variables to not use |
Downgrading to node 16 resolved the issue for me. |
Closing since downgrading to Node.js 16 seems to be a good workaround. Feel free to comment if you have more information or if this problem still persists when Node.js 18 becomes the new stable release. |
Confirmed that #2379 (comment) works. I'm on Windows 10 Pro machine with Node.js v17.2.0. |
I'm having the same timeout issue with Node 17. In case you are using Volta for managing your Node versions, you can use the
|
I found this issue after Googling the error:
#2379 (comment) sent me in the right direction. All I had to do was change
But my {
"emulators": {
"auth": {
"port": 9099
},
"ui": {
"enabled": true,
"port": 9098
}
}
} (I am only using Firebase and the emulator for authentication) |
Just FYI same behavior on Windows machine with latest firebase tool
Adding
[UPDATE] |
(internal bug reference: b/172852315) |
Hi everyone, there have been some changes recently to the IP resolution logic - if anyone is still hitting this issue please leave a comment. |
I faced similar error where it failed to initialise the ports and faced a timeout while checking for it to be active. This started happening after the latest firebase release. |
Hi VikashFluxon, please open a new ticket with the relevant repro case(s) and logs. |
Hi everyone! My Console Output: i emulators: Starting emulators: firestore Error: TIMEOUT: Port 8080 on 127.0.0.1 was not active within 60000ms My firebase-export-metadata.json: I believe the cause to be the size of the dataset (it's about 7GB). Thanks in advance! |
Is the problem reproducible with smaller sets of data? < 100MB type of size |
Can't test with <100mb, but with 750mb it's still reproducible. Also, is there a way to increase the timeout? Idc if I have to wait an hour as long as it works. I'm just using the emulator to look at backups and afaik there is no way to "shrink" them by filtering for only the collections I'm interested in. EDIT: Solution: |
Is there a step by step known documentation on how to configure firebase emulator to work with either the android/ios emulator or read devices, for me, NONE of the above has ever worked for me. The only thing which works is using the firebase emulators with web (Chrome or Edge) or connecting directly to Firebase live. Those works like charm. But connecting android emulator with firebase emulators or real device with firebase emulator has NEVER worked despite all those snip steps. Is there a known step by step procedure on this, this will be useful. The documentation on Firebase seems to miss a lot, and even the codelabs still do not point exactly what is to be done when, where and how. To me it seems it is all guesswork. |
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
andproduced the same Timeout error.
The text was updated successfully, but these errors were encountered: