[GH-ISSUE #7162] [Issue]: Game Generation Fails with "NetworkError when attempting to fetch resource" #3997

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

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

  1. Fill out the game generation wizard
  2. Press "Start Game"
  3. Wait for the generation attempts to fail
  4. Receive the error message

Environment

  • Marinara Engine version: 2.4.6 2.5.0
  • Install type: docker
  • OS + version: Ubuntu 22.04 LTS
  • Browser or app shell: Browser

Logs, screenshots, or video

Logs from Marinara Engine:
Image

Image

Logs from Koboldcpp:
Image

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:
Image

Logs from Marinara Engine:
Image

Logs from Koboldcpp:
Image

I can make a separate issue for that one if you want, just let me know. Fixed with upgrade to 2.5.0

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 @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 1. Fill out the game generation wizard 2. Press "Start Game" 3. Wait for the generation attempts to fail 4. Receive the error message ## Environment - Marinara Engine version: ~~2.4.6~~ 2.5.0 - Install type: docker - OS + version: Ubuntu 22.04 LTS - Browser or app shell: Browser ## Logs, screenshots, or video Logs from Marinara Engine: <img width="2547" height="168" alt="Image" src="https://github.com/user-attachments/assets/d846c95e-29bb-4823-8288-150a150ec938" /> <img width="2158" height="171" alt="Image" src="https://github.com/user-attachments/assets/b312b69a-778c-497f-a622-3336e8260326" /> Logs from Koboldcpp: <img width="1084" height="108" alt="Image" src="https://github.com/user-attachments/assets/d60dc169-86fc-41ca-9771-82140b41beaa" /> ## 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:~~ <img width="259" height="143" alt="Image" src="https://github.com/user-attachments/assets/fa000f0b-64f0-40b6-9ca9-f4723cf44688" /> ~~Logs from Marinara Engine:~~ <img width="2544" height="46" alt="Image" src="https://github.com/user-attachments/assets/c27e45f3-ada4-4f6e-a27f-2bcf23aa6071" /> ~~Logs from Koboldcpp:~~ <img width="1214" height="139" alt="Image" src="https://github.com/user-attachments/assets/5668d153-e18c-4d01-b684-0bf552c7372d" /> ~~I can make a separate issue for that one if you want, just let me know.~~ Fixed with upgrade to 2.5.0 ## 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:09:24 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

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

New release in progress, try when it drops.

<!-- gh-comment-id:6020205926 --> @SpicyMarinara commented on GitHub (Oct 6, 2026): New release in progress, try when it drops.
Author
Owner

@S-Bryce commented on GitHub (Oct 6, 2026):

New release in progress, try when it drops.

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

<!-- gh-comment-id:6020526096 --> @S-Bryce commented on GitHub (Oct 6, 2026): > New release in progress, try when it drops. 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
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#3997
No description provided.