-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
sd_api_pictures can't connect to stable diffusion on wsl #573
Comments
Try the script.py from here: Disable Manage VRAM, paste the address into the box and press enter. What does it report? |
Prompting the image generator via the API on 127.0.0.1:8000… During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): |
As far as I can tell, that's a general problem with WSL — sometimes it's refusing to form connection between native and WSL sockets. Let's try this workaround then: Use it instead of 127.0.0.1, force the packets to go via your router |
it works |
Yup, then it's a WSL sockets <> native sockets problem. I can't really reliably detect and mitigate that so for now the best solution would be simply to write a warning about this issue in the planned README.MD with this workaround as a band-aid |
Describe the bug
Running the sd api natively on windows 10 works
but when doing it via wsl it's not able to connect to the stable diffusion address(sd is being run on windows 10 natively)
Is there an existing issue for this?
Reproduction
Run stable diffusion on windows 10
Run the webui in wsl
Screenshot
No response
Logs
System Info
The text was updated successfully, but these errors were encountered: