mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2026-07-19 14:13:35 -04:00
Closed
opened 2026-02-22 18:30:41 -05:00 by yindo
·
9 comments
No Branch/Tag Specified
master
5846-bug-when-scrolling-up-scrolling-jumps
refactor-remove-workspace-pfp
5969-bug-stopgenerationbutton-disappears-on-the-first-prompt-that-initiates-an-agent-session
2235-bug-how-to-upload-a-folder-with-subfolders-with-files-to-anythingllm
5990-workspace-update-fails-with-unknown-argument-router_id-v1130v1150-intel-mac
opencomputer-examples
pg
feat/image-generation-translations
feat/image-generation
5924-bug-meeting-summary-fails-with-sincludes-is-not-a-function-when-default-llm-is-anthropic-claude
render
feat/uniform-modal-component
5883-bug-unescaped-content-in-json-strings-being-passed-to-document-generator-tools
5901-bug-api-update-embeddings-fails-prisma-argument-filename-is-missing-on-workspace_documentscreate-desktop-windows-v1141
hybrid-search
1981-translations
5752-bug-prompts-to-local-jan-endpoint-unresponsive
feat-disable-native-tool-calling-env-var
5676-bug-non-ollama-agent-providers-do-not-parse-and-present-reasoning-content
feat/markdown-web-scraping
5717-bug-apiv1documentupload-silently-drops-metadata-field-in-desktop-1130-arg-count-mismatch-nested-payload-key
fix/aibitat-context-overflow
5711-bug-erratic-deepseek-v4-flash-the-agent-model-failed-to-respond-400-the-reasoning_content
5631-feat-custom-api-request-timeouts-for-ai-providers
feat-reasoning-control
feat-agent-clarifying-questions-translations
5583-bug-lm-studio-provider-does-not-present-reasoning-output
5313-normalize-translations
feat/memory-translations
5305-lemonade-embedding-engine-swallows-errors-falsely-reports-documents-as-embedded
5060-bug-agent-interactions-agent-are-not-persisted-to-thread-history-via-api
pptx-subagent
feat-render-images-from-mcp-tool-results
stt-provider-expansion-openai-api-compatible
feat-file-search-agent-tool
feat-native-embedder-job-queue
5189-normalize-translations
feat-file-search-agent-tool-translations
i18n-eslint
5140-auto-migration
5112-bug-openrouter-failed-message-bug
3506-feat-parameters-for-openrouter-models
4992-feat-preserve-scroll-position
4973-bug-markdown-numbered-list-display-in-reasoning-pane
desktop
4938-bug-pending-chat-rerendering-ui-bug
quickstart-env
node-llama-cpp-in-container-cuda
node-llama-cpp-in-container
ollama-in-container
4817-feat-set-cooldown-per-mcp-server
4845-keyboard-shortcuts-to-navigate-in-chat
4844-feat-reorder-threads-by-latest-interaction
standardize-username-constraints-normalize-translations
4792-feat-refactor-workspacepfp-image
1382-embed-ip-improvements
1382-bug-embed-api-improvements
refactor-eslint-frontend
4687-feat-refactor-vector-db-providers
4615-feat-disable-apidocs-with-environment-variable
4559-feat-agent-web-search-enable-ordering-of-results
4599-bug-ollama-race-condition-bug
4572-bug-lmstudio-provided-llm-stopped-working-with-anything-llm-after-upgrading-to-190
4508-agent-youtube-transcript-analysis
4497-feat-workspace-names
frontend-eslint
ollama-lmstudio-auto-context-window
4431-validate-vector-database-connectioN
2019-slash-command-keyboard-selection
microsoft-foundry-provider
4431-validate-vector-database-connection
4325-sys-prompt-var-improvements
3209-feat-apiv1workspacestream-chat-sources-citations
4210-bug-voice-to-text-overwrite
4136-feat-jan-as-a-backend-server-option
4172-feat-openai-o3-support
1.8.3-rerelease
web-push-notifications-service
tasks
3955-feat-jinaai-embedder-provider-support
3921-feat-agent-skills-uiux-improvements
3901-bug-validfunccall-checks-optional-arguments
keyboard-dev
1787-custom-roles-and-permissions
add-jira-slack-data-connector
office-extension-wip
lightmode-dropdown-color-update
3586-bug-agent-flow-function-description-provided-by-user-is-not-seen-in-the-llm-query
3463-bug-agent-continues-to-run-if-request-failed-even-after-exit
3439-feat-call-variables-within-the-flow-api-block-url-field
3282-manager-view-models-workspace
3280-token-counting-server-side-truncation-improvements
3147-bug-embedded-chat-widget---not-considering-query-mode-option-always-working-in-chat-mode
2995-feat-disable-temperature-setting-for-deepseek-r1-deepseek-reasoner-model
2827-feat-perplexity-citations
2866-feat-finally-a-gemini-models-endpoint
2647-feat-hpp-header-for-a-c++-code-file-mime-addition
lancedb-revert
1656-feat-implement-tooltip-ui-designs
2011-feat-bump-perplexity-models
1873-feat-auto-add-and-watch-folder-for-document-uploads
1297-feat-gemini-agent-support
1759-bug-ui-bug-fixes
1686-feat-implement-winston-for-logging
1536-bug-toggling-on-users-can-delete-workspaces-does-not-take-effect
agent-ui-mobile-styles
1522-feat-chromadb-support
1595-bug-unable-to-get-live-web-search-and-browsing-agent-working-using-google-custom-search-engine-error-getaddrinfo-enotfound-http-errno-3008
1582-bug-lm-studio-does-not-allow-for-different-model-selection
1312-bug-usernames-should-not-be-case-sensitive-when-logging-in
1029-feat-hf-serverless-inference-api
1086-feat-implement-normalized-input-fields
knowledge-graph-support
644-bug-uploaded-file-name-does-not-match-the-displayed-file-name-after-the-upload
v1.15.0
v1.14.2
v1.14.1
v1.14.0
v1.13.0
v1.12.1
v1.12.0
v1.11.2
v1.11.1
v1.11.0
v1.10.0
v1.9.1
v1.9.0
v1.8.5
v1.8.4
v1.8.3
v1.8.2
v1.8.1
v1.8.0
v1.7.8
v1.7.6
v1.7.5
v1.7.4
v1.4.0
v1.3.0
v1.2.4
v1.2.3
v1.2.2
v1.2.1
v1.2.0
v1.1.1
v1.1.0
v1.0.0
Labels
Clear labels
Desktop
Docker
Integration Request
Integration Request
OS: Linux
OS: Mobile
OS: Windows
UI/UX
blocked
bug
bug
core-team-only
documentation
duplicate
embed-widget
enhancement
feature request
github_actions
good first issue
investigating
needs info / can't replicate
possible bug
pull-request
question
stage: specifications
wontfix
Mirrored from GitHub Pull Request
Milestone
No items
No Milestone
Projects
Clear projects
No project
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Mintplex-Labs/anything-llm#2666
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jhsmith409 on GitHub (Jul 23, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4190
Originally assigned to: @timothycarambat on GitHub.
How are you running AnythingLLM?
Docker (local)
What happened?
After pulling 1.8.4, I am unable to select models from an external Ollama server. Localhost ollama servers still work. Reverting to 1.8.3 resolved the issue.
Are there known steps to reproduce?
No response
@timothycarambat commented on GitHub (Jul 23, 2025):
Unable to replicate. Hosting ollama on another machine and using NGROK to replicate remote destination. Using the BaseURL (no path) I can see all models listed on the remote machine as well as send chats and agent calls.
@timothycarambat commented on GitHub (Jul 23, 2025):
Given you are on Docker this could be networking related. I would assume the remote URL is HTTP and the self-hosted docker is also HTTP. Even then, we request models via the backend so CORS should not be an issue.
@jhsmith409 commented on GitHub (Jul 23, 2025):
Yes, hosted on docker using docker compose. Same docker compose file used with both 1.8.3 and 1.8.4. Anything llm hosted on 192.168.30.209. Ollama hosted on 192.168.30.211. Ollama version 0.9.6. Only change was moving from 1.8.3 to 1.8.4 with a docker compose down, docker compose pull, docker compose up -d. Changed back by editing docker-compose.yml to specify 1.8.3 instead of latest. The problem survived a reboot before I switched back to 1.8.3.
docker-compose.yml posted below:
services:
anythingllm:
image: mintplexlabs/anythingllm:1.8.3
container_name: anythingllm
restart: unless-stopped
cap_add:
- SYS_ADMIN
ports:
- "3001:3001"
environment:
- NODE_ENV=production
- STORAGE_DIR=/app/server/storage
- COMMUNITY_HUB_BUNDLE_DOWNLOADS_ENABLED=1
- UID=1000
- GID=1000
- LLM_PROVIDER=ollama
- OLLAMA_BASE_PATH=http://host.docker.internal:11434
- EMBEDDING_ENGINE=ollama
- EMBEDDING_BASE_PATH=http://host.docker.internal:11434
- VECTOR_DB=lancedb
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./storage:/app/server/storage
- ./.env:/app/server/.env
@jhsmith409 commented on GitHub (Jul 23, 2025):
Changed the version to 1.8.4, docker compose down, docker compose pull, docker compose up and it can't read the files from 192.168.30.211
No changes to the .211 machine, no reboot, just a nano and those 3 docker commands. Some error below cite a custom model. I do have a local version of one medgemma model. Perhaps related to that?
nano docker-compose.yml
jhsmith@xeon:
/anythingllm$ docker compose pull/anythingllm$ docker compose up[+] Pulling 14/14
✔ anythingllm Pulled 61.2s
✔ 3713021b0277 Already exists 0.0s
✔ 4f4fb700ef54 Pull complete 0.4s
✔ 7da6e67eb7e3 Already exists 0.0s
✔ 3cdb165adebd Already exists 0.0s
✔ 648ddedec995 Already exists 0.0s
✔ 9ae0933ba01c Already exists 0.0s
✔ 2e3891f345d8 Already exists 0.0s
✔ 505ffbc2f160 Already exists 0.0s
✔ da15cc1f8504 Pull complete 0.4s
✔ b30793a7029b Pull complete 36.1s
✔ 570e03ab36a0 Pull complete 36.2s
✔ 07e32c9c4ce0 Pull complete 60.3s
✔ 060dcd79d942 Pull complete 60.6s
jhsmith@xeon:
[+] Running 2/2
✔ Network anythingllm_default Created 0.1s
✔ Container anythingllm Created 0.7s
Attaching to anythingllm
anythingllm | [collector] info: [TikTokenTokenizer] Initialized new TikTokenTokenizer instance.
anythingllm | [collector] info: Collector hot directory and tmp storage wiped!
anythingllm | [collector] info: Document processor app listening on port 8888
anythingllm | Environment variables loaded from .env
anythingllm | Prisma schema loaded from prisma/schema.prisma
anythingllm |
anythingllm | ✔ Generated Prisma Client (v5.3.1) to ./node_modules/@prisma/client in 406ms
anythingllm |
anythingllm | Start using Prisma Client in Node.js (See: https://pris.ly/d/client)
anythingllm |
anythingllm | import { PrismaClient } from '@prisma/client' anythingllm | const prisma = new PrismaClient() anythingllm |anythingllm | or start using Prisma Client at the edge (See: https://pris.ly/d/accelerate)
anythingllm |
anythingllm | import { PrismaClient } from '@prisma/client/edge' anythingllm | const prisma = new PrismaClient() anythingllm |anythingllm |
anythingllm | See other ways of importing Prisma Client: http://pris.ly/d/importing-client
anythingllm |
anythingllm | npm notice
anythingllm | npm notice New major version of npm available! 10.8.2 -> 11.4.2
anythingllm | npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.4.2
anythingllm | npm notice To update run: npm install -g npm@11.4.2
anythingllm | npm notice
anythingllm | Environment variables loaded from .env
anythingllm | Prisma schema loaded from prisma/schema.prisma
anythingllm | Datasource "db": SQLite database "anythingllm.db" at "file:../storage/anythingllm.db"
anythingllm |
anythingllm | 31 migrations found in prisma/migrations
anythingllm |
anythingllm |
anythingllm | No pending migrations to apply.
anythingllm | ┌─────────────────────────────────────────────────────────┐
anythingllm | │ Update available 5.3.1 -> 6.12.0 │
anythingllm | │ │
anythingllm | │ This is a major update - please follow the guide at │
anythingllm | │ https://pris.ly/d/major-version-upgrade │
anythingllm | │ │
anythingllm | │ Run the following to update │
anythingllm | │ npm i --save-dev prisma@latest │
anythingllm | │ npm i @prisma/client@latest │
anythingllm | └─────────────────────────────────────────────────────────┘
anythingllm | [backend] info: [EncryptionManager] Loaded existing key & salt for encrypting arbitrary data.
anythingllm | [backend] info: [TokenManager] Initialized new TokenManager instance for model: gpt-3.5-turbo
anythingllm | [backend] info: [TokenManager] Returning existing instance for model: gpt-3.5-turbo
anythingllm | [backend] info: [TELEMETRY ENABLED] Anonymous Telemetry enabled. Telemetry helps Mintplex Labs Inc improve AnythingLLM.
anythingllm | [backend] info: prisma:info Starting a sqlite pool with 41 connections.
anythingllm | [backend] info: [TELEMETRY SENT] {"event":"server_boot","distinctId":"44f9983a-04f2-4ee1-89a8-b0b6b472a475","properties":{"commit":"--","runtime":"docker"}}
anythingllm | [backend] info: [CommunicationKey] RSA key pair generated for signed payloads within AnythingLLM services.
anythingllm | [backend] info: [EncryptionManager] Loaded existing key & salt for encrypting arbitrary data.
anythingllm | [backend] info: Primary server in HTTP mode listening on port 3001
anythingllm | [backend] info: [BackgroundWorkerService] Feature is not enabled and will not be started.
anythingllm | [backend] info: [MetaGenerator] fetching custom meta tag settings...
anythingllm | [backend] info: [Event Logged] - update_llm_provider
anythingllm | [backend] error: TypeError: fetch failed
anythingllm | at node:internal/deps/undici/undici:12637:11
anythingllm | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
anythingllm | at async ollamaAIModels (/app/server/utils/helpers/customModels.js:352:18)
anythingllm | at async getCustomModels (/app/server/utils/helpers/customModels.js:50:14)
anythingllm | at async /app/server/endpoints/system.js:976:35
@jhsmith409 commented on GitHub (Jul 23, 2025):
I asked Claude Code to look into it and got this answer:
Based on my analysis, the error TypeError: fetch failed in version 1.8.4 when connecting to your
Ollama server at 192.168.30.211 appears to be a network connectivity issue. Here's what I
found:
Root Cause Analysis
The error occurs in customModels.js:352 in the ollamaAIModels function when it tries to fetch
from ${url}/api/tags. The function constructs the URL from either:
Potential Issues in 1.8.4
header passing
causing connection issues
address 192.168.30.211
@jhsmith409 commented on GitHub (Jul 23, 2025):
Claude suggested this test:
docker exec -it anythingllm curl http://192.168.30.211:11434/api/tags
{"models":[{"name":"alibayram/medgemma:4b","model":"alibayram/medgemma:4b","modified_at":"2025-07-22T01:42:01.12387678Z","size":2489895540,"digest":"970df2db7db7aa5ee240462d488302ea718ce3c3af53e3f5b453a350efc661d2","details":{"parent_model":"","format":"gguf","family":"gemma3","families":["gemma3"],"parameter_size":"3.9B","quantization_level":"Q4_K_M"}},{"name":"medgemma:27b","model":"medgemma:27b","modified_at":"2025-07-22T01:30:28.312153846Z","size":16546405712,"digest":"cbf55bbb8357ef1021c310452827ebbf3a377b3e0fe331a8ebf7e57993a2fc33","details":{"parent_model":"","format":"gguf","family":"gemma3","families":["gemma3"],"parameter_size":"27.0B","quantization_level":"Q4_K_M"}},{"name":"qwen3:30b-a3b","model":"qwen3:30b-a3b","modified_at":"2025-07-21T20:26:15.0275801Z","size":18622563179,"digest":"0b28110b7a3364296d5cef609095537189fbb81547761de69fd22dd68d2166c2","details":{"parent_model":"","format":"gguf","family":"qwen3moe","families":["qwen3moe"],"parameter_size":"30.5B","quantization_level":"Q4_K_M"}},{"name":"mistral:7b-instruct","model":"mistral:7b-instruct","modified_at":"2025-07-21T20:26:14.030577929Z","size":4372824384,"digest":"6577803aa9a036369e481d648a2baebb381ebc6e897f2bb9a766a2aa7bfbc1cf","details":{"parent_model":"","format":"gguf","family":"llama","families":["llama"],"parameter_size":"7.2B","quantization_level":"Q4_K_M"}},{"name":"nomic-embed-text:v1.5","model":"nomic-embed-text:v1.5","modified_at":"2025-07-21T20:26:14.779579558Z","size":274302450,"digest":"0a109f422b47e3a30ba2b10eca18548e944e8a23073ee3f3e947efcf3c45e59f","details":{"parent_model":"","format":"gguf","family":"nomic-bert","families":["nomic-bert"],"parameter_size":"137M","quantization_level":"F16"}},{"name":"devstral:latest","model":"devstral:latest","modified_at":"2025-07-21T20:26:14.25957843Z","size":14333928046,"digest":"9bd74193e93935e9d8564d88607b220a9d341c4a36b748cffcbd9ad4f47a9ca9","details":{"parent_model":"","format":"gguf","family":"llama","families":["llama"],"parameter_size":"23.6B","quantization_level":"Q4_K_M"}},{"name":"gemma3:27b-it-qat","model":"gemma3:27b-it-qat","modified_at":"2025-07-21T20:26:14.526579013Z","size":18087370898,"digest":"29eb0b9aeda35295ed728124d341b27e0c6771ea5c586fcabfb157884224fa93","details":{"parent_model":"","format":"gguf","family":"gemma3","families":["gemma3"],"parameter_size":"27.4B","quantization_level":"Q4_0"}}]}
and concludes
Perfect! The curl command works, showing that network connectivity from the container to your
Ollama server is fine. This confirms the issue is specifically in the AnythingLLM code changes
between versions 1.8.3 and 1.8.4.
So, I changed the environment variable in docker-compose.yml from OLLAMA_BASE_PATH=http://host.docker.internal:11434
to
OLLAMA_BASE_PATH=http://192.168.30.211:11434
and 1.8.4 now works.
So something changed in 1.8.3 to 1.8.4 on how it deals with the base path vs. me updating the path from the gui.
So that makes the GUI option to change it sort of useless but I know how to make it work now. So, I would now say the bug is that the GUI option to change the source for Ollama doesn't work like it used to.
@jhsmith409 commented on GitHub (Jul 23, 2025):
Thank you for looking at this Tim.
@timothycarambat commented on GitHub (Jul 28, 2025):
It seems like these kind of Docker Networking things never rest 😢 - we have this doc:
https://docs.anythingllm.com/ollama-connection-troubleshooting
Which is tangentially related since it has to do with resolution. I really dont think we changed anything about the connector itself at all between 1.8.3 -> 1.8.4, but without a deep review it would be hard to know for certain. My hunch comes from the
In combination with:
- OLLAMA_BASE_PATH=http://host.docker.internal:11434/in the ENV doing some kind of non-transparent URL resolution. Thank you for taking the initivative to solve the issue - it helps a ton at least so people can find issues that might mimic their exact setups - since what you are doing is by no means an edge case.@skrantz7104 commented on GitHub (Oct 7, 2025):
Had the same problem not able to use dropdown and choose....
I changed to http://127.0.0.1:11434 and it worked.
[BUG]: Can't select models in external Ollama serverto [GH-ISSUE #4190] [BUG]: Can't select models in external Ollama server