mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2026-07-19 14:13:35 -04:00
[GH-ISSUE #5002] [BUG]: Cannot save LLM setting on install - TRuenas scale AnythingLLM app. #3140
Closed
opened 2026-02-22 18:32:47 -05:00 by yindo
·
8 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#3140
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 @Xxxyz721 on GitHub (Feb 14, 2026).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/5002
How are you running AnythingLLM?
Docker (local)
What happened?
trying to setup anythingLLM on TRuenas scale with locally hosted Ollama.
When installing the app seems to go on ok but on startup and accessing the web interface the configuration steps cannot be completed as it reports:-
"Failed to save LLM settings :Failed to load" or the same but with "Network error".
On the webpage I select Ollama from the list and specify the explicit lan IP address and port (http://192.168.1.16:11434) into the box.
The screen refreshes and shows me the list of models from the ollama instance and I can select one of those (chosing Phi3 initially).
then I click on save and it thinks for a bit, then pops up the error.
I have read that it could be a rights issue to the .env file in the server folder, so looking at that I could see the file was owned by the internal container anythingllm user and I could set it with chmod 777 etc.
initially the folder liiked like this:-
$ cd server
$ ls -alr
total 587
-rw-r--r-- 1 anythingllm anythingllm 371099 Jan 24 00:12 yarn.lock
drwxr-xr-x 28 anythingllm anythingllm 28 Jan 24 00:12 utils
drwxr-xr-x 2 anythingllm anythingllm 8 Jan 24 00:12 swagger
drwxr-xr-x 5 anythingllm anythingllm 6 Feb 14 16:49 storage
drwxr-xr-x 5 anythingllm anythingllm 106 Jan 24 00:14 public
drwxr-xr-x 3 anythingllm anythingllm 5 Jan 24 00:12 prisma
-rw-r--r-- 1 anythingllm anythingllm 3445 Jan 24 00:12 package.json
-rw-r--r-- 1 anythingllm anythingllm 80 Jan 24 00:12 nodemon.json
drwxr-xr-x 1 anythingllm anythingllm 3 Jan 24 00:23 node_modules
drwxr-xr-x 2 anythingllm anythingllm 31 Jan 24 00:12 models
drwxr-xr-x 2 anythingllm anythingllm 3 Jan 24 00:12 middleware
-rw-r--r-- 1 anythingllm anythingllm 244 Jan 24 00:12 jsconfig.json
drwxr-xr-x 3 anythingllm anythingllm 5 Jan 24 00:12 jobs
-rw-r--r-- 1 anythingllm anythingllm 5230 Jan 24 00:12 index.js
drwxr-xr-x 8 anythingllm anythingllm 23 Jan 24 00:12 endpoints
drwxr-xr-x 4 anythingllm anythingllm 4 Jan 24 00:12 tests
-rw-r--r-- 1 anythingllm anythingllm 8 Jan 24 00:12 .nvmrc
-rw-r--r-- 1 anythingllm anythingllm 575 Jan 24 00:12 .gitignore
-rw-r--r-- 1 anythingllm anythingllm 367 Jan 24 00:12 .flowconfig
-rw-r--r-- 1 anythingllm anythingllm 14676 Jan 15 00:12 .env
drwxr-x--- 1 anythingllm anythingllm 5 Jan 24 00:22 ..
drwxr-xr-x 1 anythingllm anythingllm 3 Jan 24 01:15 .
$
then could be set to this after chmod 777:-
$ cd server
$ ls -alr
total 587
-rw-r--r-- 1 anythingllm anythingllm 371099 Jan 24 00:12 yarn.lock
drwxr-xr-x 28 anythingllm anythingllm 28 Jan 24 00:12 utils
drwxr-xr-x 2 anythingllm anythingllm 8 Jan 24 00:12 swagger
drwxr-xr-x 5 anythingllm anythingllm 6 Feb 14 16:49 storage
drwxr-xr-x 5 anythingllm anythingllm 106 Jan 24 00:14 public
drwxr-xr-x 3 anythingllm anythingllm 5 Jan 24 00:12 prisma
-rw-r--r-- 1 anythingllm anythingllm 3445 Jan 24 00:12 package.json
-rw-r--r-- 1 anythingllm anythingllm 80 Jan 24 00:12 nodemon.json
drwxr-xr-x 1 anythingllm anythingllm 3 Jan 24 00:23 node_modules
drwxr-xr-x 2 anythingllm anythingllm 31 Jan 24 00:12 models
drwxr-xr-x 2 anythingllm anythingllm 3 Jan 24 00:12 middleware
-rw-r--r-- 1 anythingllm anythingllm 244 Jan 24 00:12 jsconfig.json
drwxr-xr-x 3 anythingllm anythingllm 5 Jan 24 00:12 jobs
-rw-r--r-- 1 anythingllm anythingllm 5230 Jan 24 00:12 index.js
drwxr-xr-x 8 anythingllm anythingllm 23 Jan 24 00:12 endpoints
drwxr-xr-x 4 anythingllm anythingllm 4 Jan 24 00:12 tests
-rw-r--r-- 1 anythingllm anythingllm 8 Jan 24 00:12 .nvmrc
-rw-r--r-- 1 anythingllm anythingllm 575 Jan 24 00:12 .gitignore
-rw-r--r-- 1 anythingllm anythingllm 367 Jan 24 00:12 .flowconfig
-rwxrwxrwx 1 anythingllm anythingllm 14676 Jan 15 00:12 .env
drwxr-x--- 1 anythingllm anythingllm 5 Jan 24 00:22 ..
drwxr-xr-x 1 anythingllm anythingllm 4 Jan 24 01:15 .
$ ^C
$
However, this didnt allow the .env to be set or saved it seems, plus on restarting the service the file permissions had reset back to the original levels.
Super frustrating as I want to simply use this all in house with my own self hosted system but I can't get it to accept the config.
Its not as if the app cant see ollama, it's talking to the api fine as it can access the model list and all that. just wont allow me to progress with the configuration.
Any suggestions?
TRUENAS Scale Version:-
25.04.2.6
AnythingLLM app Version:-
Name:
anything-llm
App Version:
v1.10.0
Version:
v1.0.16
Source:
github.com/Mintplex-Labs/anything-llm
Train:
community
Thanks,
STu.
Are there known steps to reproduce?
No response
@timothycarambat commented on GitHub (Feb 16, 2026):
Are you using the official start command in our docs? It is all there and you should additionally be seeing an error message in the container on boot exactly when this happens (no storage dir)
https://docs.anythingllm.com/installation-docker/quickstart
@Xxxyz721 commented on GitHub (Feb 16, 2026):
Not sure from that guide exactly what needs to be setup here as I’m running the anythingllm app from the official IX catalogue.
Do I need to specifically add storage and config folders on the server? The ix-apps jails generally handle it all internally for other apps. Running in verbose logging for the app/container gives no additional information I can see and the inbuilt anythingllm account is the active logged on user and should surely have rights?
It can access all the application files and launch the app, just seems to either not know where the config .env file is or can only see it as read only….
I’ll go through the docs for sure, is there a specific set of command line options I need to add though to the launch parameters in the the app settings?
I know it’s slightly different in truenas as the containerisation of apps is slightly different but it’s all running in a docker-esque fashion…
Maybe I can copy that launch script and put it into the app via dockge?
Ta,
Stu.
@timothycarambat commented on GitHub (Feb 16, 2026):
Ah, then that is likely the case. I am not familiar with the IX Catalogue but we certainly dont maintain that setup and so because of that I can say that is likely the whole cause - if not most.
But if you have docker on your machine, which i presume you do since that is how to launch the dockerized version of the app - if you had this in a command it would work
One thing to note, in that script we assume the storage is under the user homespace because top-level folders you will need to
chmod -R 777so that you can read/write to them.@Xxxyz721 commented on GitHub (Feb 16, 2026):
Ok cheers :).On 16 Feb 2026, at 22:21, Timothy Carambat @.***> wrote:timothycarambat left a comment (Mintplex-Labs/anything-llm#5002)
Ah, then that is likely the case. I am not familiar with the IX Catalogue but we certainly dont maintain that setup and so because of that I can say that is likely the whole cause - if not most.
But if you have docker on your machine, which i presume you do since that is how to launch the dockerized version of the app - if you had this in a command it would work
export STORAGE_LOCATION=$HOME/anythingllm &&
mkdir -p $STORAGE_LOCATION &&
touch "$STORAGE_LOCATION/.env" &&
docker run -d -p 3001:3001
--cap-add SYS_ADMIN
-v ${STORAGE_LOCATION}:/app/server/storage
-v ${STORAGE_LOCATION}/.env:/app/server/.env
-e STORAGE_DIR="/app/server/storage"
mintplexlabs/anythingllm:latest
One thing to note, in that script we assume the storage is under the user homespace because top-level folders you will need to chmod -R 777 so that you can read/write to them.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>
[BUG]: Cannot save LLM setting on install - TRuenas scale AnythingLLM app.to [GH-ISSUE #5002] [BUG]: Cannot save LLM setting on install - TRuenas scale AnythingLLM app.@BenJ2002 commented on GitHub (Apr 28, 2026):
Thank you for the responses, but I think that the point has been missed that this is a challenge in TrueNAS when loading AnythingLLM from the TrueCharts repository. This does not allow the average user to use or modify .yaml files.
TrueNAS does not allow you to access the .yaml file. You can certainly make a manual manifest.yaml but that only works with the initial pull. Afterthe container has been setup you lose access to that .yaml.
I have traced data to identify the container, but TrueNAS blocks so many apps and permissions (good security posture) that it's very difficult to find the container or change the internal .env or .yaml files. TrueNAS does not let you use editors in the shell.
I have Dockhand installed, but changes do not persistent when the container is restarted or stopped/restarted (compose down/up) in TrueNAS.
My Dataset has been built with the proper permissions in NFSv4 for R/W/X for Owner & Group and R/W for Users and Others. I've tried R/W/X for the user (568). No help.
I've set and forced ACL in TrueNAS's App edit screen. No help.
I've verified that the .env has the correct path.
What I think the problem could be: TrueNAS creates a mount point that maps your dataset to /app/server/storage. The app runs fine, it does not give any errors and says that AI Providers are saved. I think we need to find a way to make that mount point persist when the container changes.
Interestingly, my user data, branding and whitelabeling, Agent Skills and Community Hub downloads all persist. It's the AI Providers (LLM, Vector, Embedder, etc.) that do not persist.
I've also read Data not persisting in Truenas Scale #4546. I checked the path that was listed and it persists. I took it out of the .ix-apps directory because of how I have my pools organized and it works fine. I moved it back to .ix-apps and the settings did not persist.
I noted that anythingllm uses 1000:1000. I set ownership to 1000:1000. No help.
Any more ideas?
Thanks for the help!
@cleber7up commented on GitHub (May 20, 2026):
I had this problem on TrueNas among with others on AnythingLLM... First make sure you can replace the UID and GID to your default... usually for apps is 568... If you can't edit and installed it from TrueNas app store (1000:1000), make sure to map a host path and use a policy to allow full modify for app users and add a @everyone users to the same folder and allow full modify or chmod777.
Make sure to map/mount these:
/app/server/storage/anythingllm-fs (your path to folder that agent will create files and other things)
/app/server/.env (your path to .env file to get persistent configurations saved across reboots and app restarts, don't forget to put yourpath/.env)
maybe you need to create .env before with touch command on shell before mount
don't map again /app/server/storage, instead use the original config on pre deployment and map to your host path on storage settings
if all followed you will get it booted up and running and configs persistent across all restarts and reboots.
@BenJ2002 commented on GitHub (May 28, 2026):
Thanks for the help.
I played around with permissions until I was blue in the face. Then I converted the app to a custom app and added a new bind point to the .env like you mentioned.
That is the fix for this app in TrueNAS. I’m sure you can do this with the docker-compose.yaml, but that’s more difficult to track down and I also feared that it would erase my bind on the next update.
I think custom apps with the modified environment file might be safer.
Thanks again!
@cleber7up commented on GitHub (Jun 4, 2026):
Glad to help!
These days i was out putting to fry my brain getting set up vllm (0.22 cuda12.9) and litellm with full attention and kv cache plus cuda graph... and now putting hermes agent to work out...
for curiosity, dual rtx 3060 is outputing 80 tokens/sec on qwen 3.5 9bi with 128k context plus qwen 3 embedding 8bi with 32k context... just letting few megabytes of free vram, but i managed to get it fitted.
Anythingllm is blazing fast now outputing 4096 vector to Qdrant and giving smart and fast responses compared to qwen 2.5 and 3 on ollama.