[GH-ISSUE #1793] [BUG]: Agent session close immediately after invoking #1171

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

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

How are you running AnythingLLM?

AnythingLLM desktop app

What happened?

when @agent invoked, the session completed immediately
''
Agent @agent invoked.
Swapping over to agent chat. Type /exit to exit agent execution loop early.
Agent session complete.

''
Chat functionality is working fine.

The same setup on Mac works fine.

Are there known steps to reproduce?

Not sure

Originally created by @ws510 on GitHub (Jun 30, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1793 ### How are you running AnythingLLM? AnythingLLM desktop app ### What happened? when @agent invoked, the session completed immediately '' Agent @agent invoked. Swapping over to agent chat. Type /exit to exit agent execution loop early. Agent session complete. '' Chat functionality is working fine. The same setup on Mac works fine. ### Are there known steps to reproduce? Not sure
yindo added the needs info / can't replicate label 2026-02-22 18:23:30 -05:00
yindo closed this issue 2026-02-22 18:23:30 -05:00
Author
Owner

@shatfield4 commented on GitHub (Jul 1, 2024):

What chat model are you using here?

@shatfield4 commented on GitHub (Jul 1, 2024): What chat model are you using here?
Author
Owner

@ws510 commented on GitHub (Jul 2, 2024):

I was using Azure OpenAI, and I also tried LLama3.

Song

On Mon, 1 Jul 2024 at 22:57, Sean Hatfield @.***> wrote:

What chat model are you using here?


Reply to this email directly, view it on GitHub
https://github.com/Mintplex-Labs/anything-llm/issues/1793#issuecomment-2201145741,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARBPN5UIOQIERJWPE4T3SGLZKHGGBAVCNFSM6AAAAABKEAXHI2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBRGE2DKNZUGE
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Best Regards

Prof. Song Wu

@ws510 commented on GitHub (Jul 2, 2024): I was using Azure OpenAI, and I also tried LLama3. Song On Mon, 1 Jul 2024 at 22:57, Sean Hatfield ***@***.***> wrote: > What chat model are you using here? > > — > Reply to this email directly, view it on GitHub > <https://github.com/Mintplex-Labs/anything-llm/issues/1793#issuecomment-2201145741>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ARBPN5UIOQIERJWPE4T3SGLZKHGGBAVCNFSM6AAAAABKEAXHI2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBRGE2DKNZUGE> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> > -- Best Regards Prof. Song Wu
Author
Owner

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

Can you run the app in debug mode? This very well could be related to a firewall or other client-side setting on the machine preventing websockets from running. There should be some logs when in debug mode or at least an error

https://docs.useanything.com/debug

@timothycarambat commented on GitHub (Jul 2, 2024): Can you run the app in debug mode? This very well could be related to a firewall or other client-side setting on the machine preventing websockets from running. There should be some logs when in debug mode or at least an error https://docs.useanything.com/debug
Author
Owner

@ws510 commented on GitHub (Jul 2, 2024):

Here are the logging details:

C:\Program Files\AnythingLLM>anythingllm.exe

C:\Program Files\AnythingLLM>
[Preferences] preference config stored at
C:\Users\con3wus\AppData\Roaming\anythingllm-desktop\config.json
Prisma schema loaded from prisma\schema.prisma
Datasource "db": SQLite database "anythingllm.db" at
"file:C:/Users/con3wus/AppData/Roaming/anythingllm-desktop/storage/anythingllm.db"

Already in sync, no schema change or pending migration was found.

Running generate... (Use --skip-generate to skip the generators)
Error: EPERM: operation not permitted, copyfile
'C:\Users\con3wus\AppData\Roaming\Prisma\master\61e140623197a131c2a6189271ffee05a7aa9a59\windows\libquery-engine'
-> 'C:\Program
Files\AnythingLLM\resources\backend\node_modules\prisma\query_engine-windows.dll.node'
Prisma schema loaded from prisma\schema.prisma
Error: EPERM: operation not permitted, copyfile
'C:\Users\con3wus\AppData\Roaming\Prisma\master\61e140623197a131c2a6189271ffee05a7aa9a59\windows\libquery-engine'
-> 'C:\Program
Files\AnythingLLM\resources\backend\node_modules\prisma\query_engine-windows.dll.node'
[OllamaProcessManager] Ollama will bind on port 53620 when booted.
[Preferences] Will load window with last know bounds.
Collector hot directory and tmp storage wiped!
[production] AnythingLLM Standalone Document processor listening on port
8888
[TELEMETRY ENABLED] Anonymous Telemetry enabled. Telemetry helps Mintplex
Labs Inc improve AnythingLLM.
prisma:info Starting a sqlite pool with 9 connections.
[TELEMETRY SENT] {
event: 'server_boot',
distinctId: '2ae1db55-9dca-448f-b0ba-8393e33a5917',
properties: { runtime: 'desktop' }
}
Skipping preloading of AnythingLLMOllama - LLM_PROVIDER is azure.
[CommunicationKey] RSA key pair generated for signed payloads within
AnythingLLM services.
[EncryptionManager] Loaded existing key & salt for encrypting arbitrary
data.
[production] AnythingLLM Standalone Backend listening on port 53619
[BackgroundWorkerService] Feature is not enabled and will not be started.
[TELEMETRY SENT] {
event: 'sent_chat',
distinctId: '2ae1db55-9dca-448f-b0ba-8393e33a5917',
properties: {
multiUserMode: false,
LLMSelection: 'azure',
Embedder: 'native',
VectorDbSelection: 'lancedb',
runtime: 'desktop'
}
}
[Event Logged] - sent_chat
[NativeEmbedder] Initialized
[TELEMETRY SENT] {
event: 'workspace_thread_created',
distinctId: '2ae1db55-9dca-448f-b0ba-8393e33a5917',
properties: {
multiUserMode: false,
LLMSelection: 'azure',
Embedder: 'native',
VectorDbSelection: 'lancedb',
runtime: 'desktop'
}
}
[Event Logged] - workspace_thread_created
[TELEMETRY SENT] {
event: 'sent_chat',
distinctId: '2ae1db55-9dca-448f-b0ba-8393e33a5917',
properties: {
multiUserMode: false,
LLMSelection: 'azure',
Embedder: 'native',
VectorDbSelection: 'lancedb',
runtime: 'desktop'
}
}
[Event Logged] - sent_chat

On Tue, 2 Jul 2024 at 17:33, Timothy Carambat @.***>
wrote:

Can you run the app in debug mode? This very well could be related to a
firewall or other client-side setting on the machine preventing websockets
from running. There should be some logs when in debug mode or at least an
error

https://docs.useanything.com/debug


Reply to this email directly, view it on GitHub
https://github.com/Mintplex-Labs/anything-llm/issues/1793#issuecomment-2203784520,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARBPN5TRFVDXDNR2K4MO6MDZKLI6LAVCNFSM6AAAAABKEAXHI2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBTG44DINJSGA
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Best Regards

Prof. Song Wu

@ws510 commented on GitHub (Jul 2, 2024): Here are the logging details: C:\Program Files\AnythingLLM>anythingllm.exe C:\Program Files\AnythingLLM> [Preferences] preference config stored at C:\Users\con3wus\AppData\Roaming\anythingllm-desktop\config.json Prisma schema loaded from prisma\schema.prisma Datasource "db": SQLite database "anythingllm.db" at "file:C:/Users/con3wus/AppData/Roaming/anythingllm-desktop/storage/anythingllm.db" Already in sync, no schema change or pending migration was found. Running generate... (Use --skip-generate to skip the generators) Error: EPERM: operation not permitted, copyfile 'C:\Users\con3wus\AppData\Roaming\Prisma\master\61e140623197a131c2a6189271ffee05a7aa9a59\windows\libquery-engine' -> 'C:\Program Files\AnythingLLM\resources\backend\node_modules\prisma\query_engine-windows.dll.node' Prisma schema loaded from prisma\schema.prisma Error: EPERM: operation not permitted, copyfile 'C:\Users\con3wus\AppData\Roaming\Prisma\master\61e140623197a131c2a6189271ffee05a7aa9a59\windows\libquery-engine' -> 'C:\Program Files\AnythingLLM\resources\backend\node_modules\prisma\query_engine-windows.dll.node' [OllamaProcessManager] Ollama will bind on port 53620 when booted. [Preferences] Will load window with last know bounds. Collector hot directory and tmp storage wiped! [production] AnythingLLM Standalone Document processor listening on port 8888 [TELEMETRY ENABLED] Anonymous Telemetry enabled. Telemetry helps Mintplex Labs Inc improve AnythingLLM. prisma:info Starting a sqlite pool with 9 connections. [TELEMETRY SENT] { event: 'server_boot', distinctId: '2ae1db55-9dca-448f-b0ba-8393e33a5917', properties: { runtime: 'desktop' } } Skipping preloading of AnythingLLMOllama - LLM_PROVIDER is azure. [CommunicationKey] RSA key pair generated for signed payloads within AnythingLLM services. [EncryptionManager] Loaded existing key & salt for encrypting arbitrary data. [production] AnythingLLM Standalone Backend listening on port 53619 [BackgroundWorkerService] Feature is not enabled and will not be started. [TELEMETRY SENT] { event: 'sent_chat', distinctId: '2ae1db55-9dca-448f-b0ba-8393e33a5917', properties: { multiUserMode: false, LLMSelection: 'azure', Embedder: 'native', VectorDbSelection: 'lancedb', runtime: 'desktop' } } [Event Logged] - sent_chat [NativeEmbedder] Initialized [TELEMETRY SENT] { event: 'workspace_thread_created', distinctId: '2ae1db55-9dca-448f-b0ba-8393e33a5917', properties: { multiUserMode: false, LLMSelection: 'azure', Embedder: 'native', VectorDbSelection: 'lancedb', runtime: 'desktop' } } [Event Logged] - workspace_thread_created [TELEMETRY SENT] { event: 'sent_chat', distinctId: '2ae1db55-9dca-448f-b0ba-8393e33a5917', properties: { multiUserMode: false, LLMSelection: 'azure', Embedder: 'native', VectorDbSelection: 'lancedb', runtime: 'desktop' } } [Event Logged] - sent_chat On Tue, 2 Jul 2024 at 17:33, Timothy Carambat ***@***.***> wrote: > Can you run the app in debug mode? This very well could be related to a > firewall or other client-side setting on the machine preventing websockets > from running. There should be some logs when in debug mode or at least an > error > > https://docs.useanything.com/debug > > — > Reply to this email directly, view it on GitHub > <https://github.com/Mintplex-Labs/anything-llm/issues/1793#issuecomment-2203784520>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ARBPN5TRFVDXDNR2K4MO6MDZKLI6LAVCNFSM6AAAAABKEAXHI2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBTG44DINJSGA> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> > -- Best Regards Prof. Song Wu
Author
Owner

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

This is weird, it looks like something is holding the DB client. Are you sure you have no other processes of AnythingLLM running or any other NodeJS processes that might be interacting with port 3001 or otherwise?

@timothycarambat commented on GitHub (Jul 2, 2024): This is weird, it looks like something is holding the DB client. Are you sure you have no other processes of AnythingLLM running or any other NodeJS processes that might be interacting with port 3001 or otherwise?
yindo changed title from [BUG]: Agent session close immediately after invoking to [GH-ISSUE #1793] [BUG]: Agent session close immediately after invoking 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#1171