[GH-ISSUE #4799] [BUG]: AnythingLLM Docker Failed to load after selecting the LLM Provider #3021

Closed
opened 2026-02-22 18:32:17 -05:00 by yindo · 1 comment
Owner

Originally created by @g33kroid on GitHub (Dec 20, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4799

How are you running AnythingLLM?

Docker (local)

What happened?

I followed the installation guide for docker but I keep gettings errors and container dies afterwards. After creating a compose file below. Some Errors were resolved but these weren't

# docker-compose.yml
version: '3.8'

services:
  anythingllm:
    image: mintplexlabs/anythingllm:latest
    container_name: anythingllm
    restart: unless-stopped
    network_mode: "host"
    environment:
      NODE_ENV: production
      PORT: 3001
      STORAGE_DIR: /app/server/storage
      # Add other required AnythingLLM environment variables here
    volumes:
      - ./anythingllm:/app/server/storage
      - ./anythingllm/.env:/app/server/.env
    cap_add:
      - SYS_ADMIN
    depends_on:
      - db

  db:
    image: postgres:15
    container_name: anythingllm-db
    restart: unless-stopped
    environment:
      POSTGRES_DB: anythingllm
      POSTGRES_USER: anythingllm
      POSTGRES_PASSWORD: strongpassword
    volumes:
      - ./pgdata:/var/lib/postgresql/data
    ports:
      - "5432:5432"
anythingllm     | 
anythingllm     | No pending migrations to apply.
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 9 connections.
anythingllm     | [backend] info: [TELEMETRY SENT] {"event":"server_boot","distinctId":"c61e384e-1350-43c7-be51-299b82156138","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] Starting...
anythingllm     | [backend] info: [BackgroundWorkerService] Service started with 1 jobs ["cleanup-orphan-documents"]
anythingllm     | [backend] info: [MetaGenerator] fetching custom meta tag settings...
anythingllm     | [backend] info: EmbeddingEngine changed from undefined to native - resetting undefined namespaces
anythingllm     | [backend] info: [Event Logged] - workspace_vectors_reset
anythingllm     | [backend] info: Resetting anythingllm managed vector namespaces for 
anythingllm     | /usr/local/bin/docker-entrypoint.sh: line 26:    97 Illegal instruction     (core dumped) node /app/server/index.js

[backend] info: [MetaGenerator] fetching custom meta tag settings...
[backend] error: TypeError: fetch failed
    at node:internal/deps/undici/undici:12637:11
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async ollamaAIModels (/app/server/utils/helpers/customModels.js:384:18)
    at async getCustomModels (/app/server/utils/helpers/customModels.js:64:14)
    at async /app/server/endpoints/system.js:1070:35
[backend] error: TypeError: fetch failed
    at node:internal/deps/undici/undici:12637:11
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async ollamaAIModels (/app/server/utils/helpers/customModels.js:384:18)
    at async getCustomModels (/app/server/utils/helpers/customModels.js:64:14)
    at async /app/server/endpoints/system.js:1070:35
[backend] error: TypeError: fetch failed
    at node:internal/deps/undici/undici:12637:11
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async ollamaAIModels (/app/server/utils/helpers/customModels.js:384:18)
    at async getCustomModels (/app/server/utils/helpers/customModels.js:64:14)
    at async /app/server/endpoints/system.js:1070:35

Are there known steps to reproduce?

No response

Originally created by @g33kroid on GitHub (Dec 20, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4799 ### How are you running AnythingLLM? Docker (local) ### What happened? I followed the installation guide for docker but I keep gettings errors and container dies afterwards. After creating a compose file below. Some Errors were resolved but these weren't ```yaml # docker-compose.yml version: '3.8' services: anythingllm: image: mintplexlabs/anythingllm:latest container_name: anythingllm restart: unless-stopped network_mode: "host" environment: NODE_ENV: production PORT: 3001 STORAGE_DIR: /app/server/storage # Add other required AnythingLLM environment variables here volumes: - ./anythingllm:/app/server/storage - ./anythingllm/.env:/app/server/.env cap_add: - SYS_ADMIN depends_on: - db db: image: postgres:15 container_name: anythingllm-db restart: unless-stopped environment: POSTGRES_DB: anythingllm POSTGRES_USER: anythingllm POSTGRES_PASSWORD: strongpassword volumes: - ./pgdata:/var/lib/postgresql/data ports: - "5432:5432" ``` ```logs anythingllm | anythingllm | No pending migrations to apply. 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 9 connections. anythingllm | [backend] info: [TELEMETRY SENT] {"event":"server_boot","distinctId":"c61e384e-1350-43c7-be51-299b82156138","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] Starting... anythingllm | [backend] info: [BackgroundWorkerService] Service started with 1 jobs ["cleanup-orphan-documents"] anythingllm | [backend] info: [MetaGenerator] fetching custom meta tag settings... anythingllm | [backend] info: EmbeddingEngine changed from undefined to native - resetting undefined namespaces anythingllm | [backend] info: [Event Logged] - workspace_vectors_reset anythingllm | [backend] info: Resetting anythingllm managed vector namespaces for anythingllm | /usr/local/bin/docker-entrypoint.sh: line 26: 97 Illegal instruction (core dumped) node /app/server/index.js [backend] info: [MetaGenerator] fetching custom meta tag settings... [backend] error: TypeError: fetch failed at node:internal/deps/undici/undici:12637:11 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async ollamaAIModels (/app/server/utils/helpers/customModels.js:384:18) at async getCustomModels (/app/server/utils/helpers/customModels.js:64:14) at async /app/server/endpoints/system.js:1070:35 [backend] error: TypeError: fetch failed at node:internal/deps/undici/undici:12637:11 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async ollamaAIModels (/app/server/utils/helpers/customModels.js:384:18) at async getCustomModels (/app/server/utils/helpers/customModels.js:64:14) at async /app/server/endpoints/system.js:1070:35 [backend] error: TypeError: fetch failed at node:internal/deps/undici/undici:12637:11 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async ollamaAIModels (/app/server/utils/helpers/customModels.js:384:18) at async getCustomModels (/app/server/utils/helpers/customModels.js:64:14) at async /app/server/endpoints/system.js:1070:35 ``` ### Are there known steps to reproduce? _No response_
yindo added the possible bug label 2026-02-22 18:32:17 -05:00
yindo closed this issue 2026-02-22 18:32:17 -05:00
Author
Owner

@shatfield4 commented on GitHub (Dec 22, 2025):

It looks like your custom docker-compose.yml is having some conflicts with the db service.

Please read the instructions here to get this running in docker properly: https://github.com/Mintplex-Labs/anything-llm/blob/master/docker/HOW_TO_USE_DOCKER.md.

We also provide a sample docker-compose.yml here so I would suggest that you try running our provided one and if you can get that to work then start to narrow down which part is causing the issues in your custom docker-compose.yml.

Closing since this is a custom docker-compose.yml but if you run into any issues using the one we provide feel free to respond here and we'd be more than happy to reopen.

@shatfield4 commented on GitHub (Dec 22, 2025): It looks like your custom `docker-compose.yml` is having some conflicts with the db service. Please read the instructions here to get this running in docker properly: https://github.com/Mintplex-Labs/anything-llm/blob/master/docker/HOW_TO_USE_DOCKER.md. We also provide a sample `docker-compose.yml` [here](https://github.com/Mintplex-Labs/anything-llm/blob/master/docker/docker-compose.yml) so I would suggest that you try running our provided one and if you can get that to work then start to narrow down which part is causing the issues in your custom `docker-compose.yml`. Closing since this is a custom `docker-compose.yml` but if you run into any issues using the one we provide feel free to respond here and we'd be more than happy to reopen.
yindo changed title from [BUG]: AnythingLLM Docker Failed to load after selecting the LLM Provider to [GH-ISSUE #4799] [BUG]: AnythingLLM Docker Failed to load after selecting the LLM Provider 2026-06-05 14:49:51 -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#3021