static-web-apps-cli
static-web-apps-cli copied to clipboard
swa cli fails in WSL2 with - X11 host DESKTOP-5VOB2BG:6000 is not reachable
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

Desktop (please complete the following information):
- OS: Windows11 WSL2 (Ubuntu 20.04)
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
- 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
- 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