[GH-ISSUE #5433] [BUG]: Facing a build bug when docker compose is run #5087

Closed
opened 2026-06-05 14:51:56 -04:00 by yindo · 2 comments
Owner

Originally created by @AsbestosLampshade on GitHub (Apr 14, 2026).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/5433

How are you running AnythingLLM?

Docker (local)

What happened?

Followed the steps, copied .env and ran docker compose --build as specified.
Faced the below issue:
Step 8/59 : RUN (getent passwd "$ARG_UID" && userdel -f "$(getent passwd "$ARG_UID" | cut -d: -f1)") || true && (getent group "$ARG_GID" && groupdel "$(getent group "$ARG_GID" | cut -d: -f1)") || true && groupadd -g "$ARG_GID" anythingllm && useradd -l -u "$ARG_UID" -m -d /app -s /bin/bash -g anythingllm anythingllm && mkdir -p /app/frontend/ /app/server/ /app/collector/ && chown -R anythingllm:anythingllm /app ---> Running in acec541f0888 groupadd: invalid group ID '' [+] up 0/1 ⠙ Image anythingllm-anything-llm Building

Are there known steps to reproduce?

Standard docker build procedure,
local docker build,
linux.

LLM Provider & Model (if applicable)

NA

Embedder Provider & Model (if applicable)

NA

Originally created by @AsbestosLampshade on GitHub (Apr 14, 2026). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/5433 ### How are you running AnythingLLM? Docker (local) ### What happened? Followed the steps, copied .env and ran docker compose --build as specified. Faced the below issue: Step 8/59 : RUN (getent passwd "$ARG_UID" && userdel -f "$(getent passwd "$ARG_UID" | cut -d: -f1)") || true && (getent group "$ARG_GID" && groupdel "$(getent group "$ARG_GID" | cut -d: -f1)") || true && groupadd -g "$ARG_GID" anythingllm && useradd -l -u "$ARG_UID" -m -d /app -s /bin/bash -g anythingllm anythingllm && mkdir -p /app/frontend/ /app/server/ /app/collector/ && chown -R anythingllm:anythingllm /app ---> Running in acec541f0888 groupadd: invalid group ID '' [+] up 0/1 ⠙ Image anythingllm-anything-llm Building ### Are there known steps to reproduce? Standard docker build procedure, local docker build, linux. ### LLM Provider & Model (if applicable) NA ### Embedder Provider & Model (if applicable) NA
yindo added the possible bug label 2026-06-05 14:51:56 -04:00
yindo closed this issue 2026-06-05 14:51:56 -04:00
Author
Owner

@timothycarambat commented on GitHub (Apr 14, 2026):

This error occurs because the UID and GID environment variables are empty when the Docker build runs.

After copying .env.example to .env, make sure the UID and GID values are set. You can either use the defaults:

UID=1000
GID=1000

Or set them to match your actual user/group IDs:

UID=$(id -u)
GID=$(id -g)

Check your docker/.env file to confirm these variables aren't commented out or missing.

<!-- gh-comment-id:4246265403 --> @timothycarambat commented on GitHub (Apr 14, 2026): This error occurs because the `UID` and `GID` environment variables are empty when the Docker build runs. After copying `.env.example` to `.env`, make sure the `UID` and `GID` values are set. You can either use the defaults: ```bash UID=1000 GID=1000 ``` Or set them to match your actual user/group IDs: ```bash UID=$(id -u) GID=$(id -g) ``` Check your `docker/.env` file to confirm these variables aren't commented out or missing.
Author
Owner

@AsbestosLampshade commented on GitHub (Apr 14, 2026):

Thanks! during the compile procedure, I figured that not having buildx installed was the issue, buildx is not installed by default on arch aur installs, it might be helpful to keep a notice within the documentation.

<!-- gh-comment-id:4248766019 --> @AsbestosLampshade commented on GitHub (Apr 14, 2026): Thanks! during the compile procedure, I figured that not having buildx installed was the issue, buildx is not installed by default on arch aur installs, it might be helpful to keep a notice within the documentation.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#5087