[GH-ISSUE #1915] [BUG]: Permission denied when uploading to workspace #1245

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

Originally created by @Tim-Hoekstra on GitHub (Jul 22, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1915

Originally assigned to: @timothycarambat on GitHub.

How are you running AnythingLLM?

Docker (local)

What happened?

Issue with File Upload in Docker Container

I encountered an issue while uploading a file to my Docker container. The progress wasn't moving, and when I dragged a second file, I received a "permission denied" error for the directory /app/collector/hotdir. The dir is owned by root.

Steps to Resolve

  1. I accessed the container as the root user:

    docker exec -u root -it 1573ccc33354 bash
    
  2. I changed the ownership of the directory to allow uploads:

    chown -R anythingllm:anythingllm /app/collector/hotdir
    

After this change, the uploads worked fine.

Steps to Reproduce

I ran docker command, went to web ui, selected single user and no password, selected OpenAI then gpt4 mini put api key in webui. Changed vector db to openai small. tried to upload and that's what I got. Environment: Linux.

Running the Docker Container

I set up the storage location and ran the Docker container with the following commands:

export STORAGE_LOCATION=$HOME/anythingllm && \
mkdir -p $STORAGE_LOCATION && \
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
Originally created by @Tim-Hoekstra on GitHub (Jul 22, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1915 Originally assigned to: @timothycarambat on GitHub. ### How are you running AnythingLLM? Docker (local) ### What happened? ## Issue with File Upload in Docker Container I encountered an issue while uploading a file to my Docker container. The progress wasn't moving, and when I dragged a second file, I received a "permission denied" error for the directory `/app/collector/hotdir`. The dir is owned by root. ### Steps to Resolve 1. I accessed the container as the root user: ```bash docker exec -u root -it 1573ccc33354 bash ``` 2. I changed the ownership of the directory to allow uploads: ```bash chown -R anythingllm:anythingllm /app/collector/hotdir ``` After this change, the uploads worked fine. ### Steps to Reproduce I ran docker command, went to web ui, selected single user and no password, selected OpenAI then gpt4 mini put api key in webui. Changed vector db to openai small. tried to upload and that's what I got. Environment: Linux. ### Running the Docker Container I set up the storage location and ran the Docker container with the following commands: ```bash export STORAGE_LOCATION=$HOME/anythingllm && \ mkdir -p $STORAGE_LOCATION && \ 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
yindo added the bug label 2026-02-22 18:23:54 -05:00
yindo closed this issue 2026-02-22 18:23:54 -05:00
yindo changed title from [BUG]: Permission denied when uploading to workspace to [GH-ISSUE #1915] [BUG]: Permission denied when uploading to workspace 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#1245