[GH-ISSUE #2346] [BUG]: AnythingLLM desktop fails to start #1528

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

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

How are you running AnythingLLM?

AnythingLLM desktop app

What happened?

On OSX 15.0 with anythingLLM 1.6.7, launching the desktop app does not open any window (does create a taskbar button and an electron/anythingllm menu but no window opens).

Running from the terminal, a window does open but it just shows a splash screen ("loading workspaces"). In the terminal I see the following error:

$ /Applications/AnythingLLM.app/Contents/MacOS/AnythingLLM
[Preferences] preference config stored at /Users/user/Library/Application Support/anythingllm-desktop/config.json
Prisma schema loaded from prisma/schema.prisma
Datasource "db": SQLite database "anythingllm.db" at "file:/Users/kosta/Library/Application Support/anythingllm-desktop/storage/anythingllm.db"

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

EPERM: operation not permitted, open '/Applications/AnythingLLM.app/Contents/Resources/backend/node_modules/.prisma/client/index.js'


Prisma schema loaded from prisma/schema.prisma
Error:
EPERM: operation not permitted, open '/Applications/AnythingLLM.app/Contents/Resources/backend/node_modules/.prisma/client/index.js'


[OllamaProcessManager] Ollama will bind on port 51418 when booted.
[Preferences] Will load window with last know bounds.
node:internal/modules/cjs/loader:1087
  throw err;
  ^

Error: Cannot find module '.prisma/client/index'
Require stack:
- /Applications/AnythingLLM.app/Contents/Resources/backend/node_modules/@prisma/client/index.js
- /Applications/AnythingLLM.app/Contents/Resources/backend/server.js
-
    at node:internal/modules/cjs/loader:1084:15
    at Function._resolveFilename (node:electron/js2c/utility_init:2:3040)
    at node:internal/modules/cjs/loader:929:27
    at Function._load (node:electron/js2c/asar_bundle:2:13327)
    at Module.require (node:internal/modules/cjs/loader:1150:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at Object.<anonymous> (/Applications/AnythingLLM.app/Contents/Resources/backend/node_modules/@prisma/client/index.js:2:6)
    at Module._compile (node:internal/modules/cjs/loader:1271:14)
    at Object..js (node:internal/modules/cjs/loader:1326:10)
    at Module.load (node:internal/modules/cjs/loader:1126:32) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Applications/AnythingLLM.app/Contents/Resources/backend/node_modules/@prisma/client/index.js',
    '/Applications/AnythingLLM.app/Contents/Resources/backend/server.js',
    undefined
  ]
}

Node.js v18.16.1
2024-09-22 09:33:44.540 AnythingLLM[10928:7789349] +[IMKClient subclass]: chose IMKClient_Legacy
2024-09-22 09:33:44.540 AnythingLLM[10928:7789349] +[IMKInputSession subclass]: chose IMKInputSession_Legacy
[collector] info: Collector hot directory and tmp storage wiped!
[collector] info: [production] AnythingLLM Standalone Document processor listening on port 8888.
^C[Preferences] Saving last_bounds preference.

Looking in the node_modules directory, I see that there is no .prisma folder.

Are there known steps to reproduce?

No response

Originally created by @sprig on GitHub (Sep 22, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/2346 ### How are you running AnythingLLM? AnythingLLM desktop app ### What happened? On OSX 15.0 with anythingLLM 1.6.7, launching the desktop app does not open any window (does create a taskbar button and an electron/anythingllm menu but no window opens). Running from the terminal, a window does open but it just shows a splash screen ("loading workspaces"). In the terminal I see the following error: ``` $ /Applications/AnythingLLM.app/Contents/MacOS/AnythingLLM [Preferences] preference config stored at /Users/user/Library/Application Support/anythingllm-desktop/config.json Prisma schema loaded from prisma/schema.prisma Datasource "db": SQLite database "anythingllm.db" at "file:/Users/kosta/Library/Application Support/anythingllm-desktop/storage/anythingllm.db" Already in sync, no schema change or pending migration was found. EPERM: operation not permitted, open '/Applications/AnythingLLM.app/Contents/Resources/backend/node_modules/.prisma/client/index.js' Prisma schema loaded from prisma/schema.prisma Error: EPERM: operation not permitted, open '/Applications/AnythingLLM.app/Contents/Resources/backend/node_modules/.prisma/client/index.js' [OllamaProcessManager] Ollama will bind on port 51418 when booted. [Preferences] Will load window with last know bounds. node:internal/modules/cjs/loader:1087 throw err; ^ Error: Cannot find module '.prisma/client/index' Require stack: - /Applications/AnythingLLM.app/Contents/Resources/backend/node_modules/@prisma/client/index.js - /Applications/AnythingLLM.app/Contents/Resources/backend/server.js - at node:internal/modules/cjs/loader:1084:15 at Function._resolveFilename (node:electron/js2c/utility_init:2:3040) at node:internal/modules/cjs/loader:929:27 at Function._load (node:electron/js2c/asar_bundle:2:13327) at Module.require (node:internal/modules/cjs/loader:1150:19) at require (node:internal/modules/cjs/helpers:110:18) at Object.<anonymous> (/Applications/AnythingLLM.app/Contents/Resources/backend/node_modules/@prisma/client/index.js:2:6) at Module._compile (node:internal/modules/cjs/loader:1271:14) at Object..js (node:internal/modules/cjs/loader:1326:10) at Module.load (node:internal/modules/cjs/loader:1126:32) { code: 'MODULE_NOT_FOUND', requireStack: [ '/Applications/AnythingLLM.app/Contents/Resources/backend/node_modules/@prisma/client/index.js', '/Applications/AnythingLLM.app/Contents/Resources/backend/server.js', undefined ] } Node.js v18.16.1 2024-09-22 09:33:44.540 AnythingLLM[10928:7789349] +[IMKClient subclass]: chose IMKClient_Legacy 2024-09-22 09:33:44.540 AnythingLLM[10928:7789349] +[IMKInputSession subclass]: chose IMKInputSession_Legacy [collector] info: Collector hot directory and tmp storage wiped! [collector] info: [production] AnythingLLM Standalone Document processor listening on port 8888. ^C[Preferences] Saving last_bounds preference. ``` Looking in the node_modules directory, I see that there is no `.prisma` folder. ### Are there known steps to reproduce? _No response_
yindo added the possible bug label 2026-02-22 18:25:16 -05:00
yindo closed this issue 2026-02-22 18:25:16 -05:00
Author
Owner

@sprig commented on GitHub (Sep 22, 2024):

Attempting to run 1.6.6 yields the same error.

@sprig commented on GitHub (Sep 22, 2024): Attempting to run 1.6.6 yields the same error.
Author
Owner

@sprig commented on GitHub (Sep 22, 2024):

Not sure exactly what happened but after restoring the app from trash it suddenly works, I will close for now.

@sprig commented on GitHub (Sep 22, 2024): Not sure exactly what happened but after restoring the app from trash it suddenly works, I will close for now.
Author
Owner

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

Maybe had AnythingLLM open at the same time in BG while mounting the new one?

@timothycarambat commented on GitHub (Sep 23, 2024): Maybe had AnythingLLM open at the same time in BG while mounting the new one?
Author
Owner

@sprig commented on GitHub (Sep 23, 2024):

I did not. The only "exceptional" thing I had was running it for the first time while the computer was offline.

@sprig commented on GitHub (Sep 23, 2024): I did not. The only "exceptional" thing I had was running it for the first time while the computer was offline.
yindo changed title from [BUG]: AnythingLLM desktop fails to start to [GH-ISSUE #2346] [BUG]: AnythingLLM desktop fails to start 2026-06-05 14:41:15 -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#1528