mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2026-07-19 22:23:50 -04:00
[GH-ISSUE #3736] [question/bug?]: how can anythingllm be set up on non-avx2 cpu? crash on initial onboarding #2404
Closed
opened 2026-02-22 18:29:31 -05:00 by yindo
·
14 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
No Label
possible bug
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#2404
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 @thejjw on GitHub (Apr 29, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3736
How are you running AnythingLLM?
Docker (local)
What happened?
Hello,
I know that the default lancedb have avx2 requirement [#1331] which prevents setup on old pc/server, whether run or docker or not. My server is on non-avx2 cpu so I have been using mintplexlabs/anythingllm:lancedb_revert image.
Today however I wanted to try out new version by connecting it to chroma.
I pulled and ran chromadb/chroma and mintplexlabs/anythingllm:latest image, all using new mount location for fresh setup.
I noticed that I can't actually use chroma since I can't get past first screen for llm preference, which probably fails because it tries to save to lancedb.
I understand lancedb requiring avx2. However the current setup flow prevents users from switching to alternatives especially if you run on non-avx2 cpu.
Please see if the flow can be changed to allow setting db selection before other preference settings, which will hopefully allow users to run it on more hardware.
In the meantime, are there any environment flag or other means I can pass to docker run for me to force anythingllm use chroma or other non-lancedb at runtime? I'd appreciate any help.
Thanks.
Are there known steps to reproduce?
you run current version of anythingllm on this cpu1 this will always happen
{"lscpu":[{"field":"Architecture:","data":"x86_64"},{"field":"CPU op-mode(s):","data":"32-bit, 64-bit"},{"field":"Address sizes:","data":"46 bits physical, 48 bits virtual"},{"field":"Byte Order:","data":"Little Endian"},{"field":"CPU(s):","data":"24"},{"field":"On-line CPU(s) list:","data":"0-23"},{"field":"Vendor ID:","data":"GenuineIntel"},{"field":"Model name:","data":"Intel(R) Xeon(R) CPU E5-2630L 0 @ 2.00GHz"},{"field":"CPU family:","data":"6"},{"field":"Model:","data":"45"},{"field":"Thread(s) per core:","data":"2"},{"field":"Core(s) per socket:","data":"6"},{"field":"Socket(s):","data":"2"},{"field":"Stepping:","data":"7"},{"field":"CPU(s) scaling MHz:","data":"60%"},{"field":"CPU max MHz:","data":"2500.0000"},{"field":"CPU min MHz:","data":"1200.0000"},{"field":"BogoMIPS:","data":"3990.19"},{"field":"Flags:","data":"fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm epb pti ssbd ibrs ibpb stibp tpr_shadow flexpriority ept vpid xsaveopt dtherm ida arat pln pts vnmi md_clear flush_l1d"},{"field":"Virtualization:","data":"VT-x"},{"field":"L1d cache:","data":"384 KiB (12 instances)"},{"field":"L1i cache:","data":"384 KiB (12 instances)"},{"field":"L2 cache:","data":"3 MiB (12 instances)"},{"field":"L3 cache:","data":"30 MiB (2 instances)"},{"field":"NUMA node(s):","data":"2"},{"field":"NUMA node0 CPU(s):","data":"0-5,12-17"},{"field":"NUMA node1 CPU(s):","data":"6-11,18-23"},{"field":"Vulnerability Gather data sampling:","data":"Not affected"},{"field":"Vulnerability Itlb multihit:","data":"KVM: Mitigation: Split huge pages"},{"field":"Vulnerability L1tf:","data":"Mitigation; PTE Inversion; VMX conditional cache flushes, SMT vulnerable"},{"field":"Vulnerability Mds:","data":"Mitigation; Clear CPU buffers; SMT vulnerable"},{"field":"Vulnerability Meltdown:","data":"Mitigation; PTI"},{"field":"Vulnerability Mmio stale data:","data":"Unknown: No mitigations"},{"field":"Vulnerability Reg file data sampling:","data":"Not affected"},{"field":"Vulnerability Retbleed:","data":"Not affected"},{"field":"Vulnerability Spec rstack overflow:","data":"Not affected"},{"field":"Vulnerability Spec store bypass:","data":"Mitigation; Speculative Store Bypass disabled via prctl"},{"field":"Vulnerability Spectre v1:","data":"Mitigation; usercopy/swapgs barriers and __user pointer sanitization"},{"field":"Vulnerability Spectre v2:","data":"Mitigation; Retpolines; IBPB conditional; IBRS_FW; STIBP conditional; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected"},{"field":"Vulnerability Srbds:","data":"Not affected"},{"field":"Vulnerability Tsx async abort:","data":"Not affected"}]} ↩︎
@timothycarambat commented on GitHub (Apr 29, 2025):
Ah, that likely is the case. In that case, open the storage folder you are binding for the Docker container
Locate the
STORAGE_LOCATION/.envfile - add or update these lines in the file:This will basically allow you to skip onboarding on startup. Notice how I use
host.docker.internaland not localhost when in the docker container so the AnythingLLM container can reach out of the container and reach the host localhost address.As for the
lancedb_revertimage - simply put that is an unmaintained image we have simply as an escape hatch for people on older CPUs. We dont prioritize it or often update it. I think at this point it was last updated ~11 months ago!We used to have onboarding have the embedder selection as part of it, but changes since then have removed that onboarding step so that is why you can get stuck in this loop now. When we made that image it was not the case.
@thejjw commented on GitHub (Apr 29, 2025):
Thank you.
Just adding below lines you suggested to
.envfile worked:Please do however consider providing more friendly workaround if possible in the future (i.e. can docker query lscpu output and alert user+set db to non-lancedb if avx2 not found?)
@thejjw commented on GitHub (Apr 29, 2025):
I thought that change would resolve all, since I was able to configure llm, create user, etc.
Apparently not, since I got this error on first chat:
I had to give more tweaks to get it working via docker. First I tried setting
CHROMA_SERVER_CORS_ALLOW_ORIGINS.. no luck, even with "*" (-e CHROMA_SERVER_CORS_ALLOW_ORIGINS='["*"]') same error persisted. I don't know why it doesn't work that way, but I got it working with docker network configuration.I'm leaving my configuration here that worked for me currently, hope it might help others:
[0] apply
.envchanges as noted above (VECTOR_DB="chroma", etc.)[1] create docker network
docker network create anythingllm-net[2] run new container with network attached
this assumes data directories are already set up 1
[3] set chromadb as vector database (optional?)
I changed to
http://anythingllm-chromadb:8000, but it may have worked without anyway (leaving it ashttp://host.docker.internal:8000) , not sure.mkdir -pv $HOME/chroma && export STORAGE_LOCATION=$HOME/anythingllm && mkdir -pv $STORAGE_LOCATION && touch "$STORAGE_LOCATION/.env" && chmod -Rv 777 $STORAGE_LOCATION↩︎@thejjw commented on GitHub (Apr 30, 2025):
ok...it works for llm usage. i do notice a quirk that might or might not have to do with my configuration.
do tell me if i better create a new issue for this. for now i'm not sure whether this has to do with my configuration or if this is more general issue.
I can't invoke agent for questions--getting
Could not respond to message. / POST predict: Post "http://127.0.0.1:36591/completion": EOFmessage instead. I mean, I didnt set up web search option but it does have scrape websites feature on by default..so getting an error was the least of what I was expecting.What is going on? my windows desktop anythingllm doesnt produce this message.
this is docker logs
this is trying to see if anything was available at 36591 port in the container...i guess not. is it supposed to be available?
my anythingllm image:
For now I'm just using local LLM as-is and that is fine for most cases...but I'd appreciate any help.
Thanks.
@timothycarambat commented on GitHub (Apr 30, 2025):
Somewhere in the app you have
Ollamaset as your LLM provider or your workspacesAgent LLM provider. Then it is looking to connect tohttp://127.0.0.1:36591/completionwhich wont work for the exact same reason Chroma couldn't connect.If you are in Docker,
127.0.0.1and alllocalhostroutes are inside the container. Usehost.docker.internalso you can reach the host network and access services running on the host machine localhost.This applies to every host-running localhost service, not just chroma. This is just how Docker networking works in the standard config setup without having to mess with networking layers.
That is all that is happening here - you are using 127.0.0.1 instead of the docker<->host special gateway address. We have this documented in several places.
https://docs.anythingllm.com/ollama-connection-troubleshooting
https://github.com/Mintplex-Labs/anything-llm/blob/master/server/utils/AiProviders/ollama/README.md
@thejjw commented on GitHub (Apr 30, 2025):
http://127.0.0.1:36591/completionwas trying to access LLM(Ollama) in this case, because my other non-agent chat requests went fine without problem silently. I was looking at wrong place in that case then.http://172.17.0.1:11434(sincehost.docker.internaldidn't work on my machine1 2 . couldhost.docker.internalbe a new version thing unsupported by my distribution's package?) In fact it picked up that address automatically if I recall correctly.OLLAMA_HOST=0.0.0.0set in its config as well too 3 . The error is somewhat different too, since the article mentionsport 11434but it's not that port in my case (it seems randomly picked?).Thanks.
this is working configuration
↩︎
this
↩︎
host.docker.internalchange does not seem to work on my case@thejjw commented on GitHub (May 6, 2025):
Hello,
I hope it's okay to continue on this thread(issue).
I updated to newest image and still get the same issue:
I noticed that it's contacting different port every time actually:

Maybe if it tries 172.17.0.1 instead of 127.0.0.1 it would work? But then it is already configured to use 172.17.0.1 for ollama base url..where else would i configure?
Please advise.
Thanks.
@timothycarambat commented on GitHub (May 6, 2025):
https://docs.anythingllm.com/ollama-connection-troubleshooting#troubleshooting-docker
Are you running docker on mac, windows, or linux? That doc above shows the right special gateway to use that maps to the host. So if you have Ollama running on 127.0.0.1:11434 on the host and can reach it in browser, then in the AnythingLLM app you just need to use
http://172.17.0.1:11434as the Ollama base URL and it will map correctly.@thejjw commented on GitHub (May 7, 2025):
I'm running on linux.
So just to summarize it's [linux server with (1) ollama service locally installed (2) docker anythingllm container (3) docker chromadb container] (accessed via my pc) setup.
I did use 172.17.0.1:11434 as ollama base url. and in fact it's working fine without agent..
it's just when i activate
@agentthat things go weird (as seen in https://github.com/Mintplex-Labs/anything-llm/issues/3736#issuecomment-2856654841)I don't think my setup is that abnormal (except that I run on non-avx2 cpu)...
I do believe the project is excellent and it serves me very well personally (on windows)..I wish I could just set this up for shared usage as well.
Thanks for keeping up with me on this.
@Sarmingsteiner commented on GitHub (May 8, 2025):
Hi,
I'm also running into issues when trying to use ChromaDB in Docker with AnythingLLM.
AnythingLLM only starts successfully when the storage path is not mapped to a local volume.
If I only map the
.envfile (preconfigured as described above), it works fine.However, if I:
…then AnythingLLM fails to start.
Questions:
Any help or clarification on how to properly map and persist AnythingLLM storage would be greatly appreciated. Thanks!
@timothycarambat commented on GitHub (May 8, 2025):
All of this is addressed by our docs -> Deploy docker locally this maps the storage and env so it persists constantly between containers
That is a regular DB, the default vector datase is in the storage folder you would mount under the
lancedbfolder. Since you are running chroma on the host, all your vectors will go to the chroma storage folder instead@Sarmingsteiner commented on GitHub (May 8, 2025):
Thanks for the quick reply. After thoroughly reviewing the documentation again, I realized the issue was related to file permissions and ownership.
I followed the advice from issue #1965 and set both the GID and UID to
1000for the local file paths, which resolved the problem.Also, it appears that changing the vector database connection only works by editing the
.envfile directly – modifying it via the GUI doesn't seem to take effect.@thejjw commented on GitHub (May 19, 2025):
In the end I brought in mac mini m4 and everything works including
@agent(wasn't for anythingllm in particular but why not)the lesson is...don't use archaic (disputable...it still mostly works..) hardware?
@timothycarambat commented on GitHub (May 20, 2025):
this is just a joke, but really, though - we cannot support every single piece of decade+ old tech
[question/bug?]: how can anythingllm be set up on non-avx2 cpu? crash on initial onboardingto [GH-ISSUE #3736] [question/bug?]: how can anythingllm be set up on non-avx2 cpu? crash on initial onboarding