mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7165] [Issue]: Game Generation Fails with "NetworkError when attempting to fetch resource" #4000
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#4000
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/7165
Originally assigned to: @SpicyMarinara on GitHub.
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. Based on #7162 since I cannot reopen issues, and the issue has persisted with the recent upgrade from 2.4.6 to 2.5.0.
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
Logs, 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).
Template 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):
Thanks for the detailed report, the logs make this clear.
The ~50 second cut-off matches HAProxy's default
timeout client 50s/timeout server 50s. Starting a game is one long request that only answers once the whole game is generated, so with a slower local model HAProxy sees 50 seconds of silence and closes the connection between your browser and Marinara. Marinara then sees the browser disconnect and cancels the Koboldcpp generation (that's the "Game setup cancelled because the client disconnected" message), and Firefox shows "NetworkError when attempting to fetch resource". The Marinara→Koboldcpp connection itself is fine.Raising the timeouts for the Marinara frontend/backend in HAProxy should fix it, for example:
(or
timeout tunnel 10mif you prefer), then reload HAProxy. Please let us know if it still fails after that.