[GH-ISSUE #2248] [BUG]: Agent auto closed #1465

Closed
opened 2026-02-22 18:24:57 -05:00 by yindo · 4 comments
Owner

Originally created by @albertmx on GitHub (Sep 8, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/2248

How are you running AnythingLLM?

Docker (local)

What happened?

image
image
image
I pull AnythingLLM via docker for the latest version. Setup Ollama locally and connected to AnythingLLM. The normal conversation has no issue. However, @agent always show completed whenever and whatever I try to call it. Is there an issue for AnythingLLM running via Docker?

Are there known steps to reproduce?

Create new workspace, new thread and try to call @agent with any instructions, it will complete without allowing me to integrate anything.

Originally created by @albertmx on GitHub (Sep 8, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/2248 ### How are you running AnythingLLM? Docker (local) ### What happened? ![image](https://github.com/user-attachments/assets/d507460a-1f6b-4875-942a-ccdb5e6c30f7) ![image](https://github.com/user-attachments/assets/3b7eccc3-1329-4f5d-b1fa-b5bf0f3f88e5) ![image](https://github.com/user-attachments/assets/a63f4270-8e9d-413e-b941-51f75f9125c1) I pull AnythingLLM via docker for the latest version. Setup Ollama locally and connected to AnythingLLM. The normal conversation has no issue. However, @agent always show completed whenever and whatever I try to call it. Is there an issue for AnythingLLM running via Docker? ### Are there known steps to reproduce? Create new workspace, new thread and try to call @agent with any instructions, it will complete without allowing me to integrate anything.
yindo added the possible bug label 2026-02-22 18:24:57 -05:00
yindo closed this issue 2026-02-22 18:24:57 -05:00
Author
Owner

@timothycarambat commented on GitHub (Sep 9, 2024):

You need to pull your docker logs <container_id> - most of the time it has to do with how you are running/accessing the container and the websocket connection hanging up.

Pull the logs when the error occurs and it should tell us more - closing until a reproducible bug is found

@timothycarambat commented on GitHub (Sep 9, 2024): You need to pull your `docker logs <container_id>` - most of the time it has to do with how you are running/accessing the container and the websocket connection hanging up. Pull the logs when the error occurs and it should tell us more - closing until a reproducible bug is found
Author
Owner

@albertmx commented on GitHub (Sep 9, 2024):

You need to pull your docker logs <container_id> - most of the time it has to do with how you are running/accessing the container and the websocket connection hanging up.

Pull the logs when the error occurs and it should tell us more - closing until a reproducible bug is found

Hi @timothycarambat, Thank you for your reply.

1
2
3
4
image
image

image

The Logs seems not helpful as it only mention sent chat.

Below is my installation command:
export STORAGE_LOCATION=$HOME/anythingllm &&
mkdir -p $STORAGE_LOCATION &&
touch "$STORAGE_LOCATION/.env" &&
docker run -d --restart=always --network=host --name AnythingLLM --cap-add SYS_ADMIN -v ${STORAGE_LOCATION}:/app/server/storage -v ${STORAGE_LOCATION}/.env:/app/server/.env -e STORAGE_DIR="/app/server/storage" -p 3001:3001 mintplexlabs/anythingllm

Then I use nginx to redirect the port:
#Edit the Nginx conf file
server {
listen 80;
location / {
proxy_pass http://my_internal_ip_address:3001;
}
}

I try a few times freshly install my ubuntu server, docker and then AnythingLLM, @agent had this same issue.
Thank you very much.

@albertmx commented on GitHub (Sep 9, 2024): > You need to pull your `docker logs <container_id>` - most of the time it has to do with how you are running/accessing the container and the websocket connection hanging up. > > Pull the logs when the error occurs and it should tell us more - closing until a reproducible bug is found Hi @timothycarambat, Thank you for your reply. ![1](https://github.com/user-attachments/assets/dc8cc878-2ef4-41aa-8464-702ffadb40c1) ![2](https://github.com/user-attachments/assets/e339c1be-b93f-4596-be6c-3fafa94d6499) ![3](https://github.com/user-attachments/assets/d61d8e8f-22e8-45d1-9b7a-24e7389afcb7) ![4](https://github.com/user-attachments/assets/e0d8c93f-e575-4d16-b117-758f25a28619) ![image](https://github.com/user-attachments/assets/4fd7fe6a-1033-4691-a319-acb0babd4b2d) ![image](https://github.com/user-attachments/assets/301324bf-c811-4453-8349-f4ad9dfd42af) ![image](https://github.com/user-attachments/assets/9db9776e-7a6a-4cd3-b70d-710ca375725c) The Logs seems not helpful as it only mention sent chat. Below is my installation command: export STORAGE_LOCATION=$HOME/anythingllm && \ mkdir -p $STORAGE_LOCATION && \ touch "$STORAGE_LOCATION/.env" && \ docker run -d --restart=always --network=host --name AnythingLLM --cap-add SYS_ADMIN -v ${STORAGE_LOCATION}:/app/server/storage -v ${STORAGE_LOCATION}/.env:/app/server/.env -e STORAGE_DIR="/app/server/storage" -p 3001:3001 mintplexlabs/anythingllm Then I use nginx to redirect the port: #Edit the Nginx conf file server { listen 80; location / { proxy_pass http://my_internal_ip_address:3001; } } I try a few times freshly install my ubuntu server, docker and then AnythingLLM, @agent had this same issue. Thank you very much.
Author
Owner

@timothycarambat commented on GitHub (Sep 9, 2024):

Ah! the same websocket proxy config for Nginx catching people again!
https://github.com/Mintplex-Labs/anything-llm/issues/1379#issuecomment-2338983228

example block to add

 # Enable websocket connections for agent protocol.
   location ~* ^/api/agent-invocation/(.*) {
      proxy_pass http://0.0.0.0:3001;
      proxy_http_version 1.1;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection "Upgrade";
   }
@timothycarambat commented on GitHub (Sep 9, 2024): Ah! the same `websocket` proxy config for Nginx catching people again! https://github.com/Mintplex-Labs/anything-llm/issues/1379#issuecomment-2338983228 example block to add ``` # Enable websocket connections for agent protocol. location ~* ^/api/agent-invocation/(.*) { proxy_pass http://0.0.0.0:3001; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; } ```
Author
Owner

@albertmx commented on GitHub (Sep 9, 2024):

Hi @timothycarambat,
Yes it works. Thank you very much : )

@albertmx commented on GitHub (Sep 9, 2024): Hi @timothycarambat, Yes it works. Thank you very much : )
yindo changed title from [BUG]: Agent auto closed to [GH-ISSUE #2248] [BUG]: Agent auto closed 2026-06-05 14:40:55 -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#1465