Skip to content

Connection Errored out when running llm-rag-langchain on Gradio #2868

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

Open
winniechj opened this issue Apr 9, 2025 · 8 comments
Open

Connection Errored out when running llm-rag-langchain on Gradio #2868

winniechj opened this issue Apr 9, 2025 · 8 comments

Comments

@winniechj
Copy link

winniechj commented Apr 9, 2025

Hi,

I encountered Connection Errored out when running llm-rag-langchain on Gradio.
This error occurs on the first run, but it does not appear on subsequent runs.
However, there is no output each time.
Image

This is my env:

System information:
Python executable: /home/winnie/openvino_notebooks/openvino_env/bin/python
Pip version: 25.0.1
OpenVINO source: /home/winnie/openvino_notebooks/openvino_env/lib/python3.10/site-packages/openvino
OpenVINO IE version: 2025.0.0-17942-1f68be9f594-releases/2025/0
OpenVINO environment activated: OK
Jupyter kernel installed for openvino_env: OK
Jupyter kernel Python executable: /home/winnie/openvino_notebooks/openvino_env/bin/python
Jupyter kernel Python and OpenVINO environment Python match: OK
Python version: 3.10 OK
OpenVINO pip package installed: OK
OpenVINO import succeeds: OK
OpenVINO not installed globally: OK
No broken requirements: OK

Please help to solve this, thank you.

@eaidova
Copy link
Collaborator

eaidova commented Apr 9, 2025

@winniechj check that you have correct proxy settings, in some cases proxy may block requests for gradio demo. I recommend to add env variable
no_proxy=localhost,127.0.0.1

@winniechj
Copy link
Author

@eaidova I set the proxy but it doesn't work.

import os
os.environ['no_proxy'] = "localhost,127.0.0.1" 
Image

@openvino-dev-samples
Copy link
Collaborator

Is there any log on notebook side ?

@winniechj
Copy link
Author

@openvino-dev-samples
Yes, it shows: 2025/04/16 10:27:11 [W] [service.go:132] login to server failed: dial tcp 44.237.78.176:7000: i/o timeout. Is it related to proxy issue or gradio server?

@openvino-dev-samples
Copy link
Collaborator

@openvino-dev-samples Yes, it shows: 2025/04/16 10:27:11 [W] [service.go:132] login to server failed: dial tcp 44.237.78.176:7000: i/o timeout. Is it related to proxy issue or gradio server?

i thinks so, its a connection issue

@winniechj
Copy link
Author

@openvino-dev-samples How can I deal with this issue?

@brmarkus
Copy link

@eaidova I set the proxy but it doesn't work.

import os
os.environ['no_proxy'] = "localhost,127.0.0.1" 

Some tools check for ENV variables in capital letters... could you set NO_PROXY as well?

@winniechj
Copy link
Author

@brmarkus yes, I set the no_proxy

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

4 participants