admin 管理员组文章数量: 1184232
三大报错
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/p/23168996538
systemctl stop ollama
后启动
OLLAMA_HOST=0.0.0.0 nohup ollama serve > ollama.log 2>&1 &
又是浪费5个小时的狗血经历
本文标签: 连接不上 ollama Dify error Validation
版权声明:本文标题:dify 连接不上ollama An error occurred during credentials validation: 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.roclinux.cn/b/1766566064a3470681.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论