Mintplex-Labs / anything-llm

The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, and more.
https://anythingllm.com
MIT License
27.23k stars 2.73k forks source link

[BUG]: docker image crashes #2294

Closed thistleknot closed 2 months ago

thistleknot commented 2 months ago

How are you running AnythingLLM?

Docker (local)

What happened?

docker pull mintplexlabs/anythingllm

export STORAGE_LOCATION=/mnt/intRaid_/anythingllm

touch "$STORAGE_LOCATION/.env"

ls /mnt/intRaid_/anythingllm/ -latr

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

crashes

docker logs a7a0dff32a25023fcd7b3ce57f976f643ca067e850563096fde9eca740b0e726

[collector] info: Collector hot directory and tmp storage wiped! [collector] info: Document processor app listening on port 8888 Environment variables loaded from .env Prisma schema loaded from prisma/schema.prisma

✔ Generated Prisma Client (v5.3.1) to ./node_modules/@prisma/client in 1.17s

Start using Prisma Client in Node.js (See: https://pris.ly/d/client) import { PrismaClient } from '@prisma/client' const prisma = new PrismaClient()

or start using Prisma Client at the edge (See: https://pris.ly/d/accelerate) import { PrismaClient } from '@prisma/client/edge' const prisma = new PrismaClient()

See other ways of importing Prisma Client: http://pris.ly/d/importing-client

Environment variables loaded from .env Prisma schema loaded from prisma/schema.prisma Datasource "db": SQLite database "anythingllm.db" at "file:../storage/anythingllm.db"

Error: Schema engine error: SQLite database error unable to open database file: ../storage/anythingllm.db

Are there known steps to reproduce?

Steps to Reproduce the Error

docker pull mintplexlabs/anythingllm

export STORAGE_LOCATION=/mnt/intRaid_/anythingllm

ls /mnt/intRaid_/anythingllm

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

docker logs <container_id>

python 3.10 oracle linux 8

thistleknot commented 2 months ago

fixed chmod -R 777 /mnt/{whereve you are mounting using -v} https://github.com/Mintplex-Labs/anything-llm/issues/1996