[GH-ISSUE #3326] [BUG]: Failed to save LLM Settings: Failed to Fetch #2142

Closed
opened 2026-02-22 18:28:19 -05:00 by yindo · 4 comments
Owner

Originally created by @xzddakfdmiug on GitHub (Feb 23, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3326

How are you running AnythingLLM?

AnythingLLM desktop app

What happened?

  1. Using AnythingLLM Desktop on Linux which was downloaded yesterday.
  2. Choose Ollama as the desktop provider
  3. AnythingLLM successfully recognizes the Ollama server
  4. Hit to arrow to continue and get an error in a popup: Failed to save LLM Settings: Failed to Fetch

$uname -a
Linux robert-GA-78LMT-USB3-6-0 6.11.0-17-generic #17~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Mon Jan 20 22:48:29 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble
DISTRIB_DESCRIPTION="Ubuntu 24.04.2 LTS"

Are there known steps to reproduce?

No response

Originally created by @xzddakfdmiug on GitHub (Feb 23, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3326 ### How are you running AnythingLLM? AnythingLLM desktop app ### What happened? 1) Using AnythingLLM Desktop on Linux which was downloaded yesterday. 2) Choose Ollama as the desktop provider 3) AnythingLLM successfully recognizes the Ollama server 4) Hit to arrow to continue and get an error in a popup: Failed to save LLM Settings: Failed to Fetch $uname -a Linux robert-GA-78LMT-USB3-6-0 6.11.0-17-generic #17~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Mon Jan 20 22:48:29 UTC 2 x86_64 x86_64 x86_64 GNU/Linux $ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=24.04 DISTRIB_CODENAME=noble DISTRIB_DESCRIPTION="Ubuntu 24.04.2 LTS" ### Are there known steps to reproduce? _No response_
yindo added the possible bugDesktopOS: Linuxinvestigating labels 2026-02-22 18:28:19 -05:00
yindo closed this issue 2026-02-22 18:28:19 -05:00
Author
Owner

@xzddakfdmiug commented on GitHub (Feb 23, 2025):

{"level":"info","message":"\u001b[35m[TokenManager]\u001b[0m Returning existing instance for model: gpt-3.5-turbo","service":"backend"}
{"level":"info","message":"\u001b[32m[TELEMETRY ENABLED]\u001b[0m Anonymous Telemetry enabled. Telemetry helps Mintplex Labs Inc improve AnythingLLM.","service":"backend"}
{"level":"info","message":"prisma:info Starting a sqlite pool with 9 connections.","service":"backend"}
{"level":"info","message":"\u001b[32m[TELEMETRY SENT]\u001b[0m {"event":"server_boot","distinctId":"f3be9108-5f54-4eb0-8f44-6b2328ec94f5","properties":{"runtime":"desktop"}}","service":"backend"}
{"level":"info","message":"Hot loading of AnythingLLMOllama - LLM_PROVIDER is anythingllm_ollama.","service":"backend"}
{"level":"info","message":"\u001b[36m[NativeEmbedder]\u001b[0m Initialized","service":"backend"}
{"level":"info","message":"\u001b[36m[AnythingLLMOllama]\u001b[0m linux not supported.","service":"backend"}
{"level":"info","message":"\u001b[36m[AnythingLLMOllama]\u001b[0m linux not supported.","service":"backend"}
{"level":"info","message":"\u001b[36m[CommunicationKey]\u001b[0m RSA key pair generated for signed payloads within AnythingLLM services.","service":"backend"}
{"level":"info","message":"\u001b[36m[EncryptionManager]\u001b[0m Loaded existing key & salt for encrypting arbitrary data.","service":"backend"}
{"level":"info","message":"[production] AnythingLLM Standalone Backend listening on port 3001. Network discovery is disabled.","service":"backend"}
{"level":"info","message":"\u001b[36m[BackgroundWorkerService]\u001b[0m Feature is not enabled and will not be started.","service":"backend"}
{"level":"info","message":"\u001b[36m[AnythingLLMOllama]\u001b[0m Boot failure for port 37377","service":"backend"}
{"level":"error","message":"Error: The OPENAI_API_KEY environment variable is missing or empty; either provide it, or instantiate the OpenAI client with an apiKey option, like new OpenAI({ apiKey: 'My API Key' }).\n at new OpenAI (/home/robert/AnythingLLMDesktop/anythingllm-desktop/resources/backend/node_modules/openai/index.js:53:19)\n at sI (/home/robert/AnythingLLMDesktop/anythingllm-desktop/resources/backend/server.js:190:11470)\n at nI (/home/robert/AnythingLLMDesktop/anythingllm-desktop/resources/backend/server.js:190:10680)\n at /home/robert/AnythingLLMDesktop/anythingllm-desktop/resources/backend/server.js:198:21289\n at Layer.handle [as handle_request] (/home/robert/AnythingLLMDesktop/anythingllm-desktop/resources/backend/node_modules/express/lib/router/layer.js:95:5)\n at next (/home/robert/AnythingLLMDesktop/anythingllm-desktop/resources/backend/node_modules/express/lib/router/route.js:149:13)\n at /home/robert/AnythingLLMDesktop/anythingllm-desktop/resources/backend/server.js:5:1516\n at Layer.handle [as handle_request] (/home/robert/AnythingLLMDesktop/anythingllm-desktop/resources/backend/node_modules/express/lib/router/layer.js:95:5)\n at next (/home/robert/AnythingLLMDesktop/anythingllm-desktop/resources/backend/node_modules/express/lib/router/route.js:149:13)\n at xk (/home/robert/AnythingLLMDesktop/anythingllm-desktop/resources/backend/server.js:190:4284)","service":"backend"}
{"level":"error","message":"TypeError: fetch failed\n at Object.fetch (node:internal/deps/undici/undici:11457:11)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async lI (/home/robert/AnythingLLMDesktop/anythingllm-desktop/resources/backend/server.js:190:14798)\n at async nI (/home/robert/AnythingLLMDesktop/anythingllm-desktop/resources/backend/server.js:190:10741)\n at async /home/robert/AnythingLLMDesktop/anythingllm-desktop/resources/backend/server.js:198:21283","service":"backend"}
{"level":"error","message":"TypeError: fetch failed\n at Object.fetch (node:internal/deps/undici/undici:11457:11)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async lI (/home/robert/AnythingLLMDesktop/anythingllm-desktop/resources/backend/server.js:190:14798)\n at async nI (/home/robert/AnythingLLMDesktop/anythingllm-desktop/resources/backend/server.js:190:10741)\n at async /home/robert/AnythingLLMDesktop/anythingllm-desktop/resources/backend/server.js:198:21283","service":"backend"}
{"level":"info","message":"EmbeddingEngine changed from undefined to native - resetting undefined namespaces","service":"backend"}
{"level":"info","message":"\u001b[32m[Event Logged]\u001b[0m - workspace_vectors_reset","service":"backend"}
{"level":"info","message":"\u001b[36m[EncryptionManager]\u001b[0m Loaded existing key & salt for encrypting arbitrary data.","service":"backend"}
{"level":"info","message":"\u001b[35m[TokenManager]\u001b[0m Initialized new TokenManager instance for model: gpt-3.5-turbo","service":"backend"}

@xzddakfdmiug commented on GitHub (Feb 23, 2025): {"level":"info","message":"\u001b[35m[TokenManager]\u001b[0m Returning existing instance for model: gpt-3.5-turbo","service":"backend"} {"level":"info","message":"\u001b[32m[TELEMETRY ENABLED]\u001b[0m Anonymous Telemetry enabled. Telemetry helps Mintplex Labs Inc improve AnythingLLM.","service":"backend"} {"level":"info","message":"prisma:info Starting a sqlite pool with 9 connections.","service":"backend"} {"level":"info","message":"\u001b[32m[TELEMETRY SENT]\u001b[0m {\"event\":\"server_boot\",\"distinctId\":\"f3be9108-5f54-4eb0-8f44-6b2328ec94f5\",\"properties\":{\"runtime\":\"desktop\"}}","service":"backend"} {"level":"info","message":"Hot loading of AnythingLLMOllama - LLM_PROVIDER is anythingllm_ollama.","service":"backend"} {"level":"info","message":"\u001b[36m[NativeEmbedder]\u001b[0m Initialized","service":"backend"} {"level":"info","message":"\u001b[36m[AnythingLLMOllama]\u001b[0m linux not supported.","service":"backend"} {"level":"info","message":"\u001b[36m[AnythingLLMOllama]\u001b[0m linux not supported.","service":"backend"} {"level":"info","message":"\u001b[36m[CommunicationKey]\u001b[0m RSA key pair generated for signed payloads within AnythingLLM services.","service":"backend"} {"level":"info","message":"\u001b[36m[EncryptionManager]\u001b[0m Loaded existing key & salt for encrypting arbitrary data.","service":"backend"} {"level":"info","message":"[production] AnythingLLM Standalone Backend listening on port 3001. Network discovery is disabled.","service":"backend"} {"level":"info","message":"\u001b[36m[BackgroundWorkerService]\u001b[0m Feature is not enabled and will not be started.","service":"backend"} {"level":"info","message":"\u001b[36m[AnythingLLMOllama]\u001b[0m Boot failure for port 37377","service":"backend"} {"level":"error","message":"Error: The OPENAI_API_KEY environment variable is missing or empty; either provide it, or instantiate the OpenAI client with an apiKey option, like new OpenAI({ apiKey: 'My API Key' }).\n at new OpenAI (/home/robert/AnythingLLMDesktop/anythingllm-desktop/resources/backend/node_modules/openai/index.js:53:19)\n at sI (/home/robert/AnythingLLMDesktop/anythingllm-desktop/resources/backend/server.js:190:11470)\n at nI (/home/robert/AnythingLLMDesktop/anythingllm-desktop/resources/backend/server.js:190:10680)\n at /home/robert/AnythingLLMDesktop/anythingllm-desktop/resources/backend/server.js:198:21289\n at Layer.handle [as handle_request] (/home/robert/AnythingLLMDesktop/anythingllm-desktop/resources/backend/node_modules/express/lib/router/layer.js:95:5)\n at next (/home/robert/AnythingLLMDesktop/anythingllm-desktop/resources/backend/node_modules/express/lib/router/route.js:149:13)\n at /home/robert/AnythingLLMDesktop/anythingllm-desktop/resources/backend/server.js:5:1516\n at Layer.handle [as handle_request] (/home/robert/AnythingLLMDesktop/anythingllm-desktop/resources/backend/node_modules/express/lib/router/layer.js:95:5)\n at next (/home/robert/AnythingLLMDesktop/anythingllm-desktop/resources/backend/node_modules/express/lib/router/route.js:149:13)\n at xk (/home/robert/AnythingLLMDesktop/anythingllm-desktop/resources/backend/server.js:190:4284)","service":"backend"} {"level":"error","message":"TypeError: fetch failed\n at Object.fetch (node:internal/deps/undici/undici:11457:11)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async lI (/home/robert/AnythingLLMDesktop/anythingllm-desktop/resources/backend/server.js:190:14798)\n at async nI (/home/robert/AnythingLLMDesktop/anythingllm-desktop/resources/backend/server.js:190:10741)\n at async /home/robert/AnythingLLMDesktop/anythingllm-desktop/resources/backend/server.js:198:21283","service":"backend"} {"level":"error","message":"TypeError: fetch failed\n at Object.fetch (node:internal/deps/undici/undici:11457:11)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async lI (/home/robert/AnythingLLMDesktop/anythingllm-desktop/resources/backend/server.js:190:14798)\n at async nI (/home/robert/AnythingLLMDesktop/anythingllm-desktop/resources/backend/server.js:190:10741)\n at async /home/robert/AnythingLLMDesktop/anythingllm-desktop/resources/backend/server.js:198:21283","service":"backend"} {"level":"info","message":"EmbeddingEngine changed from undefined to native - resetting undefined namespaces","service":"backend"} {"level":"info","message":"\u001b[32m[Event Logged]\u001b[0m - workspace_vectors_reset","service":"backend"} {"level":"info","message":"\u001b[36m[EncryptionManager]\u001b[0m Loaded existing key & salt for encrypting arbitrary data.","service":"backend"} {"level":"info","message":"\u001b[35m[TokenManager]\u001b[0m Initialized new TokenManager instance for model: gpt-3.5-turbo","service":"backend"}
Author
Owner

@pinusc commented on GitHub (Mar 1, 2025):

I get the same error, also when trying to use OpenAI or Anthropic models. This makes anythingLLM literally unusable, I'm stuck at the setup screen.

@pinusc commented on GitHub (Mar 1, 2025): I get the same error, also when trying to use OpenAI or Anthropic models. This makes anythingLLM literally unusable, I'm stuck at the setup screen.
Author
Owner

@timothycarambat commented on GitHub (Mar 3, 2025):

The only reason(s) that the desktop app would fail to load on boot are the following:

  • You are running Linux on ARM (unsupported for desktop app)
  • The storage folder is read-only (you would see this in logs with read-only database)
  • Your CPU does not support AVX2 instruction sets (this would occur during embedding only)
  • The prisma ORM engine does not work on your OS - thus all writes to the local SQLite DB fail
@timothycarambat commented on GitHub (Mar 3, 2025): The only reason(s) that the **desktop** app would fail to load on boot are the following: - You are running Linux on ARM (unsupported for desktop app) - The storage folder is read-only (you would see this in logs with read-only database) - Your CPU does not support AVX2 instruction sets (this would occur during embedding only) - The prisma ORM engine does not work on your OS - thus all writes to the local SQLite DB fail
Author
Owner

@r4cs commented on GitHub (Jan 6, 2026):

Not true. Im having the same issue in jan 2026 and I have been trying to solve this error about 2 days without success. As said it above: literally unusable

@r4cs commented on GitHub (Jan 6, 2026): Not true. Im having the same issue in jan 2026 and I have been trying to solve this error about 2 days without success. As said it above: literally unusable
yindo changed title from [BUG]: Failed to save LLM Settings: Failed to Fetch to [GH-ISSUE #3326] [BUG]: Failed to save LLM Settings: Failed to Fetch 2026-06-05 14:44:47 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#2142