[GH-ISSUE #6984] [Issue]: Server exits with syntax error in conversation-command-runtime.js #3909

Closed
opened 2026-10-21 06:08:40 +07:00 by bsakaguchi · 2 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Marinara Engine displayed Node.js error pop-ups in the chat sidebar and then failed to start the server after a restart. The failure occurred in conversation-command-runtime.js due to an unexpected comma, and the GitHub installer subsequently reported an unexpected repository commit.

Expected behavior

Marinara Engine should start the server normally after restarting, and the GitHub installer should update the local repository to the expected commit.

Actual behavior

The server exited unexpectedly with a SyntaxError: Unexpected token ',' in packages/server/dist/services/generation/conversation-command-runtime.js. Retrying after restarting the PC produced the same error. The latest GitHub .exe installer then reported: "Repository update did not land on the expected v2.4.6 commit." A clean install restored functionality after the server data folder was transferred back.

Steps to reproduce

  1. Run Marinara Engine on Windows and leave it open for multiple days.
  2. Restart Marinara Engine after Node.js error pop-ups appear in the chat sidebar.
  3. Observe the server startup error in the terminal and the "Server exited unexpectedly" message.
  4. Restart the PC and launch Marinara Engine again.
  5. Attempt to install the latest GitHub .exe and observe the repository commit validation error.

Environment

  • Marinara Engine version: 2.4.6 reported by diagnostics from the clean install; version of the broken installation not provided
  • Install type: installer
  • OS + version: Windows 10.0.26100 (x64)
  • Browser or app shell: Microsoft Edge 154.0.0.0 / Chromium app shell

Logs, screenshots, or video

Terminal log: /AppData/Local/MarinaraEngine/packages/server/dist/services/generation/conversation-command-runtime.js:8; if(, raw) { }; SyntaxError: Unexpected token ','; Node.js v25.9.0; [ERROR] Server exited unexpectedly. See the error above. Installer error: Repository update did not land on the expected v2.4.6 commit. Please run the installer again after resolving local repository state. Support diagnostics were collected after the clean install and may not represent the broken installation.

Additional context

The user had not updated recently and reported that Marinara Engine had been open for multiple days without issues. A clean install resolved the problem, and the user restored the server data folder. Diagnostics from the clean install reported build 2.4.6+12a0acd5b782, commit 12a0acd5b7, two sessions ending without shutdown, and the active connection Unsloth - Gemma 4 31B it scotoma 2 using the custom provider and model ReadyArt/gemma-4-31B-it-scotoma-2-GGUF:Q5_K_M.

Discord thread: Server exited unexpectedly
Discord thread link: https://discord.com/channels/1417099416812392641/1555688880152514632
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (6 messages)
[2026-10-02T21:12:12.330Z] Catdragon8: Hello, earlier today I noticed some node js error pop ups within the chat sidebar of ME, so I restarted ME and got the error below in the terminal when it started back up. I restarted my PC and got the same error again.

Error in terminal:

> /AppData/Local/MarinaraEngine/packages/server/dist/services/generation/conversation-command-runtime.js:8
> if(, raw) { }
> ^
> 
> SyntaxError: Unexpected token ','
> at compileSourceTextModule (node:internal/modules/esm/utils:354:16)
> at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:91:18)
> at #translate (node:internal/modules/esm/loader:451:20)
> at afterLoad (node:internal/modules/esm/loader:507:29)
> at ModuleLoader.loadAndTranslate (node:internal/modules/esm/loader:512:12)
> at #getOrCreateModuleJobAfterResolve (node:internal/modules/esm/loader:555:36)
> at afterResolve (node:internal/modules/esm/loader:603:52)
> at ModuleLoader.getOrCreateModuleJob (node:internal/modules/esm/loader:609:12)
> at ModuleJob.syncLink (node:internal/modules/esm/module_job:162:33)
> at ModuleJob.link (node:internal/modules/esm/module_job:252:17)
> 
> Node.js v25.9.0
> 
>  [ERROR] Server exited unexpectedly. See the error above.
> 
> Press any key to continue . . .


Afterwards I tried to install the latest github .exe but this error popped up:

> Repository update did not land on the expected v2.4.6
> commit.
> 
> Please run the installer again after resolving local repository
> state.

So, I did a clean install and was able to transfer back in my server data folder and everything is working again, but just wanted to report it. I haven't updated recently and the program was open for multiple days without issue like usual.
[Discord message: https://discord.com/channels/1417099416812392641/1555688880152514632/1555688880152514632]

[2026-10-02T21:12:13.096Z] Professor Mari [bot]: Howdy!

Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.**

**Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab:

`Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.`

If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here:

`Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version`

Thank you, this will help tremendously.

This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case.

Cheers!
[Discord message: https://discord.com/channels/1417099416812392641/1555688880152514632/1555688883365351610]

[2026-10-02T21:13:09.721Z] Catdragon8: Here's the support diagnostics but they're for the clean install, not the one that broke:

> Marinara Engine diagnostics
> Version: 2.4.6
> Build: 2.4.6+12a0acd5b782
> Commit: 12a0acd5b782
> Server OS: Windows 10.0.26100 (x64)
> Server memory: heap 581.8 / 4288 MiB; RSS 836.4 MiB
> Background wake lock: not reported
> Last detected freeze: none detected
> Previous session: shut down cleanly at 2026-10-02T19:51:55.530Z
> Sessions ended without shutdown: 2 recorded
> Client OS: Windows 10.0
> Browser / app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/154.0.0.0 Safari/537.36 Edg/154.0.0.0
[Discord message: https://discord.com/channels/1417099416812392641/1555688880152514632/1555689120867819694]

[2026-10-02T21:13:59.212Z] Catdragon8: > Client runtime: {"build":"2.4.6+12a0acd5b782","page":"murfhve7-p81m9xxh","persistence":"local","navigation":"navigate","standalone":false,"view":[948,0,0,0],"events":[{"at":1790973876047,"page":"murfhve7-p81m9xxh","build":"2.4.6+12a0acd5b782","kind":"hidden","view":[948,0,0,0]},{"at":1790973931746,"page":"murfhve7-p81m9xxh","build":"2.4.6+12a0acd5b782","kind":"visible","view":[948,0,0,0]},{"at":1790974100467,"page":"murfhve7-p81m9xxh","build":"2.4.6+12a0acd5b782","kind":"hidden","view":[948,0,0,0]},{"at":1790974115947,"page":"murfhve7-p81m9xxh","build":"2.4.6+12a0acd5b782","kind":"visible","view":[948,0,0,0]},{"at":1790974117489,"page":"murfhve7-p81m9xxh","build":"2.4.6+12a0acd5b782","kind":"hidden","view":[948,0,0,0]},{"at":1790974119404,"page":"murfhve7-p81m9xxh","build":"2.4.6+12a0acd5b782","kind":"visible","view":[948,0,0,0]},{"at":1790974199356,"page":"murfhve7-p81m9xxh","build":"2.4.6+12a0acd5b782","kind":"hidden","view":[948,0,0,0]},{"at":1790974254578,"page":"murfhve7-p81m9xxh","build":"2.4.6+12a0acd5b782","kind":"visible","view":[948,0,0,0]},{"at":1790974259853,"page":"murfhve7-p81m9xxh","build":"2.4.6+12a0acd5b782","kind":"hidden","view":[948,0,0,0]},{"at":1790974304125,"page":"murfhve7-p81m9xxh","build":"2.4.6+12a0acd5b782","kind":"visible","view":[948,0,0,0]},{"at":1790974308757,"page":"murfhve7-p81m9xxh","build":"2.4.6+12a0acd5b782","kind":"hidden","view":[948,0,0,0]},{"at":1790974349022,"page":"murfhve7-p81m9xxh","build":"2.4.6+12a0acd5b782","kind":"visible","view":[948,0,0,0]},{"at":1790974350557,"page":"murfhve7-p81m9xxh","build":"2.4.6+12a0acd5b782","kind":"hidden","view":[948,0,0,0]},{"at":1790974609104,"page":"murfhve7-p81m9xxh","build":"2.4.6+12a0acd5b782","kind":"visible","view":[948,0,0,0]},{"at":1790974617458,"page":"murfhve7-p81m9xxh","build":"2.4.6+12a0acd5b782","kind":"hidden","view":[948,0,0,0]},{"at":1790974865570,"page":"murfhve7-p81m9xxh","build":"2.4.6+12a0acd5b782","kind":"visible","view":[948,0,0,0]}]}
[Discord message: https://discord.com/channels/1417099416812392641/1555688880152514632/1555689328447852625]

[2026-10-02T21:14:05.522Z] Catdragon8: > GPU: ANGLE (NVIDIA, NVIDIA GeForce RTX 5090 (0x00002B85) Direct3D11 vs_5_0 ps_5_0, D3D11)
> Active connection: Unsloth - Gemma 4 31B it scotoma 2
> Connection provider: custom
> LLM model: ReadyArt/gemma-4-31B-it-scotoma-2-GGUF:Q5_K_M
> Mari last acted on: none recorded this session
[Discord message: https://discord.com/channels/1417099416812392641/1555688880152514632/1555689354913910878]

[2026-10-02T22:34:02.485Z] Marinara: Staging?
[Discord message: https://discord.com/channels/1417099416812392641/1555688880152514632/1555709474835005451]

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 (Oct 2, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6984 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Marinara Engine displayed Node.js error pop-ups in the chat sidebar and then failed to start the server after a restart. The failure occurred in conversation-command-runtime.js due to an unexpected comma, and the GitHub installer subsequently reported an unexpected repository commit. ## Expected behavior Marinara Engine should start the server normally after restarting, and the GitHub installer should update the local repository to the expected commit. ## Actual behavior The server exited unexpectedly with a SyntaxError: Unexpected token ',' in packages/server/dist/services/generation/conversation-command-runtime.js. Retrying after restarting the PC produced the same error. The latest GitHub .exe installer then reported: "Repository update did not land on the expected v2.4.6 commit." A clean install restored functionality after the server data folder was transferred back. ## Steps to reproduce 1. Run Marinara Engine on Windows and leave it open for multiple days. 2. Restart Marinara Engine after Node.js error pop-ups appear in the chat sidebar. 3. Observe the server startup error in the terminal and the "Server exited unexpectedly" message. 4. Restart the PC and launch Marinara Engine again. 5. Attempt to install the latest GitHub .exe and observe the repository commit validation error. ## Environment - Marinara Engine version: 2.4.6 reported by diagnostics from the clean install; version of the broken installation not provided - Install type: installer - OS + version: Windows 10.0.26100 (x64) - Browser or app shell: Microsoft Edge 154.0.0.0 / Chromium app shell ## Logs, screenshots, or video Terminal log: /AppData/Local/MarinaraEngine/packages/server/dist/services/generation/conversation-command-runtime.js:8; `if(, raw) { }`; `SyntaxError: Unexpected token ','`; Node.js v25.9.0; `[ERROR] Server exited unexpectedly. See the error above.` Installer error: `Repository update did not land on the expected v2.4.6 commit. Please run the installer again after resolving local repository state.` Support diagnostics were collected after the clean install and may not represent the broken installation. ## Additional context The user had not updated recently and reported that Marinara Engine had been open for multiple days without issues. A clean install resolved the problem, and the user restored the server data folder. Diagnostics from the clean install reported build 2.4.6+12a0acd5b782, commit 12a0acd5b782, two sessions ending without shutdown, and the active connection `Unsloth - Gemma 4 31B it scotoma 2` using the custom provider and model `ReadyArt/gemma-4-31B-it-scotoma-2-GGUF:Q5_K_M`. Discord thread: Server exited unexpectedly Discord thread link: https://discord.com/channels/1417099416812392641/1555688880152514632 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (6 messages)</summary> ```text [2026-10-02T21:12:12.330Z] Catdragon8: Hello, earlier today I noticed some node js error pop ups within the chat sidebar of ME, so I restarted ME and got the error below in the terminal when it started back up. I restarted my PC and got the same error again. Error in terminal: > /AppData/Local/MarinaraEngine/packages/server/dist/services/generation/conversation-command-runtime.js:8 > if(, raw) { } > ^ > > SyntaxError: Unexpected token ',' > at compileSourceTextModule (node:internal/modules/esm/utils:354:16) > at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:91:18) > at #translate (node:internal/modules/esm/loader:451:20) > at afterLoad (node:internal/modules/esm/loader:507:29) > at ModuleLoader.loadAndTranslate (node:internal/modules/esm/loader:512:12) > at #getOrCreateModuleJobAfterResolve (node:internal/modules/esm/loader:555:36) > at afterResolve (node:internal/modules/esm/loader:603:52) > at ModuleLoader.getOrCreateModuleJob (node:internal/modules/esm/loader:609:12) > at ModuleJob.syncLink (node:internal/modules/esm/module_job:162:33) > at ModuleJob.link (node:internal/modules/esm/module_job:252:17) > > Node.js v25.9.0 > > [ERROR] Server exited unexpectedly. See the error above. > > Press any key to continue . . . Afterwards I tried to install the latest github .exe but this error popped up: > Repository update did not land on the expected v2.4.6 > commit. > > Please run the installer again after resolving local repository > state. So, I did a clean install and was able to transfer back in my server data folder and everything is working again, but just wanted to report it. I haven't updated recently and the program was open for multiple days without issue like usual. [Discord message: https://discord.com/channels/1417099416812392641/1555688880152514632/1555688880152514632] [2026-10-02T21:12:13.096Z] Professor Mari [bot]: Howdy! Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.** **Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab: `Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.` If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here: `Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version` Thank you, this will help tremendously. This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case. Cheers! [Discord message: https://discord.com/channels/1417099416812392641/1555688880152514632/1555688883365351610] [2026-10-02T21:13:09.721Z] Catdragon8: Here's the support diagnostics but they're for the clean install, not the one that broke: > Marinara Engine diagnostics > Version: 2.4.6 > Build: 2.4.6+12a0acd5b782 > Commit: 12a0acd5b782 > Server OS: Windows 10.0.26100 (x64) > Server memory: heap 581.8 / 4288 MiB; RSS 836.4 MiB > Background wake lock: not reported > Last detected freeze: none detected > Previous session: shut down cleanly at 2026-10-02T19:51:55.530Z > Sessions ended without shutdown: 2 recorded > Client OS: Windows 10.0 > Browser / app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/154.0.0.0 Safari/537.36 Edg/154.0.0.0 [Discord message: https://discord.com/channels/1417099416812392641/1555688880152514632/1555689120867819694] [2026-10-02T21:13:59.212Z] Catdragon8: > Client runtime: {"build":"2.4.6+12a0acd5b782","page":"murfhve7-p81m9xxh","persistence":"local","navigation":"navigate","standalone":false,"view":[948,0,0,0],"events":[{"at":1790973876047,"page":"murfhve7-p81m9xxh","build":"2.4.6+12a0acd5b782","kind":"hidden","view":[948,0,0,0]},{"at":1790973931746,"page":"murfhve7-p81m9xxh","build":"2.4.6+12a0acd5b782","kind":"visible","view":[948,0,0,0]},{"at":1790974100467,"page":"murfhve7-p81m9xxh","build":"2.4.6+12a0acd5b782","kind":"hidden","view":[948,0,0,0]},{"at":1790974115947,"page":"murfhve7-p81m9xxh","build":"2.4.6+12a0acd5b782","kind":"visible","view":[948,0,0,0]},{"at":1790974117489,"page":"murfhve7-p81m9xxh","build":"2.4.6+12a0acd5b782","kind":"hidden","view":[948,0,0,0]},{"at":1790974119404,"page":"murfhve7-p81m9xxh","build":"2.4.6+12a0acd5b782","kind":"visible","view":[948,0,0,0]},{"at":1790974199356,"page":"murfhve7-p81m9xxh","build":"2.4.6+12a0acd5b782","kind":"hidden","view":[948,0,0,0]},{"at":1790974254578,"page":"murfhve7-p81m9xxh","build":"2.4.6+12a0acd5b782","kind":"visible","view":[948,0,0,0]},{"at":1790974259853,"page":"murfhve7-p81m9xxh","build":"2.4.6+12a0acd5b782","kind":"hidden","view":[948,0,0,0]},{"at":1790974304125,"page":"murfhve7-p81m9xxh","build":"2.4.6+12a0acd5b782","kind":"visible","view":[948,0,0,0]},{"at":1790974308757,"page":"murfhve7-p81m9xxh","build":"2.4.6+12a0acd5b782","kind":"hidden","view":[948,0,0,0]},{"at":1790974349022,"page":"murfhve7-p81m9xxh","build":"2.4.6+12a0acd5b782","kind":"visible","view":[948,0,0,0]},{"at":1790974350557,"page":"murfhve7-p81m9xxh","build":"2.4.6+12a0acd5b782","kind":"hidden","view":[948,0,0,0]},{"at":1790974609104,"page":"murfhve7-p81m9xxh","build":"2.4.6+12a0acd5b782","kind":"visible","view":[948,0,0,0]},{"at":1790974617458,"page":"murfhve7-p81m9xxh","build":"2.4.6+12a0acd5b782","kind":"hidden","view":[948,0,0,0]},{"at":1790974865570,"page":"murfhve7-p81m9xxh","build":"2.4.6+12a0acd5b782","kind":"visible","view":[948,0,0,0]}]} [Discord message: https://discord.com/channels/1417099416812392641/1555688880152514632/1555689328447852625] [2026-10-02T21:14:05.522Z] Catdragon8: > GPU: ANGLE (NVIDIA, NVIDIA GeForce RTX 5090 (0x00002B85) Direct3D11 vs_5_0 ps_5_0, D3D11) > Active connection: Unsloth - Gemma 4 31B it scotoma 2 > Connection provider: custom > LLM model: ReadyArt/gemma-4-31B-it-scotoma-2-GGUF:Q5_K_M > Mari last acted on: none recorded this session [Discord message: https://discord.com/channels/1417099416812392641/1555688880152514632/1555689354913910878] [2026-10-02T22:34:02.485Z] Marinara: Staging? [Discord message: https://discord.com/channels/1417099416812392641/1555688880152514632/1555709474835005451] ``` </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 06:08:40 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Oct 3, 2026):

Happening on main, not staging,s o probably safe to ignore.

<!-- gh-comment-id:5966849466 --> @SpicyMarinara commented on GitHub (Oct 3, 2026): Happening on main, not staging,s o probably safe to ignore.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 3, 2026):

Fixed in staging by #6994, and it ships in the next release.

  • If a built server file gets damaged or deleted, the launcher now names it, rebuilds the server and starts, instead of failing with a SyntaxError until you reinstall. Updates (launcher, in-app and the installer) rebuild everything once, so they repair it too.
  • Running the Windows installer over an existing install no longer stops with "Repository update did not land on the expected commit". You'll need the new release's .exe for that; the current 2.4.6 installer still has the bug.

Until the release is out, a clean reinstall is still the workaround.

<!-- gh-comment-id:5967970727 --> @SpicyMarinara commented on GitHub (Oct 3, 2026): Fixed in staging by #6994, and it ships in the next release. - If a built server file gets damaged or deleted, the launcher now names it, rebuilds the server and starts, instead of failing with a `SyntaxError` until you reinstall. Updates (launcher, in-app and the installer) rebuild everything once, so they repair it too. - Running the Windows installer over an existing install no longer stops with "Repository update did not land on the expected commit". You'll need the new release's `.exe` for that; the current 2.4.6 installer still has the bug. Until the release is out, a clean reinstall is still the workaround.
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#3909
No description provided.