Skip to content

When using Docker to call a local Ollama model, the model cannot be found. #579

Description

@songtiejun1416

deepwiki-1 | declare -x GPG_KEY="A035C8C19219BA821ECEA86B64E628F8D684696D"
deepwiki-1 | declare -x HOME="/root"
deepwiki-1 | declare -x HOSTNAME="10be98902f6c"
deepwiki-1 | declare -x LANG="C.UTF-8"
deepwiki-1 | declare -x LOG_FILE_PATH="api/logs/application.log"
deepwiki-1 | declare -x LOG_LEVEL="INFO"
deepwiki-1 | declare -x NODE_ENV="production"
deepwiki-1 | declare -x OLDPWD
deepwiki-1 | declare -x OLLAMA_HOST="http://192.168.112.216:11434"
deepwiki-1 | declare -x PATH="/opt/venv/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
deepwiki-1 | declare -x PORT="8001"
deepwiki-1 | declare -x PWD="/app"
deepwiki-1 | declare -x PYTHON_SHA256="91bcdebfdde239a003ae93738a7fce0f9230fee5c4bc2b86f6e6e8c6f98aabe8"
deepwiki-1 | declare -x PYTHON_VERSION="3.11.16"
deepwiki-1 | declare -x SERVER_BASE_URL="http://localhost:8001"
deepwiki-1 | declare -x SHLVL="1"
deepwiki-1 | declare -x TIKTOKEN_CACHE_DIR="/opt/tiktoken_cache/"
deepwiki-1 | Warning: OPENAI_API_KEY and/or GOOGLE_API_KEY environment variables are not set.
deepwiki-1 | These are required for DeepWiki to function properly.
deepwiki-1 | You can provide them via a mounted .env file or as environment variables when running the container.
deepwiki-1 | ▲ Next.js 15.5.22
deepwiki-1 | - Local: http://localhost:3000
deepwiki-1 | - Network: http://0.0.0.0:3000
deepwiki-1 |
deepwiki-1 | ✓ Starting...
deepwiki-1 | ✓ Ready in 99ms
deepwiki-1 | MLflow not available. Install with: pip install mlflow
deepwiki-1 | /usr/local/lib/python3.11/importlib/init.py:126: FutureWarning:
deepwiki-1 |
deepwiki-1 | All support for the google.generativeai package has ended. It will no longer be receiving
deepwiki-1 | updates or bug fixes. Please switch to the google.genai package as soon as possible.
deepwiki-1 | See README for more details:
deepwiki-1 |
deepwiki-1 | https://github.com/google-gemini/deprecated-generative-ai-python/blob/main/README.md
deepwiki-1 |
deepwiki-1 | return _bootstrap._gcd_import(name[level:], package, level)
deepwiki-1 | 2026-08-18 12:52:38,817 - INFO - deepwiki.main - main.py:107 - Starting Streaming API on port 8001
deepwiki-1 | INFO: Started server process [10]
deepwiki-1 | INFO: Waiting for application startup.
deepwiki-1 | INFO: Application startup complete.
deepwiki-1 | INFO: Uvicorn running on http://0.0.0.0:8001 (Press CTRL+C to quit)
deepwiki-1 | INFO: 127.0.0.1:37268 - "GET /health HTTP/1.1" 200 OK
deepwiki-1 | INFO: 127.0.0.1:39620 - "GET /auth/status HTTP/1.1" 200 OK
deepwiki-1 | 2026-08-18 12:53:09,185 - INFO - deepwiki.api.services.wiki.io - io.py:99 - Scanning for project cache files in: /root/.adalflow/wikicache
deepwiki-1 | 2026-08-18 12:53:09,186 - INFO - deepwiki.api.services.wiki.io - io.py:124 - Found 0 processed project entries.
deepwiki-1 | INFO: 127.0.0.1:39636 - "GET /wiki/tasks HTTP/1.1" 200 OK
deepwiki-1 | 2026-08-18 12:53:11,703 - INFO - deepwiki.api.routers.system - system.py:41 - Fetching model configurations
deepwiki-1 | INFO: 127.0.0.1:39620 - "GET /models/config HTTP/1.1" 200 OK
deepwiki-1 | INFO: 127.0.0.1:38688 - "GET /auth/status HTTP/1.1" 200 OK
deepwiki-1 | 2026-08-18 12:53:18,278 - INFO - deepwiki.api.routers.wiki - wiki.py:151 - Attempting to retrieve wiki cache for AsyncFuncAI/deepwiki-open (github), lang: zh
deepwiki-1 | 2026-08-18 12:53:18,278 - INFO - deepwiki.api.routers.wiki - wiki.py:158 - Wiki cache not found for AsyncFuncAI/deepwiki-open (github), lang: zh
deepwiki-1 | INFO: 127.0.0.1:38692 - "GET /api/wiki_cache?owner=AsyncFuncAI&repo=deepwiki-open&repo_type=github&language=zh&comprehensive=true HTTP/1.1" 200 OK
deepwiki-1 | INFO: 127.0.0.1:38688 - "POST /wiki/tasks HTTP/1.1" 200 OK
deepwiki-1 | 2026-08-18 12:53:18,288 - INFO - deepwiki.api.services.wiki.tasks - tasks.py:221 - Indexing github_AsyncFuncAI_deepwiki-open
deepwiki-1 | INFO: 127.0.0.1:38688 - "GET /wiki/tasks/github_AsyncFuncAI_deepwiki-open/stream HTTP/1.1" 200 OK
deepwiki-1 | 2026-08-18 12:53:18,302 - WARNING - deepwiki.api.rag.rag - rag.py:61 - Ollama model 'nomic-embed-text' is not available. Available models: ['nomic-embed-text:latest', 'qwen3:1.7b', 'qwen3.6:27b-mlx', 'gemma4:31b-mlx'].
deepwiki-1 | 2026-08-18 12:53:18,302 - ERROR - deepwiki.api.services.wiki.tasks - tasks.py:239 - Wiki task failed for github_AsyncFuncAI_deepwiki-open
deepwiki-1 | Traceback (most recent call last):
deepwiki-1 | File "/app/api/services/wiki/tasks.py", line 222, in generate_repo_wiki
deepwiki-1 | await prepare_repo_index(r)
deepwiki-1 | File "/app/api/services/research.py", line 33, in prepare_repo_index
deepwiki-1 | rag = await asyncio.to_thread(
deepwiki-1 | ^^^^^^^^^^^^^^^^^^^^^^^^
deepwiki-1 | File "/usr/local/lib/python3.11/asyncio/threads.py", line 25, in to_thread
deepwiki-1 | return await loop.run_in_executor(None, func_call)
deepwiki-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
deepwiki-1 | File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
deepwiki-1 | result = self.fn(*self.args, **self.kwargs)
deepwiki-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
deepwiki-1 | File "/app/api/rag/rag.py", line 169, in init
deepwiki-1 | raise ValueError(
deepwiki-1 | ValueError: Ollama model 'nomic-embed-text' not found. Please run 'ollama pull nomic-embed-text' to install it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions