[GH-ISSUE #3647] [Issue]: Repeated file schema error crashes server when conversation generation starts #1975

Closed
opened 2026-10-21 05:44:18 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Jul 15, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3647

Originally assigned to: @SpicyMarinara on GitHub.

Summary

On staging v2.3.0, Marinara Engine repeatedly logs a TypeError while running and exits unexpectedly when a message is sent to a character in conversation mode.

Expected behavior

Marinara Engine should run without repeated database schema errors and should generate a response when a message is sent in conversation mode.

Actual behavior

The server repeatedly reports "Cannot read properties of undefined (reading 'name')" from getFileTableConfig. Sending a message to a character in conversation mode triggers an unhandled rejection, reaps the sidecar, and exits the server.

Steps to reproduce

  1. Start Marinara Engine v2.3.0 build 8ef240a from the staging branch.
  2. Leave Marinara Engine running and observe the repeating TypeError.
  3. Open conversation mode and send a message to a character.
  4. Observe the similar TypeError followed by an unexpected server exit.

Environment

  • Marinara Engine version: v2.3.0, build 8ef240a, staging branch
  • Install type: Not provided
  • OS + version: Windows; version not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

Repeated error: TypeError: Cannot read properties of undefined (reading 'name') at getFileTableConfig (packages/server/dist/db/file-schema.js:77:24), called through file-backed-store.js and conversation-calls/1.0.1/server.mjs. On generation start, the same error is called through hierarchical-maps/1.0.0/server.mjs, spatial-context/projection.js, and generate.routes.js, followed by "[process] Unhandled rejection; reaping sidecar before exit" and "[ERROR] Server exited unexpectedly." Full stack traces were provided in the Discord context.

Additional context

The reporter suspects the issue may be related to a broken update but is not certain. Hostname in the logs is "melchior".

Discord thread: [Bug] [Staging] Repeated Error while ME is running, crash with similar error on generation start
Discord thread link: https://discord.com/channels/1417099416812392641/1527011962121097258
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (2 messages)
[2026-07-15T18:00:22.280Z] Kat: Release: v2.3.0 Build: 8ef240a Branch: staging

the error below repeats while marinara is running. it might be related to a borked update? not sure exactly

` ` `

{"level":50,"time":1784138180183,"pid":17736,"hostname":"melchior","reqId":"req-44","err":{"type":"TypeError","message":"Cannot read properties of undefined (reading 'name')","stack":"TypeError: Cannot read properties of undefined (reading 'name')\n    at getFileTableConfig (file:///C:/Users/kat/AI/Marinara-Engine/packages/server/dist/db/file-schema.js:77:24)\n    at tableNameOf (file:///C:/Users/kat/AI/Marinara-Engine/packages/server/dist/db/file-backed-store.js:150:12)\n    at getMeta (file:///C:/Users/kat/AI/Marinara-Engine/packages/server/dist/db/file-backed-store.js:524:59)\n    at Object.from (file:///C:/Users/kat/AI/Marinara-Engine/packages/server/dist/db/file-backed-store.js:746:52)\n    at Object.getActiveForChat (file:///C:/Users/kat/AI/Marinara-Engine/packages/server/data/capability-packages/versions/conversation-calls/1.0.1/server.mjs:679:12186)\n    at Object.<anonymous> (file:///C:/Users/kat/AI/Marinara-Engine/packages/server/data/capability-packages/versions/conversation-calls/1.0.1/server.mjs:864:2830)\n    at preHandlerCallbackInner (C:\\Users\\kat\\AI\\Marinara-Engine\\.pnpm\\fastify@5.8.5\\node_modules\\fastify\\lib\\handle-request.js:168:24)\n    at preHandlerCallback (C:\\Users\\kat\\AI\\Marinara-Engine\\.pnpm\\fastify@5.8.5\\node_modules\\fastify\\lib\\handle-request.js:134:5)\n    at next (C:\\Users\\kat\\AI\\Marinara-Engine\\.pnpm\\fastify@5.8.5\\node_modules\\fastify\\lib\\hooks.js:236:9)\n    at AsyncLocalStorage.run (node:internal/async_local_storage/async_context_frame:63:14)"},"msg":"Cannot read properties of undefined (reading 'name')"}
` ` `
[Discord message: https://discord.com/channels/1417099416812392641/1527011962121097258/1527011962121097258]

[2026-07-15T18:00:26.017Z] Kat: and this happens when I send a message to a char in convo mode 
` ` `
{"level":50,"time":1784138183283,"pid":17736,"hostname":"melchior","err":{"type":"TypeError","message":"Cannot read properties of undefined (reading 'name')","stack":"TypeError: Cannot read properties of undefined (reading 'name')\n    at getFileTableConfig (file:///C:/Users/kat/AI/Marinara-Engine/packages/server/dist/db/file-schema.js:77:24)\n    at tableNameOf (file:///C:/Users/kat/AI/Marinara-Engine/packages/server/dist/db/file-backed-store.js:150:12)\n    at getMeta (file:///C:/Users/kat/AI/Marinara-Engine/packages/server/dist/db/file-backed-store.js:524:59)\n    at Object.from (file:///C:/Users/kat/AI/Marinara-Engine/packages/server/dist/db/file-backed-store.js:746:52)\n    at ds (file:///C:/Users/kat/AI/Marinara-Engine/packages/server/data/capability-packages/versions/hierarchical-maps/1.0.0/server.mjs:700:104704)\n    at Object.g1e (file:///C:/Users/kat/AI/Marinara-Engine/packages/server/data/capability-packages/versions/hierarchical-maps/1.0.0/server.mjs:703:2225)\n    at resolveOwnerSpatialProjection (file:///C:/Users/kat/AI/Marinara-Engine/packages/server/dist/services/spatial-context/projection.js:7:23)\n    at Object.<anonymous> (file:///C:/Users/kat/AI/Marinara-Engine/packages/server/dist/routes/generate.routes.js:760:51)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)"},"msg":"[process] Unhandled rejection; reaping sidecar before exit"}

 [ERROR] Server exited unexpectedly. See the error above.

Press any key to continue . . .
` ` `
[Discord message: https://discord.com/channels/1417099416812392641/1527011962121097258/1527011977795338343]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Jul 15, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3647 Originally assigned to: @SpicyMarinara on GitHub. ## Summary On staging v2.3.0, Marinara Engine repeatedly logs a TypeError while running and exits unexpectedly when a message is sent to a character in conversation mode. ## Expected behavior Marinara Engine should run without repeated database schema errors and should generate a response when a message is sent in conversation mode. ## Actual behavior The server repeatedly reports "Cannot read properties of undefined (reading 'name')" from getFileTableConfig. Sending a message to a character in conversation mode triggers an unhandled rejection, reaps the sidecar, and exits the server. ## Steps to reproduce 1. Start Marinara Engine v2.3.0 build 8ef240a from the staging branch. 2. Leave Marinara Engine running and observe the repeating TypeError. 3. Open conversation mode and send a message to a character. 4. Observe the similar TypeError followed by an unexpected server exit. ## Environment - Marinara Engine version: v2.3.0, build 8ef240a, staging branch - Install type: Not provided - OS + version: Windows; version not provided - Browser or app shell: Not provided ## Logs, screenshots, or video Repeated error: TypeError: Cannot read properties of undefined (reading 'name') at getFileTableConfig (packages/server/dist/db/file-schema.js:77:24), called through file-backed-store.js and conversation-calls/1.0.1/server.mjs. On generation start, the same error is called through hierarchical-maps/1.0.0/server.mjs, spatial-context/projection.js, and generate.routes.js, followed by "[process] Unhandled rejection; reaping sidecar before exit" and "[ERROR] Server exited unexpectedly." Full stack traces were provided in the Discord context. ## Additional context The reporter suspects the issue may be related to a broken update but is not certain. Hostname in the logs is "melchior". Discord thread: [Bug] [Staging] Repeated Error while ME is running, crash with similar error on generation start Discord thread link: https://discord.com/channels/1417099416812392641/1527011962121097258 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (2 messages)</summary> ```text [2026-07-15T18:00:22.280Z] Kat: Release: v2.3.0 Build: 8ef240a Branch: staging the error below repeats while marinara is running. it might be related to a borked update? not sure exactly ` ` ` {"level":50,"time":1784138180183,"pid":17736,"hostname":"melchior","reqId":"req-44","err":{"type":"TypeError","message":"Cannot read properties of undefined (reading 'name')","stack":"TypeError: Cannot read properties of undefined (reading 'name')\n at getFileTableConfig (file:///C:/Users/kat/AI/Marinara-Engine/packages/server/dist/db/file-schema.js:77:24)\n at tableNameOf (file:///C:/Users/kat/AI/Marinara-Engine/packages/server/dist/db/file-backed-store.js:150:12)\n at getMeta (file:///C:/Users/kat/AI/Marinara-Engine/packages/server/dist/db/file-backed-store.js:524:59)\n at Object.from (file:///C:/Users/kat/AI/Marinara-Engine/packages/server/dist/db/file-backed-store.js:746:52)\n at Object.getActiveForChat (file:///C:/Users/kat/AI/Marinara-Engine/packages/server/data/capability-packages/versions/conversation-calls/1.0.1/server.mjs:679:12186)\n at Object.<anonymous> (file:///C:/Users/kat/AI/Marinara-Engine/packages/server/data/capability-packages/versions/conversation-calls/1.0.1/server.mjs:864:2830)\n at preHandlerCallbackInner (C:\\Users\\kat\\AI\\Marinara-Engine\\.pnpm\\fastify@5.8.5\\node_modules\\fastify\\lib\\handle-request.js:168:24)\n at preHandlerCallback (C:\\Users\\kat\\AI\\Marinara-Engine\\.pnpm\\fastify@5.8.5\\node_modules\\fastify\\lib\\handle-request.js:134:5)\n at next (C:\\Users\\kat\\AI\\Marinara-Engine\\.pnpm\\fastify@5.8.5\\node_modules\\fastify\\lib\\hooks.js:236:9)\n at AsyncLocalStorage.run (node:internal/async_local_storage/async_context_frame:63:14)"},"msg":"Cannot read properties of undefined (reading 'name')"} ` ` ` [Discord message: https://discord.com/channels/1417099416812392641/1527011962121097258/1527011962121097258] [2026-07-15T18:00:26.017Z] Kat: and this happens when I send a message to a char in convo mode ` ` ` {"level":50,"time":1784138183283,"pid":17736,"hostname":"melchior","err":{"type":"TypeError","message":"Cannot read properties of undefined (reading 'name')","stack":"TypeError: Cannot read properties of undefined (reading 'name')\n at getFileTableConfig (file:///C:/Users/kat/AI/Marinara-Engine/packages/server/dist/db/file-schema.js:77:24)\n at tableNameOf (file:///C:/Users/kat/AI/Marinara-Engine/packages/server/dist/db/file-backed-store.js:150:12)\n at getMeta (file:///C:/Users/kat/AI/Marinara-Engine/packages/server/dist/db/file-backed-store.js:524:59)\n at Object.from (file:///C:/Users/kat/AI/Marinara-Engine/packages/server/dist/db/file-backed-store.js:746:52)\n at ds (file:///C:/Users/kat/AI/Marinara-Engine/packages/server/data/capability-packages/versions/hierarchical-maps/1.0.0/server.mjs:700:104704)\n at Object.g1e (file:///C:/Users/kat/AI/Marinara-Engine/packages/server/data/capability-packages/versions/hierarchical-maps/1.0.0/server.mjs:703:2225)\n at resolveOwnerSpatialProjection (file:///C:/Users/kat/AI/Marinara-Engine/packages/server/dist/services/spatial-context/projection.js:7:23)\n at Object.<anonymous> (file:///C:/Users/kat/AI/Marinara-Engine/packages/server/dist/routes/generate.routes.js:760:51)\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)"},"msg":"[process] Unhandled rejection; reaping sidecar before exit"} [ERROR] Server exited unexpectedly. See the error above. Press any key to continue . . . ` ` ` [Discord message: https://discord.com/channels/1417099416812392641/1527011962121097258/1527011977795338343] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:44:18 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Jul 15, 2026):

Verification and issue linkage are now tracked in draft PR #3650. Current staging already includes the capability table-identity and incompatible-package quarantine fix; this PR ties the regression-backed fix to this report and the v2.3.0 changelog.

<!-- gh-comment-id:4984058297 --> @SpicyMarinara commented on GitHub (Jul 15, 2026): Verification and issue linkage are now tracked in draft PR #3650. Current staging already includes the capability table-identity and incompatible-package quarantine fix; this PR ties the regression-backed fix to this report and the v2.3.0 changelog.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#1975
No description provided.