-
Notifications
You must be signed in to change notification settings - Fork 41
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
WSL Docker doesn't work #30
Comments
Inside of the docker, "docker exec -it blahname bash" I can get the openai call to work, so I don't know what this message implies. Any help would be great. |
I changed the title to WSL, when I realized it works on the Windows host. |
Somehow it can't connect to the websocket at /api/llm/..., not clear why. Is the "ALLOWED_HOSTS" and the port you expose the same (e.g. both 3030?). How exactly do you run it in WSL? Maybe I can reproduce the error. And could you provide the full command you use to run it (without your secrets ;) ) and the full console output? |
inside of WSL, I install docker, then run docker run -i -t -p 3030:80 -e OPENAI_API_KEY="DONTHACKME" -e ALLOWED_HOSTS="localhost:3030" -v /home/alan/ipilot:/mnt/data silvanmelchior/incognito-pilot:latest-slim Another thing I tried was ALLOWED_HOST=0.0.0.0.. instead of localhost, it didn't seem to make a difference. I also tried --network=host. All of these options probably did nothing toward solving the root cause. I think there's an option in the Windows host to integrate with WSL2 or something like that, which might prevent this error. Otherwise I'm not sure what network localhost is exposed to if WSL network is isolated. I may try it later. |
In the 2.1.0 release, I added some more debug information on why a websocket connection might not get accepted. Can you try again and show the console output? |
However, seems as if the issue is much more general: microsoft/WSL#9549 |
Any resolution on this? |
Unfortunately no time right now to debug this. If anyone else wants to try, comparing the network calls between non-WSL and WSL setup using browser debugging tools would for sure be a good starting point. |
this is the error I get
ERROR: ASGI callable returned without sending handshake.
INFO: connection open
INFO: connection closed
Any idea? I'm running from a PC that seems to be able to use OpenAI's API.
The text was updated successfully, but these errors were encountered: