Skip to content
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

Spandx does not work on Windows 10 WSL2 - Debian install #280

Closed
kelsS opened this issue Sep 16, 2022 · 4 comments
Closed

Spandx does not work on Windows 10 WSL2 - Debian install #280

kelsS opened this issue Sep 16, 2022 · 4 comments

Comments

@kelsS
Copy link

kelsS commented Sep 16, 2022

Steps to reproduce

  1. run WSL2 - Debian 11.4 on Windows 10
  2. Clone account team repo
  3. Run npm install
  4. Run npm start
  5. Navigate to the following url: https://qa.foo.redhat.com:1337/account-team-app
  6. You will see a "ERR_CONNECTION_CLOSED" screen

spandx-error

Local machine information

Brave browser - [Version 1.43.93 Chromium: 105.0.5195.127 (Official Build) (64-bit](https://brave.com/latest/)
Chrome browser - Version 105.0.5195.127 (Official Build) (64-bit)

Processor	11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz   2.80 GHz
Installed RAM	64.0 GB (63.8 GB usable)
System type	64-bit operating system, x64-based processor

Edition	Windows 10 Pro
Version	21H2
OS build	19044.1889
Experience	Windows Feature Experience Pack 120.2212.4180.0
@kelsS
Copy link
Author

kelsS commented Sep 16, 2022

@mwcz This is a HUGE blocker for me. 😕 I cannot run any of the spandx apps locally to work on them. Any help is greatly appreciated!

@mwcz
Copy link
Contributor

mwcz commented Sep 16, 2022

I have to confess to knowing nothing about WSL, so I'll ping you to set up a meeting and try to figure out how to debug this.

@mwcz
Copy link
Contributor

mwcz commented Sep 19, 2022

The cause turned out to be microsoft/WSL#5969, adding ::1 mappings to the hosts file fixed the issue. I'll update the spandx init cp addhosts command to add ipv6 localhost IPs as well.

@mwcz mwcz closed this as completed Sep 19, 2022
@mwcz
Copy link
Contributor

mwcz commented Sep 19, 2022

#281 added ipv6 support to the spandx init cp addhosts command.

The easiest way to run it is: npx spandx init cp addhosts

(also, it removed the api.* hosts which aren't used anymore)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants