[GH-ISSUE #1913] [BUG]: EACCESS : permission denied on file upload #1242

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

Originally created by @boooon95 on GitHub (Jul 21, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1913

How are you running AnythingLLM?

Docker (remote machine)

What happened?

Hello everyone,

I am trying to install anything-llm in a self-hosted setup on Alma Linux. Everything is going well and it works fine without RAG. However, when I try to add a file, I get the following error:
"Invalid file upload. EACCES: permission denied, open '/app/collector/hotdir/test.txt'"

I tried to change the permissions on the "documents" directory, but nothing works. I also tried to follow the guidance provided in #821, but I cannot find the correct directory structure.

I am using J'utilse ollama as LLM provider and lanceDB for the database

Any idea ?

Are there known steps to reproduce?

No response

Originally created by @boooon95 on GitHub (Jul 21, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1913 ### How are you running AnythingLLM? Docker (remote machine) ### What happened? Hello everyone, I am trying to install anything-llm in a self-hosted setup on Alma Linux. Everything is going well and it works fine without RAG. However, when I try to add a file, I get the following error: "Invalid file upload. EACCES: permission denied, open '/app/collector/hotdir/test.txt'" I tried to change the permissions on the "documents" directory, but nothing works. I also tried to follow the guidance provided in [#821](https://github.com/Mintplex-Labs/anything-llm/issues/821), but I cannot find the correct directory structure. I am using J'utilse ollama as LLM provider and lanceDB for the database Any idea ? ### Are there known steps to reproduce? _No response_
yindo added the possible bug label 2026-02-22 18:23:53 -05:00
yindo closed this issue 2026-02-22 18:23:53 -05:00
Author
Owner

@warrenwingaru commented on GitHub (Jul 21, 2024):

Experiencing this as well, Have you figured it out?

@warrenwingaru commented on GitHub (Jul 21, 2024): Experiencing this as well, Have you figured it out?
Author
Owner

@boooon95 commented on GitHub (Jul 22, 2024):

Still no luck, but I am continuing to search

@boooon95 commented on GitHub (Jul 22, 2024): Still no luck, but I am continuing to search
Author
Owner

@warrenwingaru commented on GitHub (Jul 22, 2024):

Found a solution that works well, you could volume mount the /app/collector/hotdir directory to host path. Files stored there are temporary anyways.

Here's a sample

services:
  anythingllm:
    image: mintplexlabs/anythingllm
    volumes:
      - ./data/anythingllm/storage:/app/server/storage
      - ./data/anythingllm/hotdir:/app/collector/hotdir
      - ./data/anythingllm/.env:/app/server/.env
    environment:
      - STORAGE_DIR=/app/server/storage
      
@warrenwingaru commented on GitHub (Jul 22, 2024): Found a solution that works well, you could volume mount the `/app/collector/hotdir` directory to host path. Files stored there are temporary anyways. Here's a sample ```yml services: anythingllm: image: mintplexlabs/anythingllm volumes: - ./data/anythingllm/storage:/app/server/storage - ./data/anythingllm/hotdir:/app/collector/hotdir - ./data/anythingllm/.env:/app/server/.env environment: - STORAGE_DIR=/app/server/storage ```
Author
Owner

@boooon95 commented on GitHub (Jul 22, 2024):

Thank you so much, it works great !
For those who are interested, here is a modified version of the command to run anything-llm on Linux using Docker:

export STORAGE_LOCATION=$HOME/anythingllm && \
mkdir -p $STORAGE_LOCATION && \
mkdir -p $STORAGE_LOCATION/hotdir && \
touch "$STORAGE_LOCATION/.env" && \
docker run -d -p 3001:3001 \
--name llm \
--cap-add SYS_ADMIN \
-v ${STORAGE_LOCATION}:/app/server/storage \
-v ${STORAGE_LOCATION}/hotdir:/app/collector/hotdir \
-v ${STORAGE_LOCATION}/.env:/app/server/.env \
-e STORAGE_DIR="/app/server/storage" \
mintplexlabs/anythingllm
@boooon95 commented on GitHub (Jul 22, 2024): Thank you so much, it works great ! For those who are interested, here is a modified version of the command to run anything-llm on Linux using Docker: ``` export STORAGE_LOCATION=$HOME/anythingllm && \ mkdir -p $STORAGE_LOCATION && \ mkdir -p $STORAGE_LOCATION/hotdir && \ touch "$STORAGE_LOCATION/.env" && \ docker run -d -p 3001:3001 \ --name llm \ --cap-add SYS_ADMIN \ -v ${STORAGE_LOCATION}:/app/server/storage \ -v ${STORAGE_LOCATION}/hotdir:/app/collector/hotdir \ -v ${STORAGE_LOCATION}/.env:/app/server/.env \ -e STORAGE_DIR="/app/server/storage" \ mintplexlabs/anythingllm ```
Author
Owner

@ragonneau commented on GitHub (Jul 22, 2024):

I am curious as to why this PR is closed... This looks to me like an actual bug of AnythingLLM.

@ragonneau commented on GitHub (Jul 22, 2024): I am curious as to why this PR is closed... This looks to me like an actual bug of AnythingLLM.
Author
Owner

@timothycarambat commented on GitHub (Jul 22, 2024):

It has already been fixed by #1915

@timothycarambat commented on GitHub (Jul 22, 2024): It has already been fixed by #1915
yindo changed title from [BUG]: EACCESS : permission denied on file upload to [GH-ISSUE #1913] [BUG]: EACCESS : permission denied on file upload 2026-06-05 14:39:43 -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#1242