[GH-ISSUE #1786] [BUG]: Docker Compose Install - Error #1170

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

Originally created by @SerenityNrrd on GitHub (Jun 28, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1786

How are you running AnythingLLM?

Docker (local)

What happened?

No matter what I try, I keep getting this error when I try to bring the docker up.

2024-06-28 18:58:44 Environment variables loaded from .env
2024-06-28 18:58:44 Prisma schema loaded from prisma/schema.prisma
2024-06-28 18:58:44 Datasource "db": SQLite database "anythingllm.db" at "file:../storage/anythingllm.db"
2024-06-28 18:58:44
2024-06-28 18:58:44 Error: Schema engine error:
2024-06-28 18:58:44 SQLite database error
2024-06-28 18:58:44 unable to open database file: ../storage/anythingllm.db
2024-06-28 18:58:44

Are there known steps to reproduce?

No response

Originally created by @SerenityNrrd on GitHub (Jun 28, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1786 ### How are you running AnythingLLM? Docker (local) ### What happened? No matter what I try, I keep getting this error when I try to bring the docker up. 2024-06-28 18:58:44 Environment variables loaded from .env 2024-06-28 18:58:44 Prisma schema loaded from prisma/schema.prisma 2024-06-28 18:58:44 Datasource "db": SQLite database "anythingllm.db" at "file:../storage/anythingllm.db" 2024-06-28 18:58:44 2024-06-28 18:58:44 Error: Schema engine error: 2024-06-28 18:58:44 SQLite database error 2024-06-28 18:58:44 unable to open database file: ../storage/anythingllm.db 2024-06-28 18:58:44 ### Are there known steps to reproduce? _No response_
yindo added the possible bug label 2026-02-22 18:23:28 -05:00
yindo closed this issue 2026-02-22 18:23:28 -05:00
Author
Owner

@timothycarambat commented on GitHub (Jun 28, 2024):

Likely permission issues as the docker container cannot write to the attached binded volume location to create the anythingllm.db file.

https://docs.useanything.com/installation/self-hosted/local-docker

chmod your volume you are mounting with the container and then the container will be able to write to that location all the storage files required for operation

@timothycarambat commented on GitHub (Jun 28, 2024): Likely permission issues as the docker container cannot write to the attached binded volume location to create the `anythingllm.db` file. https://docs.useanything.com/installation/self-hosted/local-docker `chmod` your volume you are mounting with the container and then the container will be able to write to that location all the storage files required for operation
Author
Owner

@caifanfan commented on GitHub (Jul 5, 2024):

需要给与公共读写权限,这是我的解决方案:
chmod 777 /var/lib/anythingllm
chmod 777 /var/lib/anythingllm/.env

@caifanfan commented on GitHub (Jul 5, 2024): 需要给与公共读写权限,这是我的解决方案: chmod 777 /var/lib/anythingllm chmod 777 /var/lib/anythingllm/.env
yindo changed title from [BUG]: Docker Compose Install - Error to [GH-ISSUE #1786] [BUG]: Docker Compose Install - Error 2026-06-05 14:39:20 -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#1170