genai-stack icon indicating copy to clipboard operation
genai-stack copied to clipboard

Encountered a ConnectionErrorr: Max retries exceeded

Open pragnakalpdev39 opened this issue 2 years ago • 5 comments

ConnectionError: HTTPConnectionPool(host='llm', port=11434): Max retries exceeded with url: /api/generate/ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8f44052160>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

pragnakalpdev39 avatar Nov 20 '23 08:11 pragnakalpdev39

Is the service llm running ? Or are you using the llm-gpu service ?

matthieuml avatar Nov 21 '23 08:11 matthieuml

In my case, it was just network not fast enough, just docker-compose up again and again until it finish pulling

jli113 avatar Nov 28 '23 01:11 jli113

Having same issue. I am running llm-gpu service.

mitesh741 avatar Apr 12 '24 09:04 mitesh741

if you run the service from docker, try to use the api url to http://host.docker.internal:11434

i fix this error by changing this.

kiron111 avatar May 12 '24 07:05 kiron111

if you run the service from docker, try to use the api url to http://host.docker.internal:11434

如果您从 docker 运行该服务,请尝试使用 api url http://host.docker.internal:11434

i fix this error by changing this.↳

it works,thankyou!

FableFatale avatar Jun 19 '24 14:06 FableFatale