mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7162] [Issue]: Game Generation Fails with "NetworkError when attempting to fetch resource" #3997
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#3997
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @S-Bryce on GitHub (Oct 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7162
Summary
When attempting to generate a new game, the connection between Marinara Engine and the provider (Koboldcpp in this case) is interrupted without allowing the generation to complete.
Expected behavior
The game should have generated (or at least made it to the next step of generation)
Actual behavior
The connection is being terminated (although I cannot tell which side is terminating it, I do not have this issue with other tools/platforms/frontends using Koboldcpp). This appears to happen about 50 seconds into the generation, with Marinara receiving part of the generated JSON and then attempting to retry before failing in the same manner.
I have also noticed the error message "Game setup cancelled because the client disconnected", although I am just sitting on the page for the entire time.
Steps to reproduce
Environment
2.4.62.5.0Logs, screenshots, or video
Logs from Marinara Engine:

Logs from Koboldcpp:

Additional context
Marinara Engine and Koboldcpp are located on the same physical machine, but as you'll probably glean from the logs, the connection to koboldcpp goes through "https://kobold.home", which is an internal domain I have set up for the machine's IP. This causes it to go through a TLS connection that traverses a HAProxy reverse proxy, with the TLS connection itself being terminated by Koboldcpp, as it natively supports TLS (rather than HAProxy terminating the TLS connection and forwarding the traffic in plaintext to the backend service, like is done for Marinara's web GUI).
There is also a separate issue: it appears that the maximum output length is being ignored. I don't believe this is causing the timeout(?) issue, but wanted to mention it:Marinara Engine Game settings:Logs from Marinara Engine:Logs from Koboldcpp:I can make a separate issue for that one if you want, just let me know.Fixed with upgrade to 2.5.0Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Oct 6, 2026):
New release in progress, try when it drops.
@S-Bryce commented on GitHub (Oct 6, 2026):
Just tested with 2.5.0, the output token limit is being adhered to now, but the issue with the generation getting interrupted and the Game generation failing is unchanged