[GH-ISSUE #3909] [Issue]: Launcher fails with .env syntax error after message looping #2113

Closed
opened 2026-10-21 05:45:29 +07:00 by bsakaguchi · 2 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Marinara Engine no longer launches after a character-creation interaction caused Professor Mari to message-loop. Running start.sh fails because .env line 5 contains an unexpected newline token.

Expected behavior

The launcher should start successfully and allow normal input after restarting the server.

Actual behavior

Running start.sh immediately stops with './.env: line 5: syntax error near unexpected token `newline'''. Before the failure, Professor Mari began message-looping while creating a character and prevented input for multiple messages.

Steps to reproduce

  1. Run Marinara Engine version 2.3.3 on the Linux Mint server using the recommended Node.js and Git installation method.
  2. Ask Professor Mari to create a character.
  3. Observe the bot entering a message loop and preventing input for multiple messages.
  4. Stop or restart the server and run start.sh again.
  5. Observe the .env line 5 syntax error.

Environment

  • Marinara Engine version: 2.3.3
  • Install type: source
  • OS + version: Linux Mint; exact version not provided
  • Browser or app shell: iPhone client; exact browser or app shell not provided

Logs, screenshots, or video

Launcher output: './.env: line 5: syntax error near unexpected token `newline'''. No screenshots or video provided.

Additional context

The issue began after asking Professor Mari to create a character. The bot appeared to message-loop and blocked input for multiple messages. The specific model used was not provided. The server is hosted on Linux Mint and accessed from an iPhone.

Discord thread: Unexpected token 'newline'.
Discord thread link: https://discord.com/channels/1417099416812392641/1529152234716397731
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (4 messages)
[2026-07-21T15:45:03.031Z] F- F- F- Falin <3: OS: Linux mint (This is where I am hosting the server but I'm connecting using my iphone)
Install Method: I did the recommended commands where I installed the nodejs and git and made sure they were both updated right and then installed it the same way.
ME Version: 2.3.3
Chatting Method: Any and all



Whenever I try and launch the start.sh it spits out this:
  ╔══════════════════════════════════════════╗
  ║       Marinara Engine  —  Launcher        ║
  ╚══════════════════════════════════════════╝

./.env: line 5: syntax error near unexpected token `newline'

And that's it. It was working before just fine but I spoke to the marinara bot and asked it to create me a character and it started message looping and didn't let me input for multiple messages and then after when I tried to restart it. This kept happening.
[Discord message: https://discord.com/channels/1417099416812392641/1529152234716397731/1529152234716397731]

[2026-07-21T16:17:51.082Z] Marinara: Hm…
[Discord message: https://discord.com/channels/1417099416812392641/1529152234716397731/1529160489320452167]

[2026-07-21T16:18:18.502Z] Marinara: I'll invesigate.
[Discord message: https://discord.com/channels/1417099416812392641/1529152234716397731/1529160604328263780]

[2026-07-21T16:18:58.508Z] Marinara: The issue with Prof Mari looping is serious, though. Which model did you use? Looks like she starts looping when she incorrectly calls a function call, and we need to ensure that doesn't break anything.
[Discord message: https://discord.com/channels/1417099416812392641/1529152234716397731/1529160772125462548]

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 21, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3909 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Marinara Engine no longer launches after a character-creation interaction caused Professor Mari to message-loop. Running start.sh fails because .env line 5 contains an unexpected newline token. ## Expected behavior The launcher should start successfully and allow normal input after restarting the server. ## Actual behavior Running start.sh immediately stops with './.env: line 5: syntax error near unexpected token `newline'''. Before the failure, Professor Mari began message-looping while creating a character and prevented input for multiple messages. ## Steps to reproduce 1. Run Marinara Engine version 2.3.3 on the Linux Mint server using the recommended Node.js and Git installation method. 2. Ask Professor Mari to create a character. 3. Observe the bot entering a message loop and preventing input for multiple messages. 4. Stop or restart the server and run start.sh again. 5. Observe the .env line 5 syntax error. ## Environment - Marinara Engine version: 2.3.3 - Install type: source - OS + version: Linux Mint; exact version not provided - Browser or app shell: iPhone client; exact browser or app shell not provided ## Logs, screenshots, or video Launcher output: './.env: line 5: syntax error near unexpected token `newline'''. No screenshots or video provided. ## Additional context The issue began after asking Professor Mari to create a character. The bot appeared to message-loop and blocked input for multiple messages. The specific model used was not provided. The server is hosted on Linux Mint and accessed from an iPhone. Discord thread: Unexpected token 'newline'. Discord thread link: https://discord.com/channels/1417099416812392641/1529152234716397731 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (4 messages)</summary> ```text [2026-07-21T15:45:03.031Z] F- F- F- Falin <3: OS: Linux mint (This is where I am hosting the server but I'm connecting using my iphone) Install Method: I did the recommended commands where I installed the nodejs and git and made sure they were both updated right and then installed it the same way. ME Version: 2.3.3 Chatting Method: Any and all Whenever I try and launch the start.sh it spits out this: ╔══════════════════════════════════════════╗ ║ Marinara Engine — Launcher ║ ╚══════════════════════════════════════════╝ ./.env: line 5: syntax error near unexpected token `newline' And that's it. It was working before just fine but I spoke to the marinara bot and asked it to create me a character and it started message looping and didn't let me input for multiple messages and then after when I tried to restart it. This kept happening. [Discord message: https://discord.com/channels/1417099416812392641/1529152234716397731/1529152234716397731] [2026-07-21T16:17:51.082Z] Marinara: Hm… [Discord message: https://discord.com/channels/1417099416812392641/1529152234716397731/1529160489320452167] [2026-07-21T16:18:18.502Z] Marinara: I'll invesigate. [Discord message: https://discord.com/channels/1417099416812392641/1529152234716397731/1529160604328263780] [2026-07-21T16:18:58.508Z] Marinara: The issue with Prof Mari looping is serious, though. Which model did you use? Looks like she starts looping when she incorrectly calls a function call, and we need to ensure that doesn't break anything. [Discord message: https://discord.com/channels/1417099416812392641/1529152234716397731/1529160772125462548] ``` </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:45:29 +07:00
Author
Owner

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

I think the worst offender is Prof Mari looping, we need to make the character/lorebook/persona/etc. creation process as easy for her to complete as possible. If she fails to call a tool properly — we should catch it and run a command, anyway. Some models are incapable of function calling at all.

<!-- gh-comment-id:5036538275 --> @SpicyMarinara commented on GitHub (Jul 21, 2026): I think the worst offender is Prof Mari looping, we need to make the character/lorebook/persona/etc. creation process as easy for her to complete as possible. If she fails to call a tool properly — we should catch it and run a command, anyway. Some models are incapable of function calling at all.
Author
Owner

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

User updated their model: L3-8B-Stheno-v3.2-IQ4_XS

💀💀💀

No wonder it looped, lol. Still, we need to at least ensure Prof Mari doesn't crash ME for anyone, even if someone uses it with such a small model.

<!-- gh-comment-id:5036740205 --> @SpicyMarinara commented on GitHub (Jul 21, 2026): User updated their model: L3-8B-Stheno-v3.2-IQ4_XS 💀💀💀 No wonder it looped, lol. Still, we need to at least ensure Prof Mari doesn't crash ME for anyone, even if someone uses it with such a small model.
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#2113
No description provided.