[GH-ISSUE #4525] [BUG]: Prisma error on creating new workspace #2878

Closed
opened 2026-02-22 18:31:38 -05:00 by yindo · 7 comments
Owner

Originally created by @jpwoods92 on GitHub (Oct 10, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4525

How are you running AnythingLLM?

AnythingLLM desktop app

What happened?

Environment: Arch Linux 6.17.1

Error Message:

Error: Invalid prisma.workspaces.create() invocation: Prisma Client could not locate the Query Engine for runtime "debian-openssl-1.1.x". This happened because Prisma Client was generated for "debian-openssl-3.0.x", but the actual deployment required "debian-openssl-1.1.x". Add "debian-openssl-1.1.x" to binaryTargets in the "schema.prisma" file and run prisma generate after saving it: generator client { provider = "prisma-client-js" binaryTargets = ["native", "debian-openssl-1.1.x"] } The following locations have been searched: /tmp/.mount_AnythifPi5BL/resources/backend/node_modules/.prisma/client /home/tim/Documents/anything-llm-desktop/anything-llm/server/node_modules/.prisma/client /tmp/prisma-engines /tmp/.mount_AnythifPi5BL/resources/backend/prisma

Are there known steps to reproduce?

  1. Install v1.9.0 AppImage and run it
  2. Try to create a workspace
  3. See error
Originally created by @jpwoods92 on GitHub (Oct 10, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4525 ### How are you running AnythingLLM? AnythingLLM desktop app ### What happened? Environment: Arch Linux 6.17.1 Error Message: Error: Invalid `prisma.workspaces.create()` invocation: Prisma Client could not locate the Query Engine for runtime "debian-openssl-1.1.x". This happened because Prisma Client was generated for "debian-openssl-3.0.x", but the actual deployment required "debian-openssl-1.1.x". Add "debian-openssl-1.1.x" to `binaryTargets` in the "schema.prisma" file and run `prisma generate` after saving it: generator client { provider = "prisma-client-js" binaryTargets = ["native", "debian-openssl-1.1.x"] } The following locations have been searched: /tmp/.mount_AnythifPi5BL/resources/backend/node_modules/.prisma/client /home/tim/Documents/anything-llm-desktop/anything-llm/server/node_modules/.prisma/client /tmp/prisma-engines /tmp/.mount_AnythifPi5BL/resources/backend/prisma ### Are there known steps to reproduce? 1. Install v1.9.0 AppImage and run it 2. Try to create a workspace 3. See error
yindo added the possible bugDesktopOS: Linux labels 2026-02-22 18:31:38 -05:00
yindo closed this issue 2026-02-22 18:31:38 -05:00
Author
Owner

@timothycarambat commented on GitHub (Oct 10, 2025):

Is this x64 or aarch64?

@timothycarambat commented on GitHub (Oct 10, 2025): Is this x64 or aarch64?
Author
Owner

@jpwoods92 commented on GitHub (Oct 10, 2025):

Is this x64 or aarch64?

My system is x86_64 (Arch/CachyOS).

@jpwoods92 commented on GitHub (Oct 10, 2025): > Is this x64 or aarch64? My system is x86_64 (Arch/CachyOS).
Author
Owner

@timothycarambat commented on GitHub (Oct 10, 2025):

Just redid the entire build process for Linux because of Prisma issues and /tmp read-only mounts.
Just uploaded the new builds (and supporting installer script)

Please remove the current installer script you have and repull from https://cdn.anythingllm.com/latest/installer.sh

This dynamically will pull the appropriate Prisma runtime to the desktop storage folder as well as build the Prisma local client to your storage folder, both should be readable by the application easily since they are in $HOME/.config/anythingllm-desktop.

This patch should work and I can confirm functionality with these builds on two completely fresh Ubuntu VMs (x64 and arm64)

You will know if you are on the right version as the Linux version should now say "1.9.0-r1"

@timothycarambat commented on GitHub (Oct 10, 2025): Just redid the entire build process for Linux because of Prisma issues and `/tmp` read-only mounts. Just uploaded the new builds (and supporting installer script) Please remove the current installer script you have and repull from `https://cdn.anythingllm.com/latest/installer.sh` This dynamically will pull the appropriate Prisma runtime to the desktop storage folder as well as build the Prisma local client to your storage folder, both should be readable by the application easily since they are in `$HOME/.config/anythingllm-desktop`. This patch should work and I can confirm functionality with these builds on two _completely fresh_ Ubuntu VMs (x64 and arm64) You will know if you are on the right version as the Linux version should now say "1.9.0-r1"
Author
Owner

@jpwoods92 commented on GitHub (Oct 11, 2025):

here is the full output from booting via terminal:

❯ ./AnythingLLMDesktop.AppImage
[Preferences] preference config stored at /home/jacksonw/.config/anythingllm-desktop/config.json
Setting Prisma Client output directory to production build. {
clientOutputPath: '/home/jacksonw/.config/anythingllm-desktop/storage/.prisma/client'
}
[PrismaHelper] Pulling query_engine for debian-openssl-1.1.x from remote. {
remote: 'https://binaries.prisma.sh/all_commits/61e140623197a131c2a6189271ffee05a7aa9a59/debian-openssl-1.1.x/libquery_engine.so.node.gz'
}
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6745k 100 6745k 0 0 9143k 0 --:--:-- --:--:-- --:--:-- 9140k
[PrismaHelper] Downloaded query engine for debian-openssl-1.1.x!
Prisma schema loaded from prisma/schema.prisma
Datasource "db": SQLite database "anythingllm.db" at "file:/home/jacksonw/.config/anythingllm-desktop/storage/anythingllm.db"

Error: Schema engine exited. Error: Could not find schema-engine binary. Searched in:

  • /tmp/.mount_AnythiXHR4oa/resources/backend/node_modules/@prisma/engines/schema-engine-debian-openssl-1.1.x
  • /tmp/.mount_AnythiXHR4oa/resources/backend/node_modules/prisma/schema-engine-debian-openssl-1.1.x
  • /tmp/.mount_AnythiXHR4oa/resources/backend/node_modules/schema-engine-debian-openssl-1.1.x
  • /tmp/.mount_AnythiXHR4oa/resources/backend/node_modules/prisma/runtime/schema-engine-debian-openssl-1.1.x
    Prisma schema loaded from prisma/schema.prisma

✔ Generated Prisma Client (v5.3.1) to ./../../../../home/jacksonw/.config/anythingllm-desktop/storage/.prisma/client in 91ms

Start using Prisma Client in Node.js (See: https://pris.ly/d/client)

import { PrismaClient } from '../../../../home/jacksonw/.config/anythingllm-desktop/storage/.prisma/client'
const prisma = new PrismaClient()

or start using Prisma Client at the edge (See: https://pris.ly/d/accelerate)

import { PrismaClient } from '../../../../home/jacksonw/.config/anythingllm-desktop/storage/.prisma/client/edge'
const prisma = new PrismaClient()

See other ways of importing Prisma Client: http://pris.ly/d/importing-client

[OllamaProcessManager] Ollama will bind on port 39213 when booted.
[OllamaProcessManager] Creating Ollama models folder in application storage. {
destination: '/home/jacksonw/.config/anythingllm-desktop/storage/models/ollama'
}
[ManualBrowser] Listening for IPC messages from main renderer process!
[OllamaProcessManager] SINGLETON LOCK: Using existing OllamaProcessManager.
[OllamaProcessManager] [nix] Ollama subprocess running. Port 39213. PID 44224.

@timothycarambat

@jpwoods92 commented on GitHub (Oct 11, 2025): here is the full output from booting via terminal: ❯ ./AnythingLLMDesktop.AppImage [Preferences] preference config stored at /home/jacksonw/.config/anythingllm-desktop/config.json Setting Prisma Client output directory to production build. { clientOutputPath: '/home/jacksonw/.config/anythingllm-desktop/storage/.prisma/client' } [PrismaHelper] Pulling query_engine for debian-openssl-1.1.x from remote. { remote: 'https://binaries.prisma.sh/all_commits/61e140623197a131c2a6189271ffee05a7aa9a59/debian-openssl-1.1.x/libquery_engine.so.node.gz' } % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 6745k 100 6745k 0 0 9143k 0 --:--:-- --:--:-- --:--:-- 9140k [PrismaHelper] Downloaded query engine for debian-openssl-1.1.x! Prisma schema loaded from prisma/schema.prisma Datasource "db": SQLite database "anythingllm.db" at "file:/home/jacksonw/.config/anythingllm-desktop/storage/anythingllm.db" Error: Schema engine exited. Error: Could not find schema-engine binary. Searched in: - /tmp/.mount_AnythiXHR4oa/resources/backend/node_modules/@prisma/engines/schema-engine-debian-openssl-1.1.x - /tmp/.mount_AnythiXHR4oa/resources/backend/node_modules/prisma/schema-engine-debian-openssl-1.1.x - /tmp/.mount_AnythiXHR4oa/resources/backend/node_modules/schema-engine-debian-openssl-1.1.x - /tmp/.mount_AnythiXHR4oa/resources/backend/node_modules/prisma/runtime/schema-engine-debian-openssl-1.1.x Prisma schema loaded from prisma/schema.prisma ✔ Generated Prisma Client (v5.3.1) to ./../../../../home/jacksonw/.config/anythingllm-desktop/storage/.prisma/client in 91ms Start using Prisma Client in Node.js (See: https://pris.ly/d/client) ``` import { PrismaClient } from '../../../../home/jacksonw/.config/anythingllm-desktop/storage/.prisma/client' const prisma = new PrismaClient() ``` or start using Prisma Client at the edge (See: https://pris.ly/d/accelerate) ``` import { PrismaClient } from '../../../../home/jacksonw/.config/anythingllm-desktop/storage/.prisma/client/edge' const prisma = new PrismaClient() ``` See other ways of importing Prisma Client: http://pris.ly/d/importing-client [OllamaProcessManager] Ollama will bind on port 39213 when booted. [OllamaProcessManager] Creating Ollama models folder in application storage. { destination: '/home/jacksonw/.config/anythingllm-desktop/storage/models/ollama' } [ManualBrowser] Listening for IPC messages from main renderer process! [OllamaProcessManager] SINGLETON LOCK: Using existing OllamaProcessManager. [OllamaProcessManager] [nix] Ollama subprocess running. Port 39213. PID 44224. @timothycarambat
Author
Owner

@danielrehsmann commented on GitHub (Oct 13, 2025):

I have made a fresh install on Fedora:

I still get this error:

Error: Invalid `prisma.workspaces.create()` invocation: The table `main.workspaces` does not exist in the current database.
@danielrehsmann commented on GitHub (Oct 13, 2025): I have made a fresh install on Fedora: I still get this error: ``` Error: Invalid `prisma.workspaces.create()` invocation: The table `main.workspaces` does not exist in the current database. ```
Author
Owner

@timothycarambat commented on GitHub (Oct 13, 2025):

This is due to Prisma always attempting to unlink binaries in the /tmp mount of the AppImage. We patched the query engine, but now need to patch every other binary they pull. Will fix today with an r2 and will post here when live.

@timothycarambat commented on GitHub (Oct 13, 2025): This is due to Prisma always attempting to `unlink` binaries in the `/tmp` mount of the AppImage. We patched the query engine, but now need to patch every other binary they pull. Will fix today with an `r2` and will post here when live.
Author
Owner

@timothycarambat commented on GitHub (Oct 13, 2025):

Okay, patched

recommend just re-running the installer script as that will just run the process again. If you want direct download links:
x64: http://cdn.anythingllm.com/latest/AnythingLLMDesktop.AppImage
ARM64: http://cdn.anythingllm.com/latest/AnythingLLMDesktop-Arm64.AppImage

Should see 1.9.0-r2 in linux builds. This patch will then pull the appropriate runtime schema-engine prisma requires as well to run migrations.

Closing for now, will reopen if still causing issues and there is a valid trace

TY to @jpwoods92 for that trace 👍

@timothycarambat commented on GitHub (Oct 13, 2025): Okay, patched **recommend** just re-running the installer script as that will just run the process again. If you want direct download links: x64: http://cdn.anythingllm.com/latest/AnythingLLMDesktop.AppImage ARM64: http://cdn.anythingllm.com/latest/AnythingLLMDesktop-Arm64.AppImage Should see `1.9.0-r2` in linux builds. This patch will then pull the appropriate runtime schema-engine prisma requires as well to run migrations. **Closing for now, will reopen if still causing issues and there is a valid trace** TY to @jpwoods92 for that trace 👍
yindo changed title from [BUG]: Prisma error on creating new workspace to [GH-ISSUE #4525] [BUG]: Prisma error on creating new workspace 2026-06-05 14:49:02 -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#2878