-
Notifications
You must be signed in to change notification settings - Fork 834
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
Firestore emulator on wsl2 does not work, results in ERR_CONNECTION_REFUSED #5706
Comments
From screenshots at firebase/firebase-tools-ui#332 (comment) it appears that it is connecting fine in bash in WSL but not from PowerShell on Windows #4150 dupe? |
There's no CLI repro steps in the OP, and I quit at what is no doubt a problem between keyboard and chair on
Possibly #4851 with a side of #5298 based on firebase/firebase-tools-ui#332. It can probably be lit up absent #4150. What does |
I've jumped though what appear to be plausible
Edited the resulting
Then start: The seems to take on 20180, WSL2, Ubuntu 20.04. From Edge and Powershell: Looking at the That tcp6 General off-the-record guidance for 19041 would be to eschew For accessing |
Hi,
Thank you. Thank you for additional advice related to using the localhost during development. Maybe the community should prepare a blog post or tutorial about working with the localhost on WSL2. There is a lot of information on GitHub about it but not in the same place 😟. |
For anyone else that ends up here, don't forget to update your
The solution @bartlomiejborzucki mentions didn't work for me until I added this. |
Can someone please summarize these instructions into one post for the workaround? I'm pretty sure I've tried most of the suggestions and nothing thus far is working and I'm guessing different suggestions may interfere with one another. Thus far I have
When I try to access the UI it simply says "Not Found"
Initial Error from the first Script here
|
WSL 2 is the only platform where firebase emulator is not working properly. I don't know where is the problem. I think that maybe it is related to WSL2 so I've added the following bug here. IMHO Firebase emulator is ok because I can use it on Linux Machine or MacOS machine without any problems.
Environment
windows 10 build 19041.388
WSL2 (ubuntu from Ms Store)
firebase-tools:8.6.0
Steps to reproduce
"emulators": {
"firestore": {
"host": "0.0.0.0", // or host: 'localhost' or host: '127.0.0.1'
"port": "8080"
},
}
more hints you can find here:
firebase/firebase-tools#2334
firebase/firebase-tools-ui#332
Expected behavior
We should be able to connect to firestore backend emulator hosted on WLS2
Actual behavior
Connection is refused.
Here I've added information about connection problem firebase/firebase-tools-ui#332 (comment)
In each case, I've changed firestore IP address (file firebase.json)
The text was updated successfully, but these errors were encountered: