当前位置: 首页 > news >正文

OpenWebUI连接不上Ollama模型,Ubuntu24.04

这里写自定义目录标题

  • 问题介绍
  • 解决方法

问题介绍

  • 操作系统 Ubuntu24.04
  • Ollama 使用默认安装方法(官网https://github.com/ollama/ollama) curl -fsSL https://ollama.com/install.sh | sh 安装在本机
  • OpenWebUI
    使用默认docker安装方法(官网教程安装https://docs.openwebui.com/) docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main 安装在docker

  • 使用 http://127.0.0.1:11434/ 访问Ollama显示Ollama is running,说明Ollama正常。

  • Ollama中安装了模型,并且可以命令行形式使用。

  • 使用http://localhost:8080/登录OpenWebUI后发现没有模型

解决方法

  1. 在OpenWebUI管理面板中,管理Ollama API连接 默认为http://host.docker.internal:11434/,这是windows中的方式,需要改为http://127.0.0.1:11434
  2. 在 访问 Ollama 时遇到问题? 点击这里获取帮助。点击导航到https://github.com/open-webui/open-webui#troubleshooting,根据教程Open WebUI: Server Connection Error
    If you’re experiencing connection issues, it’s often due to the WebUI docker container not being able to reach the Ollama server at 127.0.0.1:11434 (host.docker.internal:11434) inside the container . Use the --network=host flag in your docker command to resolve this. Note that the port changes from 3000 to 8080, resulting in the link: http://localhost:8080.
docker run -d --network=host -v open-webui:/app/backend/data -e OLLAMA_BASE_URL=http://127.0.0.1:11434 --name open-webui --restart always ghcr.io/open-webui/open-webui:main

删除docker,并使用上面的命令重新创建docker,使用http://localhost:8080访问OpenWebUI即可。

http://www.lryc.cn/news/503733.html

相关文章:

  • C#C++获取当前应用程序的安装目录和工作目录
  • Linux中vi和vim的区别详解
  • 2021 年 6 月青少年软编等考 C 语言四级真题解析
  • UE5编辑器下将RenderTarget输出为UTexture并保存
  • 【漏洞复现】CVE-2024-34102 Magento Open Source XXE漏洞
  • soul大数据面试题及参考答案
  • GLM-4-Plus初体验
  • 基于springboot+vue的高校校园交友交流平台设计和实现
  • Nacos 3.0 Alpha 发布,在安全、泛用、云原生更进一步
  • 【前端开发】HTML+CSS网页,可以拿来当作业(免费开源)
  • 【人工智能-中级】卷积神经网络(CNN)的中阶应用:从图像分类到目标检测
  • [笔记] 编译LetMeowIn(C++汇编联编程序)过程
  • 牛客小白月赛107(A~E)
  • 批量DWG文件转换低版本(CAD图转低版本)——c#插件实现
  • 安装Python库
  • 智慧政务数据中台建设及运营解决方案
  • 陪玩系统小程序源码/游戏陪玩APP系统用户端有哪些功能?游戏陪玩小程序APP源码开发
  • 米哈游大数据面试题及参考答案
  • 使用Hydra库简化配置管理
  • 二维数组和函数
  • 如何在 Ubuntu 终端中打开当前文件夹的图形界面
  • 基于SpringBoot的嗨玩旅游网站:一站式旅游信息服务平台的设计与实现
  • Opencv之图像梯度处理和绘制图像轮廓
  • vue3的watch一次性监听多个值用法
  • Electron和C/C++开发桌面应用对比
  • Q学习(Q-Learning)详解
  • 【前端】 canvas画图
  • 超标量处理器设计笔记(10) 寄存器重命名过程的恢复、分发
  • 硬件设计-电源轨噪声对时钟抖动的影响
  • geeCache 一致性hash