static-web-apps-cli icon indicating copy to clipboard operation
static-web-apps-cli copied to clipboard

swa cli fails in WSL2 with - X11 host DESKTOP-5VOB2BG:6000 is not reachable

Open khowling opened this issue 3 years ago • 1 comments

Version: 1.0.2

running swa deploy in WSL2 results in

✖ X11 host DESKTOP-5VOB2BG:6000 is not reachable.
✖ An X11 server is required when keychain is enabled. You can disable keychain using --no-use-keychain or try a different login method.

Expected behavior This is resolved with using the --no-use-keychain, but its just additional friction for developers new to the service that feels very unnecessary!

Screenshots image

Desktop (please complete the following information):

  • OS: Windows11 WSL2 (Ubuntu 20.04)

khowling avatar Aug 10 '22 16:08 khowling

Hey @khowling can you check if the issue you're facing is same as https://github.com/Azure/static-web-apps-cli/issues/503. If you're using --no-use-keychain then you shouldn't see any problems. Otherwise can you try deploy using the following methods

  1. Disable Keychain access using --no-use-keychain. Doing so won't store and remember your credentials anymore, and you will have to interactively log in again each time you run swa login
  2. Manually provide the Deployment Token for your current project (see SWA CLI docs). You will also need to provide --app-name and --resource-group-name

sgollapudi77 avatar Sep 14 '22 18:09 sgollapudi77