dify 连接不上ollama An error occurred during credentials validation:

三大报错

An error occurred during credentials validation: HTTPConnectionPool(host='host.docker.internal', port=11434): Max retries exceeded with url: /api/chat (Caused by NameResolutionError("<urllib3.connection.HTTPConnection object at 0x7f26fc3c00b0>: Failed to resolve 'host.docker.internal' ([Errno -2] Name or service not known)"))

An error occurred during credentials validation: HTTPConnectionPool(host='192.168.1.100', port=11434): Max retries exceeded with url: /api/chat (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f26fc23ea80>, 'Connection to 192.168.1.100 timed out. (connect timeout=10)'))

An error occurred during credentials validation: HTTPConnectionPool(host='172.17.0.1', port=11434): Max retries exceeded with url: /api/chat (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f26fcbce660>: Failed to establish a new connection: [Errno 111] Connection refused'))

真服了!!!

按照大家搜的,一般都能解决,

首先确保 自己的不是回环。

sudo netstat -tuln | grep 11434

输出为 tcp 什么 127.0.0.1 这个就不行

输出为tcp6 0 0 :::11434 :::* LISTEN

这个 就可以

先停止 参考https://zhuanlan.zhihu.com/p/23168996538

复制代码
systemctl stop ollama

后启动

OLLAMA_HOST=0.0.0.0 nohup ollama serve > ollama.log 2>&1 &

又是浪费5个小时的狗血经历

相关推荐
liliangcsdn5 天前
mac测试ollama llamaindex
数据仓库·人工智能·prompt·llama
茫茫人海一粒沙5 天前
使用 LLaMA 3 8B 微调一个 Reward Model:从入门到实践
llama
liliangcsdn7 天前
mac llama_index agent算术式子计算示例
人工智能·python·macos·llama
许愿与你永世安宁8 天前
RAG(检索增强生成)里的文档管理
数据库·人工智能·gpt·oracle·llama·rag
许愿与你永世安宁12 天前
基于Llama的RAG 3种模型配置方法
人工智能·python·自然语言处理·json·github·llama·faiss
至善迎风12 天前
本地部署 Kimi K2 全指南(llama.cpp、vLLM、Docker 三法)
docker·容器·llama·kimi
阿斯卡码12 天前
安装 llama-cpp-python 的CPU和GPU方法
开发语言·python·llama
学不会就看12 天前
llama-factory快速开始
llama
NullPointerExpection15 天前
LLM大语言模型不适合统计算数,可以让大模型根据数据自己建表、插入数据、编写查询sql统计
数据库·人工智能·sql·算法·llm·llama·工作流
MUTA️15 天前
Llama系列:Llama1, Llama2,Llama3内容概述
llama