[GH-ISSUE #4446] [BUG]: Removing document folder results in prisma error #2835

Closed
opened 2026-02-22 18:31:28 -05:00 by yindo · 1 comment
Owner

Originally created by @socketbox on GitHub (Sep 29, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4446

How are you running AnythingLLM?

Docker (local)

What happened?

In the Documents UI, I select a folder and then the trash-can icon. In the UI, I see two throbbers, each of which is accompanied by the text "Removing xxx documents and 1 folders. Please wait."

Removal of the documents proceeds at about 2 seconds per document. However, the removal of some documents produces the following error:

[backend] info: [Event Logged] - workspace_documents_removed
[backend] info: [Event Logged] - workspace_documents_removed
[backend] info: [Event Logged] - workspace_documents_removed
[backend] info: Purging source document of github-docs-main-e93e/contentorganizationsmanaging-organization-settingsdisabling-or-limiting-github-actions-for-your-organization.md-11c2dbb3-64df-4ea4-98b9-b66c24c11295.json.
[backend] info: [Event Logged] - workspace_documents_removed
[backend] info: [Event Logged] - workspace_documents_removed
[backend] info: [Event Logged] - workspace_documents_removed
[backend] info: prisma:error
Invalid `prisma.document_vectors.deleteMany()` invocation:


Error occurred during query execution:
ConnectorError(ConnectorError { user_facing_error: None, kind: ConnectionError(Timed out during query execution.), transient: false })
[backend] error:
Invalid `prisma.document_vectors.deleteMany()` invocation:


Error occurred during query execution:
ConnectorError(ConnectorError { user_facing_error: None, kind: ConnectionError(Timed out during query execution.), transient: false })
[backend] info: [Event Logged] - workspace_documents_removed
[backend] info: [Event Logged] - workspace_documents_removed
[backend] info: [Event Logged] - workspace_documents_removed

Eventually, terminal output stops with this error:

[backend] error: Error: lance error: Commit conflict for version 10837: There was a concurrent commit that conflicts with this one and it cannot be automatically resolved. Please rerun the operation off the latest version of the table.
 Transaction: Transaction { read_version: 10836, uuid: "ba45db35-82d4-40fa-ad4f-99a11ec47a06", operation: Delete { updated_fragments: [], deleted_fragment_ids: [2586], predicate: "id IN ('9cdd4f76-499a-4c52-b687-26c3c27ed79e','51603e9e-7050-4cfd-9027-10509e7c2318','520262a4-5918-4b31-baea-c7e8d44cc548','3facffaa-2ae3-43cf-9e96-5074ec3b8ca0','906cf4b8-9a41-4beb-9b5a-b0f2434832c8','3793dec9-1a6e-4e64-885b-cc482a4ae0aa','60a20cf0-b637-473b-b58e-a889180fdf6e','a784a402-a29f-4d2e-8dfe-4a9e0373530d','6a96bd61-081a-4940-9bf0-2d47b0da45a3')" }, blobs_op: None, tag: None }
 Conflicting Transaction: Some(Transaction { read_version: 10836, uuid: "f0df7258-686d-4654-a719-0d480c265a6d", operation: Delete { updated_fragments: [], deleted_fragment_ids: [2586], predicate: "id IN ('9cdd4f76-499a-4c52-b687-26c3c27ed79e','51603e9e-7050-4cfd-9027-10509e7c2318','520262a4-5918-4b31-baea-c7e8d44cc548','3facffaa-2ae3-43cf-9e96-5074ec3b8ca0','906cf4b8-9a41-4beb-9b5a-b0f2434832c8','3793dec9-1a6e-4e64-885b-cc482a4ae0aa','60a20cf0-b637-473b-b58e-a889180fdf6e','a784a402-a29f-4d2e-8dfe-4a9e0373530d','6a96bd61-081a-4940-9bf0-2d47b0da45a3')" }, blobs_op: None, tag: None }), /home/build_user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/lance-0.22.0/src/io/commit.rs:149:23  Caused by: Commit conflict for version 10837: There was a concurrent commit that conflicts with this one and it cannot be automatically resolved. Please rerun the operation off the latest version of the table.
   Transaction: Transaction { read_version: 10836, uuid: "ba45db35-82d4-40fa-ad4f-99a11ec47a06", operation: Delete { updated_fragments: [], deleted_fragment_ids: [2586], predicate: "id IN ('9cdd4f76-499a-4c52-b687-26c3c27ed79e','51603e9e-7050-4cfd-9027-10509e7c2318','520262a4-5918-4b31-baea-c7e8d44cc548','3facffaa-2ae3-43cf-9e96-5074ec3b8ca0','906cf4b8-9a41-4beb-9b5a-b0f2434832c8','3793dec9-1a6e-4e64-885b-cc482a4ae0aa','60a20cf0-b637-473b-b58e-a889180fdf6e','a784a402-a29f-4d2e-8dfe-4a9e0373530d','6a96bd61-081a-4940-9bf0-2d47b0da45a3')" }, blobs_op: None, tag: None }
   Conflicting Transaction: Some(Transaction { read_version: 10836, uuid: "f0df7258-686d-4654-a719-0d480c265a6d", operation: Delete { updated_fragments: [], deleted_fragment_ids: [2586], predicate: "id IN ('9cdd4f76-499a-4c52-b687-26c3c27ed79e','51603e9e-7050-4cfd-9027-10509e7c2318','520262a4-5918-4b31-baea-c7e8d44cc548','3facffaa-2ae3-43cf-9e96-5074ec3b8ca0','906cf4b8-9a41-4beb-9b5a-b0f2434832c8','3793dec9-1a6e-4e64-885b-cc482a4ae0aa','60a20cf0-b637-473b-b58e-a889180fdf6e','a784a402-a29f-4d2e-8dfe-4a9e0373530d','6a96bd61-081a-4940-9bf0-2d47b0da45a3')" }, blobs_op: None, tag: None }), /home/build_user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/lance-0.22.0/src/io/commit.rs:149:23    Caused by: There was a concurrent commit that conflicts with this one and it cannot be automatically resolved. Please rerun the operation off the latest version of the table.
     Transaction: Transaction { read_version: 10836, uuid: "ba45db35-82d4-40fa-ad4f-99a11ec47a06", operation: Delete { updated_fragments: [], deleted_fragment_ids: [2586], predicate: "id IN ('9cdd4f76-499a-4c52-b687-26c3c27ed79e','51603e9e-7050-4cfd-9027-10509e7c2318','520262a4-5918-4b31-baea-c7e8d44cc548','3facffaa-2ae3-43cf-9e96-5074ec3b8ca0','906cf4b8-9a41-4beb-9b5a-b0f2434832c8','3793dec9-1a6e-4e64-885b-cc482a4ae0aa','60a20cf0-b637-473b-b58e-a889180fdf6e','a784a402-a29f-4d2e-8dfe-4a9e0373530d','6a96bd61-081a-4940-9bf0-2d47b0da45a3')" }, blobs_op: None, tag: None }
     Conflicting Transaction: Some(Transaction { read_version: 10836, uuid: "f0df7258-686d-4654-a719-0d480c265a6d", operation: Delete { updated_fragments: [], deleted_fragment_ids: [2586], predicate: "id IN ('9cdd4f76-499a-4c52-b687-26c3c27ed79e','51603e9e-7050-4cfd-9027-10509e7c2318','520262a4-5918-4b31-baea-c7e8d44cc548','3facffaa-2ae3-43cf-9e96-5074ec3b8ca0','906cf4b8-9a41-4beb-9b5a-b0f2434832c8','3793dec9-1a6e-4e64-885b-cc482a4ae0aa','60a20cf0-b637-473b-b58e-a889180fdf6e','a784a402-a29f-4d2e-8dfe-4a9e0373530d','6a96bd61-081a-4940-9bf0-2d47b0da45a3')" }, blobs_op: None, tag: None })

The docker container then stops.

When I execute docker run again, the terminal shows this:

[backend] info: [BackgroundWorkerService] Service started with 1 jobs ["cleanup-orphan-documents"]
prisma:info Starting a sqlite pool with 17 connections.
[backend] info: [131:260]: No direct uploads path found - exiting.
[bg-worker][cleanup-orphan-documents] info: [131:260]: No direct uploads path found - exiting.
[backend] warn: Child process exited with code 0 and signal null
[backend] info: Worker for job "cleanup-orphan-documents" exited with code 0
[backend] info: [MetaGenerator] fetching custom meta tag settings...

The folder that I initially wanted to delete is still present in the Documents list. Now, when I try to remove it, the number shown in the Removing xxx documents text has increased by a factor of over 20.

Running v1.8.5 (stable).

Are there known steps to reproduce?

No response

Originally created by @socketbox on GitHub (Sep 29, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4446 ### How are you running AnythingLLM? Docker (local) ### What happened? In the Documents UI, I select a folder and then the trash-can icon. In the UI, I see two throbbers, each of which is accompanied by the text "Removing xxx documents and 1 folders. Please wait." Removal of the documents proceeds at about 2 seconds per document. However, the removal of some documents produces the following error: ``` [backend] info: [Event Logged] - workspace_documents_removed [backend] info: [Event Logged] - workspace_documents_removed [backend] info: [Event Logged] - workspace_documents_removed [backend] info: Purging source document of github-docs-main-e93e/contentorganizationsmanaging-organization-settingsdisabling-or-limiting-github-actions-for-your-organization.md-11c2dbb3-64df-4ea4-98b9-b66c24c11295.json. [backend] info: [Event Logged] - workspace_documents_removed [backend] info: [Event Logged] - workspace_documents_removed [backend] info: [Event Logged] - workspace_documents_removed [backend] info: prisma:error Invalid `prisma.document_vectors.deleteMany()` invocation: Error occurred during query execution: ConnectorError(ConnectorError { user_facing_error: None, kind: ConnectionError(Timed out during query execution.), transient: false }) [backend] error: Invalid `prisma.document_vectors.deleteMany()` invocation: Error occurred during query execution: ConnectorError(ConnectorError { user_facing_error: None, kind: ConnectionError(Timed out during query execution.), transient: false }) [backend] info: [Event Logged] - workspace_documents_removed [backend] info: [Event Logged] - workspace_documents_removed [backend] info: [Event Logged] - workspace_documents_removed ``` Eventually, terminal output stops with this error: ``` [backend] error: Error: lance error: Commit conflict for version 10837: There was a concurrent commit that conflicts with this one and it cannot be automatically resolved. Please rerun the operation off the latest version of the table. Transaction: Transaction { read_version: 10836, uuid: "ba45db35-82d4-40fa-ad4f-99a11ec47a06", operation: Delete { updated_fragments: [], deleted_fragment_ids: [2586], predicate: "id IN ('9cdd4f76-499a-4c52-b687-26c3c27ed79e','51603e9e-7050-4cfd-9027-10509e7c2318','520262a4-5918-4b31-baea-c7e8d44cc548','3facffaa-2ae3-43cf-9e96-5074ec3b8ca0','906cf4b8-9a41-4beb-9b5a-b0f2434832c8','3793dec9-1a6e-4e64-885b-cc482a4ae0aa','60a20cf0-b637-473b-b58e-a889180fdf6e','a784a402-a29f-4d2e-8dfe-4a9e0373530d','6a96bd61-081a-4940-9bf0-2d47b0da45a3')" }, blobs_op: None, tag: None } Conflicting Transaction: Some(Transaction { read_version: 10836, uuid: "f0df7258-686d-4654-a719-0d480c265a6d", operation: Delete { updated_fragments: [], deleted_fragment_ids: [2586], predicate: "id IN ('9cdd4f76-499a-4c52-b687-26c3c27ed79e','51603e9e-7050-4cfd-9027-10509e7c2318','520262a4-5918-4b31-baea-c7e8d44cc548','3facffaa-2ae3-43cf-9e96-5074ec3b8ca0','906cf4b8-9a41-4beb-9b5a-b0f2434832c8','3793dec9-1a6e-4e64-885b-cc482a4ae0aa','60a20cf0-b637-473b-b58e-a889180fdf6e','a784a402-a29f-4d2e-8dfe-4a9e0373530d','6a96bd61-081a-4940-9bf0-2d47b0da45a3')" }, blobs_op: None, tag: None }), /home/build_user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/lance-0.22.0/src/io/commit.rs:149:23 Caused by: Commit conflict for version 10837: There was a concurrent commit that conflicts with this one and it cannot be automatically resolved. Please rerun the operation off the latest version of the table. Transaction: Transaction { read_version: 10836, uuid: "ba45db35-82d4-40fa-ad4f-99a11ec47a06", operation: Delete { updated_fragments: [], deleted_fragment_ids: [2586], predicate: "id IN ('9cdd4f76-499a-4c52-b687-26c3c27ed79e','51603e9e-7050-4cfd-9027-10509e7c2318','520262a4-5918-4b31-baea-c7e8d44cc548','3facffaa-2ae3-43cf-9e96-5074ec3b8ca0','906cf4b8-9a41-4beb-9b5a-b0f2434832c8','3793dec9-1a6e-4e64-885b-cc482a4ae0aa','60a20cf0-b637-473b-b58e-a889180fdf6e','a784a402-a29f-4d2e-8dfe-4a9e0373530d','6a96bd61-081a-4940-9bf0-2d47b0da45a3')" }, blobs_op: None, tag: None } Conflicting Transaction: Some(Transaction { read_version: 10836, uuid: "f0df7258-686d-4654-a719-0d480c265a6d", operation: Delete { updated_fragments: [], deleted_fragment_ids: [2586], predicate: "id IN ('9cdd4f76-499a-4c52-b687-26c3c27ed79e','51603e9e-7050-4cfd-9027-10509e7c2318','520262a4-5918-4b31-baea-c7e8d44cc548','3facffaa-2ae3-43cf-9e96-5074ec3b8ca0','906cf4b8-9a41-4beb-9b5a-b0f2434832c8','3793dec9-1a6e-4e64-885b-cc482a4ae0aa','60a20cf0-b637-473b-b58e-a889180fdf6e','a784a402-a29f-4d2e-8dfe-4a9e0373530d','6a96bd61-081a-4940-9bf0-2d47b0da45a3')" }, blobs_op: None, tag: None }), /home/build_user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/lance-0.22.0/src/io/commit.rs:149:23 Caused by: There was a concurrent commit that conflicts with this one and it cannot be automatically resolved. Please rerun the operation off the latest version of the table. Transaction: Transaction { read_version: 10836, uuid: "ba45db35-82d4-40fa-ad4f-99a11ec47a06", operation: Delete { updated_fragments: [], deleted_fragment_ids: [2586], predicate: "id IN ('9cdd4f76-499a-4c52-b687-26c3c27ed79e','51603e9e-7050-4cfd-9027-10509e7c2318','520262a4-5918-4b31-baea-c7e8d44cc548','3facffaa-2ae3-43cf-9e96-5074ec3b8ca0','906cf4b8-9a41-4beb-9b5a-b0f2434832c8','3793dec9-1a6e-4e64-885b-cc482a4ae0aa','60a20cf0-b637-473b-b58e-a889180fdf6e','a784a402-a29f-4d2e-8dfe-4a9e0373530d','6a96bd61-081a-4940-9bf0-2d47b0da45a3')" }, blobs_op: None, tag: None } Conflicting Transaction: Some(Transaction { read_version: 10836, uuid: "f0df7258-686d-4654-a719-0d480c265a6d", operation: Delete { updated_fragments: [], deleted_fragment_ids: [2586], predicate: "id IN ('9cdd4f76-499a-4c52-b687-26c3c27ed79e','51603e9e-7050-4cfd-9027-10509e7c2318','520262a4-5918-4b31-baea-c7e8d44cc548','3facffaa-2ae3-43cf-9e96-5074ec3b8ca0','906cf4b8-9a41-4beb-9b5a-b0f2434832c8','3793dec9-1a6e-4e64-885b-cc482a4ae0aa','60a20cf0-b637-473b-b58e-a889180fdf6e','a784a402-a29f-4d2e-8dfe-4a9e0373530d','6a96bd61-081a-4940-9bf0-2d47b0da45a3')" }, blobs_op: None, tag: None }) ``` The docker container then stops. When I execute `docker run` again, the terminal shows this: ``` [backend] info: [BackgroundWorkerService] Service started with 1 jobs ["cleanup-orphan-documents"] prisma:info Starting a sqlite pool with 17 connections. [backend] info: [131:260]: No direct uploads path found - exiting. [bg-worker][cleanup-orphan-documents] info: [131:260]: No direct uploads path found - exiting. [backend] warn: Child process exited with code 0 and signal null [backend] info: Worker for job "cleanup-orphan-documents" exited with code 0 [backend] info: [MetaGenerator] fetching custom meta tag settings... ``` The folder that I initially wanted to delete is still present in the Documents list. Now, when I try to remove it, the number shown in the `Removing xxx documents text` has increased by a factor of over 20. Running v1.8.5 (stable). ### Are there known steps to reproduce? _No response_
yindo added the possible buginvestigating labels 2026-02-22 18:31:28 -05:00
yindo closed this issue 2026-02-22 18:31:28 -05:00
Author
Owner

@timothycarambat commented on GitHub (Sep 29, 2025):

This is originating from the lance tables for the built in vectorDB throwing an error - causing the backend to crash resulting in the container exit.

We have seen this once before (https://github.com/Mintplex-Labs/anything-llm/issues/3991) but got no response to help replicate the issue.

@timothycarambat commented on GitHub (Sep 29, 2025): This is originating from the `lance` tables for the built in vectorDB throwing an error - causing the backend to crash resulting in the container exit. We have seen this once before (https://github.com/Mintplex-Labs/anything-llm/issues/3991) but got no response to help replicate the issue.
yindo changed title from [BUG]: Removing document folder results in prisma error to [GH-ISSUE #4446] [BUG]: Removing document folder results in prisma error 2026-06-05 14:48:49 -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#2835