Skip to content

Work around Java emulators + WSL connectivity issues. - #2780

Merged
yuchenshi merged 1 commit into
masterfrom
ys/wsl-java-workaround
Nov 5, 2020
Merged

Work around Java emulators + WSL connectivity issues.#2780
yuchenshi merged 1 commit into
masterfrom
ys/wsl-java-workaround

Conversation

@yuchenshi

@yuchenshi yuchenshi commented Nov 4, 2020

Copy link
Copy Markdown
Member

Description

Fixes firebase/firebase-tools-ui#332

This affects Firebase CLI running on WSL only. It has an undesirable side effect of breaking IPv6 use cases, but this is arguably better than not being able to use it at all from the host. I don't think we have a way to serve both IPv4 and IPv6 from host until microsoft/WSL#4851 is fixed. See microsoft/WSL#4851 (comment) for the root cause of the issue.

Scenarios Tested

Manually tested by crwilcox@ on WSL2. Verified that Firestore Viewer in host can successfully list and edit data in Firestore emulator in subsystem.

Sample Commands

  • firebase emulators:start in WSL2.
  • curl http://127.0.0.1:8080/ from host to verify (it fails with connection refused without this patch).

@google-cla google-cla Bot added the cla: yes Manual indication that this has passed CLA. label Nov 4, 2020
@yuchenshi
yuchenshi requested a review from samtstern November 5, 2020 04:12
@yuchenshi
yuchenshi marked this pull request as ready for review November 5, 2020 04:12
@yuchenshi
yuchenshi requested a review from abeisgoat November 5, 2020 04:13
@samtstern

Copy link
Copy Markdown
Contributor

@yuchenshi wow I'm so glad this is (mostly) solved now!

@yuchenshi
yuchenshi merged commit bc882e2 into master Nov 5, 2020
@yuchenshi
yuchenshi deleted the ys/wsl-java-workaround branch November 5, 2020 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Manual indication that this has passed CLA.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

firestore emulator on wsl2 does not work, results in ERR_CONNECTION_REFUSED

2 participants